Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to use any EFI bootloader (GRUB2, rEFInd) [SOLVED]
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
alopex
n00b
n00b


Joined: 21 Dec 2016
Posts: 10

PostPosted: Wed Dec 21, 2016 10:46 pm    Post subject: Unable to use any EFI bootloader (GRUB2, rEFInd) [SOLVED] Reply with quote

Hello,

I've been trying to install Gentoo on my Lenovo X1 Yoga for the past few days, with no luck. Every time I install any EFI firmware to boot my computer (tried GRUB2, rEFInd, an appropriately-configured Linux kernel), I've been able to create an EFI boot entry, only to find that attempting to boot with that entry in the startup boot device selector just takes me right back to the selector. No failed boot with GRUB2, no rEFInd menu -- nothing at all, without any indication why it's not working.

I installed Windows prior to Gentoo, and use the EFI partition that it created in this process. This partition is on an NVMe SSD, as is the root partition.

I've confirmed that:

    * I'm using GPT
    * My EFI partition is of type EF00 and is fat32-formatted
    * Secure Boot is disabled.


I've successfully installed both NixOS and XUbuntu in the past on this machine, even with NVMe hard drive, so I'm not sure what's giving me so much trouble. One possible point of concern is that I'm using a Knoppix LiveCD (and not the official Gentoo LiveDVD media, which hangs at boot). I've tried a XUbuntu disk I had lying around, and have had an identical problem.

I'm all out of ideas and I'm not sure how to proceed. Is there anything else that I should try? I don't want to give up on Gentoo for this laptop.


Last edited by alopex on Sat Dec 24, 2016 2:56 am; edited 1 time in total
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1369
Location: Montréal

PostPosted: Thu Dec 22, 2016 1:29 am    Post subject: Reply with quote

Are you sure that the host system (Knoppix, Xubuntu) have boot in Efi mode and in 64 bits? Is the Efi partition always mount in Gentoo chroot? Do you have
Code:
GRUB_PLATFORMS="efi-64"

in /etc/portage/make.conf?

What is the command detail of grub-install you have execute to install Grub2? Do you execute efibootmgr to create an entry in the Efi boot menu or the entry is created by grub-install? What is the output of
Code:
efibootmgr -v

in the host environment? To install Grub, you need to be in chroot in Gentoo but to create an Efi boot menu entry with efibootmgr you can do it out of the chroot in the host environment. I think it is better.

I do not dualboot Windows with Linux. If you had install Gentoo alone on your laptop you had have better possibilities to succeed because, you never know how the Efi firmware beheave with Windows.
_________________
Paul
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Thu Dec 22, 2016 3:11 am    Post subject: Reply with quote

Is https://wiki.gentoo.org/wiki/UEFI_Dual_boot_with_Windows_7/8 familiar to you? It worked well in setting up a dual boot with windows 10 on my ASRock Z170 OC Formula LGA 1151 Intel Z170 Motherboard with one samsung 950 pro for win 10 and another samsung 950 pro for gentoo.
My experience says that there is no inherent incompatibility between m2 nvme drives, uefi, and dual boot with windows 10.
Are there any complications like lvm, raid, or encryption?
What medium did you install from? Suggest you reboot it and run ls /sys/firmware/efi. If the directory is not present and populated you are not booted in uefi mode.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
alopex
n00b
n00b


Joined: 21 Dec 2016
Posts: 10

PostPosted: Thu Dec 22, 2016 3:14 am    Post subject: Reply with quote

Thanks for the quick reply!

Yes, I believe I am booted in EFI mode (and I can see /sys/firmware/efi) and that a 64-bit kernel is loaded in both cases.

GRUB_PLATFORMS was set to "efi-64" in my make.conf prior to building GRUB2, rEFInd, or efibootmgr.

grub-install was successful in creating an entry in the EFI boot menu, but I need to use efibootmgr to create an entry for rEFInd, which will not create one on its own.

Performing a
Code:
efibootmgr -v
yields
Code:
 
BootCurrent: 001B
Timeout: 2 seconds
BootOrder: 0002,0000,0017,0018,0019,001A,001B,001C,0021
Boot0000* Windows Boot Manager   HD(2,GPT,06496bb9-2f44-4d1f-979c-b8bb6a4776e4,0xe1800,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.}....................
Boot0002* rEFInd   HD(1,MBR,0x4294967255,0x800,0x1e3d800)/File(\EFI\refind\refind_x64.efi)
Boot0010  Setup   FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011  Boot Menu   FvFile(126a762d-5758-4fca-8531-201a7f57f850)
Boot0012  Diagnostic Splash Screen   FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0013  Lenovo Diagnostics   FvFile(3f7e615b-0d45-4f80-88dc-26b234958560)
Boot0014  Startup Interrupt Menu   FvFile(f46ee6f4-4785-43a3-923d-7f786c3c8479)
Boot0015  Rescue and Recovery   FvFile(665d3f60-ad3e-4cad-8e26-db46eee9f1b5)
Boot0016  MEBx Hot Key   FvFile(ac6fd56a-3d41-4efd-a1b9-870293811a28)
Boot0017* USB CD   VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot0018* USB FDD   VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0019* NVMe0   VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a400)
Boot001A* ATA HDD0   VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
Boot001B* USB HDD   VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot001C* PCI LAN   VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot001D* IDER BOOT CDROM   PciRoot(0x0)/Pci(0x16,0x2)/Ata(0,1,0)
Boot001E* IDER BOOT Floppy   PciRoot(0x0)/Pci(0x16,0x2)/Ata(0,0,0)
Boot001F* ATA HDD   VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f6)
Boot0020* ATAPI CD   VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
Boot0021* PCI LAN   VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)


