1
I am running Gnome 3 on Debian Wheezy. I want to unmount a USB drive without sudo or root privileges. I've googled and found out that there are eject
and pumount
commands available. However, those commands require the mounted directory to be under the /media
directory.
The USB drive is mounted under $HOME/USB/myusb
.
How can I unmount it with a non-sudoer user. I also wonder which command Nautilus runs when I press the eject
button?
Thanks.
It did not work. It says
$HOME/USB/myusb is not below /media/
. – The_Cute_Hedgehog – 2014-04-03T20:37:21.567My manpage says: "The device corresponding to device or mountpoint is ejected.". I verified that this is working. Can you check your manpage? Which distro do you use? Which eject version do you have? – user3422070 – 2014-04-04T15:27:10.620
The man page says:
Eject allows removable media (typically a CD-ROM, floppy disk, tape, or JAZ or ZIP disk) to be ejected under soft‐ware control.
eject version is2.1.5
. Debian Wheezy. – The_Cute_Hedgehog – 2014-04-05T17:58:46.997Your quote is also in my manpage as first paragraph in section DESCRIPTION. My the 2nd paragraph states that eject can unmount from any location as quoted above. What gives you eject -v? – user3422070 – 2014-04-05T21:50:39.180
It says $HOME/USB/myusb is not below /media/ – The_Cute_Hedgehog – 2014-04-06T13:24:38.570