This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Blog About Dedicated Servers

« | »

Redhat ROD/Remote Console How To

Luigi Ramone | 04 September, 2008 14:56

Redhat with Grub:

1. Edit grub.conf with your favorite editor so you can manipulate grub and the boot process via remote console:

CODE
serial --unit=0 --speed=9600

terminal --timeout=10 serial console



Example:

CODE
# 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/hda3

# initrd /initrd-version.img

#boot=/dev/hda

serial --unit=0 --speed=9600

terminal --timeout=10 serial console

default=0

timeout=3



You will also need to add options to the kernel line if you want to see the kernel booting and if you need to do file system maintenance via the remote console (IE it is stuck at fsck errors):

CODE
console=tty0 console=ttyS0,9600



Example:

CODE
title Red Hat Enterprise Linux ES (2.4.21-27.EL)

root (hd0,0)

kernel (hd0,0)/vmlinuz-2.4.21-27.EL root=/dev/hda3 console=tty0 console=ttyS0,9600

initrd (hd0,0)/initrd-2.4.21-27.EL.img



NOTE Your kernel line may differ such as Kernel version and root= device. DO NOT CHANGE THESE, simply append the line with console options.

2. If you want shell console access after the boot process you will need to do the following:

Add the following to the bottom of /etc/inittab:

CODE
co:12345:respawn:/sbin/agetty -L 9600 ttyS0 vt100



Add the following to the bottom of /etc/securetty:

CODE
ttyS0


Restart getty to get immediate access to Remote Console:

CODE
telinit q

Add comment

Topic

Text

Your name

Your email address (if any)

Your personal page (if any)


authimage




Powered by Boonic, Bloogo & pLog
This Blog does not have any affiliation nor relation with the mentioned companies. All the logotipos, trade names and images are property of the companies that registered them.