View previous topic :: View next topic |
Author |
Message |
RazielFMX l33t
Joined: 23 Apr 2005 Posts: 835 Location: NY, USA
|
Posted: Tue Aug 29, 2006 9:23 pm Post subject: Issue with 'eject' |
|
|
For some reason, when I try to eject multimedia devices, I get this:
Code: |
# eject /mnt/usb
Error: mount point /mnt/usb is not below /media/
eject: unmount of `/mnt/usb' failed |
I also get that error if I try to eject by device name. If I create a symlink /media -> /mnt, it does not resolve it either.
Anyone know how to get eject to play nice with /mnt? _________________ I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it. |
|
Back to top |
|
|
Kraymer Guru
Joined: 27 Aug 2003 Posts: 349 Location: Germany
|
Posted: Thu Sep 07, 2006 7:06 am Post subject: |
|
|
I didn't know eject was supposed to unmount anything. Also, you're trying to eject a usb device?! I only used it for ejecting a disc from my cd-rom drive and I'm pretty much sure that's what this tool is supposed to do.. |
|
Back to top |
|
|
belrpr Guru
Joined: 22 May 2006 Posts: 440
|
Posted: Thu Sep 07, 2006 7:36 am Post subject: |
|
|
Kraymer wrote: | I didn't know eject was supposed to unmount anything. Also, you're trying to eject a usb device?! I only used it for ejecting a disc from my cd-rom drive and I'm pretty much sure that's what this tool is supposed to do.. |
Every file system is better unmounted before removal. Same with the /boot partition you better unmount it manually before rebooting to prevent any program writing to it and make it corrupt.
And idd eject is supposed to eject things like cd/dvd/tapes but not usb sticks.
But maybe you are using a usb cd/dvd/tape and then you are using the wrong device. |
|
Back to top |
|
|
RazielFMX l33t
Joined: 23 Apr 2005 Posts: 835 Location: NY, USA
|
Posted: Thu Sep 07, 2006 9:15 am Post subject: |
|
|
Eject is supposed to eject USB sticks and Ipods, similair to the WinXP feature of 'stopping' a device before removal. At least, according to a thread somewhere in here that I can't seem to find now... And I think it works on my ipod on one of my builds... _________________ I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it. |
|
Back to top |
|
|
Kraymer Guru
Joined: 27 Aug 2003 Posts: 349 Location: Germany
|
Posted: Thu Sep 07, 2006 9:34 am Post subject: sys-apps/eject? |
|
|
Ok then.. I never heard of such thing.
If we're talking about sys-apps/eject and it is really capable of auto-unmounting/'ejecting' usb devices, someone should really update the man page.. |
|
Back to top |
|
|
Mr-D n00b
Joined: 09 Sep 2006 Posts: 1
|
Posted: Sat Sep 09, 2006 9:10 am Post subject: |
|
|
Add your user in the 'disk' group and after it works |
|
Back to top |
|
|
coolsnowmen Veteran
Joined: 30 Jun 2004 Posts: 1479 Location: No.VA
|
Posted: Thu Apr 26, 2007 2:42 pm Post subject: |
|
|
Code: |
eject /dev/dvd
Error: mount point /mnt/cdrom is not below /media/
eject: unmount of `/mnt/cdrom' failed
|
I also was using eject for a long time on the device name to "stop" usb devices. (It would actually turn off the light on those usb devices!).
It used to try and unmount it for you. Now through some feature, (I believe in attemp to add functionality with dbus/hald/automounting? otherwise why would /media be in ever error message relating to this...it does not work as it did previously
Code: | umount /dev/dvd
eject /dev/dvd
echo "Success" |
I am annoyed too, but i've not seen a 'fix' for this _________________ emerge: there are no ebuilds to satisfy "moo" |
|
Back to top |
|
|
|