Users Guide
3. 如果 /etc/grub.conf 包含 splashimage 指令,必须将其注释掉。
表 D-1. 示例文件:/etc/grub.con
有关编辑 grub.conf 的其它信息:
1. 可能需要禁用 GRUB 的图形界面并转而使用基于文本的界面;否则,GRUB 屏幕将不会在 BMU 控制台重定向中显示。 要做到这一点,注释掉以 splashimage 开头的行。
2. 如果在 GRUB 中有多个选项并且希望所有选项都通过 BMU 串行连接启动控制台会话,则为所有选项添加 console=ttyS1,19200。 以上示例只显示将 console=ttyS0,19200
添加到第一个选项。
在引导后启用登录到控制台
如下编辑文件 /etc/inittab:
添加新行在 COM1 串行端口上配置 getty:
co:2345:respawn:/sbin/agetty -h -L 19200 ttyS0 vt100
请参阅示例文件,其中显示添加了新行。
表 D-2. 示例文件:/etc/innitab
#grub.confgeneratedbyanaconda(anaconda生成的 grub.conf)
#
Note that you do not have to rerun grub after making changes to this file
(更改文件后不必重新运行 grub)
#NOTICE:Youdonothavea/bootpartition.Thismeansthat
#allkernelandinitrdpathsarerelativeto/,e.g.
# (注意:没有 /boot partition。这表示
#所有内核和 initrd 路径都相对于 /,例如)
#root (hd0,0)
#kernel/boot/vmlinuz-version ro root=/dev/sdal
#initrd/boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=10
#splashimage=(hd0,2)/grub/splash.xpm.gz
serial --unit=0 --speed=19200
terminal --timeout=10 serial
title Red Hat Linux Advanced Server (2.4.9-e.3smp)
root(hd0,0)
kernel/boot/vmlinuz-2.4.9-e.3smp ro root=/dev/sda1 hda=ide-scsi console=tty0 console=ttyS0,19200
initrd/boot/initrd-2.4.9-e.3smp.img
title Red Hat Linux Advanced Server-up (2.4.9-e.3
root(hd0,00)
kernel/boot/vmlinuz-2.4.9-e.3 ro root=/dev/sda1 s
initrd/boot/initrd-2.4.9-e.3.im
#
#inittabThisfiledescribeshowtheINITprocessshouldsetup
#thesysteminacertainrun-level.
#(此文件介绍在某些运行级别中 INIT 进程如何设置系统。)