5.1. 在 64-bit PC 上引导安装程序

[警告] 警告

假如您的机器上有其他的操作系统,并希望保留(多重启动设置),您要确保它在启动安装程序之前正确地被关闭。在另外一个操作系统休眠时(中断并保存到磁盘)进行安装,被中断的操作系统的状态信息可能会丢失或者损坏,再次启动将会出现问题。

[注意] 注意

关于如何引导图形安装程序,请参阅 第 5.1.8 节 “The Graphical Installer”

5.1.1. 从 U 盘引导

假设您已经准备好了从 第 3.6.2 节 “选择引导设备”第 4.3 节 “为从 U 盘引导准备文件” 的所有步骤。现在只需插入 U 盘到一个空的 USB 插槽并重启。除非您使用了灵活方式创建 U 盘并不激活,系统应该引导,并看到一个 boot: 提示符。此时您可以输入一些引导选项,也可以直接按 Enter

5.1.2. 从 CD-ROM 启动

如果您有此套件,并且如果您的机器支持直接 CD 引导,太棒了!只需要配置您的系统可以用 CD 启动,参见 第 3.6.2 节 “选择引导设备”, 插入您的 CD,重启,然后继续下一章。

注意某些特定的 CD 驱动器需要一些特殊的驱动程序,因此他们可能在安装的早期不能被访问。如果从 CD 引导的标准方法不能用于您的硬件,阅读本章中关于其他种类的内核以及安装方法,它们有可能能解决问题。

即便您不能从 CD-ROM 引导,依然可以安装 CD-ROM 上面的 Debian 系统组件和所有软件包。这只要使用不同的媒介引导,比如软盘。当安装操作系统、基础系统和任意附加的软件包时,只需将安装系统指向 CD-ROM 驱动器即可。

如果您遇到引导方面的问题,请参见 第 5.4 节 “安装过程中的故障修复”

5.1.3. 从 Windows 引导

从 Windows 下启动安装程序,您可以

假如您使用的是安装 CD 或 DVD,在插入盘片的时候,预安装程序会自动加载。如果 Windows 没有自动运行,或者您使用的是 USB 存储卡,您可以访问该设备手动执行 setup.exe 程序。

程序运行后,会先询问一些预备问题,接着系统就准备重启进入 Debian GNU/Linux 安装程序。

5.1.4. 从 DOS 引导

要启动到 DOS (非 Windows),您可以从一个用于恢复或诊断的磁盘引导。

如果您可以使用安装 CD, 请切换到 CD-ROM 驱动器,例如.

d:

,或者确认您已依照 第 4.4.2 节 “硬盘安装程序引导使用 loadlin 指引准备好了硬盘, 然后切换到该磁盘。

进入您选择的 flavor 子目录,如,

cd \install.amd

如果您希望使用图形安装程序,请进入 gtk 子目录。

cd gtk

然后,执行 install.bat。内核将会加载并运行安装程序。

5.1.5. 引导 Linux 使用 LILOGRUB

为了从硬盘引导安装程序,您首先必须按照要求下载并且放置所需的文件,请参见 第 4.4 节 “为从硬盘引导准备文件”

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

另一种方法,可以在安装时保持原硬盘的分区不变,您需要下载 hd-media/initrd.gz 文件以及对应的内核,还需要一个 CD(或者 DVD) iso 文件的副本放在硬盘上(确认文件名是以 .iso 结尾的)。这样安装程序就可以从硬盘引导,并从 CD/DVD 映像文件上安装,而不使用网络。

如果采用 LILO,您需要在 /etc/lilo.conf 中配置两件最基本的事情:

  • 在引导时装入 initrd.gz 安装程序;

  • vmlinuz 内核使用一个内存虚拟磁盘作为它的根分区。

这里是一个 /etc/lilo.conf 的例子:

image=/boot/newinstall/vmlinuz
       label=newinstall
       initrd=/boot/newinstall/initrd.gz

欲获知更多细节,请参阅 initrd(4)lilo.conf(5) man 手册。现在运行 lilo 并且重新启动。

使用 GRUB1 的过程也类似。在 /boot/grub/ 目录下找到 menu.lst (或者位于 /boot/boot/grub/),然后给安装程序增添一个入口,例如(假设 /boot 位于系统中第一个磁盘的第一个分区上面):

title  New Install
root   (hd0,0)
kernel /boot/newinstall/vmlinuz
initrd /boot/newinstall/initrd.gz

使用 GRUB2 的过程类似。它使用 grub.cfg 替代 menu.lst 文件。安装程序的入口,例如:

menuentry 'New Install' {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
linux /boot/newinstall/vmlinuz
initrd /boot/newinstall/initrd.gz
}

从这里开始,下面采用 GRUBLILO 将没有什么差别。

5.1.6. 用 TFTP 引导

从网络引导需要已经具备网络连接和一台 TFTP 网络引导服务器(DHCP、RARP 或 BOOTP)。

支持的网络引导安装方法在 第 4.5 节 “为使用 TFTP 网络引导准备文件”

