murder_drive.sh
· 225 B · Bash
原始檔案
#!/bin/bash
zpool labelclear /dev/$1
dd if=/dev/zero of=/dev/$1 bs=1M count=100 status=progress
dd if=/dev/zero of=/dev/$1 bs=1M seek=$(( $(blockdev --getsize64 /dev/$1) / 1048576 - 100 )) status=progress
wipefs --all /dev/$1
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 |