ungleich-tools/remove-all-partitions
2018-02-27 15:45:40 +01:00

12 lines
148 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=150