Skip to content

Instantly share code, notes, and snippets.

@hostmaster
Created June 21, 2012 10:32
Show Gist options
  • Save hostmaster/2965042 to your computer and use it in GitHub Desktop.
Save hostmaster/2965042 to your computer and use it in GitHub Desktop.
wipe GPT header signature on last LBA to suppress (s)fdisk GPT warning
# wipe GPT header signature
disk_kb_count=$(sfdisk -s ${disk} 2>/dev/null)
dd if=/dev/zero of=${disk} bs=1024 seek=$(($disk_kb_count - 1)) count=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment