* [gentoo-user] Detecting when a USB device is attached
@ 2006-02-05 22:09 James Colby
2006-02-05 22:35 ` Maximilian Gass
2006-02-05 23:40 ` Neil Bothwick
0 siblings, 2 replies; 15+ messages in thread
From: James Colby @ 2006-02-05 22:09 UTC (permalink / raw
To: gentoo-user
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
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Detecting when a USB device is attached
2006-02-05 22:09 [gentoo-user] Detecting when a USB device is attached James Colby
@ 2006-02-05 22:35 ` Maximilian Gass
2006-02-05 23:40 ` Neil Bothwick
1 sibling, 0 replies; 15+ messages in thread
From: Maximilian Gass @ 2006-02-05 22:35 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Detecting when a USB device is attached
2006-02-05 22:09 [gentoo-user] Detecting when a USB device is attached James Colby
2006-02-05 22:35 ` Maximilian Gass
@ 2006-02-05 23:40 ` Neil Bothwick
2006-02-06 6:54 ` Canek Peláez
1 sibling, 1 reply; 15+ messages in thread
From: Neil Bothwick @ 2006-02-05 23:40 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 756 bytes --]
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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Detecting when a USB device is attached
2006-02-05 23:40 ` Neil Bothwick
@ 2006-02-06 6:54 ` Canek Peláez
2006-02-06 11:24 ` Jan Callewaert
0 siblings, 1 reply; 15+ messages in thread
From: Canek Peláez @ 2006-02-06 6:54 UTC (permalink / raw
To: gentoo-user
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 <neil@digimed.co.uk> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Detecting when a USB device is attached
2006-02-06 6:54 ` Canek Peláez
@ 2006-02-06 11:24 ` Jan Callewaert
2006-02-06 11:40 ` Neil Bothwick
2006-02-06 12:48 ` Iain Buchanan
0 siblings, 2 replies; 15+ messages in thread
From: Jan Callewaert @ 2006-02-06 11:24 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]
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 <neil@digimed.co.uk> 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
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Detecting when a USB device is attached
2006-02-06 11:24 ` Jan Callewaert
@ 2006-02-06 11:40 ` Neil Bothwick
2006-02-06 12:48 ` Iain Buchanan
1 sibling, 0 replies; 15+ messages in thread
From: Neil Bothwick @ 2006-02-06 11:40 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 505 bytes --]
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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Detecting when a USB device is attached
2006-02-06 11:24 ` Jan Callewaert
2006-02-06 11:40 ` Neil Bothwick
@ 2006-02-06 12:48 ` Iain Buchanan
2006-02-06 13:36 ` [gentoo-user] " James
1 sibling, 1 reply; 15+ messages in thread
From: Iain Buchanan @ 2006-02-06 12:48 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [gentoo-user] Re: Detecting when a USB device is attached
2006-02-06 12:48 ` Iain Buchanan
@ 2006-02-06 13:36 ` James
2006-02-06 14:08 ` Neil Bothwick
0 siblings, 1 reply; 15+ messages in thread
From: James @ 2006-02-06 13:36 UTC (permalink / raw
To: gentoo-user
Iain Buchanan <iaindb <at> netspace.net.au> writes:
> > > GNOME 2.12 do this for you, if you put yourself in the plugdev group.
> 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)...
Um, I don't want to be the spoiler, but, this problem is not limited to
Gnome.
dbus/hald/ivman is broken on gentoo, but, it used to work automatically,
and I could use my unix and mtools commands both on the usb memory.
No more....
James
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Re: Detecting when a USB device is attached
2006-02-06 13:36 ` [gentoo-user] " James
@ 2006-02-06 14:08 ` Neil Bothwick
2006-02-06 14:12 ` Richard Fish
2006-02-06 15:07 ` Uwe Thiem
0 siblings, 2 replies; 15+ messages in thread
From: Neil Bothwick @ 2006-02-06 14:08 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 497 bytes --]
On Mon, 6 Feb 2006 13:36:54 +0000 (UTC), James wrote:
> dbus/hald/ivman is broken on gentoo, but, it used to work automatically,
> and I could use my unix and mtools commands both on the usb memory.
> No more....
Please don't tell my computers this. They are happily using the latest
dbus and hal to detect, name and mount devices.
--
Neil Bothwick
We can sympathize with a child who is afraid of the dark, but the
tragedy of life is that most people are afraid of the light.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Re: Detecting when a USB device is attached
2006-02-06 14:08 ` Neil Bothwick
@ 2006-02-06 14:12 ` Richard Fish
2006-02-06 15:20 ` James
2006-02-06 15:07 ` Uwe Thiem
1 sibling, 1 reply; 15+ messages in thread
From: Richard Fish @ 2006-02-06 14:12 UTC (permalink / raw
To: gentoo-user
On 2/6/06, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Mon, 6 Feb 2006 13:36:54 +0000 (UTC), James wrote:
>
> > dbus/hald/ivman is broken on gentoo, but, it used to work automatically,
> > and I could use my unix and mtools commands both on the usb memory.
> > No more....
>
> Please don't tell my computers this. They are happily using the latest
> dbus and hal to detect, name and mount devices.
Mine too, although things were broken for awhile until I figured out I
needed to be a member of the 'plugdev' group.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Re: Detecting when a USB device is attached
2006-02-06 14:08 ` Neil Bothwick
2006-02-06 14:12 ` Richard Fish
@ 2006-02-06 15:07 ` Uwe Thiem
2006-02-06 17:39 ` Neil Bothwick
1 sibling, 1 reply; 15+ messages in thread
From: Uwe Thiem @ 2006-02-06 15:07 UTC (permalink / raw
To: gentoo-user
On 06 February 2006 16:08, Neil Bothwick wrote:
> On Mon, 6 Feb 2006 13:36:54 +0000 (UTC), James wrote:
> > dbus/hald/ivman is broken on gentoo, but, it used to work automatically,
> > and I could use my unix and mtools commands both on the usb memory.
> > No more....
>
> Please don't tell my computers this. They are happily using the latest
> dbus and hal to detect, name and mount devices.
Neils's computers, you are *not* supposed to eavesdrop on emails he gets.
Understood? >:->
I have got a small problem with it myself. hald isn't starting. Haven't had
time to really investigate it. Next update world will probably correct it
anyway.
Uwe
--
Unix is sexy:
who | grep -i blonde | date
cd ~; unzip; touch; strip; finger
mount; gasp; yes; uptime; umount
sleep
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* [gentoo-user] Re: Detecting when a USB device is attached
2006-02-06 14:12 ` Richard Fish
@ 2006-02-06 15:20 ` James
2006-02-06 18:00 ` Uwe Thiem
0 siblings, 1 reply; 15+ messages in thread
From: James @ 2006-02-06 15:20 UTC (permalink / raw
To: gentoo-user
Richard Fish <bigfish <at> asmallpond.org> writes:
> > > dbus/hald/ivman is broken on gentoo, but, it used to work automatically,
> > > and I could use my unix and mtools commands both on the usb memory.
> > > No more....
> > Please don't tell my computers this. They are happily using the latest
> > dbus and hal to detect, name and mount devices.
> Mine too, although things were broken for awhile until I figured out I
> needed to be a member of the 'plugdev' group.
OK, I'll admit this new information
plugdev:x:413:root,james
makes it work again, but, for how long?
Call me doubting_thomas, but, it's been round and
round and round again with dbus/hal/ivman. I surely
hope it's stable now, for good.
thanks Richard,
James
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Re: Detecting when a USB device is attached
2006-02-06 15:07 ` Uwe Thiem
@ 2006-02-06 17:39 ` Neil Bothwick
0 siblings, 0 replies; 15+ messages in thread
From: Neil Bothwick @ 2006-02-06 17:39 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 638 bytes --]
On Mon, 6 Feb 2006 17:07:13 +0200, Uwe Thiem wrote:
> > Please don't tell my computers this. They are happily using the latest
> > dbus and hal to detect, name and mount devices.
>
> Neils's computers, you are *not* supposed to eavesdrop on emails he
> gets. Understood? >:->
Of course not. If I wanted that, I'd use gmail ;-)
> I have got a small problem with it myself. hald isn't starting. Haven't
> had time to really investigate it. Next update world will probably
> correct it anyway.
Incompatible versions of hal and dbus?
--
Neil Bothwick
Life's what you make it, you can't backdate it - Talk, Talk
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Re: Detecting when a USB device is attached
2006-02-06 15:20 ` James
@ 2006-02-06 18:00 ` Uwe Thiem
2006-02-07 8:47 ` Neil Bothwick
0 siblings, 1 reply; 15+ messages in thread
From: Uwe Thiem @ 2006-02-06 18:00 UTC (permalink / raw
To: gentoo-user
On 06 February 2006 17:20, James wrote:
> Richard Fish <bigfish <at> asmallpond.org> writes:
> > Mine too, although things were broken for awhile until I figured out I
> > needed to be a member of the 'plugdev' group.
>
> OK, I'll admit this new information
> plugdev:x:413:root,james
> makes it work again, but, for how long?
>
> Call me doubting_thomas, but, it's been round and
> round and round again with dbus/hal/ivman. I surely
> hope it's stable now, for good.
AFAIK, that infernal trio will be dropped in KDE 4 - at least in the current
form. I don't want to post the relevant discussion in KDE here because most
subscribers won't be interested in it. For those who actually are, go to
lists.kde.org, select kde-devel and search for the subject containing
"FreeDCE". Some hilarious posts in November/December last year.
Enjoy. ;-)
Uwe
--
Unix is sexy:
who | grep -i blonde | date
cd ~; unzip; touch; strip; finger
mount; gasp; yes; uptime; umount
sleep
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Re: Detecting when a USB device is attached
2006-02-06 18:00 ` Uwe Thiem
@ 2006-02-07 8:47 ` Neil Bothwick
0 siblings, 0 replies; 15+ messages in thread
From: Neil Bothwick @ 2006-02-07 8:47 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
On Mon, 6 Feb 2006 20:00:05 +0200, Uwe Thiem wrote:
> > Call me doubting_thomas, but, it's been round and
> > round and round again with dbus/hal/ivman. I surely
> > hope it's stable now, for good.
>
> AFAIK, that infernal trio will be dropped in KDE 4
KDE doesn't need ivman currently. It wasn't really necessary with 3.4 and
totally unneeded with 3.5.
--
Neil Bothwick
I am Locutus of Borg; your tagline will be assimilated!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2006-02-07 9:16 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-05 22:09 [gentoo-user] Detecting when a USB device is attached James Colby
2006-02-05 22:35 ` Maximilian Gass
2006-02-05 23:40 ` Neil Bothwick
2006-02-06 6:54 ` Canek Peláez
2006-02-06 11:24 ` Jan Callewaert
2006-02-06 11:40 ` Neil Bothwick
2006-02-06 12:48 ` Iain Buchanan
2006-02-06 13:36 ` [gentoo-user] " James
2006-02-06 14:08 ` Neil Bothwick
2006-02-06 14:12 ` Richard Fish
2006-02-06 15:20 ` James
2006-02-06 18:00 ` Uwe Thiem
2006-02-07 8:47 ` Neil Bothwick
2006-02-06 15:07 ` Uwe Thiem
2006-02-06 17:39 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox