Treg's blog

September 3rd, 2007

DD progress

Posted by Treg in Howto's, Linux

Sometimes, copying big files/volumes with DD takes much time. With this simple script, you ‘ll see the progress of the copying process (in MB). (source)

dd if=/boot.img.gz of=/dev/sda -pg bs=1M 2>&1 | perl -e 'print $i++." MBn" while(read(STDIN,$c,3));'