Can anyone tell me how I can get a command to run whenever a sata hard drive is connected?
Do you mean when "any old drive" is connected or a specific one?
On 29/01/10 15:05:14, James Bensley wrote:
Do you mean when "any old drive" is connected or a specific one?
-- Regards, James ;)
Any old drive. I have an IcyBox Dock which takes a sata hard drive in a caddy. I have one drive at present but I intend to get a second, plus another caddy, and I shall use those two alternately as backup drives so when either of the discs are connected I want to run the same command for each.
On 29/01/10 15:05:14, James Bensley wrote:
Do you mean when "any old drive" is connected or a specific one?
-- Regards, James ;)
Any old drive. I have an IcyBox Dock which takes a sata hard drive in a caddy. I have one drive at present but I intend to get a second, plus another caddy, and I shall use those two alternately as backup drives so when either of the discs are connected I want to run the same command for each.
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,
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.