change booting defaults

Rick Stevens rstevens at vitalstream.com
Thu Jan 27 02:17:58 UTC 2005


Nofriyadi Nurdam wrote:
> Gurus,
> My computer has windows xp and redhat9. Now booting defaults is redhat9. 
> I want to change the default.
> Can you tell me please what i have to do?

It depends on whether you use grub or lilo as your boot agent.  I think
RH9 used lilo by default, but I can't recall offhand.

If you use lilo (indicated by the presence of an "/etc/lilo.conf" file),
edit that file and look at all the "title=" lines.  Find the one that
matches up to your Windows boot setup.  Next, find the "default=" line
near the top of the file.  Change the data after the "default=" to the
label that stands for your Windows boot.  Save the changes to the file
and run "/sbin/lilo" to update the boot configuration.

If you use grub, edit "/boot/grub/grub.conf" and look at the "title"
lines.  The first one is "0", the next is "1" and so on.  Next, find the 
"default=" line and change the value there to the number that
corresponds to the "title" line that matches your Windows stuff.

For example, I have five "title" lines in my file, and the last one is
for Windows.  So I'd change "default=" to "default=4" (remember, you
number them from zero, not 1).  Unlike lilo (where you have to run
"/sbin/lilo" to update your boot config), you do not have to do anything
after editing and saving the /boot/grub/grub.conf file.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-         It is better to have loved and lost.  Cheaper, too!        -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list