LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-08-2005, 01:41 AM   #1
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206
Blog Entries: 4

Rep: Reputation: 30
/mnt/cdrom not a valid block device on FC2


After having issued the mount /mnt/cdrom as the root, I got a message saying :

"/mnt/cdrom not a valid block device"

Contents of the /etc/fstab
---------------------------------

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/sda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0


Contents of the /etc/mtab
----------------------------------

/dev/sda2 / ext3 rw 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw gid=5, mode = 120 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/sda1 /boot ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0

And I got a similar message when I tried mounting the floppy drive too.
 
Old 02-08-2005, 01:44 AM   #2
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206

Original Poster
Blog Entries: 4

Rep: Reputation: 30
2 cd drives in a single PC...

What would happen if I installed two CD drives into a single PC running on linux, the second one being installed at a later point in time? How will the notations change? I may face a similar situation very soon.
 
Old 02-08-2005, 01:55 AM   #3
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206

Original Poster
Blog Entries: 4

Rep: Reputation: 30
no cdrom listed in /dev...

I don't see the cdrom being listed in my /dev folder. What do I do?
 
Old 02-08-2005, 02:40 AM   #4
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
I'm going to assume that right now you have /dev/hda as your hard drive, and /dev/hdc as your CDrom drive.

If you add the second cd-rom you the same IDE channel as the hard drive, it should come up as /dev/hdb
If you add it as the second device to the CDrom's IDE channell, it should show up as /dev/hdd
 
Old 02-08-2005, 03:32 AM   #5
lacerto
Member
 
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Rep: Reputation: 30
Do you have a /dev/hdc ?
 
Old 02-08-2005, 03:40 AM   #6
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206

Original Poster
Blog Entries: 4

Rep: Reputation: 30
Hey Ace...

If that is the case, then do I have to manually enter anything into the /etc/fstab file indicating the modification? And how does the system differentiate between the two drives when I give the command mount /mnt/cdrom?
 
Old 02-08-2005, 03:42 AM   #7
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206

Original Poster
Blog Entries: 4

Rep: Reputation: 30
Yes siree... /dev/hdc is there for sure.
 
Old 02-08-2005, 05:48 AM   #8
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
yeah, just copy the line for your previous CD/DVD drive and change its /dev/hd* and the mount point.

Probably have to create the new mount directory, so mkdir /mnt/cd2 or something
 
Old 02-08-2005, 06:03 AM   #9
lacerto
Member
 
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Rep: Reputation: 30
In that case, type this:

ln -s /dev/hdc /dev/cdrom
and
ln -s /dev/hdc /dev/dvd if you want DVD playback too.

Then change the permissions : chgrp users /dev/cdrom etc etc etc

L
 
Old 02-08-2005, 06:52 AM   #10
qrt666
LQ Newbie
 
Registered: Jan 2005
Location: Poland
Distribution: Aurox 9.0
Posts: 4

Rep: Reputation: 0
If you use sysfs, then for floppy, try issuing first
Code:
modprobe floppy
as root. For cdrom, try
Code:
modprobe ide-cd
modprobe cdrom
I know it is only a quick fix, but it works for me.
 
Old 02-08-2005, 09:46 AM   #11
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php


Mod Note: mufy -- please keep a single discussion in a single thread. It isn't necessary and in fact is not helpful to create a new thread for every question you may have that is related to a single topic. Instead, please just post any followup questions to the existing thread. I have therefore merged your 3 threads into one, since they are all related to the same topic (mounting a CD ROM device) and were all created within a few minutes of one another. -- J.W.
 
Old 02-18-2005, 12:09 AM   #12
mufy
Member
 
Registered: Oct 2004
Location: Kuwait
Distribution: Currently - AIX | Previously - RHEL 4 ES, FC 10
Posts: 206

Original Poster
Blog Entries: 4

Rep: Reputation: 30
Sorry about that. Posted all those in a haste and didn't realize what I was doing.
 
  


Reply



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 ukrainet Linux - Newbie 1 12-27-2004 04:29 AM
/dev/cdrom is not a valid block device kryptotronic Debian 8 04-04-2004 05:11 PM
CDROM: not a valid block device? Linux~Powered Linux - Software 5 01-26-2004 12:50 PM
cdrom not a valid block device moon69 Linux - General 2 01-18-2003 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration