Create a Bootable Ubuntu USB Flash Drive the Easy Way
We've already covered how to use an Ubuntu Live CD to backup files from your dead Windows computer, but using the boot cd can sometimes be a little slow. We can speed up the booting process by installing Ubuntu to a bootable USB flash drive instead.
To accomplish this, we'll use a tiny software package called UNetbootin, which is designed to make the installation process simple and easy.
Create the Bootable Flash Drive
You'll first need to download the UNetbootin software and save it somewhere useful, since there's no installation required, just double-click to run.
I chose to use an already downloaded ISO image of the Ubuntu installation cd, and then chose my flash drive, and clicked the OK button. Yes, this step is as simple as that.
The process will extract the files from the ISO image (or download them), copy them to the flash drive and then install the bootloader. Depending on what you are installing, this really doesn't take very long.
Once the process is completed, you'll be prompted to reboot… which you don't necessarily have to do unless you want to test booting the flash drive on the same machine you are using.
Otherwise you can hit the Exit button.
Make Sure the Partition is Active
If you get a boot device error when you try and boot from the flash device, it could be that your partition is not marked as active. What we'll do is use the command line diskpart utility to fix this… if you are in Vista open an administrator mode command prompt by right-clicking and choosing Run as Administrator.
Now you'll need to run this command to figure out the number of your flash drive:
list disk
This will show you the list of drives, and you will use the disk number in the "select disk" command:
select disk 1
select partition 1
active
The "active" command will actually mark the current partition as active, which is why you need to select the disk and then the partition. At this point you should be done.
Booting From the Flash Drive
Now that you are all finished, you can try and boot from the flash drive. Every BIOS is different, but most of them will have a message like "Press F12 for the Boot Menu", which is highly suggested. The boot menu will allow you to select the USB drive as the boot device. (apologies for the simply horrible camera phone screenshots)
Instead of the regular Ubuntu boot menu that you might be used to seeing, you will see the UNetbootin menu, which has essentially the same options.
Useful Note
If you are having issues booting Ubuntu Hardy (8.04) on a Dell machine, you might want to switch back to using Ubuntu 7.10 instead.
I was able to boot all the way into the desktop in about 35 seconds using the flash drive… way faster than using the regular live cd.

Stay tuned, we're going to explore even more options for bootable CDs and USB drives that help you repair your computer.


Excellent tip, I discovered this last week as I got the Asus Eee box and wanted to put Kubuntu on it and after a little googling I ran into UNetbootin and it works like a charm.
What size USB Flash Drive would you suggest?
@Peter
That's a good question, I forgot to include it… you'll probably need a 1GB or larger drive to be able to fit the contents of the ISO image.
What a nice surprise in my E-mail in-box this morning. Finally a small installer program that doesn't require a 100 page explanation and 10 re-compiles to get a program to run on a machine or device. Hats-Off to the folks over at Source Forge AND to The-Geek for another Great How-To Article.
Rick P.
any tips on to bootup linux distros from portable hdds
Great article. Is it possible to have an fully customised Ubuntu ditsro installed on the USB stick?
Is it possible to do same with CD? How ?
I might've missed it, but does this process create a USB-based disc that allows for persistent writes? That is, a fully editable environment? Or is this merely a USB-based "Live CD"?
Although I did not use the program for hard disks just yet, I understand you would then select Hard Disk and then select the drive letter for your USB-based device. Or just use the USB device, it being a hard disk instead of flash memory. This should be the same as for the software installation/download on the device.
It probably wouldn't hurt to have a Two Gig Flash Drive for this, that way you always have extra space for added programs, backups, etc.
Hi, this boot disk is working, however not seem to be persistent. So no changes will be saved.
I tried the latest Puppy Linux on a 512MB stick and it works good. It will allow you to save changes and data to a save file of some kind.
does this install to the thumb or write over HD and windows install … dont really want that (yet) till I have driven and see how the games do … then maybe kick vista to the curb … thanks for help.
noonish, this is a live cd-type thang: doesn't touch your HD.
sweet … I have the flash drive with the live but havent done the install … gonna work on it next … many thanx, noobish
Dear Geek,
Excellent website and tips! Just created my UBUNTU USB and it works great, except it will not connect to the wireless signal. I tried it on two different laptops without results.
Also, is it possible to add items to the UBUNTU, such as a Virus Scanner and a Windows Boot Sector repair tool?
Daniel
Argghhh help. I've followed all your steps Mr Geek but when I go2 my boot menu on my Dell Pheonix Award Bios and select USB its goes threw and say 'unable to load bootmgr'
Don't people see the sad irony in using Windows and Windows utilities to create Linux/Ubuntu setups? Ubuntu on a USB stick is a great idea. Using Windows to accomplish it, not so much.
Thanks for the article.
Has anyone created the "ultimate USB key" that boots Linux and Windows PE?
I play with this occasionally and can get one OS to install/boot from the USB key but not both.
I'd be willing to pay for the details.
Mike Honeycutt
Great piece of advice!
Thanks very much for such a kind supoort.
Awesome..
so what do you do when the USB thumb wont show up after entering 'list disk'.
two brand new 4GB Kingston 'data travelers'
they show when you list volume but not list disk. They work for data transfer and benchmark fine. just an issue with the brand/make
thoughts?
I've been quite happy with my Kingston data traveler (4GB). I've made and destroyed several bootable drives on it, most recently a puppy linux to run on my eee when I borked the Asus, somehow (can one EVER learn enough Linux to stop doing that?).
As for the fool who doesn't understand the definition of "irony"… well, if all one has is Windows but one would verymuch like to experience non-Windows, what are the alternatives? It's not ironic, it's cleverly using Windows against itself.
Hay, i figured it out.
XP uses Diskpart v5 and vista is v6. v6 wont run in xp cause of the way cmd's been restructured in vista but thats whats letting you change the thumb 'volume' to a 'disk'.
So XP users, go here. http://www.eeeguides.com/2007/.....thumb.html
and just point it to a linux iso. Its a bit more work but do-able.
Otherwise thanks for the post. unfortunately one more reason to move to vista XD
Best idea ever. Here's the challenge: When I run diskpart in XP, it only sees the 3 hard drives and doesn't find the USB thumbdrives. If I open another command prompt and do dir j:, the contents of the thumbdrive show up fine. They just won't boot and diskpart is unable to locate them to make them active. I'm hoping for another way to activate those partitions - perhaps a command in Linux.
Similar to another user above, in XP the thumbdrive is considered a volume instead of a partition, so when I select volume 2 (the thumbdrive with the recently installed but unbootable Linux version) and then select partition 1 of that volume, I get the error that it's a volume, not a partition. Got to be an easier way in Linux.
Hey, it's warking! Thanks a million. I'ts beautiful. Ok, now I need help.
I need a C compiler (gcc), and the mic1 simulator for programming (.ijvm).
Where can I find them? How Do I add them? I'm new at Linux! I may need details. Please help me… e-mail me any information available. This greek student is forever grateful.
Also, I tryied To update and got that message about bugs.
I put it on my 512 mb cruzer micro,then did everything including diskpart,and I have a few problems.
* Does not boot from flash drive with correct settings
* Diskpart does not show my flash drive
What can the problem be?
As far as bootable USB flash, this is great for other Linux flavors. Since the release of WUBI this is completely unnecessary. No need to partition or even burn your CD, just mount the ISO with D-Tools (or similar) and choose "Install Inside Windows" in the autorun menu.
James Charlton, How did you get the usb_prep to point to a linux ISO? For me it's only looking for XP.
Nifty! Love it!!! Thanks, guys!
Hi,
I tried this with the kubuntu-8.10-alternate-amd64.iso image on a USB stick, but the installation failed as it did not find any /dev/scd0 device.
Hi Fred,
I had the same / similar issue trying to use Ubuntu Studio 8.04 (http://ubuntustudio.org/), a specialized Ubuntu distro that I believe is based on the alternate installer. Anyhow, the iso for it is a DVD iso, and I have no DVD burner, so I thought I might be able to get around that by putting it on my USB flash stick, as described above.
I copied the files on and booted from USB without a hitch. It would boot into the install, and do the first two steps (language and keyboard detection / selection), but then it got hung up because it said it couldn't find the CD.
Anyone know any possible tips / workarounds for this situation? Any way to tell the installer where to look for the files, to point it to the USB drive, or something?
Hi Aaron,
I finally found out how to work around it.
1) go to http://archive.ubuntu.com/ubun...../hd-media/ and get the initrd.gz and vmlinuz files [assuming you want the 64-bit installer, otherwise it's the installer-i386/ directory]
2) run UNetbootin and select a custom distibution. You may set the Kernel and Initrd you just downloaded, though the generated files (ubninit and ubnkern) won't be used (see step 5)
3) copy the contents of the 'isolinux' dir on the install iso into the root dir on the usb stick
4) delete the syslinux.cfg file in the root dir and replace it by renaming isolinux.cfg to syslinux.cfg
5) create a folder on the usb stick called 'install' and copy initrd.gz and vmlinuz into it (they will override ubninit and ubnkern in the usb drive's root)
6) copy the ubuntu iso you wish to install onto the root of the usb stick
7) reboot from usb. it will automatically find and mount the iso for install.
That worked out for me, hope it will be useful to you, as well (note, I don't specifically know about Ubuntu Studio, but *in principle* it should be the same)
Hey Fred,
Thanks for the tip! I'll give it a try, and post the results if I get the chance.
Sounds like that's an easier way to go anyhow, since you don't have to go through the lengthy process of UNetBootIn extracting everything from the iso and copying it to the disk; you just copy the iso.
Thanks!
Aaron