jeff revised this gist . Go to revision
1 file changed, 5 insertions
murder_drive.sh(file created)
@@ -0,0 +1,5 @@ | |||
1 | + | #!/bin/bash | |
2 | + | zpool labelclear /dev/$1 | |
3 | + | dd if=/dev/zero of=/dev/$1 bs=1M count=100 status=progress | |
4 | + | dd if=/dev/zero of=/dev/$1 bs=1M seek=$(( $(blockdev --getsize64 /dev/$1) / 1048576 - 100 )) status=progress | |
5 | + | wipefs --all /dev/$1 |
Newer
Older