Monday 28 December 2020

use dd to clone drive

//ubuntu terminal
//list disk
sudo lsblk

//clone disk
sudo dd if = /dev/sda of = /dev/sdb

“if” represents inputfile, and “of” represents output file. So the exact copy of /dev/sda will be available in /dev/sdb.

//watch dd progress
//open another terminal
sudo watch -n5 'sudo kill -USR1 $(pgrep ^dd)'

reference:
list disk

dd

monitor dd

No comments:

Post a Comment