4

How can I list which process(es) are using a specific disk in Linux?

I'm trying to track down what is writing to my hard drive, because I'd like to move the process's stuff to my SSD so that my hard drive can go into sleep mode.

3
  • 3
    I would run lsof on the mount point
    – tshepang
    Commented Feb 22, 2016 at 16:36
  • +1 for Tshepang, but remember to pipe the output to more or to less, lsof has a nasty tendency to produce an enormous amount of output, :-) Commented Feb 22, 2016 at 17:11
  • Actually, the argument of lsof does not have to be the mount point, it can cope with the device filename of the partition well.
    – user556625
    Commented Feb 22, 2016 at 17:34

0

You must log in to answer this question.

Browse other questions tagged .