DBAN

Download
http://www.dban.org/download

Create DBAN USB boot pen

sudo su
 
USB_DEVICE=/dev/sdb
 
umount ${USB_DEVICE}*
parted ${USB_DEVICE} -s mklabel msdos
parted ${USB_DEVICE} -s mkpart primary 1 100%
parted ${USB_DEVICE} -s set 1 boot on
mkfs.vfat ${USB_DEVICE}1
 
install-mbr ${USB_DEVICE}
syslinux -f ${USB_DEVICE}1
 
wget https://altushost-swe.dl.sourceforge.net/project/dban/dban/dban-2.3.0/dban-2.3.0_i586.iso -O /tmp/dban-2.3.0_i586.iso
mount /tmp/dban-2.3.0_i586.iso /mnt -o loop
cp /mnt/{dban.bzi,isolinux.cfg} /mnt
umount /mnt
 
# Reconnect USB pen
#MOUNTPOINT=$(findmnt -n -o TARGET ${USB_DEVICE}1)
MOUNTPOINT=/mnt
mount ${USB_DEVICE}1 ${MOUNTPOINT}
cp /mnt/dban.bzi ${MOUNTPOINT}/
cp /mnt/isolinux.cfg ${MOUNTPOINT}/syslinux.cfg
 
# OPTIONAL: enable autonuke quick wipe mode as default
sed -i "s/DEFAULT .*/DEFAULT quick/g" ${MOUNTPOINT}/syslinux.cfg
sed -i "s/PROMPT .*/PROMPT 0/g" ${MOUNTPOINT}/syslinux.cfg
 
umount ${MOUNTPOINT}