#!/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