« How do you wake a sleeping rock giant? | Main | Sunken Temple »
March 08, 2005
Partition Table Recovery using sfdisk
Before modifying a device's partition table create a file that contains a list of the current partitions. If for some reason there's a problem or the original partition table needs to be recovered (before modification) this file can become invaluable.
Create the file using sfdisk and redirect it's output to a file.
sfdisk -d /dev/hda > hda_partitions.pt
To restore the partition table
sfdisk /dev/hda < hda_partitions.pt
Posted by christec at March 8, 2005 03:42 PM