[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unable to eject



On Sun, Aug 29, 2004 at 01:16:21AM +0200, Elimar Riesebieter wrote:
> On Sat, 28 Aug 2004 the mental interface of
> Tong told:
> 
> > Hi, 
> > 
> > I can't use eject to eject my cdrom. When issued, I get:
> > 
> > eject: unable to eject, last error: Inappropriate ioctl for device
> Are you member of group cdrom?

$ strace eject
...
open("/mnt/cdrom", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, 0x5309, 0x804c400)             = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(3, FIBMAP, 0xbffff870)            = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(3, FDEJECT, 0x804c400)            = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(3, SNDCTL_MIDI_MPUMODE, 0xbffff970) = -1 ENOTTY (Inappropriate ioctl for device)
...
$ sudo eject
<noises, tray moves>
$

I think ioctl()ing a DIRECTORY qualifies as a bug.

Also, I get that error when I eject -s (Use SCSI commands).

If you have a SCSI cdrom, you may want to alias eject 'eject -s'

-- 
The world's most effective spam filter:
$ while :; do sleep 1 > /var/mail/$USER; done



Reply to: