LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 06-03-2003, 01:37 PM   #1
SiQDiZ
LQ Newbie
 
Registered: Jun 2003
Location: Holland
Distribution: Slackware 9.0
Posts: 20

Rep: Reputation: 0
can't read from /dev/cdrom


I cannot read anything from my cd-rom drive, although i get no errors in DMESG

this is what my FSTAB looks like:

Code:
/dev/hda5        swap             swap        defaults         0   0
/dev/hda1        /                reiserfs    defaults         1   1
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
the error message i get in KDE when trying to acces the cd-romdrive:

Could not mount device.
The reported error was:
mount: /dev/cdrom is not a valid block device

puzzles me

 
Old 06-03-2003, 01:48 PM   #2
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
This may sound like a silly question, but is there a CD-ROM in the drive?

Also, are you trying to:
$ cd /dev/cdrom

or:

$ cd /mnt/cdrom

when you get the error, or does the error appear when the fstab file runs during startup?

slight

PS, I like the fact that you put your system specs in your signature. Great idea, as getting system specs from people is sometimes akin to pulling teeth.
 
Old 06-03-2003, 01:55 PM   #3
SiQDiZ
LQ Newbie
 
Registered: Jun 2003
Location: Holland
Distribution: Slackware 9.0
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by slightcrazed
This may sound like a silly question, but is there a CD-ROM in the drive?

Also, are you trying to:
$ cd /dev/cdrom

or:

$ cd /mnt/cdrom

when you get the error, or does the error appear when the fstab file runs during startup?

slight

PS, I like the fact that you put your system specs in your signature. Great idea, as getting system specs from people is sometimes akin to pulling teeth.
I tried both. In kde it just gives that error. Konsole gives just no error when i try to read from the drive, its just like the drive is empty.

I tried it with a few cd's (data) and it just wont work. Strange, cuz i installed slackware from it yesterday.

The error does not appear in the startup. DMESG doesnt give any errors.... strange strange strange
 
Old 06-03-2003, 02:16 PM   #4
SiQDiZ
LQ Newbie
 
Registered: Jun 2003
Location: Holland
Distribution: Slackware 9.0
Posts: 20

Original Poster
Rep: Reputation: 0
SiQDiZ@phlanx:/$ cd /dev
SiQDiZ@phlanx:/dev$ ls cdrom
cdrom@
SiQDiZ@phlanx:/dev$ cd cdrom
-bash: cd: cdrom: Not a directory
SiQDiZ@phlanx:/dev$ cd ..
SiQDiZ@phlanx:/$ cd /mnt/cdrom
SiQDiZ@phlanx:/mnt/cdrom$ ls
SiQDiZ@phlanx:/mnt/cdrom$


Last edited by SiQDiZ; 06-03-2003 at 02:18 PM.
 
Old 06-03-2003, 02:18 PM   #5
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Weird. Mounting is not that problematic, so I'm lost.

Try this:

Make a backup of your fstab file, and then change it to this:
Code:
/dev/hda5        swap             swap        defaults         0   0
/dev/hda1        /                reiserfs    defaults         1   1
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
Then do a restart. Go into konsole and su to root, then (with a CD in the drive):

mount /dev/cdrom /mnt/cdrom

and tell me if it spits that same error out at you. If it doesn't give an error message, then try:

cd /mnt/cdrom

as root and the ls and see if the contents of the disk are listed.

slight
 
Old 06-03-2003, 02:49 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,853

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally posted by SiQDiZ
SiQDiZ@phlanx:/$ cd /mnt/cdrom
SiQDiZ@phlanx:/mnt/cdrom$ ls
SiQDiZ@phlanx:/mnt/cdrom$
Could just mean that the CDROM is not mounted.

What does this tell you.
ls -l /dev/cdrom

/dev/cdrom is usually a link to the actual CDROM device /dev/hdx.

Also try this as root
mount -t iso9660 /dev/cdrom /mnt/cdrom
and
mount -t iso9660 /dev/hdx /mnt/cdrom
Where hdx is based on the output of ls -l /dev/cdrom.
 
  


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
I get mount: /dev/cdrom: can't read superblock, How to fix? zLinuxz Linux - General 12 06-18-2008 02:42 AM
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 07:11 PM
mount: /dev/cdrom: can't read superblock raynmune Linux - Hardware 7 07-09-2005 04:02 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM
READ ME: red hat 7.2 /dev/cdrom not a valid block device rshaw Linux - Software 0 11-08-2001 12:54 PM


All times are GMT -5. The time now is 12:51 PM.

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