Props to Tim for this one.
Next, mount the usb disk. Check mount to see what device (from here on out assume /dev/sda) its being mounted as. Unmount the disk. Do the following as root (THIS WILL DESTROY ALL DATA ON THE DISK):
zcat boot.img.gz > /dev/sda
Once it finishes, mount the usb disk again (assume that the disk is mounted at /mnt/bootdisk). You should see a bunch of files in there. If you have a large disk you’ll notice that it does not report the correct size. Donâ€™t worry that is normal. Mount the Ubuntu iso by doing the following:
mount -t iso9660 -o loop,ro /path/to/mini.iso /mnt/ubuntu
First we need to do some house cleaning inside the bootdisk mount point.
Copy the Ubuntu files over:
cp /mnt/ubuntu/* /mnt/bootdisk/
The majority of the files will be overwritten.
The last thing to do is create a config file. We just deleted syslinux.cfg earlier and didnâ€™t replace. Do the following to correct that:
mv /mnt/bootdisk/isolinux.cfg /mnt/bootdisk/syslinux.cfg
That’s it! Unmount the drive and you’re good to go.