Duplicate Hard Disk

From KlavoWiki
Revision as of 01:00, 23 October 2015 by David (Sọ̀rọ̀ | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.