Questions tagged [udisks]
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.
83 questions
4
votes
3
answers
294
views
Headless disk-mount with user permissions
There is a headless machine, with Debian as its OS:
$ cat /etc/issue
Debian GNU/Linux 11 \n \l
$ uname -a
Linux mymachine 6.1.99 #33 SMP Tue Jan 21 11:32:39 CST 2025 aarch64 GNU/Linux
What I wish to ...
3
votes
1
answer
395
views
A way to disable udisks "housekeeping" short of disabling udisks?
I have a USB hard drive connected to Raspberry Pi OS that seemingly never spins down. It turns out that udisks2.service is performing regular "housekeeping" and failing:
Sep 05 02:32:13 rpi ...
0
votes
0
answers
259
views
Arch Linux - Unable to mount Windows NTFS Partition using GUI
My PC is running a dual-boot setup. I have two NVMe Drives, running Windows 10 and Arch Linux respectively. I first installed Windows, then Arch. My bootloader is GRUB and is able to boot to both OSs. ...
0
votes
0
answers
61
views
Replicating 'udisks power-off' behavior (without udisks)
udisks exists for regular users, root must (and is) able to live without it, I need help figuring out how.
The goal is to do exactly what
udisks power-off /dev/sdX
does without udisks. hdparm is out ...
0
votes
1
answer
270
views
How to change default automount USB path to /mnt/sdXX?
Default mount path with udisks2, udiskie is /media/XXXXX
On some distributions /media/user/XXXXXX
How to change automount path for USB drives to a shorter /mnt/sdb1 /mnt/sdc2 etc.
With udisks2, ...
1
vote
0
answers
410
views
How to modify/extend USB device access permissions in Debian?
I have a PC with Debian 10. I need the USB drives to have broader permissions than those given by default by the system.
I will give an example: with the user "john" being authenticated, ...
3
votes
1
answer
9k
views
Why is NTFS has a dirty mark and why can't NTFS3 mount dirty NTFS partitions?
https://wiki.archlinux.org/title/NTFS#Unable_to_mount_with_ntfs3_with_partition_marked_dirty
When a NTFS partition is marked dirty, NTFS3 cannot mount this on linux
But NTFS-3G (and also Windows) can
...
0
votes
1
answer
184
views
btrfs mount with compress fails with udisksctl but succeeds with mount?
$ sudo mkfs.btrfs -fL borgbackups /dev/vgxubuntu/borgbackups
$ udisksctl mount -o compress=ztsd:15 -b /dev/mapper/vgxubuntu-borgbackups
Error mounting /dev/dm-3: GDBus.Error:org.freedesktop.UDisks2....
0
votes
0
answers
154
views
Automount as another user (not logged)
When I plug a USB Key on my desktop install of a redhat fork, USB is automounted as /run/media//. I would like that plugged removable device will be automounted for another logged user (not the ...
1
vote
0
answers
369
views
Run backup script after systemd automounts specific USB device
I need to run a script after a specific USB stick is mounted, particulary, to perform a backup.
I've seen many (and old) posts that mount devices inside udev rules, however modern OSes already have ...
2
votes
1
answer
1k
views
Allow udisksctl loop-setup without authentication for specific users
I have some tests that verify the behavior of a program under conditions where it runs out of disk space. Previously I've used dd to create a small-ish file then mkfs to make a filesystem on it, then ...
4
votes
3
answers
3k
views
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 ...
0
votes
1
answer
3k
views
Overriding udisks2 /media/$USER/mount with custom fixed mount point for specific volume, under Debian Buster
I am using Debian Buster, 10.7, and I am relatively new to udev/udisks2/systemd and have been making a effort to get to know them better and have learned quite a lot, though I cannot seem to figure ...
1
vote
2
answers
2k
views
Change the name of the mountpoint used by udisks2
The default name is /run/media/$USER/<UUID>. Instead of UUID, I want it to use the partlabel (if it exists), which means I want to change the mountpoint's name to /run/media/$USER/<partlabel&...
0
votes
0
answers
690
views
udisks2: Use a specific mount point when mounting from file manager on-demand
I have an internal partition that I do not automount using fstab, but mount on-demand from the file manager by clicking on the partition icon, using udisks2.
This setup works great, except that ...
3
votes
1
answer
7k
views
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 ...
4
votes
1
answer
1k
views
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 ...
0
votes
1
answer
2k
views
Service 'org.freedesktop.UDisks2' does not exist
I am using Debian Sid, with OpenRC init system. I have installed the latest udisks2 (2.8.4), as well as qdbus-qt5. Earlier (an unspecified time before this error popper up), I was able to query org....
2
votes
0
answers
3k
views
Automount LVM logical volume with a udev rule and udisks2
I want to automatically mount an LVM logical volume on an external drive as soon as it is connected to the computer.
The solution I choose here is to use udev to detect plug in events and udisks2 to ...
1
vote
1
answer
743
views
Removable volume not appearing in file managers
Neither Nautilus, Caja or Thunar show my removable storage device in the list of devices.
I can mount it manually using udisksctl:
$ udisksctl mount --block-device /dev/sdd1 Mounted /dev/sdd1 at
/...
25
votes
1
answer
8k
views
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 ...
0
votes
1
answer
2k
views
Is udisks2 able to mount anything the command "mount" can? Can I mount smb shares for instance?
I know that udisks2 can be used to mount filesystems. But what kind of filesystems? By reading information around this is not completely clear to me.
Can I only mount local filesystems? Or can I ...
1
vote
1
answer
1k
views
udisks - automatic mounting partitions at startup
Update:
I posted an answer following @sourcejedi's tip!
I installed OpenMandriva Lx 3.0 and Rosa Linux R10 on the same PC. And I noticed that unlike previous systems (I used Mageia 5, Rosa R9), which ...
2
votes
1
answer
1k
views
systemd - how to power on USB drive? [duplicate]
With udisksctl I'm able to power-off device:
udisksctl power-off --block-device /dev/sdd
But how can I power it back ON from commandline?
1
vote
0
answers
436
views
I have udisks2 but no rules file to edit
I wanted to add some rules to udisks2 by adding them to /etc/udev/rules.d/99-udisks2.rules as suggested in various sources. However, this file does not exist on my system in that folder. I have ...