[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How long will this take?



Matthew Campbell (12020-06-08):
> I bought a new 4 terrabyte hard drive that is connected with a USB
> cable using USB2. It took about 32 hours to read every sector on the
> drive to look for bad sectors. I started blanking the sectors using
> /dev/zero last Friday night. It still isn't done. Is there a way I can
> find out how much data a particular process has written to the disk?
> I'm using Debian 10.4.

       Sending a USR1 signal to a running 'dd' process makes it print I/O sta‐
       tistics to standard error and then resume copying.

Fron dd(1).

Also, you can go read /proc/$(pidof dd)/fdinfo, it contains the
information too.

Note that it becomes much slower as it nears the center of the disk.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: PGP signature


Reply to: