Since unetbootin and usb-creator were not working for me I created my own bootable USB image from the alternate Ubuntu iso.
I tried this with desktop and alternate installer of Ubuntu 9.04 (Jaunty Jackalope) amd64.
The following tutorial is based on information from Overclockers Australia Forums and launchpad.
$ sudo fdisk -l...and you will get something similar to the following for each physical storage device on your PC:
Disk /dev/sdb: 2063 MB, 2063335424 bytes
255 heads, 63 sectors/track, 250 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d4ddc
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 250 771088+ 6 FAT16
$
This is a 2GB USB flash drive. It is mounted as /dev/sdb and has one partitions: /dev/sdb1.
$ sudo umount /dev/sdb1(Repeat the above command for every partition on your stick only.)
$ sudo fdisk /dev/sdb...and you will be presented with the FDISK command prompt, to perform operations on your USB stick at /dev/sdb.
$ sudo apt-get install syslinux mtools
$ sudo syslinux -sf /dev/sdb1...which will install the bootloader needed for your USB stick to boot from.
$ mkdir /mnt/livecd $ cd /path/to/my/downloaded/iso $ sudo mount -o loop ubuntu-8.04-alternate-amd64.iso /mnt/livecd...the above commands will mount the ISO to your RAM disk in the directory called "livecd".
$ cd /media/cdrom...or for ISO users, switch to the mountpoint:
$ cd /mnt/livecd
$ sudo cp -rfv casper disctree dists install pics pool preseed .disk isolinux/* md5sum.txt README.diskdefines ubuntu.ico casper/vmlinuz casper/initrd.gz /media/ubuntulive/This copies everything off the disc/ISO except for the MS Windows related stuff to your USB stick. This may take a minute or two. IGNORE THE SYMLINK AND STAT ERRORS that are returned from the cp command.
$ cd /media/ubuntulive $ cp isolinux.cfg syslinux.cfg $ cp isolinux.txt syslinux.txt
As we copied all files from the cd-installer there is a problem with one of the scripts, which looks for package sources.
If you run into problems (this might be fixed by now), switch to another bash and apply the following patch at /var/lib/dpkg/info/...
The bug report is located at https://bugs.launchpad.net/ubuntu/hardy/+source/usb-creator/+bug/234185, the patch is:
--- initrd-org/var/lib/dpkg/info/cdrom-detect.postinst 2008-05-21 19:11:52.000000000 -0400 +++ initrd/var/lib/dpkg/info/cdrom-detect.postinst 2008-05-21 18:20:48.000000000 -0400 @@ -32,9 +32,10 @@ do mounted=0 - devices="$(list-devices cd; list-devices maybe-usb-floppy)" + devices="$(list-devices cd; list-devices partition; list-devices maybe-usb-floppy)" for device in $devices; do - if mount -t iso9660 -o ro,exec $device /cdrom; then + if mount -t iso9660 -o ro,exec $device /cdrom || \ + mount -t vfat -o ro,exec $device /cdrom ; then log "CD-ROM mount succeeded: device=$device" mounted=1 db_set cdrom-detect/cdrom_device $device
September 25th, 2009