Re: can't change links in /dev
Hello
Bill (<bill3@uniserve.com>) wrote:
> I currently have a link in /dev between hda, a dvd drive, and
> /dev/dvd:
> lrwxrwxrwx 1 root root 3 2006-12-26 17:24 /dev/dvd -> hda
>
> I want to change the link so that it points to hdc, another dvd drive:
> ie /dev/dvd -> hdc
>
> I am unable to make this change, except in the current session and
> this doesn't survive a reboot. ie:
> rm /dev/dvd
> ln -s /dev/hdc /dev/dvd
> reboot
> ls -l /dev/dvd
> lrwxrwxrwx 1 root root 3 2006-12-26 17:24 /dev/dvd -> hda
>
> I have no idea why this happens.
> How is the link being restored on boot? From where?
You probably use udev, which generates device files and symlinks
dynamically. Take a look at /etc/udev/rules.d/z25_persistent-cd.rules.
regards
Andreas Janssen
--
Andreas Janssen <andreas.janssen@bigfoot.com>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps-sarge.html
Reply to: