LinuxQuestions.org
Register a domain and help support LQ
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 02-21-2003, 02:21 PM   #1
lowly_tech
Member
 
Registered: May 2001
Posts: 34

Rep: Reputation: 15
Redhat 8 and cdrom trouble


I installed RH8 with a 52x cdrom drive, but later had to replace the drive with the older one (4X). The interface is IDE and the drive works fine. However when I try to mount the drive it says:

mount: /dev/cdrom is not a valid block device

I really don't know where to start to solve this problem. I have used this old drive with linux before, but I always installed linux with it in the system and have not had to replace it post installation.

I don't know if it helps but my /etc/fstab is
LABEL=/ / ext2 defaults 1 1
LABEL=/boot /boot ext2 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hde2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

and my /etc/mtab is
/dev/hde3 / ext2 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hde1 /boot ext2 rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0

Thanks for the help,

Jamie
 
Old 02-21-2003, 03:37 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Try to mount the cd manually.
mount -t iso9660 /dev/hdc /mnt/cdrom
where /dev/hdc is the right device. It may be that /dev/cdrom synlink is broken. Try the above line and then decide id /dev/cdrom points to the right directory. If not, modify it.
 
Old 02-21-2003, 10:12 PM   #3
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
Is the IDE CD-ROM primary master (/dev/hda), primary slave (/dev/hdb), secondary master (/dev/hdc), or secondary slave (/dev/hdd)? Find out which IDE device it's listed as and use the command Mara gave above with the correct device name. That should work.

Sorry Mara, I don't want to step on any toes--just thought I'd expand your suggestion some by providing the device names to avoid possible confusion later.
 
Old 02-21-2003, 11:24 PM   #4
lowly_tech
Member
 
Registered: May 2001
Posts: 34

Original Poster
Rep: Reputation: 15
getting further

I typed
mount -t iso9660 /dev/hdh /mnt/cdrom

it returned the following..
mount: block device /dev/hdh is write-protected, mounting read-only

When I click the cdrom icon on the desktop after doing this it still displays
Could not mount device, the reported error was:
mount: /dev/cdrom is not a valid block device.

What do I need to edit to make this work? The cdrom is connected to a ATA66 controller card on the secondary channel. I believe the drive is master. It is hdh.

Thanks for the help...
 
Old 02-21-2003, 11:34 PM   #5
lowly_tech
Member
 
Registered: May 2001
Posts: 34

Original Poster
Rep: Reputation: 15
When I typed the above I can navigate to /mnt/cdrom and my
files show up. However when I click the CDROM drive in KDE it give the error I got about the device not being valid.
 
Old 02-22-2003, 04:43 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
You need to make/modify a symlink. In your case /dev/cdrom should be a symlink to /dev/hdh.
 
Old 02-22-2003, 05:10 PM   #7
lowly_tech
Member
 
Registered: May 2001
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks for the help. How do I add a symlink. Is it in a file. If so whats the file.


Thanks again...
 
Old 02-22-2003, 05:28 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
To make a symlink
ln -sf /dev/hdh /dev/cdrom

You type that into a terminal, and do it as root.

See man ln for more information.

Cool
 
  


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 now mounted but still more trouble silentwhispers Mandriva 11 08-04-2004 03:23 AM
trouble mounting CDROM wparsons Linux - General 2 02-27-2004 07:00 PM
CDRom Trouble zmaint Mandriva 2 12-23-2003 11:43 AM
cdrom trouble ranger12002 Linux - General 12 07-26-2003 02:20 PM
Trouble Mounthing CDROM Qwik Linux - Hardware 24 06-22-2003 04:53 AM


All times are GMT -5. The time now is 02:24 AM.

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