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
1
vote
2answers
50 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
0answers
31 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 ...
1
vote
2answers
45 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: &...
1
vote
1answer
493 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 ...
0
votes
0answers
38 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 ...
4
votes
1answer
256 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
0answers
44 views

Manually copying home directory - copy .ecryptfs too?

I am making a copy of my important files because I'm gonna reinstall my laptop. I tried to use the disks program to create a Partition Image, but I can't unmount the partition (partition is busy). A ...
3
votes
1answer
290 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 ...
0
votes
1answer
105 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....
1
vote
0answers
198 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 /...
1
vote
0answers
837 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 ...
0
votes
1answer
207 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 ...
0
votes
1answer
293 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 /...
2
votes
1answer
2k 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. # ...
19
votes
1answer
2k 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 ...
2
votes
2answers
431 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 ...
0
votes
1answer
527 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
3answers
2k 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 ...
0
votes
1answer
345 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), ...
0
votes
1answer
948 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/...
2
votes
1answer
669 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
1answer
420 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 ...
1
vote
0answers
318 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 ...
0
votes
1answer
568 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 ...
1
vote
1answer
1k 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 /...
1
vote
1answer
83 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 ...
2
votes
0answers
162 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 ...
2
votes
0answers
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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
497 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 ...
3
votes
1answer
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, ...
3
votes
0answers
503 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 ...
4
votes
1answer
6k 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 ...
0
votes
1answer
1k 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/. ...
2
votes
1answer
593 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 ...
2
votes
1answer
486 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 ...
1
vote
0answers
385 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 ...
2
votes
0answers
522 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 ...
2
votes
1answer
3k 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&...
2
votes
1answer
509 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 -...
1
vote
2answers
4k 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?
6
votes
1answer
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 ...
2
votes
1answer
484 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 ...
2
votes
1answer
1k views

btrfs RAID1 array shows as two disks

I mounted 2 drives as a RAID1 btrfs array (btrfs v3.12, Ubuntu 14.04). Everything's working fine except nautilus and other GUI-based apps see two disks, both labeled "Raid1". One is mounted (the ...
1
vote
1answer
1k views

How to install udisks1 in CentOS 7?

I have several scripts that I need for various tasks with USB devices, but they were written with udisks1 in mind. Porting them over to udisks2 has proven difficult, if not impossible, so I'm ...
5
votes
1answer
2k views

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 ...
2
votes
0answers
954 views

UDEV rule to run partprobe on loop device

I use udisks2 to mount raw image over a loop device: udisksctl -f image.img --no-user-interaction Policykit is configured, so no errors here. For some reason kernel does not want to re-read ...
3
votes
1answer
3k views

How can I make udisks-glue run at startup and mount drives as particular user?

I'm trying to make udisks-glue work on my Raspbian Raspberry Pi. This works fine if I manually start udisks-glue via ssh. However, I wish to start it automatically on startup. Hence, a script at /etc/...
4
votes
1answer
3k views

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....
1
vote
1answer
580 views

Can't run put udisks commands in udev scripts

I'm trying to launch a script when a LUKS drive is inserted. So I setup a udev rule: KERNEL=="sd*3", ACTION=="add", ATTRS{serial}=="XXX", ATTRS{manufacturer}=="XXX", RUN+="/usr/local/bin/syncer-...