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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 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 ...
user avatar
  • 2,908
0 votes
0 answers
17 views

Why removing a flash drive does not unmount it and reinserting the same drive gives it another device name

I am running a terminal only minimal linux. It has systemd and udisks2 as well. I mount a flash drive (first time it is /dev/sda1) like this from root account but for another user account: # mkdir -p &...
user avatar
  • 593
0 votes
0 answers
137 views

Can exFAT-formatted disks on Linux be diskwise access-controlled by fstab, UDEV, udisks2 or anything else?

The exFAT filesystem developed by Microsoft supports only Windows ACL but neither Linux ACL, macOS ACL nor POSIX permission (Unix permission). I am especially disappointed that exFAT does not support ...
user avatar
0 votes
1 answer
391 views

mount usb drive without sudo

In the terminal I have to use sudo mount, otherwise it says operation not permitted. But in the file explorer (started normally, without sudo) I can mount by pressing the icon next to the external ...
user avatar
1 vote
1 answer
258 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 ...
user avatar
  • 21
1 vote
1 answer
52 views

In search for good practices: Mounting disks

I think I did many terrible things at the past, empty directories everywhere, whatever priviledges they had and even mounting a fs inside other mounted fs. Now I want to make the things right and ask ...
user avatar
0 votes
1 answer
513 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 ...
user avatar
1 vote
1 answer
855 views

x-gvfs-show: Cannot display second hard drive left side of nautilus

I am trying to get fstab option x-gvfs-show to work as expected on my default installation of Debian/buster/amd64. I did stumble upon: What is the difference between mounting in fstab and by mounting ...
user avatar
  • 2,129
1 vote
2 answers
647 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&...
user avatar
  • 261
0 votes
0 answers
264 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 ...
user avatar
  • 177
1 vote
2 answers
411 views

Format a Thumb drive with an OS Partition

I have a thumb drive with a partion containing a bootable POP-OS image. I'd like to reclaim this space and just use as a thumb drive, but in "Disks" utility in POP_OS, if I try to delete: &...
user avatar
3 votes
1 answer
4k 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 ...
user avatar
0 votes
0 answers
236 views

Change File Permissions inside an Image File in Linux

I have an application (running in an IDE under my user account) that does the following: It creates an empty file with ~1GiB size. It calls mkfs on this file (btrfs currently, but may change in ...
user avatar
4 votes
1 answer
766 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 ...
user avatar
3 votes
1 answer
608 views

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 ...
user avatar
  • 185
0 votes
1 answer
235 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....
user avatar
  • 101
2 votes
0 answers
501 views

Why "udisksctl" and "mount -o loop" giving different root permissions after mounting?

I am trying to mount an iso using udisksctl and it appears that the bash scripts inside these are having only read permission [root@hostname ~]# udisksctl loop-setup -r -f /root/test.iso Mapped file /...
user avatar
  • 902
2 votes
0 answers
2k 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 ...
user avatar
0 votes
1 answer
380 views

Setting disk ownership when Nemo mounts a hot-plugged USB block-device?

How does one control automount ownership, i.e. the mount 'seat' ownership? In Nemo's left pane, under Devices, manually clicking on a plugged-in, but not yet mounted, USB memory device, cause it to ...
user avatar
1 vote
1 answer
504 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 /...
user avatar
  • 258
2 votes
1 answer
3k views

Corrupted SD card is readonly and not mounting

I'm having issues trying to recover a corrupted micro-SD card (not the data, just the card). I think it was formated to be part of the internal storage of an Android phone when that was an option. # ...
user avatar
  • 137
21 votes
1 answer
4k 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 ...
user avatar
  • 323
2 votes
2 answers
1k views

Configure udisks permission

On my Debian Stretch, my USB drive is auto-mounted on login, AFAICT. It is placed under /media/currentuser/DRIVENAME. I suppose udisks takes care of this (but I could be wrong). No entry in fstab ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
2 votes
3 answers
3k views

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 ...
user avatar
  • 1,085
0 votes
1 answer
685 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), ...
user avatar
  • 73
0 votes
1 answer
1k views

polkit rules not recognized raspbian stretch

I'm running a raspbian stretch and I want to grant every member of group user the right to mount and unmount usb-pendrives Therefore I installed: udisks2 I created a *.rules file /usr/share/polkit-1/...
user avatar
  • 41
2 votes
1 answer
901 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?
user avatar
  • 141
1 vote
1 answer
581 views

udisks2 - acl can't get write permissions for a regular user

External storage devices are successfully mounted to /run/media/myuser/ via udisks2 (udisksd service). I can read data from devices. However I can NOT write to them. I'm trying to edit directory ACLs ...
user avatar
1 vote
0 answers
347 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 ...
user avatar
  • 111
0 votes
1 answer
802 views

udisks SMART / APM stopped working?

I have a laptop with the accursed Western Digital hard drive. I have used SMART to look at Load/Unload cycles (smartctl -a|grep Load). They increase too fast towards the 300,000 lifetime limit. I ...
user avatar
  • 44.5k
1 vote
1 answer
2k views

Working example of udisks2 (udisksctl) mount with tmpfs [closed]

