Bootloader could not be installed

Hello, I'm contacting you because I can't install garuda (classic version)
Every time I try I get the error message:

The bootloader could not be installed.


So there, what I try :

  1. Basic installation (with complete erase of previous OS). Which sent me this message:

The bootloader could not be installed. The installation command

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Garuda --force
 returned error code 1.

  1. After a research I found this command
╭─[email protected] in ~
╰─λ parted -l | grep -iE "^Disk /|esp" | grep -B1 esp
McFly: Importing shell history for the first time. This may take a minute or two...done.

╭─[email protected] in ~ as πŸ§™ took 189ms
[[βœ”οΈ]|[πŸ”΄]|[πŸ”΄]] => πŸ”΄ERROR Γ—
  1. find this topic and followed it Grub fails after update - #3 by librewish

Result of first command

╭─[email protected] in ~ as πŸ§™ took 15ms
╰─λ lsblk -f
NAME FSTYPE FSVER LABEL            UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0
squash 4.0                                                               0   100% /run/miso/sfs/livefs
loop1
squash 4.0                                                               0   100% /run/miso/sfs/mhwdfs
loop2
squash 4.0                                                               0   100% /run/miso/sfs/desktopfs
loop3
squash 4.0                                                               0   100% /run/miso/sfs/rootfs
sda                                                                                    
β”œβ”€sda1
β”‚    vfat   FAT32 NO_LABEL         E342-EC0F                             299.1M     0% /tmp/calamares-root-bnybavre/boot/efi
β”œβ”€sda2
β”‚    btrfs                         408d7ef8-41b8-45a0-aed4-cdf7c782358f  103.2G     6% /mnt/broken/@/boot/efi
β”‚                                                                                      /mnt/broken/@/boot/efi
β”‚                                                                                      /mnt/broken/@
β”‚                                                                                      /mnt/broken
β”‚                                                                                      /tmp/calamares-root-bnybavre/var/tmp
β”‚                                                                                      /tmp/calamares-root-bnybavre/var/log
β”‚                                                                                      /tmp/calamares-root-bnybavre/var/cache
β”‚                                                                                      /tmp/calamares-root-bnybavre/srv
β”‚                                                                                      /tmp/calamares-root-bnybavre/root
β”‚                                                                                      /tmp/calamares-root-bnybavre/home
β”‚                                                                                      /tmp/calamares-root-bny
β”‚                                                                                      bavre
└─sda3
swap   1     swap             bce0f44e-c682-4725-b191-1c35486c3bbb
sdb  iso966 Jolie GARUDA_DR460NIZED_WHITETAILEDEAG
β”‚                                  2022-03-08-04-01-09-00                     0   100% /run/miso/bootmnt
β”œβ”€sdb1
β”‚    iso966 Jolie GARUDA_DR460NIZED_WHITETAILEDEAG
β”‚                                  2022-03-08-04-01-09-00
└─sdb2
vfat   FAT12 MISO_EFI         18B5-4BCC
zram0
[SWAP]

I already do this part so everything already exist

╭─[email protected] in ~ as πŸ§™ took 5s
╰─λ sudo mkdir -p /mnt/broken
sudo mount /dev/sda2 /mnt/broken
sudo garuda-chroot /mnt/broken/@
mount: /mnt/broken: /dev/sda2 already mounted on /tmp/calamares-root-bnybavre.
sh-5.1#
sh-5.1# lsblk -no PKNAME /dev/sda1
sda
sh-5.1# grub-install /dev/sda
Installing for x86_64-efi platform.
grub-install: error: /boot/efi doesn't look like an EFI partition.
sh-5.1# parted -l | grep -iE "^Disk /|esp" | grep -B1 esp
Disk /dev/sda: 128GB
1      2097kB  317MB  315MB   fat32                 boot, esp
Disk /dev/sdb: 7812MB
2      2377MB  2381MB  4194kB  primary               esp
sh-5.1# mount /dev/sda1 /boot/efi

And then, this doesn't work

sh-5.1# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=garuda --rechec
k
Installing for x86_64-efi platform.
show_order(): Interrupted system call
Skipping unreadable variable "Boot0000": Interrupted system call
Skipping unreadable variable "Boot0001": Interrupted system call
Skipping unreadable variable "Boot0002": Interrupted system call
Skipping unreadable variable "Boot0003": Interrupted system call
Skipping unreadable variable "Boot0004": Interrupted system call
Skipping unreadable variable "Boot0006": Interrupted system call
Skipping unreadable variable "Boot0007": Interrupted system call
Skipping unreadable variable "Boot0008": Interrupted system call
Skipping unreadable variable "Boot2001": Interrupted system call
Skipping unreadable variable "Boot2002": Interrupted system call
Skipping unreadable variable "Boot2003": Interrupted system call
Could not prepare Boot variable: Interrupted system call
grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
  1. I also tried to use the "Garuda boot repair" but not work
Generating grub configuration file ...

