Help - Search - Members - Calendar
Full Version: Redhat ROD/Remote Console How To
The Planet Forums > System Administration > HOWTOs
gbock
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


If you have any problems please submit a support ticket.
uneedawebsite
What about redHat with LILO?
drphp
QUOTE (uneedawebsite @ Jan 17 2007, 12:50 PM) *
What about redHat with LILO?


CODE
serial=0,9600n8


and add this to your kernel image

CODE
append="console=tty0 console=ttyS0,9600n8"
devGOD
which grub...?

/etc/grub.conf
/boot/grub/grub.conf
aledesma
QUOTE (devGOD @ Jan 21 2007, 12:13 AM) *
which grub...?

/etc/grub.conf
/boot/grub/grub.conf


The only one that matters.... /boot/grub/menu.lst

seriously though, /etc/grub.conf should be a symlink to /boot/grub/grub.conf (which either links to menu.lst or menu.lst links to grub.conf)

So, to answer your question, the one in /boot/grub as the bootloader(grub) would not know what to mount in order to get to /etc/grub.conf.
ChuFuong
all matter, just depends on what your trying to do, but yeah the one you mentioned IS the MOST important.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.