4.4. 为从硬盘引导准备文件

安装程序可以从硬盘分区上面用引导文件引导。它们可以在其它操作系统下面启动,或者直接使用 BIOS 提供的引导装载程序直接启动。

A full, pure network installation can be achieved using this technique. This avoids all hassles of removable media, like finding and burning CD/DVD images.

4.4.1. Hard disk installer booting from Linux using GRUB

This section explains how to add to or even replace an existing linux installation using GRUB.

At boot time, GRUB supports loading in memory not only the kernel, but also a disk image. This RAM disk can be used as the root file-system by the kernel.

Copy the following files from the Debian archives to a convenient location on your hard drive, for instance to /boot/newinstall/.

  • vmlinuz(内核二进制文件)

  • initrd.gz (内存虚拟磁盘映像)

如果您只愿意使用硬盘引导,然后从网络下载其他文件,需要下载 netboot/debian-installer/amd64/initrd.gz 文件及其对应的内核 netboot/debian-installer/amd64/linux。这将允许您重新分区用于引导的硬盘,需要小心操作。

Alternatively, if you intend to keep an existing partition on the hard drive unchanged during the install, you can download the hd-media/initrd.gz file and its kernel hd-media/vmlinuz, as well as copy an installation image to the hard drive (make sure the file is named ending in .iso). The installer can then boot from the hard drive and install from the installation image, without needing the network.

最后,要配置 bootloader,请进入 第 5.1.5 节 “Booting from Linux using GRUB

4.4.2. Hard disk installer booting from DOS using loadlin

本节将说明如何用 loadlin 从 DOS 启动安装程序准备您的硬盘。

Copy the following directories from a Debian installation image to c:\.

  • /install.amd (二进制和 ramdisk 映象)

  • /tools (loadlin 工具)