[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can't change links in /dev



On Wed, 2006-27-12 at 19:21 +0100, Andreas Janssen wrote:
> 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.
 
Yeah, this would seems to be the problem. The file doesn't exist.
So it's either configured differently or not set up. 
I haven't been tinkering with this BTW. (Sarge with a 2.6 custom kernel)
Here's the output of /etc/udev/rules.d/ and /etc/udev/:

/etc/udev/rules.d$ ls -l
lrwxrwxrwx  1 root root 20 2006-05-23 21:49 020_permissions.rules
-> ../permissions.rules
lrwxrwxrwx  1 root root 19 2006-05-23 21:49 cd-aliases.rules
-> ../cd-aliases.rules
lrwxrwxrwx  1 root root 13 2006-05-23 21:49 udev.rules -> ../udev.rules
lrwxrwxrwx  1 root root 12 2006-05-23 21:44 z_hal-plugdev.rules
-> ../hal.rules

/etc/udev$ ls -l
total 21
-rw-r--r--  1 root root  683 2005-05-29 10:36 cd-aliases.rules
-rw-r--r--  1 root root  785 2005-05-29 10:36 cdsymlinks.conf
-rw-r--r--  1 root root  897 2005-05-29 10:36 compat-full.rules
-rw-r--r--  1 root root  913 2005-05-29 10:36 compat.rules
-rw-r--r--  1 root root 4621 2005-05-29 10:36 devfs.rules
-rw-r--r--  1 root root  398 2005-05-19 12:46 hal.rules
-rw-r--r--  1 root root  416 2005-05-29 10:36 links.conf
-rw-r--r--  1 root root 2198 2005-05-29 10:36 permissions.rules
drwxr-xr-x  2 root root 1024 2006-05-23 21:49 rules.d
drwxr-xr-x  2 root root 1024 2006-05-23 21:49 scripts
-rw-r--r--  1 root root  333 2005-05-29 10:36 simple-cd-aliases.rules
-rw-r--r--  1 root root  558 2005-05-29 10:36 udev.conf
-rw-r--r--  1 root root 2884 2005-05-29 10:36 udev.rules

Many thanks for your help,

	b.




Reply to: