In my last post I had vented my disapproval at Ubuntu 9.04 being not up to scratch. But I really wanted to use this latest version of my favourite distribution. So I thought of an alternate way to install it onto a flash drive without creating any new partitions. I have a 4 GB Buffalo flash drive, which is quite ample for a default Ubuntu install. This is how I accomplished it:
1. Install Ubuntu inside Windows using WUBI:
a. Choose ‘Install inside Windows’ option:
b. Set the size of the install to a capacity that is less than your flash drive. My drive can hold 4 GB, so I chose 3 GB:
![]()
c. The installation process will begin, and after it ends, reboot your PC.
![]()
2. After reboot, choose Ubuntu from the boot menu. Then Ubuntu will install on to the loopback device. (The space you allocated during install has been used to create a virtual loopback device that Ubuntu will use as a hard disk partition.)
3. After installing Ubuntu, reboot with a Linux Live CD(which includes gparted) inserted in the drive, and then insert the flash drive in which you intend to install Ubuntu.
4. Run gparted. This is used to edit partitions. Format your flash drive using NTFS. Then set the boot flag active.
Note: This can also be accomplished by the HP Windows Format Utility for USB Drives on Windows.
5. Copy the following files to your flash drive:
boot.ini
NTDETECT.COM
ntldr
wubildr
wubildr.mbr
ubuntu – folder
6. Edit the boot.ini file:
Original file:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
C:wubildr.mbr = "Ubuntu"
Modified file:
[boot loader]
timeout=30
default=C:wubildr.mbr
[operating systems]
C:wubildr.mbr = "Ubuntu"
This makes sure that your flash drive has only Ubuntu, and it’ll boot into Ubuntu on any computer.
7. In your flash drive, navigate to ubuntudisksbootgrub and open menu.lst with a text editor. Search for the string root=UUID , and change all occurrences from root=UUID=<some_number> to root=LABEL=USB.
8. Now reboot your system off the flash drive, and Ubuntu will be up and running!
9. Install a few necessary packages, I chose to install: Adobe Flash player, plugins for proprietary media formats (restricted packages) and Eclipse. You can install as many packages as you want, which of course depends upon how large your flash drive is.
10. Now you have a portable computer that you can use on any PC without needing to fear about privacy or security.

