个人工具

UbuntuHelp:Installation/FromUSBStick

来自Ubuntu中文

Wikibot讨论 | 贡献2009年11月17日 (二) 19:30的版本

跳转至: 导航, 搜索


This page gives instructions on how to run Ubuntu from a USB flash drive for installation or other purposes. This may be necessary for netbooks and other computers without CD drives and is handy for others because the thumb drive is so easy to use. The Ubuntu 9.10 CD/DVD ISO images come with the necessary Windows and Linux utilities to get the system on a thumb-drive. For Custom, manual, older versions, and technical instructions and troubleshooting see: USB Installation Media. There are also network installation options available. You can also see the instructions for USB drives from the official Install Guide.

Known Issues

9.10 netbook remix does not bring up broadcom wifi automatically, one will have to install it, then navigate the USB drive to pool and install a few packages manually with dpkg to get networking up. https://bugs.launchpad.net/ubuntu/+source/jockey/+bug/449268 If you just get a black screen when booting from USB, using the setting "Discarded on shutdown, unless you save them elsewhere" in usb-creator might help. http://forum.eeeuser.com/viewtopic.php?pid=658619

Gather Prerequisites

Installation Type

Netbook Remix

  • 1GB thumbdrive with everything backed up elsewhere
  • iso image file, or cd and another computer ubuntu-netbook-remix iso, or kubuntu-netbook iso, or
  • Optional, large capacity SD card for storing ISO and or backing up data

Desktop or Server

  • 2GB thumbdrive, or just do network install

Computer used to make USB disk

Windows

  • Virtual Clone Drive, or other iso reading software or CD burner and blank disk, (or disk)
  • what level access to a computer?
  • usb-creator.exe comes with the .iso

Linux

  • usb-creator (sudo apt-get install usb-creator)
  • administrator priviledges on computer used to set up thumb drive

Acquire (k/x/media)Ubuntu ISO

netbook / 32bit / 64bit, kubuntu, etc See ... (presumably you know what kind you want). Disk from friend, download, order one.. etc.

Copy files to USB stick

ISO to USB Stick USB-creator Method

From Linux

  • The utility: usb-creator can be installed normal way with apt if not allready present on your system
  • run usb-creator
  • Top Pane, You will have to click "other", locate and select the .iso image
  • Plug the- to-be-nuked- USB thumb drive into the computer, it should show up in the bottom pane.
  • You will probably have to click format, make sure you have the right device!
  • There are bugs with the formatting, It may show up as two partitions, try selecting each of them (sdb sdb1 on mine, but this changes), one should work, if not restart the computer and try again.

If you get a DBus error with USB creator: this bug report maybe helpful: https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/458334

From Windows

burn the iso file or use use virtual clone drive to access the files within the image. usb-creator.exe is located in the CD image. Does not exist on the 9.10 i386 image. You won't be able to select the USB drive if it wasn't formatted in a way that windows can see it. You may have to format it using explorer, then it will show up in the creator tool Alternatively you can use Unetbootin to create a bootable usb drive. http://unetbootin.sourceforge.net/

Boot the Computer From USB

Most newer computers can boot from USB, You will have to go to the bios, and put either removable drives, or USB media before the hard drive. This is computer dependant, and it also depends on which way the USB drive was formatted, on a Dell Mini 9, it may show up as either, so it may make sense to review settings again.

9.04 and before .img for netbook

If you have downloaded a .img file, please refer to the .img writing documentation

Prepare the USB Drive

  • check the usb drive for files and back them up if needed, all contents will be destroyed.
  • 1gb minimum for netbook, may be higher for other types.
  • The windows utility won't let you select the usb drive if the drive isn't properly formatted and mounted.

Booting from a USB drive created with this utility will behave just as if you had booted from the install CD. It will show the language selection and then the install menu, from which you can install Ubuntu onto the computer's hard drive or launch the LiveCD environment.

Linux

The Ubuntu USB desktop image creator is available in the package usb-creator, usb-creator-kde on Kubuntu, or usb-creator-gtk on 9.10. From the 8.10 release on (9.10 on for Kubuntu), Ubuntu includes the usb-creator by default on all live CDs and installations. You can find it in System-->Administration-->Create a USB startup disk (Ubuntu Desktop) or K-Menu-->Applications-->System-->USB Startup Disk Creator (Kubuntu), if it is not there then as normal run the following command in the terminal :

sudo apt-get install usb-creator

Make sure the software-sources are activated if you are on a live cd (software sources or `sudo gedit /etc/apt/sources.list`). You may need to install the python-gnome2 package as well. It should do everything needed you just need to have a live cd in you CD-Rom or show the usb-creator the ISO image of it and the rest of the process is automatic! (for more info how to use this tool directly by just popping in a liveCD to a Drive in a running Ubuntu desktop see also "Live USB creator" below, note that it also works directly with downloaded .iso images) If the progress bar proceeds very slowly (1% every 10 seconds or so) you may want to make sure your usb stick is mounted without the "sync" option. This seems to work around single-byte writes bug in Jaunty's usb-creator. 模板:Https://wiki.kubuntu.org/Kubuntu/Netbook?action=AttachFile&do=get&target=screenshot-usb-creator.png

Windows

This method is recommended if you are creating Linux installation to coexist with your existing Windows installation.

  • Find a usb-creator app and run it

Being moved

The mainstream method for 9.10 is using ISO cd images and usb-creator. The process can be outlined in four steps:

  • Acquire the right Ubuntu installation files and tools
  • Get Ubuntu onto your USB Flash Drive
  • Configure your computer to boot from USB Drive and boot from it
  • Install Ubuntu -- works like normal