Archaic wrote:
ACTION=="add", BUS=="ide", ID=="1.1", SYMLINK+="cdrom1"
However, this isn't device persistence. This is location persistence.
Not a bad thing by any means, but it must be agreed that location
persistence is sufficient if we are to use this.
ACTION=="add", ENV{ID_MODEL}=="PHILIPS_CDD5301", SYMLINK+="cdrom1"
This one provides true device persistance. It doesn't matter where this device
hangs on the IDE chain. The symlink will always point to it.
I think it should be mentioned that both "bus location persistence" and "device
persistence" are achievable, and explain the difference, i.e., let the reader
make his educated choice.
Also, look at this:
$ ls -l /dev/disk/by-id/ata-PHILIPS_CDD5301_5VO1306DM00190
lrwxrwxrwx 1 root root 9 May 15 14:11
/dev/disk/by-id/ata-PHILIPS_CDD5301_5VO1306DM00190 -> ../../hdd
$ ls -l /dev/disk/by-path/pci-0000\:00\:07.1-ide-1:1
lrwxrwxrwx 1 root root 9 May 15 14:11 /dev/disk/by-path/pci-0000:00:07.1-ide-1:1
-> ../../hdd
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page