Knowing that my external 320 GB hard drive has some problem with the connector, whenever I intend to copy something to it I first create a backup of the MBR and the partition table this way (Ubuntu 9.04):
$ sudo dd if=/dev/sdc of=HDD_mbr_20100208 count=1 bs=512
$ sudo cfdisk /dev/sdc
Then in cfdisk I choose the Print option and then the Raw option which saves the partition table in the very same format it would have been written to disk.
Now I need to recover what I have saved. The MBR part is really simple (just change the if and the of part in the first command), but there is no an obvious way to recover the partition table in cfdisk. Do you know how?
I would also appreciate any suggestion on a better way to save MBR, partition table and FATs (volume is FAT32 formatted).
Thanks in advance.
Sergio.