Debian: The cdrom eject button has stopped working



I am using Debian (Mixed/Unstable), and the cdrom eject button appears to
have stopped working. The eject command does not work either.

eject /dev/cdrom

This just returns to a prompt, and the drive stays closed. It used to
work before when the drives all had /dev/hd* names. This must have happened
when the devices became renamed. The cdrom works fine otherwise, but I have
to use a special tool (made from a paperclip) to extract the discs now.

A system trace reveals:

open("/dev/sr0", O_RDWR|O_NONBLOCK) = 3
ioctl(3, CDROMEJECT, 0x802) = -1 EIO (Input/output error)

My kernel is Linux version 2.6.39-2-486 (Debian 2.6.39-2), if that matters.

Has anybody else experienced this?

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

.



Relevant Pages

  • Re: Cant eject a previously mounted CD?
    ... > requires famd. ... I am using Debian. ... Note that as mentioned in a previous message, eject _does_ eject the CD. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: /dev/cdrom mounting
    ... Welcome to the wonderful world of Debian. ... > on the Mandrake side. ... I do not have automount enabled. ... What do I need to do to get it to eject the media? ...
    (Debian-User)
  • Re: Cant eject a previously mounted CD?
    ... I've had 2.6.0-mm1 not able to allow the button on the cdrom eject the ... relating to why the eject button on the cdrom doesn't eject the cd. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Cant eject a previously mounted CD?
    ... > I've had 2.6.0-mm1 not able to allow the button on the cdrom eject the ... the command eject however, does work. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Command to eject and close the CDROM tray ?
    ... > In Debian, is there a command to eject the CDROM drive tray? ... You named it 'eject'. ...
    (comp.os.linux.misc)