unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: Arne Babenhauserheide <arne_bab@web.de>
Cc: 40496@debbugs.gnu.org
Subject: bug#40496: cannot install bootloader
Date: Wed, 08 Apr 2020 11:53:52 +0200	[thread overview]
Message-ID: <87369el2vj.fsf@devup.no> (raw)
In-Reply-To: <87sghe8oc6.fsf@web.de>

[-- Attachment #1: Type: text/plain, Size: 2226 bytes --]

Arne Babenhauserheide <arne_bab@web.de> writes:

> Marius Bakke <mbakke@fastmail.com> writes:
>
>> I hope you are able to recover your system. If the problem is "just"
>> that the boot entry is missing,
>
> Do you mean in grub?

I mean in the firmware boot menu.  The way UEFI works is that
bootloaders update the firmware directly with a name, EFI System
Partition, and executable (most likely "/EFI/Guix/grubx64.efi").

>> you should be able to create a new one
>> with "efibootmgr --create" manually. Here is a typical entry with the
>> EFI System Partition as the first partition of a disk:
>>
>> # efibootmgr -v
>> BootCurrent: 0000
>> Timeout: 1 seconds
>> BootOrder: 0000,0002
>> Boot0000* Guix  HD(1,GPT,32944052-6012-4cda-b270-fe653d430c84,0x800,0x4800)/File(\EFI\Guix\grubx64.efi)
>
> When I run efibootmgr -v, I get an error:
> $ efibootmgr -v
> EFI variables are not supported on this system.

This also requires booting in "EFI mode" so that /sys/firmware/efi is
present.  The live USB image supports EFI, but you may need to disable
"legacy boot" to make it boot in EFI mode.

>> 1 is the partition number, and the UUID is the same as 'lsblk -o
>> PARTUUID /dev/sda1' assuming your disk is /dev/sda.  I don't remember
>> what 0x800 and 0x4800 means, but don't think they are required.
>
> I get somewhat too little information from that:
>
> $ lsblk -O /dev/nvme1n1p1
> NAME KNAME PATH MAJ:MIN FSAVAIL FSSIZE FSTYPE FSUSED FSUSE% MOUNTPOINT LABEL UUID PTUUID PTTYPE PARTTYPE PARTLABEL PARTUUID PARTFLAGS  RA RO RM HOTPLUG MODEL SERIAL  SIZE STATE OWNER GROUP MODE       ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED RQ-SIZE TYPE DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO WSAME WWN RAND PKNAME HCTL TRAN   SUBSYSTEMS REV VENDOR ZONED
> nvme1n1p1
>      nvme1n1p1
>            /dev/nvme1n1p1
>                 259:2     15,4G 884,9G        824,5G    93% /home                                                                     128  0  0       0               900G       root  disk  brw-rw----         0    512      0     512     512    0 none     1023 part        0      512B       2T         0    0B        0             nvme   block:nvme:pci

You probably need to use "sudo" to read the PARTUUID.

HTH,
Marius

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2020-04-08  9:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-07 20:24 bug#40496: cannot install bootloader Arne Babenhauserheide
2020-04-07 20:40 ` Marius Bakke
2020-04-07 21:16   ` Arne Babenhauserheide
2020-04-07 22:38     ` Marius Bakke
2020-04-08  6:48       ` Arne Babenhauserheide
2020-04-08  9:53         ` Marius Bakke [this message]
2020-04-08 20:33           ` Arne Babenhauserheide
2020-04-08 22:18             ` Arne Babenhauserheide
2020-04-07 22:08 ` Ludovic Courtès
2020-04-07 22:23   ` Arne Babenhauserheide

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87369el2vj.fsf@devup.no \
    --to=mbakke@fastmail.com \
    --cc=40496@debbugs.gnu.org \
    --cc=arne_bab@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).