A Google search for '+udisksctl +tmpfs' returned no hits. I've tried many, many variants on this but all of them fail. Here's my current best guess: udisksctl mount -t tmpfs --options size=100 -b /...
user avatar
  • 131
1 vote
1 answer
111 views

How did GNOME avoid mounting my Windows Recovery USB drive?

Sequence: Create Windows 10 Recovery Drive (USB drive). Eject drive from Windows. Now use a Linux, with the USB drive plugged in. (The next step would be to open GNOME Disks, ensure the filesystem ...
user avatar
  • 44.5k
2 votes
0 answers
200 views

Installing udisks2 ejects sdcard

When installing udisks2 package on debian stable (using apt), at the "setting up" step, the sdcard gets ejected. The problem is, the process is running from the sdcard (chroot environment). I get ...
user avatar
  • 319
3 votes
0 answers
1k views

Automount local drives on boot and hot-plug

I am trying to automatically mount all readable internal and external drives on boot and on hot-plug if they are not already mounted, preferably as a non-root user. I cannot use fstab to do this ...
user avatar
2 votes
1 answer
2k views

Is there a way to ask udisksctl to list all partitions and block devices?

I saw https://stackoverflow.com/questions/200960/find-all-storage-devices-attached-to-a-linux-machine#201091 and while that is cool, I am/was wondering if it can be similarly achieved by using ...
user avatar
  • 10.9k
2 votes
1 answer
615 views

udisks2 doesn't clean up mount points on shutdown

If I shut down my computer while a device that was mounted by udisks is still mounted, the folder where it was mounted still remains. If I then mount that device again later, a '1' will be appended to ...
user avatar
  • 68
3 votes
1 answer
2k views

How to cause udisksctl to act for another user?

Logged in as the root user, udisksctl mount mounts my device at /media/root/mydevice. Alternately, logged in as another user, udisksctl mount mounts my device at /media/anotheruser/mydevice. So far, ...
user avatar
  • 1,115
3 votes
0 answers
632 views

mount usb disk via udisksctl need root privilege

I don't know why, but on my ubuntu 16.04 laptop, udisksctl can work properly without root privilege. However, when I plug this disk to centos 7, the execution of same command needs root privilege and ...
user avatar
5 votes
1 answer
8k views

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 ...
user avatar
  • 33.3k
0 votes
1 answer
2k views

How can I permanently change the ownership of a mounted device under `/media/$USER`?

I'm using an encrypted (cryptsetup with LUKS with ext3) SD-Card as disk space extension. When entering the key in Nautilus, the device is decrypted (/dev/dm-3) and mounted in /media/$USER/. ...
user avatar
2 votes
1 answer
879 views

How do I automatically force a umount on a usb drive that has already been removed?

I have debian system that auto mounts an entry in my fstab file when a usb drive is connected. This is done so as a read only device The device is mounted to /media/usb1 If i'm in the console and I ...
user avatar
2 votes
1 answer
574 views

How to disable asking for root password while ejecting USB drives?

When I mount usb drive it mounts successfully, but when I hit triangle button in Thunar (Eject) - I'm asked for root password! Executing $ udisks --eject /dev/sdd in console doesn't require root ...
user avatar
  • 257
1 vote
0 answers
497 views

Udisks2, LUKS and btrfs

I just bought a portable USB HDD,on which i put 2 partitions : a LUKS one, which contains a btrfs fs and a fat32 one, in case I'd have to use a system which doesn't support LUKS or btrfs I use ...
user avatar
  • 896
2 votes
0 answers
578 views

Setting default udisk2 NTFS option for removable drive

I am running debian/jessie amd64, and I would like to change the default options for ntfs-3g. Namely I'd like to state that any removable device for which filesystem is NTFS, should be mounted with ...
user avatar
  • 2,129
3 votes
1 answer
4k views

udev+udisks2: udisksctl gives 'Error looking up object for device'

In Debian Wheezy I had a special rule for my ntfs usb hdd. When it is inserted it is mounted in /media under a specific sub-folder. ACTION=="add", SUBSYSTEMS=="usb", ATTRS{serial}=="<serial_number&...
user avatar
  • 103
2 votes
1 answer
664 views

udisksctl mount a different subvolume of an already mounted btrfs partition

I have a btrfs partition with several subvolumes, one of which is /. I have another subvolume with some other stuff that I also want to mount, but trying to mount it with udisksctl: udisksctl mount -...
user avatar
  • 123
1 vote
2 answers
5k views

Mount a partition in Terminal with udisks

I'm running Linux Mint 17.1, based on Ubuntu Trusty. If I run udisks --mount /dev/sda7 then the partition is mounted in /media and not in /media/$USER as it should. What am I doing wrong?
user avatar
  • 2,662
6 votes
1 answer
2k views

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 ...
user avatar
  • 7,647
2 votes
1 answer
560 views

Make udisks2 clean up stale mount points?

udisks2 with udiskie are set up to automount USB storage devices. Connecting a pen drive labeled MYDRIVE, it is mounted to: /media/MYDRIVE When pulling the drive without prior unmounting, the above ...
user avatar
  • 533