Add tool to create fresh gpt table
This commit is contained in:
parent
7829f82fb3
commit
527bfb197e
2 changed files with 6 additions and 0 deletions
5
disk-create-fresh-gpt
Normal file
5
disk-create-fresh-gpt
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
disk=$1
|
||||
|
||||
printf 'g\nw' | fdisk $disk
|
|
@ -8,3 +8,4 @@ fi
|
|||
disk=$1
|
||||
|
||||
sgdisk -Z "$disk"
|
||||
dd if=/dev/zero of=$disk bs=1M count=10
|
||||
|
|
Loading…
Reference in a new issue