On Wednesday 21 Dec 2005 11:09, you wrote:
> 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
>
Mikkel
Although I don't really understand the scripts in rules.d it seemed to me that
the symlinks are created sequentially, ie dvd to hdc and dvd1 to hdd.
So I have resolved my issue another way, I have left the symlinks alone and
changed where the optical drives are mounted in fstab.
The only downside was that I had to adjust where a few apps, such as urpmi,
look for CD's, but now that is done everything is working fine.
Thanks for the heads up to get me started.
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
____________________________________________________