LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Mount: /dev/cdrom is not a valid block device... (http://www.linuxquestions.org/questions/slackware-14/mount-dev-cdrom-is-not-a-valid-block-device-536824/)

spaceballs 03-12-2007 11:42 AM

Mount: /dev/cdrom is not a valid block device...
 
...is the error that I get. I have never had a cdrom not work right. I am pretty sure that it is a sata device [dell xps m1210 laptop], and I think that the shortcut might not be exactly right. How do I find out what the right device location is so that I can correct the /dev/cdrom shortcut?

b0uncer 03-12-2007 12:38 PM

Usually the cdrom device files I see are /dev/hdc and hdd, and /dev/cdrom and alike are merely symlinks to those. In some systems they might also reside under /dev/cdrom/ or something funny.

spaceballs 03-12-2007 12:58 PM

It isn't either one of those. Is a SATA CDROM drive assigned a different device name than a regular CDROM drive? I had to manually set my hard drive in LiLo - do I have to do something similar to my CDROM?

bioe007 03-12-2007 01:16 PM

? are you certain its SATA? I have a dell lappy w/SATA HD and IDE cd/dvd drive.

is there a /dev/sdb entry for it? that error sounds like a kernel problem, so i googled, sata cdrom

sounds like at first glance you need to compile in IDE/ATAPI cdrom support. then do some fancy stuff.

spaceballs 03-12-2007 02:35 PM

The reason that I thought that it was SATA is because it doesn't show up on lspci. Is there a better way to find out what it is?

spaceballs 03-12-2007 02:45 PM

Nevermind...I went through dmesg and saw it listed as sr0.

What does that mean? I created a symlink to /dev/cdrom and fstab picked it up. Weird...

bioe007 03-12-2007 03:36 PM

Quote:

Is there a better way to find out what it is?
to be honest, I've taken to generating that windows system summary and print to file before installing slack on a machine so I know what it has (theoretically anyway).

i think sr0 = scsi resource zero

???

sorry no better idea about why needed to create your own symlink.

iamnothere 03-12-2007 03:43 PM

sr0 is the first SCSI cdrom device. SATA on Linux uses SCSI emulation, so it must indeed be a SATA drive. SATA cdroms are pretty new, which probably explains why the /dev/cdrom symlink wasn't setup correctly automatically. This will undoubtedly improve once they become more common and distros start specifically checking for them.

nutronix 03-12-2007 04:54 PM

my fstab entry for my cdrom (dvd-rw,cdrw)=
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
the output of ls -al /dev/cdrom=
lrwxrwxrwx 1 root root 8 2006-03-10 07:12 /dev/cdrom -> /dev/sr0

As root i did = ln -sf /dev/sr0 /dev/cdrom
to create the proper symlink .Good luck


All times are GMT -5. The time now is 06:11 PM.