Continuing on Automounting plugged devices in linux, which left things a bit basic. Running Gentoo, I'm automounting a combination of local and network devices on my laptop with autofs-5.0.4-r5. Doing autofs alone gives me a couple of gripes:
- I have to predefine names for mountpoints per device, but occasionally after rebooting my MMC card reader switches positions with my bootable USB stick
- I'd like automatic LABEL based mountpoints to appear, autofs alone AFAIK can't do that
Which is what udev and udisks are certainly capable of doing. But:
- I don't want the filesystem to be mounted automatically when plugging the device, just give me the ghost mount point named LABEL
Actual filesystem mounting should only occur on first access to the mountpoint, just like autofs ghosting works. This should lower the risk of dirtying filesystems by accidentally unplugging devices, while still providing great accessibility.
On top of this I could use knowing at all times what's going on, in my DE.
- Is there a system tray app that is capable of indicating status of all automounts i.e. green = nothing is mounted, red = something is mounted?
- Is there a distribution-agnostic way to provide filesystem (un)mount operation notifications, for example using notify-send? What about Gentoo-specific, that works for me too. Scripting udev doesn't help with NFS and CIFS, right?
This combo should be the ultimate automount setup, or am I missing something?