HowTo: use "udisks2" instead of "mount" for (encrypted) external drives
[SOLVED] - udisksd using lots of CPU | Proxmox Support Forum
udisks, udisks2, udisksctl what is the differences?
Udisks2 doesn't understand consent
Official package description for udisks:
The udisks daemon serves as an interface to system block devices, implemented via D-Bus. It handles operations such as querying, mounting, unmounting, formatting, or detaching storage devices such as hard disks or USB thumb drives.
This package also provides the udisks utility, which can be used to trigger these operations from the command line (if permitted by PolicyKit). External tools such as hdparm are used if available to implement extra operations, such as configuring disk spindown times.
Creating or modifying file systems such as XFS, RAID, or LUKS encryption requires that the corresponding mkfs.* and admin tools are installed, such as dosfstools and mtools for VFAT, xfsprogs for XFS, or cryptsetup for LUKS.
Do I need it?
This should be considered an essential package by almost everyone. The only time I would consider removing it is if I had a simple /dev/sdX CLI install on a machine where there was no need for udev -- i.e., the hardware never changes (which in practice almost always means a virtual machine, a VPS or a very very old machine).
You should also find a command line tool called udisksctl. With this tool you can see details what the daemon is doing in the background.
Show Status:
$ udisksctl status
MODEL REVISION SERIAL DEVICE
--------------------------------------------------------------------------
Micron xxxxxxxxx M0MA020 xxxxxxxxxxxxx sda
Generic STORAGE DEVICE 1454 Generic_STORAGE_DEVICE-0:0 sdb sdc
TOSHIBA xxxxxxxxx 0100 xxxxxxxxxxxxx sdd
Monitor Progress:
$ udisksctl monitor
Monitoring the udisks daemon. Press Ctrl+C to exit.
10:48:03.241: The udisks-daemon is running (name-owner :1.8).
10:48:03.404: /org/freedesktop/UDisks2/jobs/2: org.freedesktop.UDisks2.Job: Properties Changed
ExpectedEndTime: 1699178852131486
Rate: 28536135
Progress: 0.58324379569695217