Difference between revisions of "Dban - erase data"

From Ever changing code
Jump to navigation Jump to search
Line 29: Line 29:
</source>
</source>


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
<source lang=bash>
sed -i 's/ubninit/ISOLINUX.BIN/g' syslinux.cfg
</source>
Replace every occurrence of ubnkern with DBAN.BZI in the syslinux.cfg file
<source lang=bash>
sed -i 's/ubnkern/DBAN.BZI/g' syslinux.cfg
</source>
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:
References:
* [https://superuser.com/questions/801329/install-dban-to-usb-flash-drive-from-linux dban-to-usb-flash-drive]
* [https://superuser.com/questions/801329/install-dban-to-usb-flash-drive-from-linux dban-to-usb-flash-drive]

Revision as of 19:38, 17 July 2020

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: