I want to monitor USB-Keys on my system. I know they are always mounted in /media so I use inotify to monitor /media. Some USB Keys create a folder (e.g. sda) when plugged which
In the meanwhile I found that this is a known issue of inotify. If two events appear virtually at the same time, inotify only catches one of them.
My solution: I don't use inotify anymore, but took libudev instead to monitor the devices plugged to the machine...