Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fixing blank screen with grub prompt (uefi install)
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
c0der935
n00b
n00b


Joined: 23 Aug 2013
Posts: 17
Location: Auckland,NewZealand

PostPosted: Sat Oct 11, 2014 10:51 am    Post subject: Fixing blank screen with grub prompt (uefi install) Reply with quote

I know UEFI is not officially supported but as this is my first time on a UEFI setup (and hopefully my last :)) any help getting this to work would be greatly appreciated.

Problem

After configuring and installing the boot-loader and rebooting (and selecting gentoo from efi boot manager) I get a blank screen with a grub prompt

i.e.

Code:
grub >


My Configuration

The EFI system partition is located on /boot/efi. Grub2 (and all it's associated config files) is located on /boot/efi/EFI/gentoo/ . Kernel is located in /boot as kernel-3.14.14-gentoo. To generate the grub config files I ran
Code:
grub2-mkconfig -o /boot/efi/EFI/gentoo/
and grub found the kernel in /boot .

Contents of /boot/efi/EFI/gentoo

Code:
grub grub.cfg grubx64.efi


and contents of /boot/efi/EFI/gentoo/grub

Code:
fonts grubenv locale themes x86_64-efi


I read that a cause of this could be that grub can't find the grub.cfg file (in /boot/efi/EFI/gentoo/grub.cfg) - but I don't know how to remedy this.
_________________
Windows is great - I used it to download Linux
Back to top
View user's profile Send private message
c0der935
n00b
n00b


Joined: 23 Aug 2013
Posts: 17
Location: Auckland,NewZealand

PostPosted: Sat Oct 11, 2014 9:26 pm    Post subject: Additional information Reply with quote

Here is my grub.cfg

Code:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt10'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt10 --hint-efi=hd0,gpt10 --hint-baremetal=ahci0,gpt10  fe06064a-5d5c-4476-bf86-19c38cbf0a67
else
  search --no-floppy --fs-uuid --set=root fe06064a-5d5c-4476-bf86-19c38cbf0a67
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-fe06064a-5d5c-4476-bf86-19c38cbf0a67' {
   load_video
   set gfxpayload=keep
   insmod gzio
   insmod part_gpt
   insmod ext2
   set root='hd0,gpt10'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt10 --hint-efi=hd0,gpt10 --hint-baremetal=ahci0,gpt10  fe06064a-5d5c-4476-bf86-19c38cbf0a67
   else
     search --no-floppy --fs-uuid --set=root fe06064a-5d5c-4476-bf86-19c38cbf0a67
   fi
   echo   'Loading Linux 3.14.14-gentoo ...'
   linux   /boot/kernel-3.14.14-gentoo root=/dev/sda10 ro 
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-fe06064a-5d5c-4476-bf86-19c38cbf0a67' {
   menuentry 'Gentoo GNU/Linux, with Linux 3.14.14-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14.14-gentoo-advanced-fe06064a-5d5c-4476-bf86-19c38cbf0a67' {
      load_video
      set gfxpayload=keep
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt10'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt10 --hint-efi=hd0,gpt10 --hint-baremetal=ahci0,gpt10  fe06064a-5d5c-4476-bf86-19c38cbf0a67
      else
        search --no-floppy --fs-uuid --set=root fe06064a-5d5c-4476-bf86-19c38cbf0a67
      fi
      echo   'Loading Linux 3.14.14-gentoo ...'
      linux   /boot/kernel-3.14.14-gentoo root=/dev/sda10 ro 
   }
   menuentry 'Gentoo GNU/Linux, with Linux 3.14.14-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14.14-gentoo-recovery-fe06064a-5d5c-4476-bf86-19c38cbf0a67' {
      load_video
      set gfxpayload=keep
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt10'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt10 --hint-efi=hd0,gpt10 --hint-baremetal=ahci0,gpt10  fe06064a-5d5c-4476-bf86-19c38cbf0a67
      else
        search --no-floppy --fs-uuid --set=root fe06064a-5d5c-4476-bf86-19c38cbf0a67
      fi
      echo   'Loading Linux 3.14.14-gentoo ...'
      linux   /boot/kernel-3.14.14-gentoo root=/dev/sda10 ro single
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


And the output of efibootmgr -v
Code:

BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,0001,0002,0005,0004,0003,2001
Boot0000* gentoo   HD(1,800,fa000,47652b61-a2ee-49c0-8ade-8ef922dd2153)File(\EFI\gentoo\grubx64.efi)
Boot0001* Fedora   HD(1,800,fa000,47652b61-a2ee-49c0-8ade-8ef922dd2153)File(\EFI\fedora\shim.efi)
Boot0002* Windows Boot Manager   HD(1,800,fa000,47652b61-a2ee-49c0-8ade-8ef922dd2153)File(\EFI\Microsoft\Boot\bootmgfw.efi)(invalid optional data length)
Boot0003* Network   BIOS(80,0,18)(invalid optional data length)
Boot0004* Hard Drive   BIOS(2,500,18)(invalid optional data length)
Boot0005* CD/DVD/CD-RW Drive   BIOS(3,500,18)(invalid optional data length)
Boot0007* Network   BIOS(80,0,18)(invalid optional data length)
Boot2001* EFI USB Device   RC

_________________
Windows is great - I used it to download Linux
Back to top
View user's profile Send private message
juggling_ben
n00b
n00b


Joined: 25 Nov 2007
Posts: 15

PostPosted: Sun Oct 12, 2014 4:18 am    Post subject: Re: Fixing blank screen with grub prompt (uefi install) Reply with quote

c0der935 wrote:

To generate the grub config files I ran

Code:
grub2-mkconfig -o /boot/efi/EFI/gentoo/




I don't think this is correct. I think you want

Code:
grub2-mkconfig -o /boot/grub/grub.cfg


The grub config shouldn't be in the EFI directory (at least as far as I know. I've only done EFI setup once, and not with gentoo).

If it's getting to grub, then I would think the EFI setup is correct.
Back to top
View user's profile Send private message
c0der935
n00b
n00b


Joined: 23 Aug 2013
Posts: 17
Location: Auckland,NewZealand

PostPosted: Mon Oct 13, 2014 3:12 am    Post subject: Reply with quote

Yea that worked, thanks.
_________________
Windows is great - I used it to download Linux
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