//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