12 lines
148 B
Bash
Executable file
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
|