个人工具

UbuntuHelp:Installation/FromImgFiles

来自Ubuntu中文

Wikibot讨论 | 贡献2009年5月18日 (一) 16:18的版本 (创建新页面为 '{{From|https://help.ubuntu.com/community/Installation/FromImgFiles}} {{Languages|UbuntuHelp:Installation/FromImgFiles}} Ubuntu is distributed over the Internet as two types of f...')

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

Ubuntu is distributed over the Internet as two types of files: CD image files, called ISOs, and flash image files, called IMGs. To install Ubuntu from flash media, you first need to write the downloaded IMG image to your flash device. This requires a working flash writer (e.g. USB stick, SD reader, etc.), and flash media with sufficient capacity for the install (1 GB or larger is recommended) formatted in FAT32. Commonly, a single USB stick is used to fulfill both requirements. Warning: This will destroy all data on the USB device. Please backup all data to other media before doing this. Be sure to verify that your computer supports booting from the device you selected for installation. Many computers can boot from a USB drive, and some from other sources. Check the documentation on your specific model for the procedure to boot from the selected device. If you have downloaded a ISO image, please refer to BurningIsoHowto The GettingUbuntu page has links to IMG and ISO image files, as well as other methods of GettingUbuntu.

MD5 Sums

Before writing your flash, it is highly recommended that you verify the md5 sum (hash) of the .img file. For instructions, please see UbuntuHelp:HowToMD5SUM. For the current list of Official Ubuntu MD5 hashes, see the MD5SUMS file for the release you're using under http://releases.ubuntu.com (and optionally the PGP|GnuPrivacyGuardHowto|PGP signatures in the MD5SUMS.gpg file), or see UbuntuHashes. This ensures that the file was not damaged during the download process and is 100% intact.

Windows

Graphical Interface

FromImgFiles?action=AttachFile&do=get&target=win32imagewriter.jpg

  1. Download the desired .img file
  2. Download Disk Imager from https://launchpad.net/win32-image-writer/+download
  3. Insert your flash media
  4. Note the drive letter assigned to your flash media
  5. Start Disk Imager
  6. Select the downloaded file and target device, and click "Write"
  7. Remove your flash media when the operation is complete

Command Line Interface

  1. Download the desired .img file
  2. Download flashnul from http://shounen.ru/soft/flashnul
  3. Attach your USB drive
  4. Run flashnul -p
  5. Note the physical device number for the USB drive
  6. Run flashnul <number obtained in prior step> -L \path\to\downloaded.img
  7. Answer "yes" if the selected destination device is correct
  8. Remove your USB drive when the command completes

Ubuntu

Graphical Interface

FromImgFiles?action=AttachFile&do=get&target=usb-imagewriter.png

  1. Download the desired .img file
  2. Install the usb-imagewriter package
  • If your release does not include this, download it from Oliver's PPA
  • If imagewriter fails to launch, you may need to install python glade2 support. Install the python-glade2 package or Run sudo apt-get install python-glade2
  1. Open Applications -> Accessories -> Image Writer
  • KDE users will find this in Applications -> Utilities -> Image Writer
  • on some usb-imagewriter versions (console command: imagewriter) the application fails to write if the image path contains blank spaces, exiting with "IndexError: list index out of range". Also, in case you prefer to launch it from the command line, don't forget to sudo it, otherwise it will give a permission error.
  1. Insert your flash media
  2. Select the downloaded file and flash device, and click "Write to Device"
  3. Remove your device when the operation is complete

Command Line Interface

  1. Download the desired .img file
  2. Open a terminal and insert your flash media
  3. Look at the output of dmesg | tail -20 to determine the device node assigned to your flash media (e.g. /dev/sdb, not sdb1)
  4. Run sudo umount /dev/device/node
  5. Run sudo dd if=/path/to/downloaded.img of=/dev/device/node bs=1M
  6. Remove your flash media when the command completes (you may need to wait a few extra seconds for it to finish)

Mac OS X

Command Line Interface

  1. Download the desired .img file
  2. Open a Terminal (under Utilities)
  3. Run diskutil list to get the current list of devices
  4. Insert your flash media
  5. Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)
  6. Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2)
  7. Execute sudo dd if=/path/to/downloaded.img of=/dev/diskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example, ./ubuntu.img)
  8. Run diskutil eject /dev/diskN and remove your flash media when the command completes