(I've deleted the couple of variations on the GRUB2 installation that I tried after reading the manual, rEFInd is the most recent attempt.)
Am I correct to think that the rEFInd entry seems a bit suspicious? The mention of an MBR seems fishy.
Back to top
View user's profile Send private message
alopex
n00b
n00b


Joined: 21 Dec 2016
Posts: 10

PostPosted: Thu Dec 22, 2016 3:18 am    Post subject: Reply with quote

Hello, DONAHUE,

My apologies, I didn't notice your post until after I had replied to Logicien. I used the link you provided when configuring the kernel, and my partition layout is comparable. The only complication is a btrfs root volume, which I had forgotten is a bit non-standard. I'm currently on a Knoppix 64-bit live image (I realize this is unsupported, but the Gentoo live disk hangs shortly after leaving the boot menu).

Thanks for your help!
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1369
Location: Montréal

PostPosted: Thu Dec 22, 2016 3:38 am    Post subject: Reply with quote

Can you navigate with the EFI firmware inside the Efi partition to the path of rEFInd and Grub efi excutables to execute one of them?

Your rEFInd Efi menu entry should look like this
Code:
Boot0002* rEFInd   HD(2,GPT,06496bb9-2f44-4d1f-979c-b8bb6a4776e4,0xe1800,0x32000)/File(\EFI\refind\refind_x64.efi)

following the same path than the Windows Boot Manager entry until the EFI directory. I never use more than one EFI partition on the same machine. How many EFI partitions do you have?
_________________
Paul


Last edited by Logicien on Thu Dec 22, 2016 3:42 am; edited 3 times in total
Back to top
View user's profile Send private message
alopex
n00b
n00b


Joined: 21 Dec 2016
Posts: 10

PostPosted: Thu Dec 22, 2016 3:38 am    Post subject: Reply with quote

In creating a couple experimental entries for rEFInd, I think I may have missed an error message from efibootmgr. When creating new entries, I am warned that:
Code:

GUID Partition Table Header signature is wrong: 0 != 5452415020494645

6 times. Is this cause for concern, or a benign warning?
Back to top
View user's profile Send private message
alopex
n00b
n00b


Joined: 21 Dec 2016
Posts: 10

PostPosted: Thu Dec 22, 2016 3:41 am    Post subject: Reply with quote

Logicien,

I'm not sure that I can, but I'll try nonetheless. If it's useful, the two other entries I tried creating are
Code:

efibootmgr -c -l '\EFI\refind\refind_x64.efi' -L rEFIndForcedGPT -g -p 2 -d /dev/nvme0n1

and
Code:

efibootmgr -c -l '\EFI\refind\refind_x64.efi' -L rEFIndNoDev -g -p 2


and produce

Code:

Boot0001* rEFIndNoDev   HD(2,MBR,0x4294967255,0x0,0x0)/File(\EFI\refind\refind_x64.efi)
Boot0003* rEFIndForcedGPT   HD(2,0,00000000000000000000000000000000,0x0,0x0)/File(\EFI\refind\refind_x64.efi)

in the resulting efibootmgr -v output.

(EDIT -- realized I missed one of your questions. I have only one EFI partition -- nvme0n1p2.)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Thu Dec 22, 2016 3:45 am    Post subject: Reply with quote

MBR is definitely a sign that the rEFInd install went awry.
I see
Quote:
BootOrder: 0000,0005,0002,0003,0001
Boot0000* REFIND HD(2,GPT,cad2219f-3047-4b03-a174-19475754a5cb,0xe1800,0x32000)/File(\EFI\REFIND\REFIND_X64.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.}...o................

I used bcdedit from windows 10 to install rEFInd per the aforementioned wiki article which caused some variation from a grub or efibootmgr format. The MBR in the rEFInd entry suggests the UEFI(bios) may have been in CSM or the boot media was not UEFI capable or not booted in UEFI mode when rEFInd was attempted.
_________________
Defund the FCC.


Last edited by DONAHUE on Thu Dec 22, 2016 3:49 am; edited 1 time in total
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1369
Location: Montréal

PostPosted: Thu Dec 22, 2016 3:48 am    Post subject: Reply with quote

I think it is useful to have the details of your partition tables like fdisk gdisk and blkid see them.
_________________
Paul
Back to top
View user's profile Send private message
alopex
n00b
n00b


Joined: 21 Dec 2016
Posts: 10

PostPosted: Thu Dec 22, 2016 4:14 am    Post subject: Reply with quote

(Updated the BIOS/UEFI for the laptop, just to be sure that wasn't our problem. I have absentmindedly turned on CSM again, but it is now very disabled.)

Interestingly, after deleting the installed refind and running refind-install after that, I get completely different behavior from rEFInd (specifically, it complains about /boot/efi not being mounted, because /boot is, and refuses to proceed). So, I tried GRUB2 again, only to find that it yields the following boot entry:
Code:

Boot0001* gentoo        HD(2,0,00000000000000000000000000000000,0x0,0x0)/File(\EFI\gentoo\grubx64.efi)
which seems quite visibly incorrect!

As requested:

    fdisk output
    Code:

    Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
    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: 7FA1E176-BAF7-4DDF-8077-3F9F956673AD

    Device             Start        End   Sectors   Size Type
    /dev/nvme0n1p1      2048     923647    921600   450M Windows recovery environment
    /dev/nvme0n1p2    923648    1128447    204800   100M EFI System
    /dev/nvme0n1p3   1128448    1161215     32768    16M Microsoft reserved
    /dev/nvme0n1p4   1161216  498186239 497025024   237G Microsoft basic data
    /dev/nvme0n1p5 498186240  996020223 497833984 237.4G Linux filesystem
    /dev/nvme0n1p6 996020224 1000214527   4194304     2G Linux swap


    UUIDs from blkid
    Code:

    /dev/nvme0n1p1: LABEL="Recovery" UUID="CAD0CB72D0CB62F5" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="34acf414-7a8e-4fba-a7ab-2db8354ce093"
    /dev/nvme0n1p4: UUID="BCDACF75DACF2A8A" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="2354a567-b17d-437f-af41-1f4fa21d3ecd"
    /dev/nvme0n1p6: UUID="1ba6d630-b0a4-4ccc-b0ae-3fb7e0f66289" TYPE="swap" PARTUUID="3f4facdd-78f3-4d15-aaa3-e50f01b237d6"
    /dev/sda1: LABEL="KNOPPIX" UUID="E45D-9D82" TYPE="vfat" PARTUUID="000289d7-01"
    /dev/nvme0n1p2: UUID="E6CD-3CB1" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="06496bb9-2f44-4d1f-979c-b8bb6a4776e4"
    /dev/nvme0n1p5: UUID="2c4b1f50-60e5-4f45-ae5f-2ba8f94bc143" UUID_SUB="3e29d8fe-4b3a-4561-86f5-46a7c48de39c" TYPE="btrfs" PARTUUID="1485f246-ff91-445c-9bfc-d869a81fb2b2"
    /dev/cloop0: UUID="2016-10-22-11-42-58-79" LABEL="KNOPPIX_FS" TYPE="iso9660"
    /dev/cloop1: UUID="2016-10-22-16-00-20-00" LABEL="KNOPPIX_ADDONS1" TYPE="iso9660"
    /dev/zram0: UUID="6e65764d-7164-4981-b053-5788006fb2a1" TYPE="swap"
    /dev/nvme0n1: PTUUID="7fa1e176-baf7-4ddf-8077-3f9f956673ad" PTTYPE="gpt"
    /dev/nvme0n1p3: PARTLABEL="Microsoft reserved partition" PARTUUID="b09c2ea5-d203-4922-ac63-9944764d24e9"



Is there an obvious way to proceed?

EDIT: Realized that rEFInd is trivial to install by hand; I just copied it back on the EFI volume. The efibootmgr-created entries look the same.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1369
Location: Montréal

PostPosted: Thu Dec 22, 2016 5:42 am    Post subject: Reply with quote

/dev/nvme0n1p2 is the Efi partition and fdisk say it is a gpt partition table. Do you use it as the boot partition? In this case, it is mounted in the /boot directory of the Gentoo root partition. If not, it is generally mounted in the /boot/efi directory of the Gentoo root partition.

Be sure that when you install Grub, rEFInd and when you use efibootmgr, things are written in the Efi partition. With grub-install, you have an option to specify the directory of the Efi partition mount point (--efi-directory=DIR). Generally the modules efivarfs and efivars need to be loaded if not compiled in the kernel image itself.
Code:
lsmod | grep efi

What is the output of the mount command when you are inside and outside of the chroot?
Code:
mount | grep -e efi -e fat

_________________
Paul
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3081
Location: Illinois, USA

PostPosted: Thu Dec 22, 2016 3:34 pm    Post subject: Reply with quote

I don't see the gdisk output. On my system gparted created the partition with the wrong code, 8700 instead of EF00. I had to use gdisk to correct it. I kept getting MBR boot until I did that.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Thu Dec 22, 2016 4:16 pm    Post subject: Reply with quote

fdisk -l output '/dev/nvme0n1p2 923648 1128447 204800 100M EFI System' equals gdisk output '2 923648 1128447 100.0 MiB EF00 EFI system partition' equals parted -l output '2 473MB 578MB 105MB fat32 EFI system partition boot, esp'
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3081
Location: Illinois, USA

PostPosted: Thu Dec 22, 2016 4:39 pm    Post subject: Reply with quote

Anything in here that might help? https://forums.gentoo.org/viewtopic-t-1055958-highlight-.html
Back to top
View user's profile Send private message
alopex
n00b
n00b


Joined: 21 Dec 2016
Posts: 10

PostPosted: Thu Dec 22, 2016 5:34 pm    Post subject: Reply with quote

nvme0n1p2 is mounted at /boot. Is there anything to be gained by mounting at /boot/efi? I've confirmed that files are written to /boot/efi by both GRUB and rEFInd, and I've specified --efi-directory=/boot when installing GRUB.
The module efivars is loaded on the Knoppix kernel, but I don't see efivarfs. After loading efivarfs and attempting GRUB installation again, the boot menu entry created is exactly the same (a bunch of zeros).
In the case of mount, running it inside the chroot has no output whatsoever. On the outside, however, I get
Code:

knoppix@Microknoppix:/$ mount | grep -e efi -e fat
/dev/sda1 on /mnt-system type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=850,iocharset=utf8,shortname=winnt,utf8,errors=remount-ro)
/dev/nvme0n1p2 on /mnt/gentoo/boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=850,iocharset=utf8,shortname=mixed,utf8,errors=remount-ro)


