So, this should apparently be really simple, but had trouble finding any good answers online.
I have a mounted external usb hard drive.
I would like to unmount it, using bash. (Essentially I'm just looking for the equivalent bash command for right clicking on my external hard drive in nautilus and selecting 'unmount')
How can I achieve this?
To unmount a mounted file system, use the umount command. Note that there is no “n” between the “u” and the “m”—the command is umount and not “unmount.” You must tell umount which file system you are unmounting.
Unmount the drive using umount command. Note the spelling of umount as a common error is people type “unmount”. Using the umount command we only need to specify the mount point location and name of the drive we wish to unmount.
If your USB device is mounted, you'll see its label next to a USB logo and an unmount icon. Click on the “Unmount” icon. When you select this icon, the Ubuntu file manager will automatically unmount your USB device. No hard work necessary!
Searching for "Unmount Hard Drive Terminal" yields http://ubuntuforums.org/showthread.php?t=842698.
russlar provides a solution:
open terminal, and run
df -h
. this will tell you all the hard drives mounted. then, runsudo umount /dev/<something>
, where<something>
is the name of the hard drive that you want to unmount.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With