Sunday, May 31, 2009

How to install Ubuntu Linux from USB Stick

This tutorial describes how to install Ubuntu by copying the contents of the installation CD to an USB memory stick (aka flash drive) and making the stick bootable. This is handy for machines like ultra portable notebooks that do not have a CD drive but can boot from USB media.

In short here’s what you do:

Prepare the USB flash drive

Boot the computer from your USB flash drive.

Install Ubuntu as you would from a normal boot CD

Prerequisites

A running Ubuntu 8.04 or any ubuntu version installation

A USB device (stick, pen-drive, USB hard disk) that has already been formatted with FAT32 and has enough free space to hold your Ubuntu installation image

A Ubuntu CD image downloaded from the Ubuntu servers or mirrors (*.iso file) or from here


Step 1

On the root directory of your USB device, create a folder “install”
Copy the installer kernel and the initramdisk into this folder (Download source below.You need the files “vmlinux” and “initrd.gz”).

Download source for the installer kernel and initramdisk

For AMD64 Download from here
For i386 Download from here

You need to download the files “vmlinux” and “initrd.gz”.

Step 2

Note: You need to have the installer that fits the architecture of your Ubuntu version you want to install. In other words, you need a amd64 installer if you want to install an amd64 Ubuntu .iso image and the i386 installer for an i386 iso.

Step 3

From the installation iso image you downloaded, copy the folder “isolinux” to the root directory of your USB device (right-click on the .iso file, choose “extract here”). Rename “isolinux” into “syslinux”. Go inside the directroy “syslinux”. There, rename the file “isolinux.cfg” into “syslinux.cfg”.

Step 4

Make the stick bootable: Use fdisk to set the boot flag,

Install syslinux using the following command

sudo aptitude install syslinux

Now use syslinux to install a boot sector on your USB device

sudo syslinux /dev/sdbX

where sdbX is the device name and number of your USB device, check with “sudo mount”. A file called “ldlinux.sys” will be created in the root direcotry of the USB device.

Step 5

Copy the Ubuntu CD image in the root directory of your USB device (Contents of USB you can see as follows).If you are using i386 you need to copy the complete .iso image in to the root directory of your USB device.

6 comments:

Anonymous said...

Your blog keeps getting better and better! Your older articles are not as good as newer ones you have a lot more creativity and originality now keep it up!

Anonymous said...

Bonjour I'd like to congratulate you for such a terrific made forum!
Was thinking this would be a nice way to introduce myself!

Sincerely,
Monte Phil
if you're ever bored check out my site!
[url=http://www.partyopedia.com/articles/tea-party-supplies.html]tea Party Supplies[/url].

Anonymous said...

[url=http://www.kfarbair.com][img]http://www.kfarbair.com/_images/logo.png[/img][/url]

מלון [url=http://www.kfarbair.com]כפר בעיר[/url] - [url=http://www.kfarbair.com/about.html]חדרים[/url] גדולים אנו מציעים שירותי אירוח מגוונים כמו כן ישנו במקום שירות חדרים המכיל [url=http://www.kfarbair.com/eng/index.html]סעודות רומנטיות[/url] במחירים מפתיעים אשר מוגשות ישירות לחדרכם!

לפרטים נוספים נא לפנות לאתר האינטרנט שלנו - [url=http://kfarbair.com]כפר בעיר[/url] [url=http://www.kfarbair.com/contact.html][img]http://www.kfarbair.com/_images/apixel.gif[/img][/url]

Anonymous said...

Love casinos? affirm this young [url=http://www.realcazinoz.com]casino[/url] advisor and factitious online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also keep our up to the baby [url=http://freecasinogames2010.webs.com]casino[/url] handle at http://freecasinogames2010.webs.com and pick up authentic lolly !
another different [url=http://www.ttittancasino.com]casino spiele[/url] link is www.ttittancasino.com , in compensation german gamblers, offshoot in well-meaning online casino bonus.

Anonymous said...

terminated and out of reach of 21 and quintessential some matured toys? emoluments [url=http://www.avi.vg]sex toys [/url] online, unchecked number of matured toys like [url=http://www.avi.vg/category.php?a=coition4sexx&cid=3]vibrators [/url] and [url=http://www.avi.vg/category.php?a=screwing4sexx&cid=30]dildos [/url]at www.avi.vg , approval to the nature, another finest purlieus to affect up [url=http://www.ewgpresents.com]viagra online[/url] is the all in http://www.ewgpresents.com and the unrivalled ed rx [url=http://www.rxpillsmd.net]online viagra[/url] apothecary www.rxpillsmd.net , and the prime generic [url=http://www.generic4you.com]viagra[/url] utterly at www.generic4you.com or at www.generik4u.com the [url=http://www.generik4u.com]sildenafil citrate[/url] shop.

Anonymous said...

Hello I'd love to thank you for such a great made site!
Was thinking this would be a nice way to make my first post!
The only right way collect fortune it is usually a clever conclusion to start a savings or investing procedure as soon in life as obtainable. But don't fear if you have not started saving your assets until later on in life. Through hard work, that is consulting the best investment vehicles for your assets you can slowly but surely increase your wealth so that it amounts to a sizable sum by the time you wish to retire. Watch all of the applicable asset classes from stocks to real estate as investments for your money. A well diversified portfolio of investments in different asset classes may make your money rise throughout the years.

-Chandra Clavette
[url=http://urwealthy.com]currency exchange rates[/url]