My apologies for omitting gdisk output, here it is:
Code:

Disk /dev/nvme0n1: 1000215216 sectors, 476.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 7FA1E176-BAF7-4DDF-8077-3F9F956673AD
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1000215182
Partitions will be aligned on 2048-sector boundaries
Total free space is 2669 sectors (1.3 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          923647   450.0 MiB   2700  Basic data partition
   2          923648         1128447   100.0 MiB   EF00  EFI system partition
   3         1128448         1161215   16.0 MiB    0C01  Microsoft reserved ...
   4         1161216       498186239   237.0 GiB   0700  Basic data partition
   5       498186240       996020223   237.4 GiB   8300 
   6       996020224      1000214527   2.0 GiB     8200 


Partition 2 has the correct type (but it's worth double checking, since the Windows installer created it).

Tony --
Thanks for the link! I may end up referring to that to debug a rEFInd configuration once I'm able to use rEFInd at all.
Back to top
View user's profile Send private message
alopex
n00b
n00b


Joined: 21 Dec 2016
Posts: 10

PostPosted: Thu Dec 22, 2016 8:02 pm    Post subject: Reply with quote

I managed to get the official Gentoo LiveDVD to work (the problem was that the intel_pstate module was causing the kernel to lock up), so I'll be using that from now on.
I discovered something interesting and frustrating. I've tried each of the three invocations of efibootmgr:
Code:

efibootmgr -c -l '\EFI\refind\refind_x64.efi' -L rEFIndWithPartition -p 2
efibootmgr -c -l '\EFI\refind\refind_x64.efi' -L rEFIndNoPartition
efibootmgr -c -l '\EFI\refind\refind_x64.efi' -L rEFIndPartAndDisk -p 2 -d /dev/nvme0n1

So, I'm running efibootmgr specifying a partition, specifying a partition and a device, and specifying neither. The output is what's really puzzling:
Code:

Boot0001* rEFIndWithPartition   HD(2,GPT,00000000-0000-0000-0000-000000000000,0x0,0x1)/File(\EFI\refind\refind_x64.efi)
Boot0002* rEFIndNoPartition     HD(1,GPT,f6ca6483-50d7-4df7-9846-191eba5a5807,0x800,0x1e3d7df)/File(\EFI\refind\refind_x64.efi)
Boot0003* rEFIndPartAndDisk     HD(2,0,00000000000000000000000000000000,0x0,0x0)/File(\EFI\refind\refind_x64.efi)


Based on the man page, I am under the impression that this is not the correct behavior: Any time I include my NVMe disk, the boot menu entry doesn't specify either MBR or GPT. Any time I specify the partition, I get a inexplicably zeroed UUID. If I specify neither, efibootmgr assumes that I mean /dev/sda and partition 1, and gives me a suitable entry for my liveDVD image, with the device uuid for my flash drive (which is the documented behavior -- it should default to /dev/sda). Am I looking at a bug?
Back to top
View user's profile Send private message
alopex
n00b
n00b


Joined: 21 Dec 2016
Posts: 10

PostPosted: Thu Dec 22, 2016 9:31 pm    Post subject: Reply with quote

So, another experiment:
Code:

efibootmgr -c -l '\EFI\refind\refind_x64.efi' -L DoesThisAlwaysBreak -p 1 -d /dev/sda

produces the correct output (same as not specifying -d or -p).

I suspect that the issue is with the version of efivar (0.21) which ships with Gentoo. It looks like version 27 changes how it handles nvme drives in part of efi_generate_file_device_path_from_esp in linux.c.
After rebuilding efivar and efibootmgr from their latest ebuilds, I finally get a sane EFI entry!

Code:


efibootmgr -c -l '\EFI\refind\refind_x64.efi' -L withNewEFIBOOTMGR -p 2 -d /dev/nvme0n1

...
Boot0009* withNewEFIBOOTMGR     HD(2,GPT,06496bb9-2f44-4d1f-979c-b8bb6a4776e4,0xe1800,0x32000)/File(\EFI\refind\refind_x64.efi)


I can't try it out until I'm back in the house (should have left for somewhere 10 minutes ago; yikes), but I'll let you all know if it works.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3081
Location: Illinois, USA

PostPosted: Thu Dec 22, 2016 10:33 pm    Post subject: Reply with quote

I used these:
Code:
[ebuild   R    ] sys-boot/gnu-efi-3.0.3::gentoo  ABI_X86="(64) -32" 139 KiB
[ebuild   R    ] sys-boot/efibootmgr-0.12::gentoo  35 KiB
[ebuild   R    ] sys-apps/gptfdisk-1.0.1::gentoo  USE="ncurses -static" 191 KiB
[ebuild   R    ] sys-boot/refind-0.10.4-r2::gentoo  USE="doc ext2 ext4 (gnuefi) iso9660 ntfs -btrfs -custom-cflags -hfs -reiserfs" 3,878 KiB]

And initially booted with sysrescuecd 4.9.0 (current as of Oct 2016) I had to boot several of the choices until one worked (booted).
Rod Smith strenuously suggests NOT using custom-cflags.


Last edited by Tony0945 on Fri Dec 23, 2016 1:21 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Fri Dec 23, 2016 12:53 am    Post subject: Reply with quote

Suggest a visit to http://www.rodsbooks.com/refind/getting.html and use the directions provided to create a rEFInd cd or usb flash drive. Boot said rEFInd cd/usb, what does it find as bootable?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
alopex
n00b
n00b


Joined: 21 Dec 2016
Posts: 10

PostPosted: Sat Dec 24, 2016 2:56 am    Post subject: Reply with quote

An update -- turns out that the new boot entries w/ updated efivar work, and my woes were caused by a bug in efivar (see https://github.com/rhinstaller/efibootmgr/issues/48 for exactly what's wrong).

The solution, if you have an NVMe drive and want to boot Gentoo from it, is to create a "sane" boot entry by either editing EFI variables in Windows, or unmasking newer (>= 27) versions of efivar and efibootmgr and using those instead of the ones marked stable.

Thanks to all for their help -- I doubt I would have figured out my problem without it.
Back to top
View user's profile Send private message
TheDarkHorde
n00b
n00b


Joined: 15 Oct 2016
Posts: 9
Location: Taiwan

PostPosted: Mon Dec 26, 2016 4:59 am    Post subject: Works! Reply with quote

Just expressing some gratittude here: This thread made my day.

Exactly the same problem and solution here (unmasking efivar & efibootmgr).

Cheers,
Ashwin
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