About Me

- A little contribution to the linux newbies.
Showing posts with label serial. Show all posts
Showing posts with label serial. Show all posts

Thursday, October 1, 2009

Booting Linux from Serial Console - Without VGA

Perform the following steps and reboot the machine :

STEP 1 :

$ vi /boot/grub/grub.conf

serial --unit=0 --speed=9600
terminal --timeout=10 serial console

console=tty0 console=ttyS0,9600


here is a sample how your file should look like -

--------------------------------------Sample-------------------------------------------
# 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/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
serial --unit=0 --speed=9600
terminal --timeout=5 serial console
title Fedora (2.6.25-14.fc9.i686)
root (hd0,0)
kernel /vmlinuz-2.6.25-14.fc9.i686 ro root=UUID=b1f4e87a-85cf-491d-9f96-a9409864680e console=tty0 console=ttyS0,9600
initrd /initrd-2.6.25-14.fc9.i686.img
-----------------------------------------------------------------------------------------------
STEP 2 :

$ vi /etc/inittab

s0:2345:respawn:/sbin/agetty ttyS0 115200,9600 linux


after rebooting the machine - it should come up on serial console and not on VGA

Note: make sure that your BIOS is set on the same settings..