LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2002, 03:11 AM   #1
bowen
LQ Newbie
 
Registered: May 2002
Location: Hong Kong
Posts: 6

Rep: Reputation: 0
CDROM mounting


hi, everyone. I am a newbie in linux.

I have just installed Linux RedHat 7.2 from the CD. After I have logged into my system, I want to read some data from CDROM, so I type "mount /mnt/cdrom", but then, it replied "mount: /dev/cdrom is not a valid block device". I would like to know what does that mean? How can I read the data from CDROM in Linux. Thanks.

Regards,
Bowen
 
Old 05-27-2002, 03:20 AM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
There is a bug in red hat 7.2 that causes that error message to appear. The fix is to run depmod -ae as root. I hope it solves your problem.
 
Old 05-27-2002, 03:23 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well it means that /dev/cdrom does not represent a cdrom drive. have a look at "ls -l /dev/cdrom" and it will probably either not exist or be flashing red. if eitehr then you'll need to recreate the device:

ln -s /dev/hdX /dev/cdrom

where X is the location of the cdrom drive:

a= pri master
b= pri slave
c= sec master
d= sec slave

should be all you need.
 
Old 05-27-2002, 03:23 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
erm.. either that or it's redhat being arse.... bum....
 
Old 05-27-2002, 04:34 AM   #5
bowen
LQ Newbie
 
Registered: May 2002
Location: Hong Kong
Posts: 6

Original Poster
Rep: Reputation: 0
I've got it

Thanks a lot for all your help...
I have typed "depmod -ae" and it works now!!
Thanks alot.
 
Old 05-27-2002, 05:05 AM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You're welcome.
 
  


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
cdrom mounting simcox1 Slackware 1 09-18-2005 10:00 AM
mounting cdrom binboy35 Debian 8 11-05-2004 11:22 PM
about mounting cdrom rabside Linux - Newbie 1 04-23-2004 01:51 PM
mounting a cdrom PlatinumRik Linux - Networking 6 05-27-2003 09:11 AM


All times are GMT -5. The time now is 08:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration