Install Ubuntu 8.04 to a Flash Drive using Windows

Ubuntu 8.04.3 Persistent USB Flash Drive installation tutorial for current Windows users. This tutorial covers the process of installing Ubuntu Hardy Heron to a USB flash drive using the Live CD to create the partitions and a Windows host to perform the build. Ubuntu will uses the persistence feature to save and restore changes back to the flash drive. Hence your changes and settings can be saved and restored upon subsequent boots. The persistence feature was broken with the release of Ubuntu 8.04.3 and this tutorial includes a fixed initrd.gz that addresses the permissions problem which was pointed out here

Partitioning the USB Flash Drive using the Live CD:

This tutorial is obsolete! This tutorial or version of Linux is old and has been removed. Please use the Universal USB Installer instead, as it can be used to install the latest version.

  1. Download the Ubuntu 8.04.3 ISO and burn it to a CD
  2. Restart your computer and boot from the Ubuntu Live CD
  3. Insert a 1GB or larger USB flash drive
  4. Open a terminal window and type sudo su
  5. Now type fdisk -l to list available drives/partitions (note which device is your flash drive Example: /dev/sdb). Throughout this tutorial, replace all instances of x with your flash drive letter. For example, if your flash drive is sdb, replace x with b.
  6. Type umount /dev/sdx1
  7. Type fdisk /dev/sdx
    • type p to show the existing partition and d to delete it
    • type p again to show any remaining partitions (if partitions exist, repeat the previous step)
    • type n to make a new partition
    • type p for primary partition
      • type 1 to make this the first partition
      • hit enter to use the default 1st cylinder
      • type +750M to set the partition size
      • type a to make this partition active
      • type 1 to select partition 1
      • type t to change the partition filesystem
      • type 6 to select the fat16 file system
    • type n to make another new partition
    • type p for primary partition
      • type 2 to make this the second partition
      • hit enter to use the default cylinder
      • hit enter again to use the default last cylinder
      • type w to write the new partition table
  8. Type umount /dev/sdx1 to unmount the partition
  9. Type mkfs.vfat -F 16 -n ubuntu8 /dev/sdx1 to format the first partition
  10. Type umount /dev/sdx2 to ensure the partition is unmounted
  11. Type mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2 to format the second partition
  12. Remove and Re-insert your flash drive (if prompted that a new medium has been detected, select to open in a new window and click ok)
  13. Back at the terminal, type sudo apt-get install syslinux mtools
  14. Type syslinux -sf /dev/sdx1
  15. Restart your computer, remove the CD and boot back into Windows

Installing Ubuntu 8.04 to the USB Flash Drive via Windows:

  1. Download and launch Ubuntup8.exe, a Ubuntu8 folder is created
  2. Copy your Ubuntu 8.04 ISO to the Ubuntup8 folder
  3. From the Ubuntup8 folder, click fixu.bat and follow the onscreen instructions
  4. Once the fixu.bat script has finished, navigate to the new USB-Ubuntu folder inside the Ubuntup8 folder
  5. Copy all of the files from "within" the USB-Ubuntu folder to the "root" of your flash drive (not to a subfolder)
  6. Restart your PC and set your BIOS or Boot Menu to boot from the USB device

If all goes well, you should be able to Run Ubuntu in Persistence Mode saving changes.

*Ubuntu is a product of Canonical Ltd

Disclaimer