USB Xubuntu 8.04.1 Persistent install from Live CD- done
The tutorial will cover the process of installing Xubuntu 8.04.1 Hardy Heron to a USB flash drive via a running Xubuntu 8 Live CD. Xubuntu uses the xfce desktop environment. The xfce desktop environment is a slim yet very powerful GUI. Making Xubuntu less of a resource hog than KDE or Gnome. Xubuntu works well on slower or older computers. In this Linux USB installation tutorial, the casper persistence feature is used to retain and retrieve changes on subsequent boots.
It is important to note that it works using Xubuntu 8.04.1 only.
Prerequisites for Xubuntu 8.04.1 USB installation:
Let’s have a look at the pre requisites for Xubuntu 8.04.1 USB installation
• CD Drive and the Xubuntu 8.04.1CD
• Working internet connection
• 1GB or larger USB flash drive
How to install Xubuntu 8.04.1 to a USB flash drive:
Please follow the steps as required for installing the Xubuntu 8.04.1 to a USB flash drive:
1. Download the Xubuntu 8.04.1 ISO and burn it to a CD
2. Restart your computer, booting from the Xubuntu 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
o type p to show the existing partition and d to delete it
o type p again to show any remaining partitions (if partitions exist, repeat the previous step)
o type n to make a new partition
o 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
o type n to make another new partition
o 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 xubuntu8 /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. Type cd /cdrom
16. Type cp -rfv casper dists install pics pool preseed .disk isolinux/* md5sum.txt README.diskdefines casper/vmlinuz /media/xubuntu8/
17. Type cd /media/xubuntu8
18. Type wget pendrivelinux.com/downloads/xu8/syslinux.cfg
19. Type cd casper
20. Type rm initrd.gz
21. Type wget pendrivelinux.com/downloads/xu8/initrd.gz
22. Reboot your computer and set your BIOS boot priority or Boot Menu to boot from the USB device. Save your changes and proceed to boot from the USB device
You should now be booting Xubuntu 8.04 from the USB flash device. Xubuntu should automatically save your changes as you go and restore them on subsequent boots.
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)













