[Pkg-utopia-maintainers] Bug#884530: how I am attempting to mount the removable drives

Ed Hamilton edhamilton9 at gmail.com
Fri Jan 19 13:41:52 UTC 2018


I am using xfce4 desktop. one of the applications I run at startup is a 
script, which I found online, to automatically mount any connected 
removable USB drives.

the script is shown here:

[ed at sid ~]$ cat ~/Dropbox/bin/mountallUSB

#!/bin/sh

udisksctl dump |
   awk -F':\n' -v'RS=\n\n' '/[ \t]*HintAuto:[ \t]*true/&&/\.Filesystem:/{
                              print $1
                            }' |
   while read dev
   do
     udisksctl mount --object-path "${dev##*/UDisks2/}"
   done

---

The expected behavior is to mount all the USB drives on /media/ed/<label>

The actual behavior is

[ed at sid ~]$ mountallUSB
Error connecting to the udisks daemon: Error calling StartServiceByName 
for org.freedesktop.UDisks2: 
GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit udisks2.service 
not found.

----

In addition, none of the GUI file managers are showing the USB drives in 
the sidebar. I tried thunar, nemo, and caja.

----

here is the output of blkid and df as root. Note, I dual boot with 
stretch on /dev/sda1. that is why "stretch" shows up in this output.

[root at sid ~]# df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             1995784        0   1995784   0% /dev
tmpfs             401556     6156    395400   2% /run
/dev/sda3      477618032 22333428 430953188   5% /
tmpfs            2007768    15524   1992244   1% /dev/shm
tmpfs               5120        4      5116   1% /run/lock
tmpfs            2007768        0   2007768   0% /sys/fs/cgroup
/dev/sda1      477619056 23310888 429976700   6% /media/stretch
none             2007768       12   2007756   1% /run/user/1000
none             2007768        0   2007768   0% /run/user/0

[root at sid ~]# blkid
/dev/sda1: LABEL="stretch" UUID="7b332c84-9714-461b-8c2c-f301adecfade" 
TYPE="ext4" PARTUUID="de5c7ab5-01"
/dev/sda3: LABEL="sid" UUID="9ba26b65-38a9-4a07-8e6d-b0bd52a2f68f" 
TYPE="ext4" PARTUUID="de5c7ab5-03"
/dev/sda5: UUID="41ffdeca-735d-404b-944a-de0e9a9c894e" TYPE="swap" 
PARTUUID="de5c7ab5-05"
/dev/sdc1: LABEL="stretchBackup" 
UUID="15331b0c-724f-4219-b58b-d8fc45e40019" TYPE="ext4" 
PARTUUID="bddb9fc2-01"
/dev/sdd1: LABEL="16gDrive" UUID="82adf1d4-d646-4849-b747-94caf0293b21" 
TYPE="ext4" PARTUUID="996d6376-01"
/dev/sde1: LABEL="sidBackup" UUID="f4b37edc-a98a-4c6e-b28e-4a3f560a0675" 
TYPE="ext4"


----

I think this all has something to do with polkit (whatever that is), 
because I also can not suspend or shutdown from the user name dropdown 
on the panel. But I don't know how to fix it. I will try suspending and 
shutting down from the command line, but I want to post this first.



More information about the Pkg-utopia-maintainers mailing list