Barry Samuels bjsamuels@beenthere-donethat.org.uk
Can anyone tell me how I can get a command to run whenever a sata hard drive is connected?
Probably udev rules, but I've no experience in writing them for SATA drives. My USB flash rules look like:
ACTION=="add", KERNEL=="sd*[0-9]", ENV{ID_SERIAL}=="0930_USB_Flash_Memory_0B70F57172221A70", RUN+="/sbin/mount /Mount/USB-Blue1"
Hope that helps,