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

Re: Symlink not permanent



On 2008-03-19 20:29 +0100, Rodolfo Medina wrote:

>  # cd /dev
>
>  # ls -l cdrom
>  lrwxrwxrwx 1 root root 3 2008-01-14 16:34 cdrom -> hdb
>
>  # rm -vi cdrom
>  rm: remove symbolic link `cdrom'? y
>  removed `cdrom'
>
>  # ln -s hdc cdrom
>
>  # ls -l cdrom
>  lrwxrwxrwx 1 root root 3 2008-01-14 16:42 cdrom -> hdc
>
>
> , but then when I reboot the symlink points to hdb back again!  Why that, and
> how to work it out?

That is because your /dev directory itself is not permanent, i.e. you
are using udev.  See the output of `mount' and `df'.

>  How to make the symlink permanent?

There should be a file named /etc/udev/rules.d/z25_persistent-cd.rules
which you can edit to your needs.

Sven


Reply to: