Either boot from the Ubuntu Desktop Live CD or mount it in the filesystem. Suppose that Ubuntu is running and the live CD is mounted in
/media/cdrom (as simple as
sudo mount karmic-desktop-i386.iso /media/cdrom), let's make a new
dir and store
vmlinuz and
initrd in it:
Code:
sudo mkdir /boot/usb-boot
sudo cp /media/cdrom/casper/vmlinuz /boot/usb-boot
sudo cp /media/cdrom/casper/initrd.lz /boot/usb-boot
Edit your GRUB's menu (with
gksudo gedit /boot/grub/menu.lst) and add at the end:
Code:
title USB FLASH DRIVE
root (hd0,6)
kernel /boot/usb-boot/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper noprompt cdrom-detect/try-usb=true persistent
initrd /boot/usb-boot/initrd.lz
boot
Now you can reboot your system with your Ubuntu Bootable usb device plugged in and choose USB FLASH DRIVE (tested with Ubuntu 9.10 Karmic Koala Alpha 3).