install linux to usb,How to install Ubuntu Linux from USB Stick

本文指导如何将Ubuntu 8.04安装ISO内容复制到USB,以便于在没有光驱的超薄笔记本上进行安装。步骤包括:格式化USB设备、下载并复制安装所需文件、设置启动选项、安装Ubuntu。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

April 16, 2008 · ·

If you're new here, you may want to subscribe to my . Thanks for visiting!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

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.

81aef791d61ed0a4953d3be6cfd55b51.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值