Thursday, June 10, 2010

backup and restore partition table

Backing up partition table.

dd if=/dev/device of=/path/to/backup bs=512 count=1

Restore

dd if=/path/to/backup of=/dev/device bs=512 count=1

You can make sure data is intact using 'hexdump'.

hexdump /path/to/backup

No comments:

Post a Comment