Linux - Serial Console (Method 2 - Enable serial console on bootup)

Linux - Serial Console (Method 1 - Enable serial console on bootup)
Linux - Serial Console (Method 2 - Enable serial console on bootup)

Step # 1: Serial redirection in the GRUB

# vi /boot/grub/grub.conf

Append the following lines below “hiddenmenu” option:
serial --unit=1 --speed=19200
terminal --timeout=8 console serial

make sure splashimage options is disabled as graphics can’t be displayed across the serial port. Remove splashimage line or just comment it out by prefixing # symbol:
#splashimage=(hd0,0)/grub/splash.xpm.gz

Step # 2: Enabling serial output from the Linux kernel

Enabling serial output from the Linux kernel
Add the following at the end of that line - console=tty0 console=ttyS0,9600n

title Red Hat Enterprise Linux ES (2.6.9-42.0.10.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.0.10.ELsmp ro root=LABEL=/ console=tty0 console=ttyS1,19200n8
initrd /initrd-2.6.9-42.0.10.ELsmp.img

Step #3: Logging in via the serial console

# vi /etc/inittab

Append the following line:
1:23:respawn:/sbin/agetty -h -L ttyS1 19200 vt100

Comments