On Wednesday 21 Dec 2005 02:50, Mikkel L. Ellertson wrote:
> Peter Watson wrote:
> > On my 2006 box /dev/dvd is a symlink to /dev/hdc and /dev/dvd1 is a
> > symlink to /dev/hdd.
> >
> > I need them the other way round ie /dev/dvd linking to /dev/hdd etc, so I
> > edited them, however when I reboot they return to the original.
> >
> > Can anyone tell me how these devices are created and how to change them
> > to what I want permanently.
> >

>
> They are created by udev. Because udev uses a pseudo file system
> (like /proc and /sys) the device entries are created each time the
> system boots. The device entries are controlled by the files in
> /etc/udev.rules.d. In this case, the settings are probably in
> /etc/udev.rules.d/dvd.rules - something like:
> KERNEL="hdc", SYMLINK="dvd"
> KERNEL="hdd", SYMLINK="dvd1"
>
> What you want is:
> KERNEL="hdc", SYMLINK="dvd1"
> KERNEL="hdd", SYMLINK="dvd"
>
 Thanks Mikkel

The nearest I can find is /etc/udev/rules.d/50-mdk.rules which contains the 
following:-


# cdrom symlinks and other good cdrom naming:
BUS="ide",  KERNEL=="hd[a-z]",  PROGRAM="/sbin/cdsymlinks %k", SYMLINK+="%c{1} 
%c{2} %c{3} %c{4} %c{5} %c{6}"

But its not clear how I would edit this to achieve my aims. Do you have any 
ideas pleasr

Pete
--
Ardnamurchan    Scotland
____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to