LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   /dev/cdrom is not a valid block device (https://www.linuxquestions.org/questions/debian-26/dev-cdrom-is-not-a-valid-block-device-165652/)

kryptotronic 04-03-2004 04:35 AM

/dev/cdrom is not a valid block device
 
:Pengy: I´m usin Debian 3.0 woody r2 and i´m trying to mount my cdrom, but it doesn´t work. I´m getting the message: /dev/cdrom is not a valid block device. I updated my kernel to 2.4.23 in hope it will fix the problem, but the problem is also there. Can somebody help me?

Greetings from Germany!

motub 04-03-2004 07:20 AM

Is there a CD in the drive? If yes, does it have data on it? Media must be in the drive for it to mount, and blank media cannot be mounted. Audio CDs also don't need to be mounted, iirc (I don't usually play audio CDs on my PC, so I'm not sure).

If none of these is the problem, what is the setting in /etc/fstab for this device? Please post the line here.

augamecock 04-03-2004 08:30 AM

Are you using scsi-emulation or not? What device is /dev/cdrom pointing to? if you're using scsi-emu it will be something like /dev/scd0 instead of /dev/hdx. you can install sg3-utils and run sg_map to see what scsi devices are loaded. I'd check the symlinks and make sure /dev/cdrom is pointing to the right device

kryptotronic 04-03-2004 12:04 PM

Quote:

Originally posted by motub
Is there a CD in the drive? If yes, does it have data on it? Media must be in the drive for it to mount, and blank media cannot be mounted. Audio CDs also don't need to be mounted, iirc (I don't usually play audio CDs on my PC, so I'm not sure).

If none of these is the problem, what is the setting in /etc/fstab for this device? Please post the line here.

Yes, there is a data CD in the drive!

kryptotronic 04-03-2004 12:08 PM

Quote:

Originally posted by augamecock
Are you using scsi-emulation or not? What device is /dev/cdrom pointing to? if you're using scsi-emu it will be something like /dev/scd0 instead of /dev/hdx. you can install sg3-utils and run sg_map to see what scsi devices are loaded. I'd check the symlinks and make sure /dev/cdrom is pointing to the right device
I will try this. My idea was the same that it depends on the scsi-emu. But i hadn´t any idea how to check this.

Thank you!

kryptotronic 04-03-2004 12:25 PM

Quote:

Originally posted by motub
Is there a CD in the drive? If yes, does it have data on it? Media must be in the drive for it to mount, and blank media cannot be mounted. Audio CDs also don't need to be mounted, iirc (I don't usually play audio CDs on my PC, so I'm not sure).

If none of these is the problem, what is the setting in /etc/fstab for this device? Please post the line here.

Here is my /etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hdb2 / ext2 errors=remount-ro 0 1
/dev/hdb5 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0

kryptotronic 04-03-2004 12:27 PM

Quote:

Originally posted by motub
Is there a CD in the drive? If yes, does it have data on it? Media must be in the drive for it to mount, and blank media cannot be mounted. Audio CDs also don't need to be mounted, iirc (I don't usually play audio CDs on my PC, so I'm not sure).

If none of these is the problem, what is the setting in /etc/fstab for this device? Please post the line here.

Here is my /etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hdb2 / ext2 errors=remount-ro 0 1
/dev/hdb5 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0

augamecock 04-03-2004 12:47 PM

ok... if you're using scsi-emulation your device will be something like /dev/scd0. if not it will be something like /dev/hdc.

do this..
Code:

ls -l /dev/cdrom
mine looks like this
Quote:

lrwxrwxrwx 1 root root 11 Mar 27 10:16 /dev/cdrom -> /dev/cdrom0
since it's pointing to /dev/cdrom0 I did the same thing on it
Quote:

lrwxrwxrwx 1 root root 8 Mar 27 10:16 /dev/cdrom0 -> /dev/hdc
of course I don't use scsi-emulation. Once you find out the actual device.. try mounting it with (as root)

Code:

mount -t iso9660 /dev/hdc /cdrom
I think you need to make sure /dev/cdrom is a symlink to the right device

gaffel 04-04-2004 05:11 PM

Hi there

I'm on my 3rd day of debian, but I have noticed on my install that I do not have a /dev/cdrom but I do have /cdrom.
Maybe try mounting /cdrom and see if that works ( it works for me ).
Still no cd audio though, am still huting for that one.


All times are GMT -5. The time now is 09:20 AM.