When you plug in a USB mass storage device
, it gives the 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 a MTP device, the host system queries the files on the device.
This is often maintained as a database or index on the root file system of the MTP device. The MTP device's system does not have to re-scan the entire device when its content is modified; it only needs to update the database/index.
The host system can then download a file, a signal will be sent to the device to acknowledge this request.The requested file will sent by the device.
Deleting files work much the same way. The host system sends a message to the device, marking a file for deletion. 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 failed transfer.
This is also the reason why MTP only allows one file transfer at a time (atomic file transfer), such that corruption cannot occur as operations are run sequentially.
So yes, you can just pull the plug on your device.
Further reading about MTP, and comparisons to USB Mass Storage
1You should always eject mass storage devices. This policy applies to all versions of Windows and all types of storage devices connected to Windows. – Ramhound – 2016-10-05T04:46:30.073
@Ramhound That's what I thought too, but for Android MTP devices in Windows 7, I see no systray icon (hidden or visible) to perform the eject. – RockPaperLizard – 2016-10-05T04:47:19.110
@Ramhound Also, in Windows File Explorer, the context menu has no Eject menu item for Android MTP devices. – RockPaperLizard – 2016-10-05T04:48:46.157
The
Safety Remove Hardware and Eject Media
icon should though. – Ramhound – 2016-10-05T04:49:37.3201@Ramhound I feel a little silly for asking, but where's that? I'm not seeing it. Will delete this comment due to embarassment once you tell me I'm staring right at it... :-) – RockPaperLizard – 2016-10-05T04:51:20.803
3@Ramhound: MTP devices aren't mass storage devices. – user1686 – 2016-10-05T04:55:25.390