个人工具

“UbuntuHelp:Installation/NetbootInstallFromInternet”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
第2行: 第2行:
 
{{Languages|UbuntuHelp:Installation/NetbootInstallFromInternet}}
 
{{Languages|UbuntuHelp:Installation/NetbootInstallFromInternet}}
 
This HOWTO describes one way to do a Netboot install of Ubuntu 8.04 Hardy by booting from files on a hard disk. This installation method does not require burning a CD (or using any other external media, like a USB key), and it does not require you to configure a server on your LAN for PXE booting.
 
This HOWTO describes one way to do a Netboot install of Ubuntu 8.04 Hardy by booting from files on a hard disk. This installation method does not require burning a CD (or using any other external media, like a USB key), and it does not require you to configure a server on your LAN for PXE booting.
You need to have <code><nowiki>grub</nowiki></code> already installed and bootable in order to use this method. It is therefore suitable for installing Ubuntu over an existing GNU/Linux installation.
+
You need to have <code><nowiki>grub</nowiki></code> or <code><nowiki>grub2</nowiki></code> already installed and bootable in order to use this method. It is therefore suitable for installing Ubuntu over an existing GNU/Linux installation.
 
=== Alternatives ===
 
=== Alternatives ===
 
If the computer you are installing on does not have network connectivity during installation, consider using the [[UbuntuHelp:Installation/FromLinux|Installation/FromLinux]] method, which involves retrieving packages from an ISO instead of from the internet at installation time.
 
If the computer you are installing on does not have network connectivity during installation, consider using the [[UbuntuHelp:Installation/FromLinux|Installation/FromLinux]] method, which involves retrieving packages from an ISO instead of from the internet at installation time.
第10行: 第10行:
 
* http://cdimage.ubuntu.com/netboot/
 
* http://cdimage.ubuntu.com/netboot/
 
Save them somewhere that grub can read from. Inside <code><nowiki>/boot</nowiki></code> is a fine place. (These files are quite small, under 10MB for either architecture.)
 
Save them somewhere that grub can read from. Inside <code><nowiki>/boot</nowiki></code> is a fine place. (These files are quite small, under 10MB for either architecture.)
2. Reboot your computer and press ESC if necessary to enter the grub menu. Now we will get grub to boot from the files you just downloaded.
+
2. Reboot your computer and press ESC if necessary to enter the grub menu (press Shift if you use <code><nowiki>grub2</nowiki></code>). Now we will get grub to boot from the files you just downloaded.
  
 
Press '''c''' to get a grub command prompt. Type each of the following lines:
 
Press '''c''' to get a grub command prompt. Type each of the following lines:
 
<code><nowiki>root (hd0,0)</nowiki></code>
 
<code><nowiki>root (hd0,0)</nowiki></code>
 
Replace the root partition with the drive and partition on which your <code><nowiki>/boot</nowiki></code> is located. You can look at and copy the <code><nowiki>root</nowiki></code> line of any existing boot menu entry if you are at all unsure what this is, or you can try tab-completing after <code><nowiki>root (</nowiki></code> or <code><nowiki>root (hd0,</nowiki></code>.
 
Replace the root partition with the drive and partition on which your <code><nowiki>/boot</nowiki></code> is located. You can look at and copy the <code><nowiki>root</nowiki></code> line of any existing boot menu entry if you are at all unsure what this is, or you can try tab-completing after <code><nowiki>root (</nowiki></code> or <code><nowiki>root (hd0,</nowiki></code>.
<code><nowiki>kernel /boot/path/to/linux</nowiki></code>
+
<code><nowiki>kernel /boot/path/to/linux</nowiki></code> in <code><nowiki>grub</nowiki></code> '''OR'''
 +
<code><nowiki>linux /boot/path/to/linux</nowiki></code> in <code><nowiki>grub2</nowiki></code>
 
<code><nowiki>initrd /boot/path/to/initrd.gz</nowiki></code>
 
<code><nowiki>initrd /boot/path/to/initrd.gz</nowiki></code>
Replace these paths with the actual paths where you saved the files. If you saved them directy in /boot, the paths will be simply <code><nowiki>kernel /linux</nowiki></code> and <code><nowiki>initrd /initrd.gz</nowiki></code>.
+
Replace these paths with the actual paths where you saved the files. If you saved them directy in /boot, the paths will be simply <code><nowiki>kernel /boot/linux</nowiki></code> and <code><nowiki>initrd /boot/initrd.gz</nowiki></code>.
 
<code><nowiki>boot</nowiki></code>
 
<code><nowiki>boot</nowiki></code>
 
Your system should now boot into the Ubuntu installer. Follow the instructions from there.
 
Your system should now boot into the Ubuntu installer. Follow the instructions from there.
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 22:50的最新版本

This HOWTO describes one way to do a Netboot install of Ubuntu 8.04 Hardy by booting from files on a hard disk. This installation method does not require burning a CD (or using any other external media, like a USB key), and it does not require you to configure a server on your LAN for PXE booting. You need to have grub or grub2 already installed and bootable in order to use this method. It is therefore suitable for installing Ubuntu over an existing GNU/Linux installation.

Alternatives

If the computer you are installing on does not have network connectivity during installation, consider using the Installation/FromLinux method, which involves retrieving packages from an ISO instead of from the internet at installation time.

Instructions

1. Download the appropriate initrd.gz and linux files for your architecture and distribution from

Save them somewhere that grub can read from. Inside /boot is a fine place. (These files are quite small, under 10MB for either architecture.) 2. Reboot your computer and press ESC if necessary to enter the grub menu (press Shift if you use grub2). Now we will get grub to boot from the files you just downloaded.

Press c to get a grub command prompt. Type each of the following lines: root (hd0,0) Replace the root partition with the drive and partition on which your /boot is located. You can look at and copy the root line of any existing boot menu entry if you are at all unsure what this is, or you can try tab-completing after root ( or root (hd0,. kernel /boot/path/to/linux in grub OR linux /boot/path/to/linux in grub2 initrd /boot/path/to/initrd.gz Replace these paths with the actual paths where you saved the files. If you saved them directy in /boot, the paths will be simply kernel /boot/linux and initrd /boot/initrd.gz. boot Your system should now boot into the Ubuntu installer. Follow the instructions from there.