Create bootable USB disk on Windows manually

February 7th, 2008 lcapriotti

I have been experimenting with the creation of bootable flash disk under Windows since it is not a trivial process and I have not identified a simple and effective tool doing the job.
There may be several variants, but this one works and it’s easy to describe.
You must be logged as local administrator to perform these steps.

Needed tools

  • aefdisk32 – cmd-line partitioning tools. Get it from here. Note that this is needed under XP only, since diskpart in Vista supports removable disks.
  • syslinux for win32. Get the last version from kernel.org
  • WinImage. To extract the files form the original LiveXBMC image. Get it from its Home page.

Step 1. Identify the disk with aefdisk32

Since you may not want to erase your hard drive you need to be careful with this: using

aefdisk32 n /allsize

where n=1,2 …max number of disks you have, find the disk number related to the USB flash disk by matching the disk capacity. In the following example 2 is such a number.

Step 2. Erase the disk, create a primary FAT partition and make it active and bootable

Using aefdisk32 this is all in one single instruction:

aefdisk32.exe 2 /delall /pri:0:c /activate:1 /mbr

Using DISKPART on Vista:

List disk
select disk 1
clean 
create partition primary 
select partition 1 
active 
format fs=fat32 
assign 
exit

Step 3. Format the partition
If aefdisk32 has been used for step 2, the following is needed to format the partition:

format X: /fs:fat

Change X to the letter that your system has assigned to your removable disk!

Vista users don’t need to do it since DISKPART has already done it.

Step 4. Put syslinux on the flash disk

syslinux -f X:

Change X to the letter that your system has assigned to your removable disk!

Step 5. Extract LiveXBMC files

Using WinImage, extract the following files from the LiveXBMC image:

boot.msg
ext3fs.img
initrd0.img
rootfs.img
syslinux.cfg
vmlinuz

and save them on the flash disk.

That’s it. You are now ready to boot from the USB disk into LiveXBMC.

  1. ET
    November 25th, 2008 at 04:34 | #1

    2 things not sure about
    1: do i just copy over the unzipped files on to the USB
    2: some of the files were not in the latest ISO image
    EXT3FS.img and SYSLINUX.cfg

  2. lcapriotti
    November 25th, 2008 at 05:03 | #2

    1: yes.
    2. Your point about ext3fs.img is taken, no such a file on the CD image. You will end up with a bootable USB with no persistent memory. You will be able to create such a file booting the USB in safe mode and create the file using dd

  3. blc
    December 26th, 2008 at 00:32 | #3

    My usb thumb drive is to big for fat16 (8gb) is there no way to boot xbmc live from this? its possibile with vanila ubuntu.

Comments are closed.