You are not logged in.
How can I suppress a PolicyKit "mount this drive" notification? I have a dual boot system with arch installed and popOS on a second SSD. When I login to my desktop environment in arch (KDE Plasma) I get a notification every time from PolicyKit1 KDE Agent asking me for a password to mount /dev/sde2. The partition appears to be the recovery partition on the popOS drive. The details of that partition are:
sudo blkid | grep /dev/sde2
/dev/sde2: UUID="DCAC-D95B" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="recovery" PARTUUID="a2f685e2-6c3b-467d-824d-34d91aa2a511"I thought the right way to do this might be to write a udev rule in /etc/udev/rules.d but either my rule is incorrect or this is the wrong approach. I tried to write a rule based on the examples in /usr/lib/udev/rules.d/80-udisks2.rules and I have tried three different rules, none of which stop the notification. Those are:
SUBSYSTEM=="block", ENV{ID_FS_UUID)=="DCAC-D95B", ENV{UDISK_IGNORE}="1"
SUBSYSTEM=="block", ENV{ID_PART_ENTRY_SCHEME}=="vfat", ENV{ID_PART_ENTRY_TYPE)=="a2f685e2-6c3b-467d-824d-34d91aa2a511", ENV{UDISK_IGNORE}="1"
SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="vfat", ENV{ID_FS_LABEL}=="recovery", ENV{UDISKS_IGNORE}="1"Offline
You can add/ignore disks in KDE's own automounter as well, though afaik that should honor an UDISK_IGNORE udev rule anyway
Offline
Thanks V1del, I'll look into the KDE options. If the udisk rule should do the same thing, is there is something wrong with the rules I suggested above? Would you expect any of those to work for that partition? I have them in a file called " 10-local.rules" within the /etc/udev/rules.d directory, maybe the file name is a factor?
Offline