This question already has an answer here:
- Notify of changes on a file under /proc 3 answers
When I used INotify with
/proc/mounts, it doesn't detect changes when things mount or unmount, even though
/proc/mounts both have changed when I check manually. Why is this, and how can I track mounting and unmounting things?