Created
June 21, 2012 10:32
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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