LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   How can I edit Red Hats boot menue. (https://www.linuxquestions.org/questions/red-hat-31/how-can-i-edit-red-hats-boot-menue-128771/)

Mal495 12-25-2003 12:03 AM

How can I edit Red Hats boot menue.
 
I have a Dell with winXP and RH linux. Currently it boots into RH by default.
How do I edit the boot menu to make WinXP the default?


Rob

Nu-Bee 12-25-2003 12:21 AM

Re: How can I edit Red Hats boot menue.
 
Quote:

Originally posted by Mal495
I have a Dell with winXP and RH linux. Currently it boots into RH by default.
How do I edit the boot menu to make WinXP the default?

And, you are using which bootloader?

How about a hint?...maybe even a copy of your bootloader configuration.

Mal495 12-25-2003 01:08 AM

i ould have to say red hats default bootloader which i think is linux.config.....

Im in windows XP right now. I'll boot into RH and check.

Mal495 12-25-2003 01:27 AM

lilo.conf....

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

image=/boot/vmlinuz-2.4.20-8
label=linux
initrd=/boot/initrd-2.4.20-8.img
read-only
append="hdd=ide-scsi root=LABEL=/"

other=/dev/hda2
optional
label=DOS


How should the above look to make my default OS?

-Rob

DavidPhillips 12-25-2003 02:02 AM

edit file /etc/grub

move the title Windows section to the top and remove the default line or change the default line to point to the number in the list starting at 0



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,2)
#          kernel /vmlinuz-version ro root=/dev/hda6
#          initrd /initrd-version.img
# boot=/dev/hda
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz

title WinXP
        rootnoverify (hd0,0)
        chainloader +1
        makeactive
        boot
title Red Hat Linux (2.6.0-test11)
        root (hd0,2)
        kernel /vmlinuz-2.6.0-test11 ro root=/dev/hda6 idebus=66 resume=/dev/hda5
        initrd /initrd-2.6.0-test11.img
title Red Hat Linux (2.4.20-27.9)
        root (hd0,2)
        kernel /vmlinuz-2.4.20-27.9 ro root=/dev/hda6 idebus=66
        initrd /initrd-2.4.20-27.9.img


Mal495 12-25-2003 11:16 PM

Not only did it not work, now I cant boot the computer at all.

Is there any where I can get a RH boot disk to boot into RH and replace the grub.conf file with the old one that I saved on the RH desktop?

DavidPhillips 12-25-2003 11:23 PM

What did you change?

Changing the order of the titles should not be a problem, unless you completely replaced your file with one from another machine which would explain it.

boot into it with your boot floppy and copy the file back.


Or you can boot the first install cd and run linux rescue, your partitions will be mounted so you can replace it.


run the mount command to see what's mounted where after boot

Bigfut 12-30-2003 03:44 PM

ok, help another one out
 
ok, I go in and cd /etc and can ls the grub.conf but what do I use to open it?? open, edit, and read wont work..... once I'm in etc directory I type in edit /grub.conf and nothing I type in open grub.conf and nothing and yes I'm leaving a space in beteween the two words.

Also if I use the display /grub.conf it wont pull up. pulls up an Image MAgick but when I go to open the exact file- it crashes back down to the terminal window.

DavidPhillips 12-30-2003 05:12 PM

try this..

vi grub.conf

Mal495 12-30-2003 09:54 PM

Have you tried a GUI text editor? Much easier if you are a newbie like me.

:-)


All times are GMT -5. The time now is 07:17 PM.