LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-13-2006, 05:12 PM   #1
lankydenny
LQ Newbie
 
Registered: Jun 2006
Posts: 17

Rep: Reputation: 0
grub can find grub.conf, how do i make it permanent?


allow me to explain... running dual boot XP and linux on two drives (XP primary, FC5 secondary). when the computer boots up, i get the grub command shell. i can successfully boot both FC5 and winXP using command line commands, but don't want to do that every time i turn on the computer. so, the reason it isn't going into a graphical menu is that grub can't find grub.conf (because grub is on MBR, WinXP drive and grub.conf is on secondary drive). this can be remedied with command:

grub>configfile(hd1,0)/grub/grub.conf

and the grub menu appears.

but how do i make that permanent, so that i can always get the menu first? thanks
 
Old 06-13-2006, 05:27 PM   #2
lankydenny
LQ Newbie
 
Registered: Jun 2006
Posts: 17

Original Poster
Rep: Reputation: 0
perhaps if i move grub to the windows drive? but how?
 
Old 06-13-2006, 05:47 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Grub doesn't care which disk holds the MBR, and which disk holds the rest of grub. It's all in the grub config file. On some distros, is called grub.cong; on others it menu.lst. Both files are found in /boot/grub. With FC, I beleive the correct file is /boot/grub/grub.conf. Regardless of the file name, the format is the same.

So, let's see your grub.conf.

PS. Boot FC, then from the console, type 'grub' (sans quotes), then enter 'find /boot/grub/stage1' to see where grub finds the rest of itself. Then edit grub.conf to show that location. It should take care of your lack of a grub menu on startup.
 
Old 06-13-2006, 06:01 PM   #4
lankydenny
LQ Newbie
 
Registered: Jun 2006
Posts: 17

Original Poster
Rep: Reputation: 0
grub.conf

# 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 (hd1,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5smp)
root (hd1,0)
kernel /vmlinuz-2.6.15-1.2054_FC5smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5smp.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1


couldn't find the stage1 file you mentioned... thanks for help by the way. any other ideas?
 
Old 06-13-2006, 06:03 PM   #5
lankydenny
LQ Newbie
 
Registered: Jun 2006
Posts: 17

Original Poster
Rep: Reputation: 0
wait, tried just:

grub>find /grub/stage1

and got

(hd1,0)

so it's on the FC5 drive
 
Old 06-13-2006, 06:23 PM   #6
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Reboot and at the grub prompt, type:
Code:
grub> root (hd1,0)
grub> setup (hd0)
grub> reboot
It should then boot normally.
 
Old 06-13-2006, 06:32 PM   #7
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Oops, forgot to leave the Grub Manual reference: http://www.gnu.org/software/grub/man...-GRUB-natively
 
Old 06-13-2006, 06:35 PM   #8
lankydenny
LQ Newbie
 
Registered: Jun 2006
Posts: 17

Original Poster
Rep: Reputation: 0
if i weren't too busy dancing at the frayed feet of this gordian knot, i would grace this forum with a tinny MIDI choir singing praise WhatsHisName in the highest.
THANK YOU BOTH
grub booted PERFECTLY
now i just have to do that to 6 more computers... hehe.
 
Old 06-13-2006, 06:47 PM   #9
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
So that grub never leaves you out in the cold, be sure to make a grub boot floppy (or a grub boot USB flash drive): http://www.gnu.org/software/grub/man...UB-boot-floppy

That way, you can always get grub configured in the MBR when the installer (meaning Anaconda, not you) screws it up.
 
  


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
can some fc4 user mail his grub.conf and tell me how can i make this grub read this amolgupta Linux - Software 1 03-15-2006 04:04 AM
FC4 - I Cannot Find Grub.conf fortezza Fedora 11 11-21-2005 08:52 AM
Can't find edit grub.conf when im in command line. izac5 Linux - Newbie 7 11-16-2004 04:24 PM
commands work with interactive grub, but not in grub.conf richardg Linux - Newbie 2 11-23-2003 04:36 AM
make the permanent change to /etc/sysctl.conf ashley75 Linux - General 1 09-15-2003 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 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