在 i386 体系上有很多方法用 TFTP 进行引导。

5.1.6.1. 支持 PXE 的网卡或者主板

您的网卡或者主板可能已经提供了 PXE 引导功能。它是 Intel™ TFTP 引导的实现。如果是这样,您可以配置 BIOS 用网络进行引导。

5.1.6.2. 网络 BootROM 的网卡

您的网卡很有可能提供了 TFTP 引导功能。

5.1.6.3. Etherboot

etherboot project 提供了为 TFTP 引导所需要的引导软盘甚至是引导 ROMS 。

5.1.7. 引导界面

When the installer boots, you should be presented with a friendly graphical screen showing the Debian logo and a menu:

Installer boot menu

Install
Graphical install
Advanced options             >
Help
Install with speech synthesis

[注意] 注意

This graphical screen will look very slightly different depending on how your computer has booted (BIOS or UEFI), but the same options will be shown.

Depending on the installation method you are using, the Graphical install option may not be available. Bi-arch images additionally have a 64 bit variant for each install option, right below it, thus almost doubling the number of options.

普通安装时,选择 InstallGraphical install 入口 — 可以使用键盘方向键或者键入(高亮的)首字母,默认 Install 入口已经选中 — 然后按下 Enter 引导安装程序。

Advanced options 选项用于访问第二层菜单,引导安装程序进入 expert 模式、rescue 模式和自动安装。

如果您希望或者需要添加引导参数给安装程序或内核,按下 Tab。将显示对应菜单项的默认引导命令,并允许添加额外的选项。帮助界面(下方)列出一些可能的选项。按下 Enter 将使用您的选项引导安装程序;按下 Esc 返回引导菜单并放弃您所做的修改。

选择 Help 项将进入第一个帮助界面,显示可用的帮助界面概要。当出现帮助界面后要返回引导菜单,需要在引导提示符后输入 'menu' 并按 Enter。所有的帮助界面在引导命令可以输入的地方都有一个引导提示:

Press F1 for the help index, or ENTER to boot:

在这个引导提示的地方您可以按下 Enter 使用默认的选项引导安装程序,或者输入指定的引导命令以及引导参数。一些可用的引导参数可能会在多个帮助界面看到。假如您要添加任何参数到引导命令行,确保首先输入的是引导方法(默认为 install),然后在第一个参数前要有空格(例如:install fb=false)。

[注意] 注意

此时键盘假设使用的是默认美式英文布局。这意味着如果您的键盘使用不同的(特定语言的)布局,显示在屏幕上的字符可能与您键入参数时希望的不同。维基百科里面有一个 schema of the US keyboard layout 条目说明了如何找到要使用正确的键。

[注意] 注意

如果您使用 BIOS 配置为串口控制台的系统,可能在启动安装程序的时候无法看到起始图形界面;甚至无法看到引导菜单。这种情况同样会发生在您使用远程管理设备安装系统,并且这些设备提供了字符界面到 VGA 控制台的情况下。比如 Compaq 的 integrated Lights Out (iLO) 和 HP 的 Integrated Remote Assistant (IRA)。

要跳过图形引导界面,您可以在没有任何显示时按下 Esc 得到字符引导提示符,或者(同样没有任何显示)按下 EnterH 选择上面描述的 Help 选项。以后输入就会在提示符后面显示。要防止余下的安装仍使用 framebuffer,您还需要在启动提示后添加 vga=normal fb=false,这在帮助里面有说明。

5.1.8. The Graphical Installer

The graphical version of the installer is only available for a limited number of architectures, including 64-bit PC. The functionality of the graphical installer is essentially the same as that of the text-based installer as it basically uses the same programs, but with a different frontend.

Although the functionality is identical, the graphical installer still has a few significant advantages. The main advantage is that it supports more languages, namely those that use a character set that cannot be displayed with the text-based newt frontend. It also has a few usability advantages such as the option to use a mouse, and in some cases several questions can be displayed on a single screen.

The graphical installer is available with all CD images and with the hd-media installation method. To boot the graphical installer simply select the relevant option from the boot menu. Expert and rescue mode for the graphical installer can be selected from the Advanced options menu. The previously used boot methods installgui, expertgui and rescuegui can still be used from the boot prompt which is shown after selecting the Help option in the boot menu.

There is also a graphical installer image that can be netbooted. And there is a special mini ISO image[5], which is mainly useful for testing.

Just as with the text-based installer it is possible to add boot parameters when starting the graphical installer.

[注意] 注意

The graphical installer requires significantly more memory to run than the text-based installer: 229MB. If insufficient memory is available, it will automatically fall back to the text-based newt frontend.

If the amount of memory in your system is below 112MB, the graphical installer may fail to boot at all while booting the text-based installer would still work. Using the text-based installer is recommended for systems with little available memory.



[5] The mini ISO image can be downloaded from a Debian mirror as described in 第 4.2 节 “从 Debian 镜像服务器下载文件”. Look for netboot/gtk/mini.iso.