是否需要“彈出”連線到windows的mtp裝置?

我們都知道從我們的計算機上分離USB大容量儲存裝置有正確的方法和錯誤的方法,但是相同的原理適用於MTP裝置嗎?今天的超級使用者問答帖子回答了一位好奇的讀者的問題。...

是否需要“彈出”連線到windows的mtp裝置?

我們都知道從我們的計算機上分離USB大容量儲存裝置有正確的方法和錯誤的方法,但是相同的原理適用於MTP裝置嗎?今天的超級使用者問答帖子回答了一位好奇的讀者的問題。

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

問題

超級使用者閱讀器RockPaperLizard想知道你是否可以簡單地拔下連線到Windows的MTP裝置上的USB插頭:

I know that after attaching a typical USB mass storage device to Windows, it is important to properly unmount the device before unplugging it in order to avoid the possibility of losing data. But for MTP devices (such as many Android devices) connected to a Windows computer via USB, is it necessary to perform any special or particular procedure before disconnecting the USB cable?

I am interested in understanding this for all versi*** of Windows (XP and later), so please include the applicable Windows version(s) in your answer.

你能簡單地拔下連線到Windows的MTP裝置上的USB插頭嗎?

答案

超級使用者貢獻者Carrein為我們提供了答案:

When plugging in USB mass storage devices, it gives a host computer undifferentiated access to the mass storage. It assumes absolute control over the file system similar to that of a hard drive.

As such, unless explicitly commanded by the host system to sever the connection between the devices, there is a chance that the host computer might corrupt the file system. Hence, the “Safely Remove Hardware and Eject Media” message.

However, MTP, or Media Transfer Protocol, operates at the file level rather than as a large unit of mass storage at the block level. When plugging in a device such as an MTP device, the host system queries the files on the device.

This is often maintained as a database or index in the root file system of the MTP device. The MTP device’s system does not have to rescan the entire device when its content is modified; it only needs to update the database/index.

The host system can then send a message to the device requesting that a file be downloaded, which will be sent by the device after acknowledging the signal. Deleting files works much the same way. The host system sends a message to the device, marking a file for deletion, then the device removes the file upon acknowledging the signal.

This works much like a transactional file system, where either the file is modified or it is not. The storage will not be affected by a failed transfer. This is also the reason why MTP only allows one file transfer at a time (atomic file transfer), so that corruption cannot occur as operati*** are run sequentially.

So yes, you can just pull the USB plug on your device.

Further Reading: Media Transfer Protocol [Wikipedia]


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

圖片來源:Jeremy Keith(Flickr)

  • 發表於 2021-04-08 23:55
  • 閱讀 ( 27 )
  • 分類:網際網路

你可能感興趣的文章

如何修復windows中的磁碟i/o錯誤

...次?一年一次?還有一個問題:您多久檢查一次這些備份是否仍在工作?我最近決定這麼做。當我將外接驅動器連線到膝上型電腦時,彈出一個I/O裝置錯誤。 ...

  • 發佈於 2021-03-11 18:14
  • 閲讀 ( 54 )

如何直接連線到樹莓皮沒有網際網路

...連線到路由器(通常是192.168.0.1,但需要檢查路由器的IP是否正確)或透過使用鍵盤和監視器引導Pi並輸入 ...

  • 發佈於 2021-03-16 08:17
  • 閲讀 ( 54 )

如何在Windows10上使用快閃記憶體驅動器

... 使用完快閃記憶體驅動器後,需要以正確的方式將其與計算機斷開。 ...

  • 發佈於 2021-03-20 06:43
  • 閲讀 ( 54 )

Windows10現在允許您快速刪除硬體

... 刪除裝置前是否需要彈出裝置? ...

  • 發佈於 2021-03-21 08:51
  • 閲讀 ( 29 )

如何在電腦上新增藍芽:3個適用於pc的藍芽介面卡

... 然而,值得首先檢查一下你的電腦是否內建了藍芽。如果找不到要檢查的文件,則有幾個選項: ...

  • 發佈於 2021-03-24 01:00
  • 閲讀 ( 51 )

如何使用miracast將windows10投影到電視

...無線HDMI。幾臺智慧電視都內建了Miracast。要檢視您的電視是否支援此功能,請檢視此列表。 ...

  • 發佈於 2021-03-24 02:51
  • 閲讀 ( 52 )

4種方式分享任天堂開關媒體到您的手機或電腦

... 如果您的交換機尚未更新,則需要安裝最新的軟體更新才能使用這些功能。如果你在主螢幕上看到任天堂線上切換圖示,你就會知道你是在相容的版本上。 ...

  • 發佈於 2021-03-28 17:27
  • 閲讀 ( 46 )

當你的android手機無法連線到你的電腦時有7個修復程式

...機都有多個USB埠。嘗試您機器上的另一個埠以檢視您的**是否連線。你也應該使用不同的USB電纜連線,看看這是否能讓你的電腦識別你的裝置。 ...

  • 發佈於 2021-03-30 15:16
  • 閲讀 ( 62 )

如何透過usb將任天堂交換機截圖複製到mac上

...到Mac上,現在可以使用11.0.0或更高版本的系統更新。你只需要在macOS上使用一個叫做Android檔案傳輸的免費程式,下面是如何設定它的。 你需要什麼 開始之前,請確保您的交換機已更新到system 11.0.0或更高版本。從交換機的設定...

  • 發佈於 2021-04-01 00:48
  • 閲讀 ( 48 )

如何透過usb將任天堂交換機截圖複製到pc上

...選擇“系統更新” 相關:如何更新你的任天堂開關 您還需要一個相容的USB-a到USB-C電纜,可以直接**交換機底部的介面。電纜必須連線用於資料傳輸,而不僅僅是充電。請注意,此傳輸技術無法透過位於交換機基座上的USB埠工作...

  • 發佈於 2021-04-01 01:11
  • 閲讀 ( 46 )
w2601753
w2601753

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