Find out what process is using my HDD

I know it's the spotlight indexing process, but it's been killing my HDD for the last few days and will not stop. The CPU usage is rather low but fs_usage shows that the mds process is doing something the whole time.

I'v tried force quitting it with kill -9 but it will just auto re-spawn and keep killing my HDD.

I'v added all my HDDs into the Spotlight privacy list as well as disabling indexing sudo mdutil -a -i off I'v done several restarts but it keeps on going.

Any ideas on how to stop it from opening and running?

Update:

I Managed to stop mds by the following command:

sudo launchctl unload -w /System/Library//LaunchDaemons/com.apple.metadata.mds.*

But after a restart my HDD is still writing ~6MB/s and reading ~500KB/s Any ideas how to find out which process is consuming my HDD? It makes my computer incredible slow.

Update 2:

It only does 3MB/s write now that I have left the computer alone for a while.

Update 3:

It stopped just now for about 5 seconds, then started writing again. I was doing nothing different.

Here is a screenshot of the usage:

hdd usage


Try running the fs_usage in Terminal (must be run as root):

sudo fs_usage

This will start spitting out details of all your disk access right there in the Terminal window. It might go by quickly, but you should at least be able to see the app names accessing the disk.

More info and options for the fs_usage command here.


fseventer is an awesome frontend to the information that fs_usage provides, and enables a better understanding of filesystem activity much quicker than at the command line.