Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub2 with GPT and UEFI don't read grub.conf file
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
hiroru
n00b
n00b


Joined: 15 Jul 2010
Posts: 3

PostPosted: Mon Apr 14, 2014 3:27 pm    Post subject: Grub2 with GPT and UEFI don't read grub.conf file Reply with quote

Hi Guys,

After many hours trying to solve it by myself I'm exhausted :x

I have Grub2 working with GPT and UEFI but, Grub always run with minimal-bash command line. Once there, if I do:

Code:
configfile /grub/grub.conf


It shows my menu and Gentoo start smoothly....

This is my fstab:

Code:

/dev/sda2 on /boot type ext4 (rw,relatime,noatime,discard)
/dev/sdb1 on /home type ext4 (rw,relatime,noatime,discard)
/dev/sda1 on /boot/efi type vfat (rw) <-- Of course, this is EFI EF00 Partition


And this is my /boot dir tree:

Code:

.
|-- efi
|   `-- EFI
|       `-- gentoo
|           |-- grub.conf
|           `-- grubx64.efi
|-- grub
|   |-- fonts
|   |   `-- unicode.pf2
|   |-- grub.conf
|   |-- grub.conf.bak
|   |-- grubenv
|   |-- locale
|   |   |-- ast.mo
|   |   |-- [...]
|   |   `-- zh_TW.mo
|   |-- themes
|   |   `-- starfield
|   |       |-- blob_w.png
|   |       |-- [...]
|   |       `-- theme.txt
|   `-- x86_64-efi
|       |-- acpi.mod
|       |-- [...]
|       `-- zfs.mod
|-- initramfs-genkernel-x86_64-3.12.13-gentoo
|-- kernel-genkernel-x86_64-3.12.13-gentoo
|-- lost+found
`-- System.map-genkernel-x86_64-3.12.13-gentoo


Any idea here? :oops:

Thank in advance
_________________
Old Gentoo User, coming back to the roots (from Debian)
Back to top
View user's profile Send private message
jfp
Apprentice
Apprentice


Joined: 08 Jul 2007
Posts: 275
Location: Virginia, USA

PostPosted: Mon Apr 14, 2014 5:24 pm    Post subject: Reply with quote

Just an idea.
try renaming your /boot/grub/grub.conf to /boot/grub/grub.cfg
From /etc/default/grub
Code:
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
#     'grub2-mkconfig -o /boot/grub/grub.cfg'

_________________
jfp
Back to top
View user's profile Send private message
srs5694
Guru
Guru


Joined: 08 Mar 2004
Posts: 432
Location: Woonsocket, RI

PostPosted: Tue Apr 15, 2014 2:01 am    Post subject: Reply with quote

My suggestion is to replace GRUB 2 with something else. IMHO, GRUB 2 is overly-complex and far too difficult to configure. Every other EFI boot loader for Linux is easier to configure, at least when using a distribution like Gentoo that expects users to do much of the work. (Fedora, Ubuntu, and similar distributions have scripts that set GRUB 2 up tolerably well for typical configurations.) See the following page for information on the alternatives:

http://www.rodsbooks.com/efi-bootloaders/
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 332
Location: Canada

PostPosted: Tue Apr 15, 2014 2:38 am    Post subject: Reply with quote

If you liked the way that grub-0.97 could be configured and used, then see
http://wiki.gentoo.org/wiki/GRUB2_Quick_Start#Automatic_Configuration

for how to use grub2 much the same way.

In particular note the section "Manual Configuration"
Back to top
View user's profile Send private message
hiroru
n00b
n00b


Joined: 15 Jul 2010
Posts: 3

PostPosted: Tue Apr 15, 2014 7:51 am    Post subject: Reply with quote

jfp wrote:
Just an idea.
try renaming your /boot/grub/grub.conf to /boot/grub/grub.cfg
From /etc/default/grub
Code:
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
#     'grub2-mkconfig -o /boot/grub/grub.cfg'


Thank you jfs,

I have a sense of shame about this..... but it's true, simply change grub.conf with grub.cgf :?
_________________
Old Gentoo User, coming back to the roots (from Debian)
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