Kernel 2.6.9 & /dev/dvd
Got a bit of an issue that I can't get my head around. Running Slackware 10 and just compile/built the 2.6.9 kernel (which is very good). On my system, I have 2 dvd drives: /dev/hdc (dvd rom) and /dev/hdd (dvd rw). Prior to the kernel build, /dev/dvd used to be linked to /dev/hdc. But, since the kernel build, it always gets re-linked to /dev/hdd on reboot/poweron. Is there a simple way of forcing this to point to /dev/hdc so that I don't have to change this on every reboot? The reason for this is I use HDC for viewing movies and HDD for burning. This however will change in a month or two when I get the new dual-layer dvd drives.
Ben |
Well there's two ways to go about it. The right way is to Google on udev rules, spend days reading pages like this http://www.reactivated.net/writing_udev_rules.html and trying different options in /etc/udev/rules.d/udev.rules
Or the lazy way (guilty as charged your honour) is to put something like this in /etc/rc.d/rc.local rm -f /dev/dvd ln -s hdc /dev/dvd |
Andrew
Thanks for the tip. I'll try the lazy way first and then sort it out the proper way a bit later on (when ever that may occur!) Ben |
All times are GMT -5. The time now is 10:55 PM. |