Duplicate Hard Disk: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 8: Line 8:
dd if=/dev/sda of=/dev/sdb bs=512 conv=noerror,sync
dd if=/dev/sda of=/dev/sdb bs=512 conv=noerror,sync
</pre>
</pre>
'''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.


[[Category : Linux]]
[[Category : Linux]]

Latest revision as of 01:00, 23 October 2015

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.