[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is there a way to get GRUB to boot a specific entry?



>>> I was wondering if there's a way to get GRUB to boot a specific entry in
>>> menu.lst without changing defaults.  For example, when testing out a new
>>> kernel that may or may not work on a headless computer ...
>> 
>> My suggestion would be: build GRUB with serial support and make your
>> machine "not-quite-so-headless"...
> 
> I've been using the serial support in Grub for a few months now,
> and it works very nicely.

Somebody asked me to post a copy of my grub configuration, so
here it is:

------------------------------8<------------------------------
splashimage= (hd0,0)/boot/grub/splash.xpm.gz
serial --unit=0 --speed=57600 --parity=no --stop=1
terminal --timeout=5 console serial
default=0
timeout=5
title /boot/vmlinuz-2.4.18-comtrol-dm-ats (VGA)
 root (hd0,0)
 kernel /boot/vmlinuz-2.4.18-comtrol-dm-ats vga=0x303 root=/dev/hdd1 console=ttyS0,57600n8 console=tty0
title /boot/vmlinuz-2.4.18-comtrol-dm-ats (serial)
 root (hd0,0)
 kernel /boot/vmlinuz-2.4.18-comtrol-dm-ats vga=0x303 root=/dev/hdd1 console=tty0 console=ttyS0,57600n8 
title /boot/vmlinuz-2.4.18-bf2.4
 root (hd0,0)
 kernel /boot/vmlinuz-2.4.18-bf2.4 vga=0x303 root=/dev/hdd1 console=ttyS0,57600n8 console=tty0
------------------------------8<------------------------------

I use a version of Grub with the VGA16 splashimage support.
The VGA16 patches break serial console support.  If you want to
use VGA16 splash images and serial consoles at the same time,
you neeed to get a patch to apply on top of the VGA16 patch.
The vga16 and serial patche are available from RH (via
bugzilla), from the Grub mailint list archive, or from

 ftp://ftp.visi.com/users/grante/grub/   (patches against 0.91, IIRC)


-- 
Grant Edwards                   grante             Yow!  It's OKAY -- I'm an
                                  at               INTELLECTUAL, too.
                               visi.com            



Reply to: