LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-03-2004, 04:35 AM   #1
kryptotronic
LQ Newbie
 
Registered: Apr 2004
Location: Germany, Konstanz
Distribution: Debian, Fedora, SuSE, Knoppix
Posts: 6

Rep: Reputation: 0
/dev/cdrom is not a valid block device


Im usin Debian 3.0 woody r2 and im trying to mount my cdrom, but it doesnt work. Im 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!
 
Old 04-03-2004, 07:20 AM   #2
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
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.
 
Old 04-03-2004, 08:30 AM   #3
augamecock
Member
 
Registered: Feb 2002
Location: Atlanta, GA
Distribution: Debian
Posts: 78

Rep: Reputation: 15
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
 
Old 04-03-2004, 12:04 PM   #4
kryptotronic
LQ Newbie
 
Registered: Apr 2004
Location: Germany, Konstanz
Distribution: Debian, Fedora, SuSE, Knoppix
Posts: 6

Original Poster
Rep: Reputation: 0
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!
 
Old 04-03-2004, 12:08 PM   #5
kryptotronic
LQ Newbie
 
Registered: Apr 2004
Location: Germany, Konstanz
Distribution: Debian, Fedora, SuSE, Knoppix
Posts: 6

Original Poster
Rep: Reputation: 0
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 hadnt any idea how to check this.

Thank you!
 
Old 04-03-2004, 12:25 PM   #6
kryptotronic
LQ Newbie
 
Registered: Apr 2004
Location: Germany, Konstanz
Distribution: Debian, Fedora, SuSE, Knoppix
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 04-03-2004, 12:27 PM   #7
kryptotronic
LQ Newbie
 
Registered: Apr 2004
Location: Germany, Konstanz
Distribution: Debian, Fedora, SuSE, Knoppix
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 04-03-2004, 12:47 PM   #8
augamecock
Member
 
Registered: Feb 2002
Location: Atlanta, GA
Distribution: Debian
Posts: 78

Rep: Reputation: 15
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
 
Old 04-04-2004, 05:11 PM   #9
gaffel
LQ Newbie
 
Registered: Mar 2004
Distribution: debian sarge, 2.6.6, and ALSA finally works!!
Posts: 18

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 04:46 PM
/dev/cdrom is not a valid block device cannot mount eatmars Linux - Hardware 1 10-02-2005 07:50 AM
/dev/cdrom is not a valid block device ukrainet Linux - Newbie 1 12-27-2004 04:29 AM
mount: /dev/cdrom is not a valid block device FXRS Slackware 2 05-24-2004 11:32 PM
mount: /dev/cdrom is not a valid block device abruneau Linux - General 19 02-16-2004 04:56 AM


All times are GMT -5. The time now is 05:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration