Copying a partition table to another disk
Friday, September 5th, 2008This week I added a new hard drive to a server, meant as a spare drive for the RAID 1 array (linux software RAID). To activate the partitions as spares, I needed to recreate exactly the same partitions as the other disks (same size).
I first tried doing that manually with GNU parted, but that turned out to be hard to do, it seems I could never get the partitions to have exactly the same size…
So I searched a bit on Google, and found a way to make a backup of the partition table of one disk, and copy it to another disk very easily. As usual, the dd command is always a great tool for that kind of job. (more…)