installer icon indicating copy to clipboard operation
installer copied to clipboard

Configuring bootloader error

Open stsdc opened this issue 3 years ago • 13 comments

I'm trying to install eOS 6 build on separate drive (500Gb). Right now I'm running eOS 5 in dualboot with Windows 10: obraz obraz obraz obraz

I tried to install eOS 6 on sdd, but got this error:

INFO: configuring bootloader
INFO: running "chroot" "/tmp/distinst.NJBJEwtbXwRd" "kernelstub" "--esp-path" "/boot/efi" "--add-options" "quiet loglevel=0 systemd.show_status=false splash" "--loader" "--manage-only" "--force-update" "--verbose"
INFO: running "chroot" "/tmp/distinst.NJBJEwtbXwRd" "update-grub"
WARN: Sourcing file `/etc/default/grub'
WARN: Sourcing file `/etc/default/grub.d/init-select.cfg'
WARN: Generating grub configuration file ...
WARN: Found linux image: /boot/vmlinuz-5.4.0-62-generic
WARN: Found initrd image: /boot/initrd.img-5.4.0-62-generic
WARN:   /dev/sdf: open failed: No medium found
WARN:   /dev/sdg: open failed: No medium found
WARN:   /dev/sdf: open failed: No medium found
WARN:   /dev/sdg: open failed: No medium found
WARN: Found elementary OS 5.1.7 Hera (5.1.7) on /dev/sdc1
INFO: configuring keyboard layout
INFO: running "chroot" "/tmp/distinst.NJBJEwtbXwRd" "localectl" "set-x11-keymap" "us" "" ""
INFO: running "chroot" "/tmp/distinst.NJBJEwtbXwRd" "/usr/bin/env" "-i" "SYSTEMCTL_SKIP_REDIRECT=_" "openvt" "--" "sh" "/etc/init.d/console-setup.sh" "reload"
INFO: running "chroot" "/tmp/distinst.NJBJEwtbXwRd" "ln" "-s" "/etc/console-setup/cached_UTF-8_del.kmap.gz" "/etc/console-setup/cached.kmap.gz"
INFO: running "chroot" "/tmp/distinst.NJBJEwtbXwRd" "update-initramfs" "-u"
INFO: update-initramfs: Generating /boot/initrd.img-5.4.0-62-generic
INFO: starting configuring bootloader step
INFO: /dev/sdd: installing bootloader for Bios
INFO: running "chroot" "/tmp/distinst.NJBJEwtbXwRd" "grub-install" "--recheck" "--target=i386-pc" "/dev/sdd"
WARN: Installing for i386-pc platform.
WARN: grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
WARN: grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
WARN: grub-install: error: will not proceed with blocklists.
ERROR: configuring bootloader error: command failed with exit status: exit code: 1

stsdc avatar Jan 25 '21 19:01 stsdc

From your partition layout, it looks as though this is an EFI system, not a legacy BIOS system?

However, it looks as though, the installer has detected it as a BIOS system. You didn't boot the installer in some kind of legacy mode or something did you?

davidmhewitt avatar Jan 25 '21 20:01 davidmhewitt

I have two options when in Boot Menu.

  • USB SanDisk
  • UEFI SanDisk

I'll try again too boot in UEFI, to be sure I did not chose non-UEFI mode. Be back in 15min.

stsdc avatar Jan 25 '21 20:01 stsdc

OK. So this time I did use UEFI boot option and got now the same error, but different error code. IMG_20210125_213857264.jpg

exit status code: 5 sorry for pointer hovering over the number.

stsdc avatar Jan 25 '21 20:01 stsdc

That's definitely a different error, the full log would be helpful. Also which partition are you selecting as your /boot/efi mount point?

davidmhewitt avatar Jan 25 '21 20:01 davidmhewitt

obraz The smaller one :)

installer.log

stsdc avatar Jan 25 '21 21:01 stsdc

Out of interest, have you tried booting that drive you've installed elementary on using your PC's BIOS/Firmware boot options?

davidmhewitt avatar Jan 26 '21 11:01 davidmhewitt

Also thought about this, but forgot to test. And it works!

When booting from sdd (eOS 6) it shows proper list of all installed systems.

However installer should add eOS 6 to already existing grub, I suppose.

stsdc avatar Jan 26 '21 12:01 stsdc

The last step of the installer is supposed to configure your system's EFI to boot from the new GRUB installation by default. So your system would boot elementary OS 6.0's GRUB menu, which should contain options for all other OSes installed on your PC.

It is this last step that is failing for some reason. We can see from the logs that it's trying to run the following:

efibootmgr --create --disk /dev/sdd --part 2 --write-signature --label "elementary OS 6 Early Access" --loader \\EFI\\ubuntu\\grubx64.efi

If you wanted, you could try running that within the newly installed elementary OS 6.0 system and add a --verbose flag too. It might give some more helpful output about why it's failing. It will need sudo too.

davidmhewitt avatar Jan 26 '21 12:01 davidmhewitt

sudo efibootmgr --create --disk /dev/sdd --part 2 --write-signature --label "elementary OS 6 Early Access" --loader \\EFI\\ubuntu\\grubx64.efi --verbose

produces this:

BootCurrent: 000A
Timeout: 1 seconds
BootOrder: 0002,0000,0001,000A,0006,0007
Boot0000* ubuntu	HD(2,GPT,bb355a6b-5675-430c-a7a2-feb6de3efce5,0xfa000,0x32000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0001* Windows Boot Manager	HD(2,GPT,bb355a6b-5675-430c-a7a2-feb6de3efce5,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.}...M................
Boot0006* Hard Drive	BBS(HD,,0x0)..GO..NO........u.H.i.t.a.c.h.i. .H.T.S.5.4.7.5.5.0.A.9.E.3.8.4....................A.................................>..Gd-.;.A..MQ..L. . . . . . .2.J.6.1.0.0.1.5.7.D.W.1.D.A........BO..NO........u.S.T.1.0.0.0.L.M.0.4.8.-.2.E.7.1.7.2....................A.................................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .G.W.3.S.4.K.0.0........BO..NO........u.L.I.T.E.O.N.I.T. .L.C.S.-.1.2.8.M.6.S....................A.................................>..Gd-.;.A..MQ..L.0.0.4.2.2.5.2.1.0.6.7.2. . . . . . . . ........BO..NO........u.P.N.Y. .C.S.9.0.0. .5.0.0.G.B. .S.S.D....................A.................................>..Gd-.;.A..MQ..L.N.P.1.Y.2.0.2.0.8.2.1.5.0.2.0.1.2.3.3.A........BO
Boot0007* USB	BBS(USB,,0x0)..GO..NO........g.G.e.n.e.r.i.c. .M.a.s.s.S.t.o.r.a.g.e.C.l.a.s.s.1.5.3.8....................A......................................Gd-.;.A..MQ..L.0.0.0.0.0.0.0.0.1.5.3.8........BO..NO........l.G.e.n.e.r.i.c. .M.a.s.s.S.t.o.r.a.g.e.C.l.a.s.s.1.5.3.8....................A...........................................Gd-.;.A..MQ..L.0.0.0.0.0.0.0.0.1.5.3.8........BO
Boot000A* ubuntu	HD(2,GPT,80811ddd-9a03-4917-a6a2-c57cfb9bb966,0x3a192000,0x1f3ffe)/File(\EFI\UBUNTU\SHIMX64.EFI)..BO
Boot0002* elementary OS 6 Early Access	HD(2,GPT,00000000-0000-0000-0000-000000000000,0x0,0x1)/File(\EFI\ubuntu\grubx64.efi)

stsdc avatar Jan 26 '21 19:01 stsdc

That looks like it probably worked without errors. Does your PC use the elementary OS 6.0 GRUB on the next boot?

davidmhewitt avatar Jan 26 '21 22:01 davidmhewitt

Nope :grimacing:

stsdc avatar Jan 26 '21 22:01 stsdc

If you run the efibootmgr command again, do you get the same output?

What is the result of echo $? after running the efibootmgr command?

davidmhewitt avatar Jan 26 '21 22:01 davidmhewitt

Got this:

efibootmgr: ** Warning ** : Boot0002 has same label elementary OS 6 Early Access
Could not prepare Boot variable: Invalid argument

But I also still have set eOS 5 as first boot device in BIOS. So maybe that's because of it :thinking:

stsdc avatar Jan 27 '21 13:01 stsdc