Forum Home
Press F1
 
Thread ID: 41499 2004-01-13 06:30:00 Mounting CDROM in kernel 2.6 Jen C (20) Press F1
Post ID Timestamp Content User
207093 2004-01-13 06:30:00 Hi all :)

I have just discovered that I can no longer mount /dev/cdrom in kernel 2.6. I get this message: "mount: /dev/cdrom is not a valid block device".

It is to do with the 2.6 kernel not using scsi anymore. My /dev/cdrom still links to dev/scd0 which is not terribly helpful. So I need to remove the symlink to the scd0 (and is that all?). Before I try this I thought I'd better run this past the linux guru's first.

I have already removed in grub.conf the old reference to ide-scsi for the 2.6 kernel.

Here are some details that show what the current setup is:
[jennifer@origin dev]$ ls -l cd*
lrwxrwxrwx 1 root root 9 Jan 2 19:00 cdrom -> /dev/scd0
brw-rw---- 1 root disk 15, 0 Sep 16 01:40 cdu31a
brw-rw---- 1 root disk 24, 0 Sep 16 01:40 cdu535
lrwxrwxrwx 1 root root 8 Jan 3 16:10 cdwriter -> /dev/sg0


[jennifer@origin jennifer]$ cat /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 /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
So, can I just remove the cdrom symlink to the dev/scd0 and that will sort it all out? And how do I remove the link without stuffing up /dev/cdrom? Removing the /dev/cdrom and then creating a new /dev/cdrom seems a little too easy :)

Many thanks
Jen
Jen C (20)
207094 2004-01-13 09:49:00 You will need to replace the link to scd0 with a link to the ide device for you cdrom. It is probably /dev/hdc but you can use "dmesg | grep ROM" to check.

Then create the new link (overwriting the previous one) with, "ln -sf /dev/hdc /dev/cdrom".
bmason (508)
207095 2004-01-13 10:02:00 Excellent - that did the trick :D

Thanks bmason :)
Jen C (20)
1