Sunday, November 13, 2011

How To Remount A USB Stick Without Removing And Reinserting - Ubuntu/Debian


When using a USB flash drive for example, with programs like GParted or the Disk Utility under Debian, it may happen that the action performed on your USB stick requires from you to unplug and reinsert again the device.

To overcome this annoying situation, you can simply open the Terminal and run this command to remount your USB drive without touching the device:

eject /dev/sdb; sleep 1; eject -t /dev/sdb

Note: Tested under Ubuntu 11.10 and Debian Squeeze, but the command also applicable on other Linux-based distros.

That's it!