
John Reed
sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
sudo fdisk -l
shred -vfz -n 2 /dev/sdX
This command forces shred to overwrite the entire disk with zeros two times.
Overwriting the disk with zeros:
dd if=/dev/zero of=/dev/sdX iflag=nocache oflag=direct bs=4096
Overwriting the disk with random data:
dd if=/dev/urandom of=/dev/sdX bs=4096