Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issue with 'eject'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Tue Aug 29, 2006 9:23 pm    Post subject: Issue with 'eject' Reply with quote

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
View user's profile Send private message
Kraymer
Guru
Guru


Joined: 27 Aug 2003
Posts: 349
Location: Germany

PostPosted: Thu Sep 07, 2006 7:06 am    Post subject: Reply with quote

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
View user's profile Send private message
belrpr
Guru
Guru


Joined: 22 May 2006
Posts: 440

PostPosted: Thu Sep 07, 2006 7:36 am    Post subject: Reply with quote

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
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Thu Sep 07, 2006 9:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Kraymer
Guru
Guru


Joined: 27 Aug 2003
Posts: 349
Location: Germany

PostPosted: Thu Sep 07, 2006 9:34 am    Post subject: sys-apps/eject? Reply with quote

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
View user's profile Send private message
Mr-D
n00b
n00b


Joined: 09 Sep 2006
Posts: 1

PostPosted: Sat Sep 09, 2006 9:10 am    Post subject: Reply with quote

Add your user in the 'disk' group and after it works :)
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Thu Apr 26, 2007 2:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum