On 09/02/10 12:51:49, MJ Ray wrote:
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,
MJ Ray (slef) Webmaster and LMS developer at | software www.software.coop http://mjr.towers.org.uk | .... co IMO only: see http://mjr.towers.org.uk/email.html | .... op
Thanks but I have since discovered the 'halevt' package which does the job.