You are not logged in.
Pages: 1
Is it possible to monitor everytime a file on the hard drive is read from or written to and to add that information to a log?
Last edited by Chris Denton (2010-07-25 10:32:57)
Offline
Yes. Check out inotify.
http://wiki.github.com/rvoicilas/inotify-tools/
Offline
The only problem I see is that you'll end up with an endless loop...
1) Disk get's written to
2) inotify writes a log about the write
3) Go to step 1
Last edited by fukawi2 (2010-07-24 07:12:10)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
You can filter it. See: http://wiki.github.com/rvoicilas/inotify-tools/#info
Offline
Thanks. That seems to be working quite well.
One problem though, I notice I have to exclude /dev (otherwise it seems to get stuck in a loop like fukawi2 mentioned). This does raise a question though, I notice that it isn't actually accessing the physical disk when this happens, so I wonder, is there a way to tell it to only include events that occur on the disk?
Offline
Pages: 1