LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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



Reply
 
Search this Thread
Old 10-29-2009, 12:01 PM   #1
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Rep: Reputation: 15
How can i configure grub


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, 2 views)
 
Old 10-29-2009, 12:31 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 10-29-2009, 12:34 PM   #3
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
i'll try it now, thanks
 
Old 10-29-2009, 12:41 PM   #4
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
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
 
Old 10-29-2009, 12:47 PM   #5
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
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?
 
Old 10-29-2009, 01:42 PM   #6
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,397

Rep: Reputation: 187Reputation: 187
try adding the line "makeactive" to xps grub without the quotes

Last edited by colorpurple21859; 10-29-2009 at 01:45 PM.
 
Old 10-29-2009, 05:22 PM   #7
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
what's xps grub?
 
Old 10-29-2009, 05:37 PM   #8
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
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
 
Old 04-02-2010, 01:58 PM   #9
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
Hi guys, how can i modify this if the situation was that windows xp was on sda2 and fedora was on sda7?
 
Old 04-04-2010, 09:10 AM   #10
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
More details:
They're both on the same HD
xp is on SDA2
Fedora is on SDA7

Anyhelp
 
Old 04-04-2010, 01:58 PM   #11
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
any help??
 
Old 04-04-2010, 02:27 PM   #12
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Help with what ?
sda2 = (hd0,1)
sda7 = (hd0,6)
 
Old 04-04-2010, 10:14 PM   #13
lampamp
Member
 
Registered: Aug 2009
Distribution: Fedora 11
Posts: 72

Original Poster
Rep: Reputation: 15
thx, that's what i needed to know
 
  


Reply

Tags
grub


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
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 11:07 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration