Mounting CDROM

Craig White plug-discuss@lists.PLUG.phoenix.az.us
Thu, 08 Nov 2001 00:19:16 -0700


Tom Achtenberg wrote:
> 
> I issued the ln command below and the mount command.  Still could not mount
> the CD.  I rebooted and do not get the fstab fail I was getting earlier.
> When I try to mount the CD I get he following error: "Wrong FS type, Bad
> Option, Bad Superblock on /dev/cdrom or too many mounted file systems."  The
> cdrom line in /etc/fstab is: "/dev/cdrom  mnt/cdrom  iso9660
> noauto,owner,ro 0 0"
> 
> Would it be better if I made the CD a slave on the secondary?  Should I move
> my second hard drive to the secondary and put the CD on the primary?
> 
---------
boy am I ever confused...

I would normally have the main CD as the master on the secondary
controller but that's a matter of preference.

I believe (and I'm quite certain that someone will correct me if I am
wrong here) that the logical order of IDE devices goes like this...

Controller  Position   Device
Primary     Master     /dev/hda
Primary     Slave      /dev/hdb
Secondary   Master     /dev/hdc
Secondary   Slave      /dev/hdd

so I would normally put my main CD drive in as the Master on the
secondary controller.

then I would boot up - stopping by way of bios and checking that the
secondary/master was indeed set to auto or cdrom and then boot into
linux. Then I would log in as root (or su to root)

then
ls -l /dev/cdrom

and it should look like...
lrwxrwxrwx    1 root     root            8 May 27 18:34 /dev/cdrom ->
/dev/hdc

if not, then you have to create the link for /dev/cdrom - as others have
suggested...
ln -s /dev/hdc /dev/cdrom

and then you have to make certain that you have a line in /etc/fstab
that looks like...
/dev/cdrom  /mnt/cdrom  iso9660 noauto,owner,kudzu,ro 0 0

then insert a cd (known good) and issue...
mount /mnt/cdrom

and then if it still doesn't work - and it should if you are indeed
RedHat 7.2 with 2.4.9-13 kernel (are you really booting into 2.4.9
kernel or are you booting into 2.4.7 kernel?)

The bug about ide-cd definitely exists in 2.4.7 kernel and was supposed
to be fixed in 2.4.9-13 update. The commands...

depmod -ae
insmod cdrom
modprobe ide-cd

are for the 2.4.7 kernel (RH 7.2 cd distro)

Craig