Dban - erase data

From Ever changing code
Revision as of 19:38, 17 July 2020 by Pio2pio (talk | contribs)
Jump to navigation Jump to search

Download DBan dban-2.3.0_i586.iso from https://dban.org/


Install UNetbootin

sudo add-apt-repository ppa:gezakovacs/ppa
sudo apt-get update
sudo apt-get install unetbootin


Plug USB drive and get it formatted

$ df -h
...
/dev/sda1                    1.9G   39M  1.9G   3% /media/joe/FILES
/dev/sdc1                     15G  1.9G   13G  13% /media/joe/UBUNTU 18_0

sudo umount /dev/sdc1
sudo mkfs.vfat  -I /dev/sdc1 -n 'Ubuntu20' # option 1
sudo mkfs.exfat    /dev/sdc1 -n 'Ubuntu20' # option 2
mkexfatfs 1.2.8
Creating... done.
Flushing... done.
File system created successfully.

# | -I forces mkfs.fat to work correctly allowing to create a filesystem across the entire device
# | -n (optional) -n VOLUME-NAME, sets the volume name (label) of the filesystem


Install DBAN on a USB flash drive using unetbootin


Mount USB, then replace every occurrence of ubninit with ISOLINUX.BIN in the syslinux.cfg file

sed -i 's/ubninit/ISOLINUX.BIN/g' syslinux.cfg


Replace every occurrence of ubnkern with DBAN.BZI in the syslinux.cfg file

sed -i 's/ubnkern/DBAN.BZI/g' syslinux.cfg

Your bootable DBAN usb stick is ready now.

Note: DBAN will boot up and data erasing will start within 10 seconds without any prompt

References: