Users Guide
124
串行端口控制台重定向
有关编辑 grub.conf 的其它信息:
1
可能需要禁用
GRUB
的图形界面并转而使用基于文本的界面;否则,
GRUB
屏幕将不会在
BMU
控制台重定向中显示。要做到这一点,注释
掉以
splashimage
开头的行。
2
如果在
GRUB
中有多个选项并且想要所有选项都通过
BMU
串行连接启
动控制台会话,则给所有选项添加
console=ttyS1,19200
。以上示
例显示只将
console=ttyS0,19200
添加到第一个选项。
表 8-1. 示例文件:/etc/grub.con
# grub.conf generated by anaconda
#
Note that you do not have to rerun grub after making
changes to this file
# NOTICE: You do not have a /boot partition. This means
that
# all kernel and initrd paths are relative to /,
e.g.
# 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