Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[almost-SOLVED] gentoo does not show boot menu
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sat Jan 31, 2015 5:46 pm    Post subject: [almost-SOLVED] gentoo does not show boot menu Reply with quote

I just upgraded my system and upgrade went smooth an all boxes except my main server.

It will not boot to show kernel. All I see is Bios flash and a message:
Code:
Loading Operating System ...
GRUB loading stage 2

and the system reboot itself, displaying the same message and reboot itself again.
What went wrong during upgrade? I did not touch grub or kernel.


Last edited by Joseph_sys on Sat Jan 31, 2015 7:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sat Jan 31, 2015 5:54 pm    Post subject: Reply with quote

hmm

http://en.wikipedia.org/wiki/GNU_GRUB

Quote:
Stage 2: files belonging to the stage 2 are all being held in the /boot/grub directory, which is a subdirectory of the /boot directory specified by the Filesystem Hierarchy Standard (FHS).


So I assume your /boot does not exists, was overwritten, or is not readable at all for grub2

Quote:
Stage 1.5: core.img is by default written to the sectors between the MBR and the first partition, when these sectors are free and available. For legacy reasons, the first partition of a hard drive does not begin at sector 1 (counting begins with 0) but at sector 63, leaving a gap of 62 sectors of empty space. That space is not part of any partition or file system, and therefore not prone to any problems related with it. Once executed, core.img will load its configuration file and any other modules needed, particularly file system drivers; at installation time, it is generated from diskboot.img and configured to load the stage 2 by its file path.


on the ohter hand the disc can not be dead because it loads the mbr contents.

So basically I would guess /boot does not exists, the file system of /boot is not readable to grub2 or something else which is missing from /boot
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sat Jan 31, 2015 6:02 pm    Post subject: Reply with quote

I've seen grub was upgraded; but I don't remember installing it.

--update
I just bootstrap and the /boot and grub.conf looks normal the way I install it.
Code:

...
title Gentoo Current Kernel
root (hd0,0)
kernel /boot/kernel-current root=/dev/sda3 vga=normal
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sat Jan 31, 2015 7:57 pm    Post subject: Reply with quote

SOLVED.

I bootstrap from Gentoo CD and run "grub-install" in change-root.
It fixed the problem, but it make me wonder why grub flipped on me. I run upgrade on three other boxes and everything went smooth.
When I run upgrade on my main working server something happen and I can not figure it out.
Back to top
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Sat Feb 28, 2015 12:04 pm    Post subject: Reply with quote

Did you look at the elog-messages after updating the grub ?

Cause I remember that the last time the grub (0.97) was updating there was the requirement to run grub-install before booting the system.
_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sat Feb 28, 2015 2:56 pm    Post subject: Reply with quote

linuxtuxhellsinki wrote:
Did you look at the elog-messages after updating the grub ?

Cause I remember that the last time the grub (0.97) was updating there was the requirement to run grub-install before booting the system.


On some of my systems I upgraded the "grub-install" was run automatically on others didn't. And yes, I've missed that message.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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