DBAN via PXE: Automagically Wipe a Drive via Network Boot

One of my first assignments when I signed on with my new job was to rebuild and improve the internal repository server.  When I started it was quite a mess!  It only mirrored the last two revisions of Red Hat Enterprise, and didn’t have a whole lot of functionality.  Now that I’m done it supports Red Hat 3-5, both i386 and x86_64 as well as the respective CentOS releases.  It mirrors Ubuntu, Fedora, openSUSE and I added a few little tricks to the PXE server which allows us to build or destroy machines without needing to burn a CD.  One of the features that I really like is the addition of DBAN to the PXE setup, allowing us to securely wipe drives on multiple machines without the need for any CDs or other boot media.  Here is how I went about it:

Create Required Directories

mkdir /tftpboot/dban/

Download Latest Dban

wget -c http://prdownloads.sourceforge.net/dban/dban-1.0.7_i386.iso

Extract Dban Kernel and Initrd

mount -o loop dban-1.0.7_i386.iso /mnt/
cp /mnt/dban_1_0_7_i386.ima ~
mount -o loop ~/dban_1_0_7_i386.ima /mnt/
cp /mnt/{initrd.gz,kernel.bzi} /tftpboot/dban/
umount /mnt/ && umount /mnt/

These instructions don’t outline how to actually setup the PXE functionality, but simply go over how to extract the required kernel and ramdisk image which will allow for network booting. It would be nice if the DBAN site would offer something like this directly, but until then its not much more work.  I’ll do another post soon on how to setup the actual PXE server and configure it to use this newly extracted kernel and ramdisk.

2 thoughts on “DBAN via PXE: Automagically Wipe a Drive via Network Boot

  1. I would love to get a follow up to this I am fixing to do something just like it. It would be great to get the directions you come up with.

    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>