LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 10-29-2009, 12:01 PM   #1
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 68
Thanked: 0
How can i configure grub


[Log in to get rid of this advertisement]
hi folks
i am running fedora 11 and i need help configuring my menu.ist file
i attached the menu.ist file in txt extension

what i want is
1- I want the first option to be Windows XP (which is on the second HD) and i want the text to be Windows XP instead of Other. This option should be the default (so if i didn't press anything it will boot from xp).

2- to remove the 2.6.29.4-167.fc11.i686.PAE kernel from the list and keep the 2.6.30.5-43.fc11.i586.img available as a second option.

3-increase the countdown time to 10 seconds.


I really appreciate your help guys.
Attached Files
File Type: txt Unsaved Document 1.txt (879 Bytes, 1 views)
linuxfedora lampamp is offline  
Tag This Post
Reply With Quote
Old 10-29-2009, 12:31 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Lenny (x86)
Posts: 5,276
Thanked: 96
Change the menu.lst file like this:
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,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
#          initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.30.5-43.fc11.i586)
	root (hd0,0)
	kernel /vmlinuz-2.6.30.5-43.fc11.i586 ro root=/dev/mapper/VolGroup-lv_root rhgb quiet
	initrd /initrd-2.6.30.5-43.fc11.i586.img
#title Fedora (2.6.29.4-167.fc11.i686.PAE)
#	root (hd0,0)
#	kernel /vmlinuz-2.6.29.4-167.fc11.i686.PAE ro root=/dev/mapper/VolGroup-lv_root rhgb quiet
#	initrd /initrd-2.6.29.4-167.fc11.i686.PAE.img
title Windows XP
	rootnoverify (hd0,4)
	chainloader +1
What I posted here will not change the order of the list on the screen, but default=1 will boot XP if you don't do anything. The "#" sign comments out the second fedora thing. The kernel is still installed, but it won't be on the boot menu. Anytime you install a new kernel it will probably mess this file up though because Anaconda will automagically "correct" it back the way it was. So you should make a copy of this after you change it.
windows_xp_2003 pljvaldez is offline     Reply With Quote
Old 10-29-2009, 12:34 PM   #3
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 68
Thanked: 0

Original Poster
i'll try it now, thanks
linuxfedora lampamp is offline     Reply With Quote
Old 10-29-2009, 12:41 PM   #4
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 68
Thanked: 0

Original Poster
Quote:
Originally Posted by pljvaldez View Post
Change the menu.lst file like this:
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,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
#          initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.30.5-43.fc11.i586)
	root (hd0,0)
	kernel /vmlinuz-2.6.30.5-43.fc11.i586 ro root=/dev/mapper/VolGroup-lv_root rhgb quiet
	initrd /initrd-2.6.30.5-43.fc11.i586.img
#title Fedora (2.6.29.4-167.fc11.i686.PAE)
#	root (hd0,0)
#	kernel /vmlinuz-2.6.29.4-167.fc11.i686.PAE ro root=/dev/mapper/VolGroup-lv_root rhgb quiet
#	initrd /initrd-2.6.29.4-167.fc11.i686.PAE.img
title Windows XP
	rootnoverify (hd0,4)
	chainloader +1
What I posted here will not change the order of the list on the screen, but default=1 will boot XP if you don't do anything. The "#" sign comments out the second fedora thing. The kernel is still installed, but it won't be on the boot menu. Anytime you install a new kernel it will probably mess this file up though because Anaconda will automagically "correct" it back the way it was. So you should make a copy of this after you change it.
works perfectly !!!
thanks
linuxfedora lampamp is offline     Reply With Quote
Old 10-29-2009, 12:47 PM   #5
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 68
Thanked: 0

Original Poster
i replied before trying xp
when i choose xp i get a black screen with a (_) flashing in the top right corner
what shoud i do?
linuxfedora lampamp is offline     Reply With Quote
Old 10-29-2009, 01:42 PM   #6
colorpurple21859
Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware-current, debian, puppy,
Posts: 268
Thanked: 26
try adding the line "makeactive" to xps grub without the quotes

Last edited by colorpurple21859; 10-29-2009 at 01:45 PM..
windows_vista colorpurple21859 is offline     Reply With Quote
Old 10-29-2009, 05:22 PM   #7
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 68
Thanked: 0

Original Poster
what's xps grub?
linuxfedora lampamp is offline     Reply With Quote
Old 10-29-2009, 05:37 PM   #8
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 68
Thanked: 0

Original Poster
done here's my final menu.lst
Quote:
# 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,0)
# kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.30.5-43.fc11.i586)
root (hd0,0)
kernel /vmlinuz-2.6.30.5-43.fc11.i586 ro root=/dev/mapper/VolGroup-lv_root rhgb quiet
initrd /initrd-2.6.30.5-43.fc11.i586.img
#title Fedora (2.6.29.4-167.fc11.i686.PAE)
# root (hd0,0)
# kernel /vmlinuz-2.6.29.4-167.fc11.i686.PAE ro root=/dev/mapper/VolGroup-lv_root rhgb quiet
# initrd /initrd-2.6.29.4-167.fc11.i686.PAE.img
title Windows XP
rootnoverify (hd1,0)
makeactive
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
i got some info from this page
http://www.mail-archive.com/bug-grub.../msg10960.html

thanks pljvaldes and colorpurple
linuxfedora lampamp is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Trying to configure grub jmc1987 Linux - Newbie 12 10-24-2009 08:57 PM
Configure GRUB don_wombat_73 Linux - Newbie 6 08-01-2008 08:57 AM
Grub configure? harzfled Linux - Newbie 6 03-03-2005 09:21 AM
grub configure achal Linux - Newbie 16 02-25-2005 12:09 AM
configure grub : NL-Stitch Linux - Newbie 4 08-01-2004 03:40 PM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration