下一页 上一页 目录

3. 简单配置

大多数 Lilo 安装使用如下所示的配置文件

boot = /dev/hda   # or your root partition
delay = 10        # delay, in tenth of a second (so you can interact)
vga = 0           # optional. Use "vga=1" to get 80x50
#linear           # try "linear" in case of geometry problems.

image = /boot/vmlinux  # your zImage file
  root = /dev/hda1     # your root partition
  label = Linux        # or any fancy name
  read-only            # mount root read-only

other = /dev/hda4   # your dos partition, if any
  table = /dev/hda  # the current partition table
  label = dos       # or any non-fancy name

如果需要,您可以拥有多个 “image” 和 “other” 区段。在您的 lilo.conf 中配置多个内核镜像并不罕见,特别是如果您保持内核开发的最新状态。

3.1 如何处理大型内核

如果您编译了一个 “zImage” 内核,并且它太大而无法放入半兆字节(这在新 2.1 内核中很常见),您应该构建一个 “big zImage” 来代替:``make bzImage``。要启动大型内核镜像,不需要任何特殊操作,但您需要 Lilo 版本 18 或更高版本。如果您的安装版本较旧,您应该升级您的 Lilo 软件包。

3.2 如何从 'LILO boot:' 菜单启动 Windows NT

在这里,我将给出一个例程顺序,如果您想在 Lilo 菜单下同时拥有 Linux 和 NT 条目,您必须执行这些步骤

3.3 如何从 'LILO boot:' 菜单启动 Windows 2000

好吧,您可以按照上面描述的相同步骤操作。我建议您阅读 Linux+WindowsNT 迷你教程,其中也讨论了启动 Windows 2000,它安装在与 Windows NT 之前 相同的磁盘部分。在那里,您会找到有关各种 Linux+WinNT/2000/98 组合的许多有用细节。


下一页 上一页 目录