LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-29-2010, 10:49 AM   #1
coreno
LQ Newbie
 
Registered: Sep 2007
Posts: 10

Rep: Reputation: 0
Question Grub not creating grub.conf file


I have a dual-boot system, with the first partition as 100gb NTFS for Windows 7, then a 200mb partition for /boot, then the rest of the partitions for Fedora 12.

It was all installed and working fine, but for reasons I don't know, grub.conf suddenly was a blank file, and when I booted the system, I just got the grub prompt, and I can boot Windows by manually typing root (hd0,0) and chainloader +1.

Booting into Fedora is a bigger pain because I don't know the full kernel string and all that.

Doing find grub.conf returns (hd0,1), which is right. So I do root (hd0,1), then setup (hd0), it says it worked, but if I reboot, still get the grub prompt.

If I boot using the Fedora 12 CD to "rescue" an installed system, i cat /boot/grub/grub.conf and it's still blank. I try to run the setup in the recovery shell as well (after chrooting to the local install), and grub.conf remains blank.

Any ideas? Or is my best bet to try and rebuild the file from hand? But that begs the question why did the file blank in the first place and why won't grub fix it?

p.s. This acutally happened once before shortly after I had installed F12, but I don't remember how I fixed it... it just suddenly seemed to start working again hah
 
Old 03-29-2010, 11:22 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
boot in rescue mode with install dvd/cd and then chroot to your fedora system and then
#grub-install /dev/sda
 
Old 03-29-2010, 07:34 PM   #3
coreno
LQ Newbie
 
Registered: Sep 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by amani View Post
boot in rescue mode with install dvd/cd and then chroot to your fedora system and then
#grub-install /dev/sda
Well, the grub-install command completes successfully, but doesn't make a grub.conf file either.

An interesting note, if I run grub from the recovery console (after chrooting to the local disk) and then do root (hd0,1) and then setup (hd0) it says it worked.

However, if I manually enter the command
install /grub/stage1 (hd0) (hd0,1)1+26 p (hd0,1)/grub/stage2 grub/grub.conf
I get "Error 1: Invalid device requested"
I tried toying around with the command a little bit to see if I could figure it out, but I dunno what device it's looking for and where it's looking for it in that string....

Hmm... I think I'm gunna give a crack at just remaking the grub.conf file myself and see if I can get into fedora and have that make the conf file the way it wants it....
 
Old 03-30-2010, 11:35 AM   #4
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Fedora 12 still uses the 0.9... version of grub.

grub.conf should be in /boot/grub

File a bug report at redhat bugzilla
 
  


Reply

Tags
fedora, grub, grubconf



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
/boot/grub/grub.conf file has been deleted on rhel5 diwakars Linux - Newbie 5 12-03-2008 11:21 AM
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 using the wrong grub.conf file Erik99 Linux - Newbie 2 02-20-2008 09:34 PM
GRUB menu.lst/grub.conf file with multiple partitions dasy2k1 Linux - General 1 04-19-2007 08:42 AM
Is lilo.conf file format is same for grub.conf? Chundo Linux - Newbie 1 01-30-2006 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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