Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7698050
  • 博文数量: 637
  • 博客积分: 10265
  • 博客等级: 上将
  • 技术积分: 6165
  • 用 户 组: 普通用户
  • 注册时间: 2004-12-12 22:00
文章分类

全部博文(637)

文章存档

2011年(1)

2010年(1)

2009年(3)

2008年(12)

2007年(44)

2006年(156)

2005年(419)

2004年(1)

分类: LINUX

2006-03-01 14:33:48

POST部分,主要看BIOS是否支持了,具体到BIOS配置里面找,如果支持POST信息也可以在Terminal上显示。

Grub:
==============================
[root@vpn ~]# more /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda2
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=3 serial console
#splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.10-1.771_FC2)
        root (hd0,0)
        kernel /vmlinuz-2.6.10-1.771_FC2 ro root=LABEL=/ console=ttyS0,9600n8
        initrd /initrd-2.6.10-1.771_FC2.img
title Fedora Core (2.6.10-1.770_FC2)
        root (hd0,0)
        kernel /vmlinuz-2.6.10-1.770_FC2 ro root=LABEL=/ console=ttyS0,9600n8
        initrd /initrd-2.6.10-1.770_FC2.img
title Fedora Core (2.6.5-1.358)
        root (hd0,0)
        kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ console=ttyS0,9600n8
        initrd /initrd-2.6.5-1.358.img
[root@vpn ~]#
===================================================================

Login Linux from Console:

/etc/inittab:
增加
=============================================
# Run agetty
co:2345:respawn:/sbin/agetty ttyS0 9600 vt102
=============================================
让root能从Console登录:
/etc/securetty:
增加
========
ttyS0
========

pxelinux配置:
Enables a serial port to act as the console. "port" is a number (0 = /dev/ttyS0 = COM1, etc.); if "baudrate" is omitted, the baud rate defaults to 9600 bps. The serial parameters are hardcoded to be 8 bits, no parity, 1 stop bit.

"flowcontrol" is a combination of the following bits:
0x001 - Assert DTR
0x002 - Assert RTS
0x010 - Wait for CTS assertion
0x020 - Wait for DSR assertion
0x040 - Wait for RI assertion
0x080 - Wait for DCD assertion
0x100 - Ignore input unless CTS asserted
0x200 - Ignore input unless DSR asserted
0x400 - Ignore input unless RI asserted
0x800 - Ignore input unless DCD asserted

For this directive to be guaranteed to work properly, it should be the first directive in the configuration file.

$ more /tftpboot/pxelinux.cfg/default
default local

serial 0
prompt 1
timeout 300
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
F7 snake.msg

label FC4
  kernel fc/vmlinuz_FC4
  append vga=normal initrd=fc/initrd.img_FC4 ramdisk_size=9372 root=/dev/rd/0 devfs=mount,dall rw
label FC3
  kernel fc/vmlinuz_FC3
  append vga=normal initrd=fc/initrd.img_FC3 ramdisk_size=9372 root=/dev/rd/0 devfs=mount,dall rw
label FC2
  kernel fc/vmlinuz_FC2
  append vga=normal initrd=fc/initrd.img_FC2 ramdisk_size=9372 root=/dev/rd/0 devfs=mount,dall rw
label PlanetLab
  kernel fc/vmlinuz_PlanetLab
  APPEND vga=normal initrd=fc/initrd.img_PlanetLab load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=200744 root=/dev/ram0 rw
label local
  localboot 0
$


阅读(5190) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~