How to clone all the partitions of a disk

If you want to create the same partitions as an existing disk and if those disks are exactly the same, then you can use the following command :

sfdisk -d /dev/hda | sfdisk /dev/hdb

Published 7th Feb 2011 // #debian #tips




comments powered by Disqus