On 1/3/2012 10:38 AM, Jim Meyering wrote:
The trick to munging anything in a GPT header is to be able to
recalculate the checksum, once you've poked in a new value.
I did that for a few different entries in tests/gpt-header-munge.
Given a new backup LBA sector number that you want to insert,
use a function like its poke_n_pe:

I don't really speak perl and this is going to need a little more substantial modification since it looks like right now it only rewrites the header sector, but relocating the backup gpt will require rewriting the entire backup gpt, and preferably zeroing out the old table. I don't suppose you could add the ability to do that to this script?


Reply via email to