Found theme: /usr/share/grub/themes/garuda-dr460nized/theme.txt

Found linux image: /boot/vmlinuz-linux-zen

Found initrd image: /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-linux-zen.img

Found fallback initrd image(s) in /boot: intel-ucode.img amd-ucode.img initramfs-linux-zen-fallback.img

Warning: os-prober will be executed to detect other bootable partitions.

Its output will be used to detect bootable binaries on them and create new boot entries.

grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.

grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.

Detecting snapshots ...

No snapshots found.

If you think an error has occurred , please file a bug report at " https://github.com/Antynea/grub-btrfs "

Unmount /tmp/grub-btrfs.sI8Gu0z3hS .. Success

Found memtest86+ image: /boot/memtest86+/memtest.bin

done

(It has no impact on reboot)

  1. To finish I tried the chroot option on "Garuda Welcome" (not sure if he can do anything but not work too)

(The window close to fast for copy the return code)


Thanks for reading and for potential help

Hi there, welcome.
First of all, make sure that both Secure Boot and Fast Boot are disabled in the BIOS, and that the Boot Mode is set to UEFI.
Then try the installation again (erasing the disk again).

2 Likes

Thanks for your response,

I forgot to specify it but the pc I use is quite limited.

Secure boot is disabled ans fast boot don't exist (i purpose or it's combine with secure boot)

For boot mode set to UEFI the only option i have is "Enable MS UEFI CA key", is that that i'm supose to enabled ?

No, this sound something still related to secure boot.
Isn't there an option to select either UEFI or Legacy? :frowning:

2 Likes

after research it seems that the computer I am using does not allow modification in uefi boot

It's a "hp probook x360 11 g1 ee"

It is impossible to download Garuda without this mode ? :sob:

Welcome too :slight_smile:

Please post

garuda-inxi

from live ISO, as text.

You can also start calamares (installer) from terminal with

sudo  -E calamares
sudo  -E calamares -d

and check the log, or post here too.

1 Like

It sounds as if M$ may have screwed him with this hardware. There is not a lot of hardware out there that makes disabling secure boot impossible, but this may be one of those instances.

2 Likes

I can only guess, the HP support site wouldn't even give me the PDFs of the model, just kept getting me their "page not available" for any PDF I tried. Arch wiki doesn't seem to have any information listed for the specific model either. Considering its a system for schools it seems like, it might just be geared for one type of OS it ships with; and HP likes to play favorites with Windows.

2 Likes

Thanks for your help,

Here the result to the command garuda-inxi

╭─[email protected] in ~  
╰─λ garuda-inxi
System:
Kernel: 5.16.12-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-x86_64 lang=en_US keytable=us tz=UTC
misobasedir=garuda misolabel=GARUDA_DR460NIZED_WHITETAILEDEAG quiet
systemd.show_status=1 driver=nonfree nouveau.modeset=0 i915.modeset=1
radeon.modeset=1
Desktop: KDE Plasma 5.24.2 tk: Qt 5.15.3 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: HP product: HP ProBook x360 11 G1 EE v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: HP model: 82EE v: 54.24 serial: <superuser required> UEFI: Insyde
v: 01.16 date: 07/30/2018
Battery:
ID-1: BAT0 charge: 41.9 Wh (100.0%) condition: 41.9/41.9 Wh (100.0%)
volts: 13.0 min: 11.6 model: Hewlett-Packard Primary type: Li-ion
serial: <filter> status: Full
CPU:
Info: model: Intel Celeron N3450 bits: 64 type: MCP arch: Goldmont
family: 6 model-id: 0x5C (92) stepping: 9 microcode: 0x46
Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 224 KiB
desc: d-4x24 KiB; i-4x32 KiB L2: 2 MiB desc: 2x1024 KiB
Speed (MHz): avg: 2111 high: 2178 min/max: 800/2200 scaling:
driver: intel_cpufreq governor: schedutil cores: 1: 2178 2: 2089 3: 2089
4: 2089 bogomips: 8755
Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass status: Not affected
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
IBRS_FW, STIBP: disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel HD Graphics 500 vendor: Hewlett-Packard driver: i915
v: kernel ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0
chip-ID: 8086:5a85 class-ID: 0300
Device-2: Chicony HP Wide Vision HD type: USB driver: uvcvideo
bus-ID: 1-5:4 chip-ID: 04f2:b56d class-ID: 0e02
Display: x11 server: X.Org v: 1.21.1.3 compositor: kwin_x11 driver: X:
loaded: intel unloaded: modesetting alternate: fbdev,vesa gpu: i915
display-ID: :0 screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0")
s-diag: 414mm (16.3")
Monitor-1: eDP1 mapped: eDP-1 model: Chi Mei Innolux built: 2016
res: 1366x768 hz: 60 dpi: 133 gamma: 1.2 size: 260x140mm (10.2x5.5")
diag: 294mm (11.6") ratio: 16:9 modes: 1366x768
OpenGL: renderer: Mesa Intel HD Graphics 500 (APL 2) v: 4.6 Mesa 21.3.7
direct render: Yes
Audio:
Device-1: Intel Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster
vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
alternate: snd_soc_skl,snd_sof_pci_intel_apl bus-ID: 00:0e.0
chip-ID: 8086:5a98 class-ID: 0403
Sound Server-1: ALSA v: k5.16.12-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: 1000 bus-ID: 01:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp1s0 state: down mac: <filter>
Device-2: Intel Wireless 7265 driver: iwlwifi v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:095a class-ID: 0280
IF: wlp2s0 state: up mac: <filter>
Bluetooth:
Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
bus-ID: 1-7:5 chip-ID: 8087:0a2a class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 126.52 GiB used: 6.13 GiB (4.8%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: SanDisk model: SD9SN8W-128G-1006
size: 119.24 GiB block-size: physical: 4096 B logical: 512 B
speed: 6.0 Gb/s type: SSD serial: <filter> rev: 3006 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: Verbatim model: STORE N GO
size: 7.28 GiB block-size: physical: 512 B logical: 512 B type: N/A
serial: <filter> rev: 1100 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
Message: No partition data found.
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 3.65 GiB used: 630.2 MiB (16.9%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 32.0 C mobo: 26.8 C
Fan Speeds (RPM): N/A
Info:
Processes: 200 Uptime: 39m wakeups: 3 Memory: 3.65 GiB
used: 2.12 GiB (58.2%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.2.0 Packages: pacman: 1174 lib: 293 Shell: fish v: 3.3.1
default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.13
warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
warning: database file for 'community' does not exist (use '-Sy' to download)
warning: database file for 'multilib' does not exist (use '-Sy' to download)
warning: database file for 'chaotic-aur' does not exist (use '-Sy' to download)
Garuda (2.5.5-1):
System install date:     2022-03-10
Last full system update: 2022-03-10
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       <superuser required>
Snapshots:               Snapper
Failed units:            snapper-cleanup.service
McFly: Importing shell history for the first time. This may take a minute or two...done.

Also tried with sudo -E calamares and here the result

<div><strong>Command '['btrfs', 'subvolume', 'create', '/tmp/calamares-root-zw6vh_k0/@']' returned non-zero exit status 1.</strong></div><div>None</div><div><br/>Traceback:</div><div><pre>File &quot;/usr/lib/calamares/modules/mount/main.py&quot;, line 251, in run
    mount_partition(root_mount_point, partition, partitions)

  File &quot;/usr/lib/calamares/modules/mount/main.py&quot;, line 197, in mount_partition
    subprocess.check_call([&quot;btrfs&quot;, &quot;subvolume&quot;, &quot;create&quot;,

  File &quot;/usr/lib/python3.10/subprocess.py&quot;, line 369, in check_call
    raise CalledProcessError(retcode, cmd)</pre></div>

Same result with the -d

<div><strong>Command '['btrfs', 'subvolume', 'create', '/tmp/calamares-root-ghyjp4n1/@']' returned non-zero exit status 1.</strong></div><div>None</div><div><br/>Traceback:</div><div><pre>File &quot;/usr/lib/calamares/modules/mount/main.py&quot;, line 251, in run
    mount_partition(root_mount_point, partition, partitions)

  File &quot;/usr/lib/calamares/modules/mount/main.py&quot;, line 197, in mount_partition
    subprocess.check_call([&quot;btrfs&quot;, &quot;subvolume&quot;, &quot;create&quot;,

  File &quot;/usr/lib/python3.10/subprocess.py&quot;, line 369, in check_call
    raise CalledProcessError(retcode, cmd)</pre></div>

Do I have to do this after a reboot ?

I don't know what is M$ but secure boot can be disabled, what i can't do is put the boot in UEFI mode

yeah, when i receive it, it was pretty damn lock. I achieved to download ubuntu and the classic version of arch linux but that was really more difficult than with a VM. I hope that doesn't makes downloading Garuda impossible.

This is also a problem.
Strange that calamares allowed the installation at all.
The minimum requirement should be 4GB

2 Likes

GPU use your RAM too.

Try Xfce not the "heavy" KDE Garuda version.

IDK how bogomips work, but it is very less too.

1 Like

The fact is that before, when I installed "classic" version of Arch Linux.
I take xfce for my desktop environment, but i really dislike it.
So I wanted to use something else :sweat_smile:

Sway :wink: looks nice and it very smooth :slight_smile:

2 Likes

You could give a try also to LXQt, lightweight and nice...

3 Likes

Sway looks good, i can give it a try. Hope there will be no problem :sweat_smile:

That's a tiling window manager.
If you're not used to it, it could look strange at first, but it could as well be perfect for your usecase...

1 Like

sorry to bother you all the time but it still not work, same message than before (bootloader can be installed)

Try MX-Linux, work fine on my PC from 2002 with 768 KiB RAM.

2 Likes