11th Mar, 2009

DBAN 2 beta on a thumb drive

Darik's Boot and Nuke is a popular, free utility for wiping hard drives. Version 1.07 comes in a floppy disk format that can easily be installed to a thumb drive using dd; however, for newer computers with newer disk controllers, the beta version 2 is more likely to boot and run successfully.

Since there is no floppy version (yet) for DBAN version 2, a thumb drive installation must be done from the CD version.

To create a bootable thumb drive with the DBAN 2 beta (using FreeBSD: other systems will have similar steps but the exact commands may differ — e.g. newfs_msdos may be called mkdosfs):

  1. Download the DBAN 2 beta and unzip it. The zip file will contain, among other things, an ISO image named dban-beta.2007042900_i386.iso — this is the file we need.
  2. Create a FAT 16 filesystem on the thumb drive. Note, you're treating the drive as a floppy, not a hard drive, so it won't be partitoned:
    • newfs_msdos -F 16 -L DBAN /dev/da0
  3. Install syslinux (/usr/ports/sysutils/syslinux)
  4. Copy the files from the CD image to the thumb drive, prepare and run syslinux:
    • mkdir cdimage thumbdrive
    • mdconfig -a -t vfat -f dban-beta.2007042900_i386.iso
    • mount -t cd9660 /dev/md0 cdimage
    • mount -t msdosfs /dev/da0 thumbdrive
    • cp cdimage/isolinux/* thumbdrive
    • rm thumbdrive/isolinux.bin
    • mv thumbdrive/isolinux.cfg thumbdrive/syslinux.cfg
    • mkdir thumbdrive/DBANLOG
    • umount cdimage
    • umount thumbdrive
    • mdconfig -d -u md0
    • syslinux /dev/da0

Comments are closed.

Categories