Re: [DNG] For all you automounter programmers

2016-05-04 Thread fsmithred
Someone said they wanted a non-gui way to mount removable devices by label. Here it is. Let me know if it works for you or not. (It's working well here.) I'll add support for labels in the gui pmounter, too. https://gist.github.com/fsmithred/81a4e1585175c377c32ed2f670ab9ef3 -fsr

Re: [DNG] For all you automounter programmers

2016-05-04 Thread fsmithred
On 05/04/2016 05:58 AM, Boruch Baum wrote: > On 2016-05-02 08:12, fsmithred wrote: >> No support for file system labels at this time. If someone can tell me a >> reliable way for unprivileged user to get the labels, I'll add it. Feel >> free to use these scripts as they are or as motivation to

Re: [DNG] For all you automounter programmers

2016-05-04 Thread Didier Kryn
Le 04/05/2016 11:58, Boruch Baum a écrit : On 2016-05-02 08:12, fsmithred wrote: No support for file system labels at this time. If someone can tell me a reliable way for unprivileged user to get the labels, I'll add it. Feel free to use these scripts as they are or as motivation to create

Re: [DNG] For all you automounter programmers

2016-05-04 Thread Boruch Baum
On 2016-05-02 08:12, fsmithred wrote: > No support for file system labels at this time. If someone can tell me a > reliable way for unprivileged user to get the labels, I'll add it. Feel > free to use these scripts as they are or as motivation to create something > better. Are you looking for?:

Re: [DNG] For all you automounter programmers

2016-05-04 Thread Didier Kryn
Le 03/05/2016 19:12, fsmithred a écrit : @Didier - try pulling out the usb stick and replacing it with a different one. When I do that, the cache does not get updated. didn't try that. will do tonight :-) ___ Dng mailing list Dng@lists.dyne.org

Re: [DNG] For all you automounter programmers

2016-05-03 Thread fsmithred
On 05/03/2016 08:46 AM, Jim Murphy wrote: > On Tue, May 3, 2016 at 7:28 AM, Didier Kryn wrote: >> Le 03/05/2016 14:06, Jim Murphy a écrit : >>> >>> On Tue, May 3, 2016 at 4:04 AM, Didier Kryn wrote: Le 02/05/2016 14:12, fsmithred a écrit : > > No

Re: [DNG] For all you automounter programmers

2016-05-03 Thread Jim Murphy
On Tue, May 3, 2016 at 7:28 AM, Didier Kryn wrote: > Le 03/05/2016 14:06, Jim Murphy a écrit : >> >> On Tue, May 3, 2016 at 4:04 AM, Didier Kryn wrote: >>> >>> Le 02/05/2016 14:12, fsmithred a écrit : No support for file system labels at this time. If

Re: [DNG] For all you automounter programmers

2016-05-03 Thread Didier Kryn
Le 02/05/2016 14:12, fsmithred a écrit : No support for file system labels at this time. If someone can tell me a reliable way for unprivileged user to get the labels, I'll add it. Feel free to use these scripts as they are or as motivation to create something better. -fsr On 04/28/2016 01:52

Re: [DNG] For all you automounter programmers

2016-05-02 Thread fsmithred
I rewrote the usbpmount script so that it handles sd/mmc and cd/dvd devices as well as usb. Get usbpmount3.tar.gz from https://sourceforge.net/projects/refracta/files/testing These are standalone scripts. None of the notification stuff is included, but they could be made to work with it.

Re: [DNG] For all you automounter programmers

2016-04-28 Thread Steve Litt
On Thu, 28 Apr 2016 16:04:42 + (UTC) Go Linux <goli...@yahoo.com> wrote: > On Thu, 4/28/16, Rob Owens <row...@ptd.net> wrote: > > Subject: Re: [DNG] For all you automounter programmers > To: dng@lists.dyne.org > Date: Thursday, April 28, 2016, 9:44 AM &

Re: [DNG] For all you automounter programmers

2016-04-28 Thread Didier Kryn
Le 28/04/2016 16:07, Steve Litt a écrit : Didier Kryn wrote: > But there are tools on Linux to add a label to a filesystem; >here is the first thing I do to a new usb stick: > > /sbin/dosfslabel /dev/sdb1 $my_name > > Very usefull when exchanging sticks. > >

Re: [DNG] For all you automounter programmers

2016-04-28 Thread Rob Owens
- Original Message - > From: "Matthew Melton" > A brief aside. > Although not an automounter I remember using bbsmount on blackbox. I can't > remember how to configure it but it sat in the blackbox dock and if I > remember > and showed icons for all the drives you

Re: [DNG] For all you automounter programmers

2016-04-28 Thread fsmithred
On 04/27/2016 08:28 PM, fsmithred wrote: > > You could get the label from lsblk, do 'pmount label' and it will be > mounted at /media/label. Every time you plug in a thumb drive labeled > backup, it'll go to the same place. If you unmount the drive, /media/label > will no longer exist, so you

Re: [DNG] For all you automounter programmers

2016-04-28 Thread Matthew Melton
... > -Original Message- > From: Dng [mailto:dng-boun...@lists.dyne.org] On Behalf Of Noel Torres > Sent: Thursday, April 28, 2016 7:50 AM > To: dng@lists.dyne.org > Subject: Re: [DNG] For all you automounter programmers > > Didier Kryn <k...@in2p3.fr> escribió: > >>

Re: [DNG] For all you automounter programmers

2016-04-28 Thread Go Linux
On Thu, 4/28/16, Rob Owens <row...@ptd.net> wrote: Subject: Re: [DNG] For all you automounter programmers To: dng@lists.dyne.org Date: Thursday, April 28, 2016, 9:44 AM - Original Message - > From: "Steve Litt" <sl...@troubleshooters.com> > Do you ha

Re: [DNG] For all you automounter programmers

2016-04-28 Thread Rob Owens
- Original Message - > From: "Steve Litt" > Do you happen to know a corresponding utility to read/write the label > on an ext4 formatted thumb drive partition? > e2label /dev/sdXY my_label ___ Dng mailing list

Re: [DNG] For all you automounter programmers

2016-04-28 Thread Steve Litt
On Thu, 28 Apr 2016 08:32:06 +0200 Didier Kryn wrote: > But there are tools on Linux to add a label to a filesystem; > here is the first thing I do to a new usb stick: > > /sbin/dosfslabel /dev/sdb1 $my_name > > Very usefull when exchanging sticks. > >

Re: [DNG] For all you automounter programmers

2016-04-28 Thread Noel Torres
Didier Kryn escribió: This isn't just a theoretical thing, lots of people don't label their thumb drives. Another issue is a lot of thumb drives have the same label. I bet there are millions with the label "backup". But there are tools on Linux to add a label to a

Re: [DNG] For all you automounter programmers

2016-04-28 Thread Didier Kryn
Le 28/04/2016 02:16, Steve Litt a écrit : I think my original handled that, by creating a database of UUID, label and device name (and now it's going to need to include user mounting it too). So a little universal shellscript can go in the database (which of course is a simple file), find the

Re: [DNG] For all you automounter programmers

2016-04-28 Thread Noel Torres
Steve Litt escribió: I don't know of a way to tell pmount or udev/vdev/eudev to assign a particular device to a thumb drive, without manually doing all the mknod and all that. Excellent idea, very useful. But if something's already assigned to that device, you're sol.

Re: [DNG] For all you automounter programmers

2016-04-28 Thread Didier Kryn
Le 28/04/2016 01:29, Steve Litt a écrit : No matter what you do, somebody's going to pull one out without umounting. I've done it. Lots of people have. Oops! Perhaps we can include a daemon that runs sync command every 10 seconds. I doubt that would have much effect, but would probably minimize

Re: [DNG] For all you automounter programmers

2016-04-28 Thread Didier Kryn
Le 28/04/2016 01:24, Steve Litt a écrit : On Wed, 27 Apr 2016 19:35:08 +0200 Didier Kryn wrote: Le 27/04/2016 19:13, Steve Litt a écrit : Not all filesystems have labels. For my information, could you list some? Every filesystem I ever used to format disks had one

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Simon Walter
On 04/28/2016 09:28 AM, fsmithred wrote: You could get the label from lsblk, do 'pmount label' and it will be mounted at /media/label. Every time you plug in a thumb drive labeled backup, it'll go to the same place. If you unmount the drive, /media/label will no longer exist, so you could even

Re: [DNG] For all you automounter programmers

2016-04-27 Thread fsmithred
On 04/27/2016 08:16 PM, Steve Litt wrote: > On Wed, 27 Apr 2016 19:51:54 -0400 > Hendrik Boom wrote: > >> On Wed, Apr 27, 2016 at 07:24:29PM -0400, Steve Litt wrote: >>> >>> Another issue is a lot of thumb drives have the same label. I bet >>> there are millions with the

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Hendrik Boom
On Wed, Apr 27, 2016 at 08:16:31PM -0400, Steve Litt wrote: > On Wed, 27 Apr 2016 19:51:54 -0400 > Hendrik Boom wrote: > > > On Wed, Apr 27, 2016 at 07:24:29PM -0400, Steve Litt wrote: > > > > > > Another issue is a lot of thumb drives have the same label. I bet > > >

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 19:51:54 -0400 Hendrik Boom wrote: > On Wed, Apr 27, 2016 at 07:24:29PM -0400, Steve Litt wrote: > > > > Another issue is a lot of thumb drives have the same label. I bet > > there are millions with the label "backup". > > And I'd like all my

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 19:22:06 +0200 Didier Kryn wrote: > Le 27/04/2016 19:17, Steve Litt a écrit : > > On Wed, 27 Apr 2016 09:10:25 +0200 > > Didier Kryn wrote: > > > > > >> Wishlist: the "automounter" shouldn't mount automatically, by > >> default. It

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 19:35:08 +0200 Didier Kryn wrote: > Le 27/04/2016 19:13, Steve Litt a écrit : > > Not all filesystems have labels. > For my information, could you list some? Every filesystem I ever > used to format disks had one (ext?, reiserfs, btrfs, vfat) > >

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Marlon Nunes
Hi, what about -> https://ignorantguru.github.io/udevil ? On 2016-04-26 15:08, Steve Litt wrote: Hi all, It seems like everyone in the Devuan community has written his or her own usb drive automounter, and I've just discovered something that will help us all. The thumb drive you buy at the

Re: [DNG] For all you automounter programmers

2016-04-27 Thread fsmithred
On 04/27/2016 01:27 PM, Steve Litt wrote: >> >> That's pretty much what my usb-mounter does. Inotifywait runs when >> you log into the desktop, and when you plug in a thumb drive, it pops >> up a window showing you the partitions on that device. You then >> choose one to mount, and the script

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Hendrik Boom
On Wed, Apr 27, 2016 at 01:27:08PM -0400, Steve Litt wrote: > On Wed, 27 Apr 2016 08:25:02 -0400 > fsmithred wrote: > > > On 04/26/2016 09:32 PM, Steve Litt wrote: > > > On Tue, 26 Apr 2016 18:19:32 -0400 > > > fsmithred wrote: > > > > > > > > >> I

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Didier Kryn
Le 27/04/2016 19:13, Steve Litt a écrit : Not all filesystems have labels. For my information, could you list some? Every filesystem I ever used to format disks had one (ext?, reiserfs, btrfs, vfat) Didier ___ Dng mailing list

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 08:25:02 -0400 fsmithred wrote: > On 04/26/2016 09:32 PM, Steve Litt wrote: > > On Tue, 26 Apr 2016 18:19:32 -0400 > > fsmithred wrote: > > > > > >> I like pmount for mounting usb devices. It's pretty smart. For > >> removable

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Didier Kryn
Le 27/04/2016 19:17, Steve Litt a écrit : On Wed, 27 Apr 2016 09:10:25 +0200 Didier Kryn wrote: Wishlist: the "automounter" shouldn't mount automatically, by default. It should rather offer an easy mount-handle, and the umount counterpart. What is an "easy

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 09:10:25 +0200 Didier Kryn wrote: > Wishlist: the "automounter" shouldn't mount automatically, by > default. It should rather offer an easy mount-handle, and the umount > counterpart. What is an "easy mount-handle"? SteveT Steve Litt April 2016

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 06:47:38 + Noel Torres wrote: > Steve Litt escribió: > > Therefore: pmount, when combined with the inotifywait automounters > > we've all made, should be perfect. > > > > Those pmount automounter commands should run as the

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Steve Litt
On Wed, 27 Apr 2016 06:46:24 + Noel Torres wrote: > Joel Roth escribió: > > As a suggestion for an aspiring automounter writer (or > > reminder to self) I was thinking that if we can get a > > sufficiently unique identifier from the device (UUID, etc.)

Re: [DNG] For all you automounter programmers

2016-04-27 Thread David Hare
Problem to come with pmount is, it doesn't seem to be maintained any longer. I use version 0.9.99-alpha-1 (in experimental at 25 Mar 2011, still there, install to Jessie). That one handles "loopback" and luks files, far as I know earlier versions did not, or not properly. D On 27 April 2016 at

Re: [DNG] For all you automounter programmers

2016-04-27 Thread fsmithred
On 04/26/2016 09:32 PM, Steve Litt wrote: > On Tue, 26 Apr 2016 18:19:32 -0400 > fsmithred wrote: > > >> I like pmount for mounting usb devices. It's pretty smart. For >> removable devices, you don't need to list them in /etc/pmount.allow, >> and it handles encrypted

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Didier Kryn
Le 27/04/2016 09:08, Joel Roth a écrit : Do you label all your filesystems? I don't, but you're right that is a different function that needed be confuted with an automounter. I do, even for the hard disk; it's a reminder of where are /usr, /var and /home. The labels show up in cfdisk.

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Didier Kryn
Le 27/04/2016 08:46, Noel Torres a écrit : Joel Roth escribió: As a suggestion for an aspiring automounter writer (or reminder to self) I was thinking that if we can get a sufficiently unique identifier from the device (UUID, etc.) it might be nice to map that to a memorable

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Joel Roth
On Wed, Apr 27, 2016 at 06:46:24AM +, Noel Torres wrote: > Joel Roth escribió: > >As a suggestion for an aspiring automounter writer (or > >reminder to self) I was thinking that if we can get a > >sufficiently unique identifier from the device (UUID, etc.) > >it might be nice

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Noel Torres
Steve Litt escribió: Therefore: pmount, when combined with the inotifywait automounters we've all made, should be perfect. Those pmount automounter commands should run as the user who plugs in the thumb, so rather than running straight from the init, they should

Re: [DNG] For all you automounter programmers

2016-04-27 Thread Noel Torres
Joel Roth escribió: As a suggestion for an aspiring automounter writer (or reminder to self) I was thinking that if we can get a sufficiently unique identifier from the device (UUID, etc.) it might be nice to map that to a memorable mount target. It could be a noun or

Re: [DNG] For all you automounter programmers

2016-04-26 Thread Steve Litt
On Tue, 26 Apr 2016 18:19:32 -0400 fsmithred wrote: > I like pmount for mounting usb devices. It's pretty smart. For > removable devices, you don't need to list them in /etc/pmount.allow, > and it handles encrypted filesystems (cryptsetup/luks). Ahh, now I remember.

Re: [DNG] For all you automounter programmers

2016-04-26 Thread Joel Roth
Steve Litt wrote: > Hi all, > > It seems like everyone in the Devuan community has written his or her > own usb drive automounter, As a suggestion for an aspiring automounter writer (or reminder to self) I was thinking that if we can get a sufficiently unique identifier from the device (UUID,

Re: [DNG] For all you automounter programmers

2016-04-26 Thread fsmithred
On 04/26/2016 07:19 PM, Hendrik Boom wrote: > > Root, as usual, us trusted to know what it is doing. > OK, thanks. I just had a Homer Simpson moment. Steve's intent was to make it possible for users to *write* not mount. I used to do something similar, but with the uid instead of the gid. Using

Re: [DNG] For all you automounter programmers

2016-04-26 Thread Hendrik Boom
On Tue, Apr 26, 2016 at 06:19:32PM -0400, fsmithred wrote: > On 04/26/2016 03:36 PM, Hendrik Boom wrote: > > On Tue, Apr 26, 2016 at 02:08:33PM -0400, Steve Litt wrote: > >> Hi all, > >> > >> It seems like everyone in the Devuan community has written his or her > >> own usb drive automounter, and

Re: [DNG] For all you automounter programmers

2016-04-26 Thread fsmithred
On 04/26/2016 03:36 PM, Hendrik Boom wrote: > On Tue, Apr 26, 2016 at 02:08:33PM -0400, Steve Litt wrote: >> Hi all, >> >> It seems like everyone in the Devuan community has written his or her >> own usb drive automounter, and I've just discovered something that will >> help us all. >> >> The

Re: [DNG] For all you automounter programmers

2016-04-26 Thread Steve Litt
On Tue, 26 Apr 2016 15:36:52 -0400 Hendrik Boom wrote: > On Tue, Apr 26, 2016 at 02:08:33PM -0400, Steve Litt wrote: > > Hi all, > > > > It seems like everyone in the Devuan community has written his or > > her own usb drive automounter, and I've just discovered

Re: [DNG] For all you automounter programmers

2016-04-26 Thread Hendrik Boom
On Tue, Apr 26, 2016 at 02:08:33PM -0400, Steve Litt wrote: > Hi all, > > It seems like everyone in the Devuan community has written his or her > own usb drive automounter, and I've just discovered something that will > help us all. > > The thumb drive you buy at the store is formatted with a