udisks provides a daemon that implements interfaces that can be used to enumerate and perform operations on storage devices and a cli tool - udisksctl, to query and use the daemon.
Questions tagged [udisks]
73 questions
23
votes
1 answer
How to power on an external hard-drive after powering it off?
When I "safely remove" an external hard-drive from my file-manager (Thunar), the whole hard-drive is powered off and disappears from /dev. Therefore, I guess that under the hood, this is done by calling udisksctl power-off -b /dev/sdX which has the…
Binabik
- 343
- 2
- 6
7
votes
2 answers
How can I activate the current session in ConsoleKit?
I have a live Debian Squeeze system on a USB drive, containing a script I use to image another drive. This script uses udisks to mount a drive by label, but it doesn't work over a serial console. The reason is that the session associated with the…
detly
- 5,020
- 6
- 23
- 29
7
votes
1 answer
How do I change automatic mounts of removable vfat / fat32 drives/partitions to use "noexec"?
When I plug in a USB drive it is automatically mounted on /run/media/user/fslabel. This is done, I guess by some udev/dbus/thunar/nautilus/gvfs or other system, and I find this convenient and do not want to revert to manual mounting by root. …
Ned64
- 8,486
- 9
- 48
- 86
5
votes
1 answer
Make thunar mount drives into /media rather than /run/media/username?
It's pretty annoying that thunar mounts a drive to /run/media/user_name/XX instead of /media/XX, can I change that behavior ? I'm running latest arch linux
daisy
- 53,527
- 78
- 236
- 383
5
votes
1 answer
Adding permissions for udiskie-mount to policykit
I'm using Debian jessie/stable (8.4).
When I try to mount an external USB drive using udiskie-mount from inside a cron job, I get an error as follows below. Using udiskie-mount directly from the command line works fine.
+ udiskie-mount -o umask=0022…
Faheem Mitha
- 34,649
- 32
- 119
- 183
5
votes
1 answer
Unlock LUKS partition using keyfile without root access?
Is there any way to unlock LUKS partition using keyfile while not having root priviliges? (using sudo is not an option)
I know that udisksctl can open LUKS partition, however it can do it only with a passphrase.
kaolpr
- 105
- 1
- 8
4
votes
1 answer
How to allow non-root users to mount bitlocker encrypted external drives?
As a non-root user I would like to be able to mount external hard drives which have been encrypted with microsoft bitlocker. The admin (with root access) can set something up if I can tell him how to do it, and it doesn't compromise security.
I can…
argentum2f
- 253
- 2
- 12
4
votes
3 answers
Why is pcmanfm such a headache when it comes to mounting filesystems?
If I would have known how much 'customization' it takes to get LXDE and its default file manager, pcmanfm, just working, I would probably have never chosen to try it.
I've got a problem. Lots of people have it. All of these people report the same…
ixtmixilix
- 13,040
- 27
- 82
- 118
4
votes
1 answer
Mount image user-readable with udisks2
Loop devices, i.e. for mounting raw disk images, can be managed without root privileges using udisks.
For testing purposes, an image can be created and formatted like so:
dd if=/dev/urandom of=img.img bs=1M count=16
mkfs.ext4 img.img
And then setup…
XZS
- 1,428
- 14
- 26
4
votes
2 answers
USB memory stick failing to mount - Not Authorized
One of my customers uses a machine running CentOS 6.4 with Gnome 2.28.2. Whenever he plugs a USB memory stick or external hard drive into the machine he gets an error pop-up that simply states Unable to mount . Not Authorized..…
Dave T
- 41
- 1
- 2
3
votes
0 answers
Udiskie: org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain
I'm trying to run udiskie and udisks2's udisksctl to mount an SD card without root privileges. System is Debian, CL-only, headless:
$ udiskie-mount /dev/mmcblk0p1 --verbose
DEBUG [2023-04-04 00:35:15,374] udiskie.config: Failed to read config file:…
Daniel
- 319
- 1
- 10
3
votes
1 answer
How to tell systemctl to automatically unmount a drive if it's idle and remove directory after unmounting?
I have this entry in fstab:
LABEL=cache /disks/cache ext4 rw,user,x-mount.mkdir,relatime,noauto,errors=remount-ro,x-systemd.idle-timeout=120min 0 0
What I expoect to do is:
to mount the disk with the label cache on /disks/cache any time I demand…
ape1
- 41
- 5
3
votes
1 answer
Speeding up udisks2.service in linux
I'm analyzing the systemd and I want to improve my system's booting speed.The number one service in the blame list of systemd-analyze by a clear gap is udisks2.service with almost 10 seconds ( those numbers might be misleading because of the…
Parsa Mousavi
- 1,020
- 2
- 14
- 27
3
votes
1 answer
Spin down of Icy Box Raid Enclosure not working
I am running Ubuntu server 18.04 and I am using an ICY BOX IB-RD2253-U31 enclosure with two WD Black disks (no NAS disks) in RAID 1 mode (mirror).
I want to put the two disks in sleep mode / spin them down with hdparm (lowest power consumption sleep…
JJ Abrams
- 185
- 5
3
votes
3 answers
Provide password to udisks to unlock LUKS-encrypted device
Currently, I do this to mount my encrypted thumbdrive:
# Works!
pass thumbdrive-password | # get device password entry from password manager
head -n 1 | # get the device password itself
sudo cryptsetup luksOpen /dev/sdb thumbdrive # unlock…
gmarmstrong
- 1,183
- 1
- 15
- 35