viernes, 6 de febrero de 2015

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

that's all, try it and you'll see a progress bar, really cool

Best

No hay comentarios:

Publicar un comentario