Create an Extensible DOS Boot CD with Networking
There are legacy DOS utilities that still do as good or better of a job than some Windows and Linux utilities. This is a method of creating a DOS Boot CD using scripts and support files provided by the creator of BartPE.
1. Download [local copy] and extract Bart’s Boot CD (version 1.1.1 at the time of this writing).
2. Optionally download the Nero wnaspi32.dll file and place in the bcd111/bin directory if you wish to enable automatic ISO burning. Otherwise, the scripts only generate an ISO file for you.
3. Download [local copy] and extract the contents of Bart’s Boot Floppy (version 1.0.7 at the time of this writing) to the bcd111 folder, overwriting any files that already exist.
4. Download [local copy] and extract the contents of the CDROMMI packageto the bcd directory.
Visit Bart’s Network Boot Disk page for instructions on packaging your own drivers to support your network card or to find an existing one. The driver files for each card should be placed in .cab files under bcd111/cabs/drivers/ndis. In addition, you can use Bart’s instructions to turn this disc into a modular boot disk, allowing for all sorts of locally installed utilities that may come in handy. I’ve focused on getting networking up and running as quickly as possible because I like to store any utilities I’m going to use on a network share. Mounting a share from the disc once you have the network running is easier and allows you to mix and match utilities without burning multiple discs.
1. Boot the CD.
2. Choose option 2 from the boot menu.
3. Run automatic network detection but when you get to the Identification Settings window you need to specify at least the IP address and hostname of the machine hosting the share in the lmhosts file.
4. Check off the lmhosts option and click OK. Type the IP address of your server and its netbios name separated by a space and Alt-X to exit.
5. You can then use the “net use” command to map the drive as you normally would once presented with a prompt.
[addendum]
Something that wasn’t apparent from the instructions on the BartPE’s website was how to force a rebuild of the boot image. Linux is used to load the boot image file (cds\cdrommi\files\isolinux\msnet.img) which contains your network drivers. If you add custom drivers and fail to delete this file before rebuilding the CD the drivers will not appear as available. Simply delete this file before you build your CD with custom drivers and the build scripts will create a new one that includes your driver files.
[addendum to the addendum]
Even after I deleted the msnet.img file and let a new one generate the scripts didn’t seem to pick up the new NDIS drivers I had installed. Instead I had to open msnet.img with WinImage and manually insert my cab file (created with Microsoft’s CAB SDK) and edit _msnet.pci and _msnet.nic to add entries for my new driver additions. A bit of a pain, but I haven’t had a chance to investigate why the build script doesn’t work as it should.