10

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?

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
Dennis
  • 421
  • 1
  • 10
  • 22
  • The better answer can be found here: https://unix.stackexchange.com/questions/178638/eject-safely-remove-vs-umount/178648. – taper Nov 13 '21 at 21:54

1 Answers1

13

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, run sudo umount /dev/<something>, where <something> is the name of the hard drive that you want to unmount.

SWPhantom
  • 674
  • 5
  • 18