:: Re: [DNG] automount, mount, and USB…
Página Inicial
Delete this message
Reply to this message
Autor: James Powell
Data:  
Para: Hendrik Boom, dng
Assunto: Re: [DNG] automount, mount, and USB sticks
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?
________________________________
From: Hendrik Boom<mailto:hendrik@topoi.pooq.com>
Sent: ‎7/‎28/‎2015 7:45 PM
To: dng@???<mailto:dng@lists.dyne.org>
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