Install Ubuntu 7.04 to a Flash Drive using the CD
Create a Ubuntu 7.04 Live USB Persistent Flash Drive using the CD. This tutorial enables you to install, boot and run Ubuntu Linux 7.04 from USB “and save your changes back to the stick”. When booting Ubuntu in persistent mode, it uses a “casper-rw” partition to save your changes back to the drive, restoring them on each boot. The tutorial was written for those already somewhat familiar with working from Ubuntu or another Linux desktop environment. If you do not have access to or prefer not to use a Windows computer, this Ubuntu Linux on a stick tutorial is for you.
Screenshot of Ubuntu 7.04 running from USB:
Ubuntu® is a product of Canonical ltd.
Distribution Home Page: ubuntu.com
Minimum Flash Drive Capacity: 1GB
Persistent Feature: Yes
- CD Burner/Recorder
- 1GB or larger USB flash drive
USB Ubuntu 7.04 installation tutorial:
- Download the Ubuntu 7.04 ISO and burn it to a CD
- Reboot your computer into Ubuntu from the Live CD
- Insert a 1GB or larger USB flash drive
- Open a terminal window and type sudo su
- Type fdisk -l to list available drives/partitions. Note which device is your flash drive (example: /dev/sda) Throughout this tutorial, replace x with your flash drive letter. For example, if your flash drive is sdb, replace x with b.
- Type umount /dev/sdx1
- 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
- Type umount /dev/sdx1 to ensure the 1st partition is unmounted
- Type mkfs.vfat -F 16 -n ubuntu704 /dev/sdx1 to format the first partition
- Type umount /dev/sdx2 to ensure the 2nd partition is unmounted
- Type mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2 to format the second partition
- Remove and Re-insert your flash drive
- Back at the terminal, type sudo apt-get install syslinux mtools
- Type syslinux -sf /dev/sdx1
- Type cd /cdrom
- Type cp -rf casper disctree dists install pics pool preseed .disk isolinux/* md5sum.txt README.diskdefines ubuntu.ico casper/vmlinuz /media/ubuntu704/
- Download this u7fixit.tar file using the archive manager and extract the files within to your “ubuntu704” USB stick
- Reboot your computer and set your system BIOS boot priority to boot from the USB stick.
If everything has gone as it should, you should now be able to boot Ubuntu 7.04 from the USB flash device and it should save your changes, restoring them on boot.
Notes: If your having trouble getting Ubuntu to boot, your memory stick may have a corrupted mbr. To repair the mbr of your USB device, at the terminal type sudo apt-get install lilo then type lilo -M /dev/sdx (replacing x with the letter of your flash device)
By default Ubuntu 7.04 will boot in persistent mode, saving changes to and from the USB device. Optionally, you can type live at boot prompt to boot Ubuntu in live mode without saving/restoring changes.
Install Ubuntu 7.04 to a Flash Drive using the CD published under Old USB installs from Linux/CD