Utoljára aktív 1732311036

Script all the filesystem signatures off a drive so that ZFS doesn't get all grumpy when reusing old disks.

murder_drive.sh Eredeti
1#!/bin/bash
2zpool labelclear /dev/$1
3dd if=/dev/zero of=/dev/$1 bs=1M count=100 status=progress
4dd if=/dev/zero of=/dev/$1 bs=1M seek=$(( $(blockdev --getsize64 /dev/$1) / 1048576 - 100 )) status=progress
5wipefs --all /dev/$1