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

Re: No cdrom device



On 12/23/2011 12:18 PM, Ed Jabbour wrote:
CDROM tray will not respond to "eject":
========================
[Fri Dec 23] edj:~$ eject
eject: tried to use `/media/cdrom0' as device name but it is no block device
eject: tried to use `/dev/scd0' as device name but it is no block device
eject: unable to find or open device for: `cdrom'
=========================

Perhaps related, dmesg reveals:
==============================
6.720030] ata1: link is slow to respond, please be patient (ready=0)
[   11.704028] ata1: device not ready (errno=-16), forcing hardreset
[   16.900028] ata1: link is slow to respond, please be patient (ready=0)
[   21.716029] ata1: SRST failed (errno=-16)
[   26.912027] ata1: link is slow to respond, please be patient (ready=0)
[   31.728027] ata1: SRST failed (errno=-16)
[   36.924030] ata1: link is slow to respond, please be patient (ready=0)
[   66.772029] ata1: SRST failed (errno=-16)
[   71.800028] ata1: SRST failed (errno=-16)
[   71.811047] ata1: reset failed, giving up
[   71.811185] ata2: port disabled--ignoring
=============================

modprobe cdrom sr_mod:
==============================
FATAL: Error inserting cdrom (/lib/modules/3.1.0-1-686-
pae/kernel/drivers/cdrom/cdrom.ko): Unknown symbol in module, or unknown
parameter (see dmesg)

728.919036] cdrom: Unknown parameter `sr_mod'
===================================

Nor will the tray open manually, except that it does if on reboot, I push the
button before GRUB takes over.   Running testing with the 3.1.0-1-686-pae
kernel, although the problem persists no matter which kernel I boot into.

Any advice, pointers, etc. appreciated.

Locate your cdrom with:

$dmesg |grep -A2 B2 cdrom

Which in my case returns;

~$ dmesg |grep -A2 -B2 cdrom
[    2.592157] sd 2:0:0:0: [sda] Attached SCSI disk
[ 2.640560] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    2.640634] cdrom: Uniform CD-ROM driver Revision: 3.20
[    2.640848] sr 0:0:0:0: Attached scsi CD-ROM sr0
[    2.704036] usb 4-1: new full speed USB device number 2 using ohci_hcd

Which shows my cdrom is /dev/sd0

I eject with:
eject /dev/sr0

or with this line in my /etc/fstab
/dev/sr0       /media/cdrom0   udf,iso9660 user,noauto     0       0

eject /media/cdrom0

HTH

WT







Reply to: