I had a virus infested computer and I wanted to zero the partition and restore from a partimage file but first I thought I would zero out the data on the partition using dd so:
dd if=/dev/zero of=/dev/hda1
This took absolutely ages… and I was wondering when it was going to finish.
To get dd to give you a progress update
ps -ef | grep dd kill -USR1 pidofdd
You will get the reply of something like:
68863229+0 records in 68863229+0 records out 35257973248 bytes (35 GB) copied, 4383.96 seconds, 8.0 MB/s 72871543+0 records in 72871543+0 records out 37310230016 bytes (37 GB) copied, 4655 seconds, 8.0 MB/s
The above is after running kill -USR1 pidofdd twice
So at the above rate the 40GB+ will take almost an hour and a half to zero out.