I have a RAID 1 brtfs filesystem (on /dev/sda1 and /dev/sdb1). Since they are HDDs it was making my boot take 12+ seconds longer waiting on that mount. Even with the HDDs all ready spun up.
I don’t need this mount for any services on boot, so I moved it to a systemd mount, which works fine. (And also great for network mounts.) But udisksd picks it up every boot, and adds another mount to that filesystem in /run/media/$USER/UUID
. Every time I restart or sleep, it will make a new directory, and I will have many of them until I clean them up. They are also all mounted with the filesystem, as of course you can mount btrfs multiple times from different mount points.
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae1 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae1: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae11 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae11: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae12 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae12: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae13 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae13: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae1 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae1: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae11 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae11: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae12 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae12: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae13 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae13: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae1 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae1: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae11 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae11: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae12 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae12: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae13 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae13: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae1 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae1: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae11 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae11: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae12 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae12: Error removing directory: Device or resource busy
Jun 19 01:47:05 mbox udisksd[1929]: Cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae13 (device 8:17 is not mounted)
Jun 19 01:47:05 mbox udisksd[1929]: Error cleaning up mount point /run/media/tdell/79d7cd2a-98ea-4866-a9a9-e1a84e2e6ae13: Error removing directory: Device or resource busy
Every post I can find that seems relevant to this, says to make udev rules to stop Udisks from mounting that block device or UUID. I did that, but it doesn’t seem to have any effect either way. I think that is meant for removable media only? Also, udisks.conf seems to no options to do anything really, except for loading modules.
So I am really unsure how to stop this without disabling Udisk altogether. Which I can do, and mount external media manually.
I was optimistic when looking into: /etc/polkit-1/rules.d/99-manjaro.rules
. But I can’t seem to find a way to blacklist only my HDDs.