gpt_write_hdr
error = gpt_write_hdr(hdr, 1, imgsz - 1, 2);
error = gpt_write_hdr(hdr, imgsz - 1, 1, imgsz - tblsz - 1);