Safely remove USB drive from command line

Open a terminal window and run (replace sdc with the appropriate device):

udisks --unmount /dev/sdc1 && udisks --detach /dev/sdc
Tip

You can find the device name using the mount point (replace MOUNT_POINT with the appropriate mount point, eg, /media/disk):

grep MOUNT_POINT /etc/mtab

References

command line alternative for "Safely Remove Drive" at Ubuntu Forums

Comments

  1. It's very odd that Thunar doesn't implement this function (as far as I know). When I used to work with Thunar, I removed USB drive through Nautilus, to be sure that data on it wouldn't be damaged. This issue and absence of tabs in Thunar forced me to use Nautilus in Xubuntu.

    BTW, thanks for this great blog!

    ReplyDelete
    Replies
    1. You're very welcome :)

      Safely USB drive removal is another reason to install Nautilus in Xubuntu, but is nice to have a alternative.

      Delete

Post a Comment

Popular posts from this blog

[HOW TO] Create QR Codes in Xubuntu 12.04

[FIX] VLC is unable to open the MRL (smb://)

Add items to Xfce Applications Menu