Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Grub Not booting
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
Colt45
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2007
Posts: 102
Location: Central Washington

PostPosted: Wed Nov 23, 2016 7:41 am    Post subject: [SOLVED] Grub Not booting Reply with quote

I rebooted my router today to bring it up to date and it got to "Welcome to GRUB!" and that was about it. I had to download grub rescue disk and put it on a usb key to boot the damn thing.

Im running LVM for all partitions, except for the 32MB BIOS boot partition.
Also running a Hardened Kernel.

My suspicion is that grub isnt getting updated on disk even though I am running 'grub-install'

This is the output I get from that
Code:
hopps ~ # grub-install /dev/sda
Installing for i386-pc platform.
You have a memory leak (not released memory pool):
 [0x5231dcfd20] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
 [0x5231dd0bb0] dtree
Internal error: Unreleased memory pool(s) found.
You have a memory leak (not released memory pool):
 [0x5231dd0bf0] dtree
Internal error: Unreleased memory pool(s) found.
Installation finished. No error reported.

I trusted it, since it says "Installation finished." But I don't know how to check its actually working.
For reference, the 'grub-mkconfig' command has similar output, but it does work. A new cfg gets written to disk.

Any assistance would be appreciated!
_________________
"Hopps" - AMD Athlon X2 4450B, 4GB, 128GB Samsung SSD, (Gentoo Hardened amd64; gcc-4.9.3; 4.4.8-hardened-r1)
"Dash" - 2x Intel Xeon 5148, 12GB FB-DIMM, 3x Samsung 1TB (mdadm RAID 5), AMD HD6950, (Gentoo amd64-multilib; gcc-5.3.0; 4.4.0-pf4)


Last edited by Colt45 on Fri Nov 25, 2016 4:01 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7130
Location: almost Mile High in the USA

PostPosted: Wed Nov 23, 2016 5:13 pm    Post subject: Reply with quote

If you get the grub prompt when you boot, grub installed fine - but it couldn't find the config file.

When you run grub-mkconfig, are you placing it on the disk at the right spot? bootdiskpath/grub/grub.cfg I think (I'm getting confused with the grub1/grub2/grub2-without-rename mixtures that I run...)
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Colt45
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2007
Posts: 102
Location: Central Washington

PostPosted: Thu Nov 24, 2016 1:22 am    Post subject: Reply with quote

Yup, putting it in /boot/grub/grub.cfg

I downloaded a grub booter on a usb key and it seems to find it fine.
_________________
"Hopps" - AMD Athlon X2 4450B, 4GB, 128GB Samsung SSD, (Gentoo Hardened amd64; gcc-4.9.3; 4.4.8-hardened-r1)
"Dash" - 2x Intel Xeon 5148, 12GB FB-DIMM, 3x Samsung 1TB (mdadm RAID 5), AMD HD6950, (Gentoo amd64-multilib; gcc-5.3.0; 4.4.0-pf4)
Back to top
View user's profile Send private message
Colt45
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2007
Posts: 102
Location: Central Washington

PostPosted: Fri Nov 25, 2016 4:01 am    Post subject: Reply with quote

So it turns out it shows this prompt because I had set the grub to display on the serial port. You see this machine is normally headless and I use a serial device server if I need to monitor bootup or possibly a backdoor if I accidentally DROP all traffic in iptables or seomthing like that.
I had to connect a monitor as the CMOS battery went dead at some point and when we lost power I quickly discovered it wouldn't boot as the BIOS settings had been lost.
After fixing, I was watching the monitor expecting it to boot and I apperantly was too impatient and completely forgot about the serial server.
TL;DR, user error! :oops:
_________________
"Hopps" - AMD Athlon X2 4450B, 4GB, 128GB Samsung SSD, (Gentoo Hardened amd64; gcc-4.9.3; 4.4.8-hardened-r1)
"Dash" - 2x Intel Xeon 5148, 12GB FB-DIMM, 3x Samsung 1TB (mdadm RAID 5), AMD HD6950, (Gentoo amd64-multilib; gcc-5.3.0; 4.4.0-pf4)
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