Sunday, December 31, 2017
adding verbose mode to dd command when cloning a drive
adding verbose mode to dd command when cloning a drive
This is a really cool trick, I often use dd command to backup my important data collected from SD Card or USB stick, but sometimes is annoying when you only see a black screen hoping to finish it successfully, in fact dd command does not have a verbose mode, but you may fix this following these steps:
1. sudo apt-get install pv dialog
2. (pv -n /dev/sdb | dd of=myiso.iso bs=128M conv=notrunc,noerror) 2>&1 | dialog --gauge "Cloning USB to ISO file, please wait..." 10 70 0
thats all, try it and youll see a progress bar, really cool
Best