Duplicate Hard Disk: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
Created page with "To Duplicate a hard disk in Linux first verify the sector size of the hard disk. <pre> lsblk -o NAME,PHY-SeC </pre> Once the sector size is known. <pre> dd if=/dev/sda of=/de..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
</pre>
</pre>


Once the sector size is known.
Once the sector size is known, this will duplicate disk A to B.
<pre>
<pre>
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.