I woud say not to copy paste the commands as this can lead to errors on your side.
Insert the pen drive in the USB slot and wait until Ubuntu mounts it.
You must get the location where the USB drive mounts and this is the most critical step. Type the following and notice the mounting point where the USB drive is located:
This command should give you all the drives that are available. In my case my USB drive mounting point shows up like this along with the other drives:
/dev/sdb1 vfat 957M 704M 254M 74% /media/disk
From now on I will refer to my mounting point as: /dev/sdb1 in your case you will need to change this to the one you obtained from the df -hT command.
Install the following two packages: syslinux mtools
sudo aptitude install syslinux mtools
Next we need to download the kernel that is going to boot the pen drive. Change the feisty part below to the release that you will be installing. Keep in mind that this is a i386 machine and you need to change accordingly. http://archive.ubuntu.com/ubuntu/dists/feisty/main/installer-i386/current/images/hd-media/
Download these two files:
Next download the Alternate CD iso image from the Ubuntu download page. Keep in mind that this installation only worked for the Alternate CD. I tried doing a regular Desktop install but the process failed on me.
In this case my iso file name is: ubuntu-7.04-alternate-i386.iso
Unmount the flash drive by typing:
sudo umount /dev/sdb1
Now lets partition the pen drive with this command:
/dev/sdb is the actual mounting point I mentioned above. Notice that you do not need the number 1 at end. Using the incorrect mounting point will erase your hard drive. Be Careful.
Keep in mind that we are going to erase all the data in the flash drive.
Do the following while in the cfdisk partitioning program:
- Erase any existing partition and then create a new "Primary Partition."
- Press "t" to select the partition type. Enter "0B" for a FAT32 partition.
- Make the partition bootable.
- Write the partition changes and exit the cfdisk program.
mkdosfs -F32 -v /dev/sdb1
Note that if the above command failed you need to make sure the USB drive is unmounted.
Install the boot loader in the flash drive first partition:
Mount the flash drive and copy to it the files downloaded above:
Create a new file in the pen drive with the following 2 lines:
append initrd=initrd.gz ramdisk_size=700000 root=/dev/ram rw
Save the file with this name: syslinux.cfg
Your pen drive should now have 5 files in the same place:
We are done. Now you will need to go into your computer's BIOS during boot. Select that you wish to boot from the USB device first instead of going to the Hard Drive or CD-ROM.