Duplicate Hard Disk

From KlavoWiki
Jump to navigationJump to search

To Duplicate a hard disk in Linux first verify the sector size of the hard disk.

lsblk -o NAME,PHY-SeC

Once the sector size is known, this will duplicate disk A to B.

dd if=/dev/sda of=/dev/sdb bs=512 conv=noerror,sync

NOTE: Once the hard disk has been duplicated the server should be shutdown and the second hard disk removed. If the drive is left in place the system will not boot correctly due to duplicate UUID.