Can anyone tell me how I can get a command to run whenever a sata hard drive is connected? -- Barry Samuels http://www.beenthere-donethat.org.uk The Unofficial Guide to Great Britain
Do you mean when "any old drive" is connected or a specific one? -- Regards, James ;) Jonathan Swift - "May you live every day of your life." - http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html
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 http://www.beenthere-donethat.org.uk The Unofficial Guide to Great Britain
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 http://www.beenthere-donethat.org.uk The Unofficial Guide to Great Britain
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
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. -- Barry Samuels http://www.beenthere-donethat.org.uk The Unofficial Guide to Great Britain
participants (4)
-
Barry Samuels -
Barry Samuels -
James Bensley -
MJ Ray