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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-13-2006, 05:12 PM
|
#1
|
|
LQ Newbie
Registered: Jun 2006
Posts: 17
Rep:
|
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
|
|
|
|
06-13-2006, 05:27 PM
|
#2
|
|
LQ Newbie
Registered: Jun 2006
Posts: 17
Original Poster
Rep:
|
perhaps if i move grub to the windows drive? but how?
|
|
|
|
06-13-2006, 05:47 PM
|
#3
|
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,570
|
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.
|
|
|
|
06-13-2006, 06:01 PM
|
#4
|
|
LQ Newbie
Registered: Jun 2006
Posts: 17
Original Poster
Rep:
|
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?
|
|
|
|
06-13-2006, 06:03 PM
|
#5
|
|
LQ Newbie
Registered: Jun 2006
Posts: 17
Original Poster
Rep:
|
wait, tried just:
grub>find /grub/stage1
and got
(hd1,0)
so it's on the FC5 drive
|
|
|
|
06-13-2006, 06:23 PM
|
#6
|
|
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151
Rep:
|
Reboot and at the grub prompt, type:
Code:
grub> root (hd1,0)
grub> setup (hd0)
grub> reboot
It should then boot normally.
|
|
|
|
06-13-2006, 06:32 PM
|
#7
|
|
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151
Rep:
|
|
|
|
|
06-13-2006, 06:35 PM
|
#8
|
|
LQ Newbie
Registered: Jun 2006
Posts: 17
Original Poster
Rep:
|
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.
|
|
|
|
06-13-2006, 06:47 PM
|
#9
|
|
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:04 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|