Hi all,
I have four hard disks in my module. My udev rule is like below
sata1
KERNEL=="sd*|sr*", KERNELS=="ata1", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}=="?*", SYMLINK+="satadrive1"
KERNEL=="sd*|sr*",KERNELS=="ata1",ENV{DEVTYPE}=="partition",ENV{ID_SERIAL}=="?*",OPTIONS="all_partitions",SYMLINK+="satadrive1_%n"
sata2
KERNEL=="sd*|sr*", KERNELS=="ata2", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}=="?*", SYMLINK+="satadrive2"
KERNEL=="sd*|sr*", KERNELS=="ata2", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL}=="?*", OPTIONS="all_partitions", SYMLINK+="satadrive2_%n"
sata3
KERNEL=="sd*|sr*", KERNELS=="ata3", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}=="?*", SYMLINK+="satadrive3"
KERNEL=="sd*|sr*", KERNELS=="ata3", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL}=="?*", OPTIONS="all_partitions", SYMLINK+="satadrive3_%n"
sata4
KERNEL=="sd*|sr*", KERNELS=="ata4", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}=="?*", SYMLINK+="satadrive4"
KERNEL=="sd*|sr*", KERNELS=="ata4", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL}=="?*", OPTIONS="all_partitions", SYMLINK+="satadrive4_%n"
But when i connect four hard disks, all hard disks “KERNELS” name is ata1 only.
How can i get 2nd,3rd,4th hard disk KERNELS name as ata2,ata3,ata4.
Thanks in advance.