I found several similar questions, but none of them work now.
Monitoring (inotify) /etc/mtab does not work, because now it symbolizes /proc/mounts . Monitoring through udisks does not allow you to manually connect / mount drives. Netlink sockets also do not work (no mount / umount actions).
So what really works for monitoring mounts and umounts?
PS I don't care about mounted names, just global ones.
source share