Create Boot Image Tool

The tool accepts two command line options:

CreateBootImage.exe <configuration file> <destination image file>

Below is sample configuration file:

-volume MOSABOOT
-blocks 9216
-fat16
-vhd
-syslinux

-mbr syslinux/syslinux-mbr.bin
-boot syslinux/syslinux-boot.bin

-file hello.exe   main.exe
-file syslinux/mboot.c32
-file syslinux/syslinux.cfg
-file syslinux/ldlinux.sys

The configuration file is a list of options, one per line, with arguments seperated by a tab. The following options are supported:

option Arguments Description
-volume Volume Name Set the volume name for the first partition
-blocks # of Blocks Set the number of 512-byte blocks
-fat16 Use FAT12 file system
-fat16 Use FAT16 file system
-fat32 Use FAT32 file system (untested)
-vhd Create image in VHD (Virtual PC/Virtual Server) format
-vdi Create image in VDI (VirtualBox) format
-img Create image in IMG format
-syslinux Patch disk image for syslinux
-mbr Filename Use file for Master Boot Record
-boot Filename Use file for Boot Record
-file Filename, Destination Include file in file system

The tool can create disk images for the following emulators:

Emulator File Format
Virtual PC 2004/2007 .VHD
Virtual Server .VHD
VMware .VHD
VirtualBox .VDI
QEMU .IMG
Raw Image .IMG