Kell "kiadni" a Windowshoz csatlakoztatott MTP-eszközöket?

Tartalomjegyzék:

Kell "kiadni" a Windowshoz csatlakoztatott MTP-eszközöket?
Kell "kiadni" a Windowshoz csatlakoztatott MTP-eszközöket?

Videó: Kell "kiadni" a Windowshoz csatlakoztatott MTP-eszközöket?

Videó: Kell
Videó: 10 Best Torrent Clients That Work in 2023 (Safe and 100% Free) 👇💥 - YouTube 2024, Lehet
Anonim
Mindannyian tudjuk, hogy van helyes és rossz módja annak, hogy leválasszuk az USB-háttértároló eszközöket számítógépeinkről, de ugyanaz az elv vonatkozik az MTP-eszközökre is? A mai SuperUser Q & A hozzászólás a kíváncsi olvasó kérdéseire ad választ.
Mindannyian tudjuk, hogy van helyes és rossz módja annak, hogy leválasszuk az USB-háttértároló eszközöket számítógépeinkről, de ugyanaz az elv vonatkozik az MTP-eszközökre is? A mai SuperUser Q & A hozzászólás a kíváncsi olvasó kérdéseire ad választ.

A mai Kérdések és válaszok munkamenetét a SuperUser - a Stack Exchange, a Q & A weboldalak közösség által irányított csoportosulásának részlegével - köszönheti.

A kérdés

SuperUser olvasó A RockPaperLizard azt szeretné megtudni, hogy egyszerűen húzza-e le az USB csatlakozót a Windows rendszerhez csatlakoztatott MTP eszközökön:

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 versions of Windows (XP and later), so please include the applicable Windows version(s) in your answer.

Egyszerűen húzza az USB csatlakozót a Windows rendszerhez csatlakoztatott MTP eszközökre?

A válasz

A Carrein SuperUser munkatársa a választ számunkra:

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 operations are run sequentially.

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

Further Reading: Media Transfer Protocol [Wikipedia]

Van valami a magyarázathoz? Hangzik ki a megjegyzésekben. Szeretne többet válaszolni a többi technikus-tudós Stack Exchange felhasználóiról? Nézze meg a teljes vitafonalat itt.

Image Credit: Jeremy Keith (Flickr)

Ajánlott: