Re: [gentoo-user] Detecting when a USB device is attached

2006-02-06 Thread Jan Callewaert
Op maandag 6 februari 2006 07:54, schreef Canek Peláez:
 GNOME 2.12 do this for you, if you put yourself in the plugdev group.
 It just works.

 Canek


Just like KDE 3.5

Jan

 On 2/5/06, Neil Bothwick [EMAIL PROTECTED] wrote:
  On Sun, 5 Feb 2006 17:09:43 -0500, James Colby wrote:
   I was wondering if anybody knew of a package or a method that I could
   use to detect when a USB mass storage device is attached to my PC.
   What I would like to be able to do is to write a small script that
   would mount my USB mass storage device, sync up a directory, and then
   unmount the device everytime I plug my USB drive into the computer.
 
  Udev will take care of this. all you need is a udev rule that matches the
  particular device and calls a script that carries out the actions you
  want. See http://www.reactivated.net/udevrules.php for plenty on writing
  udev rules.
 
 
  --
  Neil Bothwick
 
  Newsflash! Explosion at M$ beta testsite - Infinite number of monkeys
  killed.

 --
 Canek Peláez Valdés
 Facultad de Ciencias, UNAM


pgpKhLmp3qbbX.pgp
Description: PGP signature


Re: [gentoo-user] Detecting when a USB device is attached

2006-02-06 Thread Neil Bothwick
On Mon, 6 Feb 2006 12:24:00 +0100, Jan Callewaert wrote:

  GNOME 2.12 do this for you, if you put yourself in the plugdev group.
  It just works.

 Just like KDE 3.5

Neither GNOME nor KDE can do what the OP asked for. They can automount
the device, but they won't sync with a directory and then unmount it. You
need a udev script for this, which also has the advantage of being
desktop-independent - it doesn't even need a desktop.


-- 
Neil Bothwick

Brain fried -- core dumped.


signature.asc
Description: PGP signature


Re: [gentoo-user] Detecting when a USB device is attached

2006-02-06 Thread Iain Buchanan
On Mon, 2006-02-06 at 12:24 +0100, Jan Callewaert wrote:
 Op maandag 6 februari 2006 07:54, schreef Canek Peláez:
  GNOME 2.12 do this for you, if you put yourself in the plugdev group.
  It just works.

actually, if you're talking about gnome-volume-manager, it no longer
just works.  Due to dbus / udev / whatever updates, the ~x86 version
doesn't do anything for some users (myself included)...
-- 
Iain Buchanan iain at netspace dot net dot au

  His honour rooted in dishonour stood,
  And faith unfaithful kept him falsely true.
  -Alfred Lord Tennyson

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Detecting when a USB device is attached

2006-02-05 Thread Maximilian Gass
On 17:09 Sun 05 Feb , James Colby wrote:
 List members -
 
 I was wondering if anybody knew of a package or a method that I could
 use to detect when a USB mass storage device is attached to my PC. 
 What I would like to be able to do is to write a small script that
 would mount my USB mass storage device, sync up a directory, and then
 unmount the device everytime I plug my USB drive into the computer.
 
 I know this isn't exactly a gentoo question, but my PC is running
 gentoo linux so I thought that I would try to ask here.
 
 Thanks for any suggestion that you might have.
 
 Warm Regards,
 James
 

There are at least two tools: ivman (@sourceforge) and usb-mount (try
google).

(Sorry for the short answer, it's bit late in Germany)


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Detecting when a USB device is attached

2006-02-05 Thread Neil Bothwick
On Sun, 5 Feb 2006 17:09:43 -0500, James Colby wrote:

 I was wondering if anybody knew of a package or a method that I could
 use to detect when a USB mass storage device is attached to my PC. 
 What I would like to be able to do is to write a small script that
 would mount my USB mass storage device, sync up a directory, and then
 unmount the device everytime I plug my USB drive into the computer.

Udev will take care of this. all you need is a udev rule that matches the
particular device and calls a script that carries out the actions you
want. See http://www.reactivated.net/udevrules.php for plenty on writing
udev rules.


-- 
Neil Bothwick

Newsflash! Explosion at M$ beta testsite - Infinite number of monkeys
killed.


signature.asc
Description: PGP signature


Re: [gentoo-user] Detecting when a USB device is attached

2006-02-05 Thread Canek Peláez
GNOME 2.12 do this for you, if you put yourself in the plugdev group.
It just works.

Canek

On 2/5/06, Neil Bothwick [EMAIL PROTECTED] wrote:
 On Sun, 5 Feb 2006 17:09:43 -0500, James Colby wrote:

  I was wondering if anybody knew of a package or a method that I could
  use to detect when a USB mass storage device is attached to my PC.
  What I would like to be able to do is to write a small script that
  would mount my USB mass storage device, sync up a directory, and then
  unmount the device everytime I plug my USB drive into the computer.

 Udev will take care of this. all you need is a udev rule that matches the
 particular device and calls a script that carries out the actions you
 want. See http://www.reactivated.net/udevrules.php for plenty on writing
 udev rules.


 --
 Neil Bothwick

 Newsflash! Explosion at M$ beta testsite - Infinite number of monkeys
 killed.





--
Canek Peláez Valdés
Facultad de Ciencias, UNAM

-- 
gentoo-user@gentoo.org mailing list