My hard drive is going crazy and I don't know what application is doing it.

Are there any linux tools for profiling what processes are accessing drives and how frequently?

top, htop and the like neatly sort out the memory and cpu hogs, and nethogs lets me see the network hogs... but what to use for determining HDD hogs?


you can install iotop

enter image description here

  • 1
    Looks great... although no standard repo package for it. Link is here for anyone else looking. – Russ Mar 8 '11 at 20:04
  • 2
    iotop --accumulated is great. – belacqua Mar 8 '11 at 20:06
  • 1
    @russ I had it in my repo, via universe : http://archive.ubuntu.com/ubuntu/ maverick/universe i386 Packages – belacqua Mar 8 '11 at 20:06

One possibility is using inotify (package is inotify-tools) .

Here's an article on Monitoring file system activity with inotify .

Also see Find which files are read or written to .


The new utility fatrace can show you exactly! See: https://launchpad.net/fatrace/ or run 'sudo apt-get install fatrace'. Then run it:

# sudo fatrace
chrome(6514): W /home/xxxx/.config/google-chrome/Default/Current Session
chrome(6516): R /home/xxxx/.pki/nssdb/cert9.db
chrome(6514): RW /home/xxxx/.cache/google-chrome/Default/Cache/data_0
chrome(6516): R /home/xxxx/.pki/nssdb/cert9.db
chrome(6514): W /home/xxxx/.cache/google-chrome/Default/Cache/data_1
chrome(6516): W /home/xxxx/.cache/google-chrome/Default/Cache/data_1
wicd(29613): RO /lib/x86_64-linux-gnu/ld-2.19.so
ifconfig(29613): R /lib/x86_64-linux-gnu/ld-2.19.so
ifconfig(29613): CO /etc/ld.so.cache

The advantage of fatrace is that you get the filename, unlike iotop. For multi process applications like chrome, you get all the processes in one place.

  • also fatrace accepts grep and grep can exclude . eg fatrace | grep -v "firefox" will exclude firefox – pierrely Jul 29 '19 at 5:26
  • and multiple exclusions like sudo fatrace | grep -Ev "firefox|tixati|konsole" – pierrely Jul 29 '19 at 5:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.