LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-25-2003, 12:03 AM   #1
Mal495
Member
 
Registered: Oct 2003
Location: New York
Posts: 72

Rep: Reputation: 15
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
 
Old 12-25-2003, 12:21 AM   #2
Nu-Bee
Member
 
Registered: Dec 2002
Location: USA
Distribution: Mandrake 9.2
Posts: 269

Rep: Reputation: 30
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.
 
Old 12-25-2003, 01:08 AM   #3
Mal495
Member
 
Registered: Oct 2003
Location: New York
Posts: 72

Original Poster
Rep: Reputation: 15
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.
 
Old 12-25-2003, 01:27 AM   #4
Mal495
Member
 
Registered: Oct 2003
Location: New York
Posts: 72

Original Poster
Rep: Reputation: 15
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
 
Old 12-25-2003, 02:02 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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

Last edited by DavidPhillips; 12-25-2003 at 02:06 AM.
 
Old 12-25-2003, 11:16 PM   #6
Mal495
Member
 
Registered: Oct 2003
Location: New York
Posts: 72

Original Poster
Rep: Reputation: 15
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?
 
Old 12-25-2003, 11:23 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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

Last edited by DavidPhillips; 12-25-2003 at 11:27 PM.
 
Old 12-30-2003, 03:44 PM   #8
Bigfut
LQ Newbie
 
Registered: Dec 2003
Location: Ohio, USA
Distribution: Red Hat 9.0
Posts: 7

Rep: Reputation: 0
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.

Last edited by Bigfut; 12-30-2003 at 03:46 PM.
 
Old 12-30-2003, 05:12 PM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
try this..

vi grub.conf
 
Old 12-30-2003, 09:54 PM   #10
Mal495
Member
 
Registered: Oct 2003
Location: New York
Posts: 72

Original Poster
Rep: Reputation: 15
Have you tried a GUI text editor? Much easier if you are a newbie like me.

:-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tinfoil hats are actually dangerous! stabile007 General 9 11-13-2005 01:28 PM
Hats off to the Bering Distro bumbashock DamnSmallLinux 1 12-21-2003 03:30 AM
edit Red Hat 9 Grub to boot Windows southsibling Linux - Software 3 12-18-2003 08:03 PM
problem with boot menue Horenstein Linux - Newbie 1 09-05-2003 09:26 AM
red hats own firewall gaz0r Linux - Security 4 09-05-2002 05:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration