Re: udev: same serial on different disks
On Tue, 16 Mar 2010 22:27:56 +0100, Ervin Hegedüs wrote:
> there is a Debian Etch with kernel 2.6.24-etchnhalf.1-686, and udev
> 0.105.
"Etch" is not longer supported. Maybe upgrading to the latest stable
should be desiderable :-?
> System has two USB SATA-II disks for backup. Since a few weeks the
> system can't make different between disks, all disks has same serial.
¿By "same serial" you mean "serial number"? :-?
> S:disk/by-id/usb-SAMSUNG_HD642JJ_31AF4D71B008
> S:disk/by-path/pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0 M:8:16
> E:ID_SERIAL=SAMSUNG_HD642JJ_31AF4D71B008 E:ID_TYPE=disk
> S:disk/by-id/usb-SAMSUNG_HD642JJ_31AF4D71B008
> S:disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0 M:8:32
> E:ID_SERIAL=SAMSUNG_HD642JJ_31AF4D71B008 E:ID_TYPE=disk
Ugh. Indeed :-O
> I would like to use two rules to identify disks when user attach one of
> them, but system doesn't sense which disk has attached.
Give filesystems a "label" and use that to manage them. As they are
external disks for backup it should be fine.
> The disk-by-id symlinks has created correctly:
> # ls -l /dev/disk/by-id/usb*
> /dev/disk/by-id/usb-SAMSUNG_HD642JJ_31AF4D71B000 -> ../../sdb
^^^^
> /dev/disk/by-id/usb-SAMSUNG_HD642JJ_31AF4D71B008 -> ../../sdc
^^^^
> As you can see there are the correct serial numbers.
Yes, but they get a different ID: one disks lasts with "B000" and the
other with "B0008". Curious :-S
> What could be the problem?
Dunno, but you have many choices for designating the disks (label, id,
uuid and path). Choose your poison :-)
Greetings,
--
Camaleón
Reply to: