Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Killed my GRUB, don't know how...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Sat Dec 28, 2002 1:29 pm    Post subject: [SOLVED] Killed my GRUB, don't know how... Reply with quote

I am very well aware of the fact that there have been others before me posting a boot failure, with the notorious:
Code:
GRUB _

non-prompt as the only output on screen, followed by a complete system freeze (not even ctrl-alt-del works anymore).

So maybe I'm not the first idiot to run into this particular problem, but possibly the only one who managed to get into that sort of trouble after six moons of flawless operation of this exact same configuration. The only difference to the last successful boot process two hours ago: I recompiled my kernel from xfs-2.4.20-pre2 sources, putting bzImage beside a backup kernel called bzImage.old (same thing, just 2.4.19-rc2) in /boot (and yes, of course I mounted it before copying anything over. Maybe I shouldn't have...). Then I edited grub.conf to include the new and the old bzImage to boot from, reboot: Bang. See above. I swear, this is all I did: added three lines to accomodate the new kernel as a GRUB menu item.

I'm running out of ideas, especially since reading pertaining information about this problem here in the forums: none of the remedies discussed are applicable. I did try to re-enact the entire installation routine for GRUB just now, by the way, but interestingly enough it complains upon "setup (hd0,4)" thusly: "embed e2fs_stage1_5 .... failed (this is not fatal)"... Well, if this isn't, what is? 8O

I'm sick of rebooting from CD all the time, please, somebody with magnetic hands, touch my forehead! Make me understand what's going on!


Last edited by plate on Sun Dec 29, 2002 2:55 am; edited 1 time in total
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7212
Location: Pelotas, BR

PostPosted: Sat Dec 28, 2002 5:24 pm    Post subject: Reply with quote

have you upgraded grub these days?

I've read about a case where the stage1_5 file had to be in /boot (and not in /boot/grub). Maybe you could try that.

How are you booting? Dual Linux/Windows boot? If you are not using WinNT/XP, maybe you should install grub in (hd0,0)
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Sun Dec 29, 2002 12:38 am    Post subject: Reply with quote

No upgrade to GRUB since October. Yes, I did emerge baselayout in between, do you suspect that to cause any trouble?
I just remerged GRUB to be on the safe side and pasted stage1.5 files all over the place in /boot, let us see what happens when I reboot now (first time using Lynx to post here from inside the CD-image, jeezuz, all those colours! All those ... other ... colours! 8O).
And sorry, but I am not going to touch that MBR. With the number of reinstallations I have to have on the XP side of things, I had rather keep everything the way it was before.
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Sun Dec 29, 2002 12:56 am    Post subject: Reply with quote

Nothing. :( GRUB just sits there pondering whether it's alive or not. Probably is, but doing zilch, nada, diddley. Very disappointing.

Any other ideas?
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Sun Dec 29, 2002 3:08 am    Post subject: Reply with quote

And this is even more embarrassing: I fixed it, but cannot say for sure how I did it because I was fed up with rebooting all the time, and in the end I tried just too many things in one smooth go to be able to pinpoint any of them as the sole reason why everything works again:
  • rm -r /boot :twisted: (I just had to...)
  • mkdir /boot, copied my backup kernel to it
  • Remerged GRUB
  • Recompiled my new kernel
  • Edited grub.conf again, recreated soft link to menu.lst
  • dd'ed the dummy boot sector for the NT bootloader
  • Booted into XP first
  • Edited boot.ini to include the fresh dummy boot sector file
And at the next reboot everything was thumbs up. Naturally. A dozen new gray hairs for nothing. :? All I can say is: If anybody else out there ever runs into the same problem, just try everything I did. It'll take you longer than necessary, but at least you'll get there... :(
Back to top
View user's profile Send private message
ichnaton
n00b
n00b


Joined: 28 May 2003
Posts: 21
Location: Maassluis, Holland

PostPosted: Wed May 28, 2003 8:35 am    Post subject: two linux distro's -> same here (grub sudden death) Reply with quote

Just to mention an old cow, for those to come on and avoid this path. I've had a running suse system for years, recently with grub. Now I'm adding gentoo until it works as good as the suse and then switch.

At a certain moment, I've added lines for the gentoo kernel and the gentoo kernel itself to the /boot partition and menu.lst of the suse.

Reboot..died: GRUB

cause: probably a version conflict of the grub's but actually i still don't know for sure.

The easiest thing to fix this was to upgrade (you know, that outdated process with a pacj of cd's) the suse and have it redo my /boot.
Back to top
View user's profile Send private message
bruce2
n00b
n00b


Joined: 13 Jul 2005
Posts: 1

PostPosted: Wed Jul 13, 2005 5:19 pm    Post subject: same problem Reply with quote

I just experienced the same problem.

Remaking the dummy boot sector, copying it to the windows partition and reinstalling fixes the problem.

(e.g. dd if=/dev/hdaX of=/bootsec.lin bs=512 count=1, then copy that to windows and edit c:\boot.ini).
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Jul 13, 2005 6:45 pm    Post subject: Reply with quote

8O
That was a nice piece of grave digging :wink:
My compliments on your searching skills.

Oh, and welcome to the forums.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Wed Jul 13, 2005 7:37 pm    Post subject: Reply with quote

Hehe. Why waste a perfectly good thread only because it's two years old? :mrgreen: Welcome aboard, bruce2.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum