Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating Red Hat 6.x boot
Message
General information
Forum:
Linux
Category:
Distribution (called 'distros') specific issues
Miscellaneous
Thread ID:
00387197
Message ID:
00387466
Views:
27
Evan asks:
>Is there anyway for Red Hat to boot from a floopy and then continue the boot without the user having to press "enter".
The boot screen says that the boot will continue in 10 seconds, but it doesn't... so I currently must hit "enter".

Yes! It's very easy. Just as with most Linux stuff, there is a configuration file in /etc that's just text.

lilo's config file is: /etc/lilo.conf

THere, you control what gets booted by default (even what can be booted), what string you see displayed
as the OS name to boot, and the default action. IN particular, how much delay to allow before it defaults
to booting the default OS if you don't hit the space bar or tab to get the list of things to boot.

On one machine that I'm multi-booting on, my lilo.conf says:

/etc/lilo.conf:

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
default=linux

image=/boot/vmlinuz-2.2.14-5.0
label=linux
read-only
root=/dev/hda7

other=/dev/hda1
label=win

The command default=linux tells it to default linux by default, but I could just as easily say:
default=win

Here, the first "stanza" (as sections in lilo.conf are called) refers to linux, my second stanza is called: "win"
which is Win95.

You can switch the order of things in lilo.conf so that win (or whatever you want to call it) appears first
and linux second. You can also change the label, which is what appears on the screen if you hit
TAB or SPACE BAR when you see the LILO: prompt, since I have the prompt command and then I have a
timeout command (timeout - 50 seconds) which specifies how long I have to make a choice before it boots the
specified default OS.

After editing lilo.conf, you must give the /bin/lilo -v command to update the lilo boot info to the location that
you specified. You can change where that location is by what info you have in the lilo.conf file:

To start booting from MBR, make boot=/dev/hda

If you're not sure, just ask.

-Jerry
Jerry Winegarden
RHCE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform