LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-30-2008, 03:38 PM   #1
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Rep: Reputation: 16
Where does grub looks for its grub.conf (menu.lst), where is encoded ?


Hello,

First some history.

I installed Fedora9. And I asked to created several partitions (for /var, /usr, /home, etc . . .)
For a mysteric reason, Fedora created the asked partitions, but did not mounted them ! (The partitions got the label name instead of to be mounted to the asked mount-points)

So I had my system running with all systeminfo located in 1 partitions sda10. (and a lot of useless small partitions in front of it).

My system started fine with grub.
I started to remove a partition in front of sda10, and now I get "grub>" so fort after my pc start. (I do not see first GRUB, grub loading stage . .. etc !)

When I manualy point grub to load the grub.conf, it start the splashscreen, and I can boot (I have modified the partitions in the grub.conf to match with the new partitions now)


I ask myself now :
How is it possible that my pc start directly with the "grub>" prompt, and I do not noticed somthing like "Grub, loading stage . . ..)
Where is grub looking for its config-file? (where is this parametered ?)

This problem can be corrected by reinstalling grub. OK.
I will do that one day. But I want to know now why this is happing now.

Who can help me ?

Thanks,
 
Old 11-30-2008, 04:58 PM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 308

Rep: Reputation: 39
/boot/grub/menu.lst I believe.

Where is your /boot dir located?
 
Old 11-30-2008, 08:42 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
When it is installed, GRUB gets "hard-coded" to point to the location of /boot/grub. Anything you do to change the way partitions are seen will throw GRUB "off the trail".

If you can get into Linux by any means--including booting from live CD, then you can re-install GRUB.

The Fedora partition issue is probably because you did not designate mount points during installation. I think that the installer typically forces you to mount something at /, but leaves it optional to mount any others.
 
Old 12-01-2008, 01:10 AM   #4
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by arckane View Post
/boot/grub/menu.lst I believe.

Where is your /boot dir located?
My /boot is in (hd0,6)

I need to enter
Code:
configfile (hd0,6)/grub/grub.conf
at grub>

And then my system starts. (grub splashscreen)
 
Old 12-01-2008, 01:22 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,314

Rep: Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172
When you get the prompt, try this to re-write the MBR with the correct info
Code:
root (hd0,6)
setup (hd0)
Then reboot to check it.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 03:19 AM
[GRUB 0.97] No Grub.conf or Menu.lst channi3 Linux - Software 5 01-31-2008 08:43 PM
GRUB menu.lst/grub.conf file with multiple partitions dasy2k1 Linux - General 1 04-19-2007 09:42 AM
grub.conf vs. menu.lst netstv Linux - General 3 11-24-2004 07:19 PM
grub.conf vs menu.lst linmix Linux - Software 2 08-26-2004 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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