Difference between revisions of "Dban - erase data"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
sudo apt-get update | sudo apt-get update | ||
sudo apt-get install unetbootin | sudo apt-get install unetbootin | ||
</source> | |||
Plug USB drive and get it formatted | |||
<source lang=bash> | |||
$ 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 | |||
</source> | </source> | ||
Revision as of 18:08, 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
References: