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
339 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 ...
0 votes
4 answers
100 views
Mount a partition from a script unless it is already mounted
I would like to mount a partition of an external hard drive from a script using udisksctl mount --block-device /dev/sda1 and in the end of the script I would like to unmount it. However, it may ...
3 votes
1 answer
462 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
1 answer
207 views
What systemd service mounts filesystems in /media/$USER?
I have some mount units that are not always being started. When one of them isn't started, I find that the corresponding device is instead mounted in /media/${USER}. What do I need to do to make these ...
0 votes
0 answers
319 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. ...
2 votes
2 answers
374 views
mount options of udisks2 (dmask, fmask) are not applied when mounted with udisksctl (exfat fs)
I have a removable SD Card formatted with exfat which I would like to mount with udisksctlvia the udisks2 mechanism. What I want to do is to replicate a noexec option by using dmask=0002 and fmask=...
0 votes
0 answers
71 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 ...
3 votes
1 answer
957 views
udisksctl: get loop device and mount point without resorting to parsing localized output?
udisksctl is my tool of choice when dealing with file system images (recent example, but I've been doing this all over the place). The dance typically looks like fallocate -l ${img_size} filesystem....
0 votes
1 answer
292 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, ...
0 votes
0 answers
114 views
Hide docker mounts from udisks / file explorer
Recently, I moved my docker data from /var/lib/docker to the home directory: /home/me/data/docker. Since then, I see mounted storages in my file explorer (Nemo). I've tried to google for udisks rules ...
1 vote
0 answers
421 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, ...
0 votes
1 answer
1k views
udisksctl command (udisks package) does not work on NixOS after upgrade to 22.11
What I get when trying to mount an external drive: $ udisksctl mount --block-device /dev/sdb1 The program 'udisksctl' is not in your PATH. You can make it available in an ephemeral shell by typing: ...
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 ...
3 votes
0 answers
996 views
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,...
0 votes
1 answer
193 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....