ungleich-tools/remove-all-partitions

13 lines
148 B
Text
Raw Permalink Normal View History

2018-02-18 16:10:37 +00:00
#!/bin/sh
if [ $# -ne 1 ]; then
echo $0 disk-to-be-deleted
exit 1
fi
disk=$1
2018-02-27 14:45:40 +00:00
2018-02-18 16:10:37 +00:00
sgdisk -Z "$disk"
2018-02-27 14:45:40 +00:00
dd if=/dev/zero of=$disk bs=1M count=150