SUMMARY Volumes marked for being ignored by udev/udisks2 (i.e., with the HintIgnore attribute set) should not be shown/managed by the Disks and Devices applet. However, in some cases this does not happen and the volumes are improperly shown (even when dolphin does not show them). Setup in which this occurs is related to the use of LUKS disk encryption and is probably not extra frequent, but can be increasingly important given that the usage of disk encryption is on the rise. I have a laptop (in fact a 2-in-1) with a very small internal NVME used to store the main OS, while all the rest (and particularly the home dir(s) ) go on a large SD card. For safety, the SD card is encrypted. At boot the OS learns about it via `crypttab` , asks for a password to decrypt it and mounts it. So far so good. The issue is that in plasma the Disks and Devices applet keeps showing it as a removable device (reported as "Encrypted Drive" rather than by the volume label), providing just the option to "safely remove" it, which obviously can only fail since the device is in use. This happens even if the volume is marked for being ignored via a udev rule. In fact, it does not matter whether the upper (crypted) device is marked, the lower (decrypted) device is or both. The fact that the udev rule works correctly can be checked with the udisks2 dbus interface and also via `solid-hardware5 list details` that reports for both the block devices that the `StorageAccess.ignored` and `StorageVolume.ignored` properties are true. Interestingly, these properties correctly prevent the block device from being shown in a "Removable devices" section in dolphin, though. STEPS TO REPRODUCE 1. Have an external drive (usb, sd, etc.) encrypted with LUKS 2. Set an appropriate `crypttab` to decrypt it at boot and an `fstab` to mount the decrypted volume 3. Write in `\etc\udev\rules.d` some rules to assure that `ENV{UDISKS_IGNORE}="1"` for the upper and lower devices 4. Login in plasma OBSERVED RESULT The Disks and Devices icon is shown in the system tray. Clicking on it shows an "Encrypted Drive" as a removable device and offers the option to "Safely remove" it. EXPECTED RESULT No "Encrypted Drive" is shown because udisks2 has the Ignore Hint set for it. SOFTWARE/OS VERSIONS Operating System: Manjaro Linux KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.112.0 Qt Version: 5.15.11 Kernel Version: 6.6.7-1-MANJARO (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Core™ i7-4750HQ CPU @ 2.00GHz Memory: 15.5 GiB of RAM Graphics Processor: Mesa Intel® Iris® Pro Graphics P5200 Manufacturer: Notebook Product Name: W740SU System Version: Not Applicable
Noticed the title change. I'm under the impression that my volume used to be correctly ignored before I encrypted it, i.e., that there is a problem specifically with encrypted volumes. Maybe wrong.