Wednesday, June 8, 2016

To eject USB drive in Linux



udisks command completely remove and power off any usb device mounted or attached in the system unmount command just unmount the partition ie: dev/sdb1 or whatever but the usb is still present in the system.
So is not the same unmount, eject and detach
udisks = power off the usb
umount = just unmount the partition not the whole pendrive
eject = the same or very close to umount command
udisks --detach /dev/sdX where (X) is the last letter of your usb device. It works fine on any linux system.

diskutil eject /Volumes/<LABEL>

sudo eject /dev/sda

umount <mount point>         To see mount point user mount command


No comments:

Post a Comment