:: Re: [DNG] automount, mount, and USB…
Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jude Nelson
Datum:  
To: James Powell
CC: dng@lists.dyne.org
Betreff: Re: [DNG] automount, mount, and USB sticks
On Tue, Jul 28, 2015 at 11:09 PM, James Powell <james4591@???>
wrote:

> Eventually, and I kinda realized this, work may be needed to write a
> udisks replacement for vdev that can work off vdev without loosing
> functionality to udisks using applications and file managers, especially
> for non-Linux systems.
>
> Nothing fancy, but as long as it works and allows for some level of
> control for admins, I don't have a problem with it.
>
> Thoughts?
>


If all udisks2 needs from the device manager is libudev (or libgudev), then
we should be good to go as-is. Libgudev should work unmodified with
libudev-compat.

However, replacing udisks[2] with a suite of simple setuid or setgid
programs that implement the equivalent functionality might be a better
long-term solution. It would be much easier to hook into a GUI, for
example, and if done right, it would remove the need for polkit and dbus
integration.

-Jude

------------------------------
> From: Hendrik Boom <hendrik@???>
> Sent: ‎7/‎28/‎2015 7:45 PM
> To: dng@???
> Subject: Re: [DNG] automount, mount, and USB sticks
>
> On Tue, Jul 28, 2015 at 01:08:26PM -0700, Gregory Nowak wrote:
> > On Tue, Jul 28, 2015 at 03:17:11PM -0400, Hendrik Boom wrote:
> > > Of course I have to guess whether the device has
> > > been plugged in as /dev/sdb, or /dev/sde, or whatever. In case of
> > > (frequent) doubt, I switch to a root console with control-alt-F1 and a
> > > login, unplug the device, and plug it in again. It will the tell me
> > > after a while, that a new device has been inserted, and tell me what
> > > /dev/sd* name it has dynamically installed. I end up, as root,
> > > mounting the device with root as the owner. It's usually a USB stick
> > > with one of the ubiquitous Microsoft file systems used on USB sticks,
> > > and all the files can be read or writen by root only.
> >
> > There is a much easier way. Instead of switching consoles and
> > guessing, just plug the device in, and look at the last screen full of
> > the output from dmesg.
>
> Yes, that would have been easier.
>
> > Also, if you're mounting on your own laptop, it
> > will usually have one hd, /dev/sda. When you plug in a usb device, it
> > will probably have /dev/sdb. If you unplug it, and plug in the same
> > device, or plug in another stick, it will probably have /dev/sdb
> > still.
>
> For whatever reason, there was a time when it kept picking new letters
> if I umounted the stick, took it ouot, and put another in. Maybe there
> was a bug somewhere then? But I could not rely on it always being
> /dev/sdb.
>
> > So, you could just put a line in /etc/fstab which will allow a
> > normal user to mount /dev/sdb1 for example to whatever directory you
> > want. All you would have to do as a normal user is to type:
> > mount /dev/sdb1
> > after plugging in the drive, and you should be able to find its'
> > contents under whatever directory you specified in fstab.
>
> Truth is, I no longer trust it to be consistent.
>
> -- hendrik
>
> >
> > Greg
> >
> >
> > --
> > web site: http://www.gregn.net
> > gpg public key: http://www.gregn.net/pubkey.asc
> > skype: gregn1
> > (authorization required, add me to your contacts list first)
> > If we haven't been in touch before, e-mail me before adding me to your
> contacts.
> >
> > --
> > Free domains: http://www.eu.org/ or mail dns-manager@???
> > _______________________________________________
> > Dng mailing list
> > Dng@???
> > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>
>