View previous topic :: View next topic |
Author |
Message |
PeeJay n00b
Joined: 15 Aug 2004 Posts: 46 Location: Sydney, Australia
|
Posted: Mon Mar 17, 2014 11:22 am Post subject: [Solved] Grub2 not loading grub.cfg |
|
|
I'm trying to get grub2 working after moving a new install to another disk. The new disk is gpt partitioned and I have a 6mb ef02 partition for grub to use (and it complains without it). I perform the following:
Code: | grub2-mkconfig -o /boot/grub/grub.cfg
grub2-install --recheck /dev/sda |
and I get "Installation finished. No error reported."
on reboot I get a normal grub2 command prompt. running:
Code: | configfile $prefix/grub.cfg |
gets me the menu.
Why won't it load the config file automatically?
Last edited by PeeJay on Thu Mar 20, 2014 5:43 am; edited 1 time in total |
|
Back to top |
|
|
WillMcDade n00b
Joined: 17 Mar 2014 Posts: 6 Location: Wales, GB
|
Posted: Tue Mar 18, 2014 7:59 pm Post subject: |
|
|
If that is the order you are doing it, it is the WRONG order. Sorry to have a simple answer but try
Code: |
grub2-install /dev/sda
|
THEN AFTER THAT
Code: |
grub2-mkconfig -o /boot/grub/grub.cfg
|
Hope this helps!
Will _________________ The Penguin has arrived, and he will not leave your hard drive. |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Tue Mar 18, 2014 10:06 pm Post subject: |
|
|
Perhaps /boot is a separate partition for you and you do not have the symlink "boot -> ." in it? |
|
Back to top |
|
|
PeeJay n00b
Joined: 15 Aug 2004 Posts: 46 Location: Sydney, Australia
|
Posted: Thu Mar 20, 2014 5:46 am Post subject: |
|
|
I figured it out - on another Gentoo install I noticed I had two files - grub.cfg and grub.conf. Despite reading ".cfg" in numerous places I had somehow called the file ".conf"
Doh!!!! Stupid.
Thanks for the help everyone! |
|
Back to top |
|
|
.:deadhead:. Advocate
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
|
Back to top |
|
|
|