I forgot some info...

The script needs to be run as root, because smartctl only work as the
rootuser.

The script has one, and only one argument. The argument is the path tho the 
drive that is bypassed to smartctl.
Like this:
# ./smartctl_id.sh /dev/sda

And to use the modidified udev-rules together with "smartctl_id" you need to 
edit the import-lines from scsi_id to smartctl_id.
The old lines:
KERNEL=="sd*[!0-9]|sr*|st*", ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x 
-s %p -d $tempnode"
KERNEL=="sd*[!0-9]|sr*|st*", ENV{ID_SERIAL}=="", IMPORT{program}="scsi_id -g -x 
-a -s %p -d $tempnode"
Should be exchanged with this line:
KERNEL=="sd*[!0-9]|sr*|st*", ENV{ID_SERIAL}=="", 
IMPORT{program}="smartctl_id.sh /dev/%k"

-- 
"ls -l /dev/disk/by-id" does not show all disks
https://bugs.launchpad.net/bugs/102332
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to