wiping disks

One of the GNU core utilities is the shred command. On both Ubuntu and RHEL/Centos it comes in the coreutils package, and even on a minimal install, I suspect you can count on it being there. # fdisk -l /dev/sda | head -1 Disk /dev/sda: 6 GiB, 6448619520 bytes, 12594960 sectors # shred –iterations=0 –zero […]

cleaning signatures off disks

Tripped over an issue recycling a disk using LVM WARNING: dos signature detected on /dev/disk/by-id/ata-TOSHIBA_MK6459GSX_X9QCF7BGS at offset 510. Wipe it? [y/n]: [n] Aborted wiping of dos. 1 existing signature left on the device. This came from (failed) volume group creation within a puppet run. hat-tip. There’s a tool called wipefs which fixes this.  I’d like […]