I want to somehow get notified if a mount or unmount occurs for a USB drive. Is there a way to do this?
At the moment I use udev
and then wait for x seconds for a new entry in /proc/mounts
. This works ok if the mounting is automatic. However this won't work if the user unmounts and then mounts the device manually.
Is there a way to catch those events?
Aucun commentaire:
Enregistrer un commentaire