:: Re: [DNG] USB mount problem
Página Principal
Delete this message
Reply to this message
Autor: Fred
Data:  
Para: dng
Assunto: Re: [DNG] USB mount problem
On 6/15/21 12:32 PM, Fred wrote:
> On 6/15/21 11:28 AM, Patrick Bartek via Dng wrote:
>> On Mon, 14 Jun 2021 07:56:39 -0700
>> Fred <fred@???> wrote:
>>
>>> On 6/13/21 9:37 PM, Patrick Bartek via Dng wrote:
>>
>>>>>>>> [big snip]
>>>>>>> Hi,
>>>>>>> I found udisks2 installed on the computer that automatically
>>>>>>> mounts USB devices but there is no man page so I would not know
>>>>>>> how to use it if installed on the other computer.
>>>>>>
>>>>>> Not much to using it: apt-get install udisks2 and everything gets
>>>>>> set up. I used the defaults. Devices are mounted
>>>>>> under /media/"your username". If you run a panel, the udisks2
>>>>>> gadget shows up there with additional options. Manual unmounting
>>>>>> is necessary, but I use only a window manager (Openbox) and
>>>>>> lxpanel for my GUI, so your mileage may vary if you use a desktop
>>>>>> environment.
>>>>>>
>>>>>> Others have shown you how to access the mans.  So, I won't repeat
>>>>>> that.
>>>>>>
>>>>>> B
>>>>>> _______________________________________________
>>>>>> Dng mailing list
>>>>>> Dng@???
>>>>>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>>>>> Hello,
>>>>> I still need some help with this.
>>>>> I installed udisks2.  The last line of the installation dialog
>>>>> showed what I believe is a warning, maybe of no consequence:
>>>>
>>>> I did some checking -- It's been a while since I installed Beowulf
>>>> and udisks2 -- and I discovered that you need to use a "front end"
>>>> for udisks2 for it to truly automount.  I used udiskie
>>>> (https://pypi.org/project/udiskie/) which must be started manually.
>>>> Installing it doesn't automatically set it up to start.  I just
>>>> added a stanza to Openbox's autostart script. Since I use lxpanel
>>>> in addition to Openbox, I added the "--smart-tray" option, so
>>>> udiskie will appear in the panel when it's in use.
>>>
>>> The computer that was upgraded from Debian Jessie to Beowulf x86
>>> doesn't have any "front end" for udisks2 installed unless it was
>>> installed automagically.  This computer automounts USB devices
>>> in /media as one of usb0-7.  The one I am having trouble with is a
>>> new install of Beowulf AMD64.
>>
>> What desktop was the Jessie computer running before your dist-upgrade
>> to Beowulf? And after?  Many times desktops have their own way of
>> handling automounting usb devices.
>>
>> The usb mountpoint as /media/usb[0-7] is contrary to the default that
>> udisks2 uses, namely: /media/<username>/<devicename>.  Jessie may have
>> been using udev rules to mount usb.  That's the way you automounted
>> external devices with Wheezy at least.  Jessie came with improvements.
>> Check /etc/udev/rules.d to see if there is anything there.  udev rules
>> should survive a dist-upgrade.
>>
>> If there is a udev rule to automount, copying it over to your new
>> Beowulf computer should work.
>>
> Hi,
> The Jessie computer has never used any desktop/DE.  Only openbox and
> xterms.  I never installed any utility to mount usb devices.
> /etc/udev/rules.d has 70-persistent-net.rules which has one line
> concerning ethernet.
>
> ps -e shows that gvfs-udisks2-vo and udisksd are running.  I don't know
> what the gvfs.... program is.
> man gvfs is interesting and possibly what is doing the auto mount.  It
> was probably installed along with gphoto2 for my camera.  It is not on
> the Beowulf AMD64 computer.  I will try to install it and see what happens.
> Best regards,
> Fred

Unfortunately I am not able to find what package contains gvfs-udisks2-vo.
Fred

>
>>>> [snip]
>>>>> The udisksd man page says the daemon is started by dbus-daemon or
>>>>> systemd.  However, it is not started by inserting a USB device.  I
>>>>> tried starting it manually (with USB device inserted) and received
>>>>> this:
>>>>
>>>> It does.  You shouldn't have to manually start it.  To see if
>>>> udisks2 is running and working, inset a usb thumb drive, and in a
>>>> terminal enter "udisksctl status". The thumb drive should show in
>>>> the list of other mounted devices.
>>>
>>> udisksctl does see the thumb drive.  The udisksd daemon is running
>>> but it doesn't mount the thumb drive anywhere I can find.  It does
>>> show up in /dev as sdb.
>>
>> Okay. Udisks2 is working correctly: it sees the drive; but udisks2
>> won't automount by itself without using a frontend utility or udev
>> rule.
>>
>> Try mounting manually using the udisksctl "mount" command to see
>> if it mounts. See the udisksctl man for the details of using the mount
>> command.
>>
>> If that works install udiskie (or set up a udev rule), start it and see
>> if works.
>>
>> PS: There are other frontends besides udiskie.  I just used it because
>> it was the simplest one at the time -- When I upgraded from Wheezy to
>> Stretch.  Kept same set up when I did a clean install of Beowulf a
>> year ago.
>>
>> B
>> _______________________________________________
>> 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