Add tool to create fresh gpt table

This commit is contained in:
Nico Schottelius 2018-02-18 21:17:35 +01:00
parent 7829f82fb3
commit 527bfb197e
2 changed files with 6 additions and 0 deletions

5
disk-create-fresh-gpt Normal file
View file

@ -0,0 +1,5 @@
#!/bin/sh
disk=$1
printf 'g\nw' | fdisk $disk

View file

@ -8,3 +8,4 @@ fi
disk=$1 disk=$1
sgdisk -Z "$disk" sgdisk -Z "$disk"
dd if=/dev/zero of=$disk bs=1M count=10