Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: dyson on 18 April 2022, 20:41:54

Title: Artix runit KDE graphical install bootloader error
Post by: dyson on 18 April 2022, 20:41:54
The bootloader could not be installed. The installation command <pre>grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Artix --force</pre> returned error code 1.
Title: Artix runit KDE graphical install bootloader error
Post by: dyson on 18 April 2022, 21:07:38
The bootloader could not be installed. The installation command <pre>grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Artix --force</pre> returned error code 1.

I have BIOS legacy system and this error happens everytime please help
Title: Re: runit graphical install bootloader erro
Post by: strajder on 18 April 2022, 21:30:21
What is the exact name of the ISO file you copied to the installation medium?

Edit: I merged the two identical topics. Next time, please don't create duplicate topics.
Title: Re: Artix runit KDE graphical install bootloader error
Post by: dyson on 18 April 2022, 21:53:04
https://iso.artixlinux.org/iso/artix-plasma-runit-20220123-x86_64.iso its this one
Title: Re: Artix runit KDE graphical install bootloader error
Post by: strajder on 18 April 2022, 22:02:35
What is the output of
Code: [Select]
efibootmgr -v
from the LiveISO?
Title: Re: Artix runit KDE graphical install bootloader error
Post by: dyson on 18 April 2022, 22:07:22
BootCurrent: 0005
Timeout: 6 seconds
BootOrder: 0005,0004,0002
Boot0002* UEFI: Built-in EFI Shell      VenMedia(5023b95c-db26-429b-a648-bd47664c8012)..BO
Boot0004* Hard Drive    BBS(HD,,0x0)..GO..NO........o.S.T.9.5.0.0.3.2.5.A.S....................A...........................>..Gd-.;.A..MQ..L.2.S.F.W.Z.1.E.F. . . . . . . . . . . . ........BO..NO........Y.G.e.n.e.r.i.c. .F.l.a.s.h. .D.i.s.k. .8...0.7....................A.............................&..Gd-.;.A..MQ..L.5.E.7.0.8.A.8.3........BO
Boot0005* UEFI: Generic Flash Disk 8.07 PciRoot(0x0)/Pci(0x14,0x0)/USB(3,0)/USB(1,0)/HD(1,MBR,0x0,0x334db0,0x2000)..BO
Title: Re: Artix runit KDE graphical install bootloader error
Post by: strajder on 18 April 2022, 22:19:55
So, your system isn't "BIOS legacy" after all, but UEFI.

Verify that there aren't excessive kernel dumps in /sys/firmware/efi/efivars by issuing
Code: [Select]
ls /sys/firmware/efi/efivars/dump-*

Are you partitioning the disks manually? To install to an UEFI system, you need ESP (https://wiki.archlinux.org/title/EFI_system_partition).
Title: Re: Artix runit KDE graphical install bootloader error
Post by: dyson on 18 April 2022, 22:26:16
ls: cannot access '/sys/firmware/efi/efivars/dump-*': Invalid argument

you sure? Windows 10 showed me as legacy, also my motherboard is old

i tried manually partioning (firstly i tried the automatic one), see attachment
Title: Re: Artix runit KDE graphical install bootloader error
Post by: strajder on 18 April 2022, 22:30:49
BIOS legacy systems give "EFI variables are not supported on this system" message from efibootmgr, so pretty sure.

What happens when you try automatic partitioning?
Title: Re: Artix runit KDE graphical install bootloader error
Post by: dyson on 18 April 2022, 22:31:38
same error
Title: Re: Artix runit KDE graphical install bootloader error
Post by: strajder on 18 April 2022, 22:48:15
The color scheme in that screenshot makes it very hard to read text, can you reboot from the LiveISO without changing the default theme and try again? If you don't plan on dual-booting that computer, the "Erase disk" option should work. Otherwise, you need to have enough space in ESP (at least 500 MB is recommended) and the partition need to be properly marked as such and associated with /boot/efi mountpoint. GPT is highly recommended. Other (ext4) partition needs to be assigned to / mountpoint.

See: https://wiki.archlinux.org/title/Partitioning

Edit: /boot -> /boot/efi seems to be a requirement specifically for Calamares. It is possible to associate with /boot, but then GRUB needs to be installed manually from chroot.
Title: Re: Artix runit KDE graphical install bootloader error
Post by: dyson on 18 April 2022, 23:01:34
no idea how the color scheme changed.

there's only these two options

you are explaining how to manually set up, right? can you do it with more simpler terms? i don't use linux in a long while and was just hoping to get a quick install
Title: Re: Artix runit KDE graphical install bootloader error
Post by: dyson on 18 April 2022, 23:04:02
that same menu

after the initial failure, i tried MBR with the "new partition table" button
Title: Re: Artix runit KDE graphical install bootloader error
Post by: strajder on 18 April 2022, 23:12:55
after the initial failure, i tried MBR with the "new partition table" button
I just explained that you need GPT, not MBR. Also assign the partitions to mountpoints (click on a partition list entry, then "Edit", then "Mount Point").
Title: Re: Artix runit KDE graphical install bootloader error
Post by: dyson on 18 April 2022, 23:24:58
oh don't worry, I didn't touch the last screenshot, it was like that when i restart

anyways, is this good? its gpt
Title: Re: Artix runit KDE graphical install bootloader error
Post by: qmastery on 21 April 2022, 10:21:58
The bootloader could not be installed. The installation command <pre>grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Artix --force</pre> returned error code 1.

if Calamares fails to install GRUB, following the example at  InstallationWithFullDiskEncryption (https://wiki.artixlinux.org/Main/InstallationWithFullDiskEncryption) manual you may block the auto-installation of GRUB. To do that, open a related Calamares script with
Code: [Select]
nano /usr/lib/calamares/modules/bootloader/main.py
and replace this line near the end of file at def run() function:
Code: [Select]
    prepare_bootloader(fw_type)
should become
Code: [Select]
    return None
Alternatively, you may simply run
Code: [Select]
sed -i -e "s/    prepare_bootloader(fw_type)/    return None/g" /usr/lib/calamares/modules/bootloader/main.py
Then you may install with Calamares like usual, however after doing that you will have to install GRUB manually by using the instructions available online. Hope this helps!