LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   cdrom problem with 2.6.12 kernel (https://www.linuxquestions.org/questions/slackware-14/cdrom-problem-with-2-6-12-kernel-353448/)

stormtracknole 08-15-2005 09:47 AM

cdrom problem with 2.6.12 kernel
 
Hello everyone,

I'm having a problem with my two cdrom drives. Here's the breakdown. I just installed the 2.6.12 kernel from source. Everything seemed to be working. My dvd rom drive is /dev/hdc and my CD-RW is /dev/hdd. Looking at dmesg, the kernel sees both at boot time. By default, /dev/cdrom points to /dev/hdd which is the cd-rw. I want to change the default /dev/cdrom to /dev/hdc. So, I removed the link /dev/cdrom and then link ln -s /dev/hdc /dev/cdrom. Now, that all works nice and everything, but when I reboot, the /dev/cdrom link goes back to pointing to /dev/hdd. I am not sure if I missed something when I compiled the kernel. I haven't had these problems when using other distros 2.6.* kernel. Also, when I tried adding the hdd drive to the fstab and add the proper link, again, on reboot, the link disappears. I have looked everywhere for an answer, and I can't seem to find one. So, if anybody happens to know the answer, please do pass them along. Thanks everyone for your time!

keefaz 08-15-2005 09:54 AM

Create /etc/udev/rules.d/10_myrule file and fill it with :
Code:

KERNEL="hdc", SYMLINK="cdrom dvd"
KERNEL="hdd", SYMLINK="cdrw cdrecorder"

It will create 2 symlinks : /dev/cdrom and /dev/dvd pointing to /dev/hdc
and 2 symlinks : /dev/cdrw and /dev/cdrecorder pointing to /dev/hdd

stormtracknole 08-15-2005 10:28 AM

Quote:

Originally posted by keefaz
Create /etc/udev/rules.d/10_myrule file and fill it with :
Code:

KERNEL="hdc", SYMLINK="cdrom dvd"
KERNEL="hdd", SYMLINK="cdrw cdrecorder"

It will create 2 symlinks : /dev/cdrom and /dev/dvd pointing to /dev/hdc
and 2 symlinks : /dev/cdrw and /dev/cdrecorder pointing to /dev/hdd

Thanks keefaz. I will try that when I get home from work.


All times are GMT -5. The time now is 11:01 AM.