ungleich-tools/remove-all-partitions
2018-02-18 21:17:35 +01:00

11 lines
146 B
Bash
Executable file

#!/bin/sh
if [ $# -ne 1 ]; then
echo $0 disk-to-be-deleted
exit 1
fi
disk=$1
sgdisk -Z "$disk"
dd if=/dev/zero of=$disk bs=1M count=10