Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub2 (uefi) installation: blank screen during boot
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
dimorphus
n00b
n00b


Joined: 29 Apr 2019
Posts: 3

PostPosted: Mon Apr 29, 2019 2:05 am    Post subject: Grub2 (uefi) installation: blank screen during boot Reply with quote

Need to setup bootloader (grub2) on Dell XPS 15 9570. Dual boot with Windows. Trying to install it according to the instruction https://wiki.gentoo.org/wiki/GRUB2. Booting hangs on black screen with white caret.

Disk configuration: EFI on nvme0n1p2, boot on nvme0n1p6, LVM on nvme0n1p7.
Code:

$ fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: PM981 NVMe Samsung 512GB               
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 4B0109AE-EB39-484C-8931-7AF7B0366554

Device             Start        End   Sectors   Size Type
/dev/nvme0n1p1      2048    1023999   1021952   499M Windows recovery environment
/dev/nvme0n1p2   1024000    1228799    204800   100M EFI System
/dev/nvme0n1p3   1228800    1261567     32768    16M Microsoft reserved
/dev/nvme0n1p4   1261568  451823487 450561920 214.9G Microsoft basic data
/dev/nvme0n1p5 998309888 1000212479   1902592   929M Windows recovery environment
/dev/nvme0n1p6 451823616  452872191   1048576   512M Linux filesystem
/dev/nvme0n1p7 452872192  998309887 545437696 260.1G Linux LVM


/boot and /boot/efi are on separate partitions.
Code:

$ mount
/dev/mapper/vg0-root on / type ext4 (rw,relatime)
/dev/mapper/vg0-home on /home type ext4 (rw,relatime)
/dev/nvme0n1p6 on /boot type ext2 (rw,relatime,block_validity,barrier,user_xattr,acl)
/dev/nvme0n1p2 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
none on /proc type proc (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=8049904k,nr_inodes=2012476,mode=755)
tmpfs on /run/udev type tmpfs (rw,nosuid,nodev,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)


Grub2 is build with lvm. GRUB_PRELOAD_MODULES=lvm enabled. grub-mkconfig:
Code:

grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Found linux image: /boot/kernel-genkernel-x86_64-4.19.27-gentoo-r1
Found initrd image: /boot/initramfs-genkernel-x86_64-4.19.27-gentoo-r1
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Found Windows Boot Manager on /dev/nvme0n1p2@/EFI/Microsoft/Boot/bootmgfw.efi
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Found Fedora 29 (Workstation Edition) on /dev/mapper/fedora-root
done


grub-install:
Code:

grub-install --efi-directory=/boot/efi
Installing for x86_64-efi platform.
Installation finished. No error reported.


efibootmgr (Fedora on external hdd):
Code:

$ efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0001,0002,0000
Boot0000* Windows Boot Manager   HD(2,GPT,e39ddb73-570c-4b83-82ae-65b2e384dc30,0xfa000,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...C................
Boot0001* gentoo   HD(2,GPT,e39ddb73-570c-4b83-82ae-65b2e384dc30,0xfa000,0x32000)/File(\EFI\gentoo\grubx64.efi)
Boot0002* Fedora   HD(1,GPT,c1444ccc-955d-4e0e-a3a8-05a3c8f0c900,0x800,0x64000)/File(\EFI\fedora\shimx64.efi)


Don't know what to do next to fix the issue.

[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
nick_gentoo
n00b
n00b


Joined: 07 Jan 2019
Posts: 72

PostPosted: Mon Apr 29, 2019 6:03 am    Post subject: Reply with quote

Hi, dimorphus

When exactly does it hang: do you get to see the Grub menu and select an entry, or is it before that?
Back to top
View user's profile Send private message
dimorphus
n00b
n00b


Joined: 29 Apr 2019
Posts: 3

PostPosted: Mon Apr 29, 2019 12:01 pm    Post subject: Reply with quote

Hi!

Quote:
When exactly does it hang: do you get to see the Grub menu and select an entry, or is it before that?


Before that. The Grub menu doesn't appear. But it's possible to switch from "UEFI Boot Menu" to the external drive with Grub2 installed on it by Fedora, then select the Gentoo kernel from internal drive and boot it. However this doesn't help me with Grub2 installed on internal drive by Gentoo.
Back to top
View user's profile Send private message
nick_gentoo
n00b
n00b


Joined: 07 Jan 2019
Posts: 72

PostPosted: Mon Apr 29, 2019 12:57 pm    Post subject: Reply with quote

I don't have another idea right now, as the configuration you posted looks ok.

Just for a sanity check: was /boot/efi mounted when you ran grub-install? With it mounted, the grub executable should be at /boot/efi/efi/gentoo/grubx64.efi.
This is to ensure that grub was actually installed where the computer expects to find it...but I imagine that it would give an error message if it didn't find it, not hang.

Another hypothesis: grub is actually found and launched, but has a problem. Could you post the grub useflags?
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5873

PostPosted: Mon Apr 29, 2019 7:56 pm    Post subject: Reply with quote

hopefully i got the right thread this time :lol:

if fat32 doesn't work for efi, try fat16, some dell laptops are kindof junk. :lol:
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
dimorphus
n00b
n00b


Joined: 29 Apr 2019
Posts: 3

PostPosted: Mon Apr 29, 2019 10:46 pm    Post subject: Reply with quote

Quote:
Another hypothesis: grub is actually found and launched, but has a problem. Could you post the grub useflags?


Use flags:
Code:
[ebuild   R    ] sys-boot/grub-2.02-r3:2/2.02-r3::gentoo  USE="device-mapper fonts mount nls sdl themes truetype -debug -doc -efiemu -libzfs -multislot -static (-test)" GRUB_PLATFORMS="efi-64 pc -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -qemu -qemu-mips -uboot -xen -xen-32"


File:
Code:
$ ls -la /boot/efi/EFI/gentoo/grubx64.efi
-rwxr-xr-x 1 root root 120832 апр 30 01:34 /boot/efi/EFI/gentoo/grubx64.efi


Quote:
if fat32 doesn't work for efi, try fat16, some dell laptops are kindof junk.

This is a standard partition, I didn't change it. vfat is used.
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 606

PostPosted: Tue Apr 30, 2019 4:49 pm    Post subject: Reply with quote

dimorphus wrote:

Before that. The Grub menu doesn't appear. But it's possible to switch from "UEFI Boot Menu" to the external drive with Grub2 installed on it by Fedora, then select the Gentoo kernel from internal drive and boot it. However this doesn't help me with Grub2 installed on internal drive by Gentoo.


I am having some trouble understanding exactly what you are saying here. It sounds like you have GRUB installed on both drives and GURB won't load on the Gentoo drive but will on the Fedora drive, from Fedora you are able to boot your Gentoo system. Is that correct?

Was /boot mounted before you ran gurb-install?

I haven't used GRUB in several years now as it is no longer necessary on UEFI systems even for multi booting. However from what I can remember you only need to install it in a single location and then add menu entries for booting other systems.
Back to top
View user's profile Send private message
nick_gentoo
n00b
n00b


Joined: 07 Jan 2019
Posts: 72

PostPosted: Wed May 01, 2019 11:36 am    Post subject: Reply with quote

dimorphus, I think this again looks ok. Some more random things I could think about right now:
  • post here your grub.conf, to make sure that there is a timeout set in there to allow you to see the list of boot entries
  • from your first post it looks like you ran grub-mkconfig with the external drive plugged in, could you try without it?
  • maybe try to configure grub on the external drive for launching the grub instance on the internal drive (to exclude a bad interaction between grub and your UEFI implementation, if that's really possible)
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