Re: How long will this take?
# cat /proc/24283/fdinfo/1
Is that in bytes?
stdin and stderr both show a position of zero.
-------- Original Message --------
On Jun 8, 2020, 1:32 PM, Nicolas George < firstname.lastname@example.org> wrote:
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.
Also, you can go read /proc/$(pidof dd)/fdinfo, it contains the
Note that it becomes much slower as it nears the center of the disk.