| # dmesg | grep tty
〜省略〜
ttyS2 at I/O 0x3e8 (irq = 4) is a 16550A ←この行を確認。
〜省略〜
上記手順でCOM(ttySx)ポートを確認した場合、'ttySx' の'x' の数字を 各設定項目の '--unit=x' と 'ttySx' の 'x'
の部分に設定してください、以下にttyS2の例を示します。
---/boot/grub/grub.conf---
#boot=/dev/sda
serial --unit=2 --speed=115200 --word=8 --parity=no
--stop=1
terminal --timeout=10 serial console
default=0
timeout=5
#splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-22.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-22.ELsmp ro root=/dev/VolGroup00/LogVol00 console=tty0 console=ttyS2,115200
title Red Hat Enterprise Linux AS-up (2.6.9-22.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-22.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-22.EL.img
---/etc/inittab---
# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
7:12345:respawn:/sbin/agetty 115200 ttyS2 vt100
---/etc/securetty---
console
ttyS2
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
|