LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 11-30-2008, 02:38 PM   #1
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Rep: Reputation: 15
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, 03:58 PM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 306

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

Where is your /boot dir located?
 
Old 11-30-2008, 07:42 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: back to Arch
Posts: 16,677

Rep: Reputation: 426Reputation: 426Reputation: 426Reputation: 426Reputation: 426
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, 12:10 AM   #4
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Original Poster
Rep: Reputation: 15
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, 12:22 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,458

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 02:19 AM
[GRUB 0.97] No Grub.conf or Menu.lst channi3 Linux - Software 5 01-31-2008 07:43 PM
GRUB menu.lst/grub.conf file with multiple partitions dasy2k1 Linux - General 1 04-19-2007 08:42 AM
grub.conf vs. menu.lst netstv Linux - General 3 11-24-2004 06:19 PM
grub.conf vs menu.lst linmix Linux - Software 2 08-26-2004 03:17 PM


All times are GMT -5. The time now is 06:11 PM.

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