Cloning a Drive in Linux via Commands

wiki.TerraBase.info
Revision as of 19:07, 22 February 2026 by Root (talk | contribs) (Created page with " BackUp the Source Drive Structure: <code>sgdisk --backup=WhatEverFileName.bak /dev/WhatEverSDx</code> Restore to the Destination Drive: <code>sgdisk --load-backup=WhatEverFileName.bak /dev/WhatEverSDy</code> Re-Read Drive Information on the Destination System: partprobe /dev/WhatEverSDy If this error occurs: "Not all of the space available to /dev/sdc appears to be used, you can fix the GPT to use all of the space (an extra 2014 blocks) or continue with the current...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


BackUp the Source Drive Structure: sgdisk --backup=WhatEverFileName.bak /dev/WhatEverSDx

Restore to the Destination Drive: sgdisk --load-backup=WhatEverFileName.bak /dev/WhatEverSDy

Re-Read Drive Information on the Destination System: partprobe /dev/WhatEverSDy

If this error occurs: "Not all of the space available to /dev/sdc appears to be used, you can fix the GPT to use all of the space (an extra 2014 blocks) or

continue with the current setting?", it is probably because of a mismatch in size between the Source and Destination Drives Storage Capacity. Easy to fix with: parted /dev/SDy, print, Fix