eject: unable to find or open device for: `cdrom'

Nataraj incoming-fedora-list at rjl.com
Sun Aug 31 22:35:16 UTC 2008


On Sun, 2008-08-31 at 21:18 +0100, Paul Smith wrote:
> On Sun, Aug 31, 2008 at 8:49 PM, Nataraj <incoming-fedora-list at rjl.com> wrote:
> >> >> When I try to open the DVD burner tray with the command eject, I get
> >> >> the following problem:
> >> >>
> >> >> $ eject
> >> >> eject: unable to find or open device for: `cdrom'
> >> >> $
> >> >>
> >> >> Any ideas?
> >> >
> >> > Use "eject /dev/name-of-dvd-device". If you're not sure what the device
> >> > name is, an easy way to find out is by firing up k3b, which will look
> >> > for it (there are probably quicker ways but this works).
> >>
> >> Thanks, Patrick. K3b does not see the inserted CD.
> >>
> >> The problem that I am reporting did not occur before. I suspect that
> >> some updates may have destroyed what was correctly working.
> >>
> >> Any further ideas?
> >
> > /dev/sr0
> > /dev/sr1
> 
> No progress:
> 
> $ eject /dev/sr0
> eject: unable to find or open device for: `/dev/sr0'
> $ eject /dev/sr1
> eject: unable to find or open device for: `/dev/sr1'
> $
> 
> Paul

Check /var/log/messages or run /bin/dmesg right after booting. If you
have a recent standard kernel, it should detect the cdrom drive and load
a driver for it.

Mine looks like this:
Aug 31 11:03:16 whitewave kernel: scsi 5:0:0:0: CD-ROM            PLEXTOR  DVDR   PX-712A   1.03 PQ: 0 ANSI: 5
Aug 31 11:03:17 whitewave kernel: sr0: scsi3-mmc drive: 125x/125x writer cd/rw xa/form2 cdda tray
Aug 31 11:03:17 whitewave kernel: Uniform CD-ROM driver Revision: 3.20

There may be other unrelated lines between these lines in the messages
file.  Once you've verified that the kernel sees your drive and is
loading a driver, you can create inode entry in /dev with something like
this:

cd /dev
./MAKEDEV sr

Then you can create a symlink to /dev/cdrom
ln -s ./sr0 cdrom

Unless your system is screwed up in some other way, my sense is that
this should work.  Otherwise you can use mknod to create the device.

nataraj




More information about the fedora-list mailing list