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

Re: Symlink not permanent



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/19/08 13:37, Sven Joachim wrote:
> 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.

Unless he has two optical drives, he should not care about device
permanence.  That's the point of udev.

If he has multiple optical drives, though, Sven is correct to look
in /etc/udev/rules.d/z25_persistent-cd.rules.

- --
Ron Johnson, Jr.
Jefferson LA  USA

Supporting World Peace Through Nuclear Pacification
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH4WX3S9HxQb37XmcRAgfwAKCyNEDKz9gN3j053pYUdP3Pce1SAwCgplbS
USjkMc/5j7cL6xlIuQqk4Fg=
=wOwD
-----END PGP SIGNATURE-----


Reply to: