Hello guys,
I'm unable to finish installation, I'm always getting popup window
Error
Installation Failed
Bootloader installation error
Details:
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.
Disk is primary and empty.
I tried to follow steps as per here.:
From Grub fails after update - #3 by librewish
Some unlucky times that your system is not bootable and the only advised option is to use chroot from a Live ISO to repair the installed system (for example, to (re)install the bootloader), here is the suggested method:
steps required to chroot to your installed Garuda installation (btrfs)
Boot to a Garuda usb Live ISO
Start a terminal and
Find your installed system (btrfs) partition, you need the /dev/<something> part.
lsblk -f
Warning: Remem…
But I get stuck at this part
sh-5.1# parted -l | grep -iE "^Disk /|esp" | grep -B1 esp
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: The partition's data region doesn't occupy the entire partition.
And this task just keep hanging.
Reason I'm using this distro is that it includes a set of programs that works together (Goverlay+Mangohud+VKBasalt). No other distros have it pre-installed.
Over few days I tried many distros but only this distro fails at installation end.
Any help is welcome!
PS.: I'm running OS in UEFI/Secure boot disabled (set in BIOS).
PS.: I'm installing Garuda Linux via Ventoy utility and tried to boot under normal boot or GRUB2 boot, makes no difference.
Is it a Macbook?
Please run garuda-inxi
from the live environment and paste into the thread.
1 Like
God, please not Macbook
[email protected]
-------------------------------
OS: Garuda Linux x86_64
Host: MS-7C91 2.0 - (which is MSI TOMAHAWK B550)
Kernel: 6.2.13-zen-1-zen
Uptime: 1 min
Packages: 1821 (pacman)[stable]
Shell: fish 3.6.1
Terminal: konsole 23.4.0
CPU: AMD Ryzen 7 5800X3D (16) @ 4.548828 GHz
GPU: AMD Radeon RX 6800 XT
Memory: 2.43 GiB / 31.18 GiB (7%)
Here is requested information
System:
Kernel: 6.2.13-zen-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/boot/vmlinuz-x86_64 lang=en_US keytable=us tz=UTC
misobasedir=garuda root=miso:LABEL=GARUDA_DR460NIZEDGAMING_RAPTOR quiet
systemd.show_status=1 ibt=off driver=free nouveau.modeset=1
i915.modeset=1 radeon.modeset=1 rdinit=/vtoy/vtoy
Desktop: KDE Plasma v: 5.27.4 tk: Qt v: 5.15.9 wm: kwin_x11 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: Micro-Star model: MAG B550 TOMAHAWK (MS-7C91) v: 2.0
serial: N/A UEFI: American Megatrends LLC. v: A.C0 date: 03/06/2023
CPU:
Info: model: AMD Ryzen 7 5800X3D socket: AM4 bits: 64 type: MT MCP
arch: Zen 3+ gen: 4 level: v3 note: check built: 2022 process: TSMC n6 (7nm)
family: 0x19 (25) model-id: 0x21 (33) stepping: 2 microcode: 0xA20120A
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
L3: 96 MiB desc: 1x96 MiB
Speed (MHz): avg: 3400 min/max: 2200/4549 boost: enabled
base/boost: 3400/3400 scaling: driver: acpi-cpufreq governor: performance
volts: 1.1 V ext-clock: 100 MHz cores: 1: 3400 2: 3400 3: 3400 4: 3400
5: 3400 6: 3400 7: 3400 8: 3400 9: 3400 10: 3400 11: 3400 12: 3400
13: 3400 14: 3400 15: 3400 16: 3400 bogomips: 108799
Flags: avx avx2 ht lm pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] vendor: Gigabyte
driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm)
built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-2
empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 2d:00.0 chip-ID: 1002:73bf
class-ID: 0300
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
s-diag: 777mm (30.58")
Monitor-1: DP-2 mapped: DisplayPort-1 model: Samsung LC27G5xT
serial: <filter> built: 2021 res: 2560x1440 hz: 144 dpi: 93 gamma: 1.2
size: 698x393mm (27.48x15.47") diag: 685mm (27") ratio: 16:9 modes:
max: 2560x1440 min: 720x400
API: OpenGL v: 4.6 Mesa 23.0.3 renderer: AMD Radeon RX 6800 XT (navi21
LLVM 15.0.7 DRM 3.49 6.2.13-zen-1-zen) direct-render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
bus-ID: 3-2:3 pcie: gen: 4 chip-ID: 1532:053c speed: 16 GT/s class-ID: 0301
serial: <filter> lanes: 16 bus-ID: 2d:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 2f:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Razer USA Barracuda 2.4 type: USB
driver: hid-generic,snd-usb-audio,usbhid
API: ALSA v: k6.2.13-zen-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 0.3.70 status: n/a (root, process) with:
1: pipewire-pulse status: active 2: wireplumber status: active
3: pipewire-alsa type: plugin 4: pw-jack type: plugin
tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: e000 bus-ID: 05:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 port: d000 bus-ID: 2a:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp42s0 state: down mac: <filter>
Drives:
Local Storage: total: 1.15 TiB used: 0 KiB (0.0%)
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: A-Data model: SX8200PNP
size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: R0906I temp: 36.9 C scheme: GPT
SMART: yes health: PASSED on: 1y 94d 14h cycles: 5,010
read-units: 169,866,374 [86.9 TB] written-units: 104,453,771 [53.4 TB]
ID-2: /dev/nvme1n1 maj-min: 259:5 vendor: Crucial model: CT500P2SSD8
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: P2CR012 temp: 32.9 C scheme: GPT
SMART: yes health: PASSED on: 227d 5h cycles: 2,253
read-units: 7,200,268 [3.68 TB] written-units: 9,688,610 [4.96 TB]
ID-3: /dev/sda maj-min: 8:0 type: USB vendor: Western Digital
model: WD2500BMVV-11A1PS0 family: Elements / My Passport (USB)
size: 232.23 GiB block-size: physical: 512 B logical: 512 B sata: 2.5
speed: 1.5 Gb/s type: HDD rpm: 5400 serial: <filter> rev: 1030
drive rev: 01.01A01 temp: 43 C scheme: MBR
SMART: yes state: enabled health: PASSED on: 2y 291d 2h cycles: 8540
Old-Age: write error rate: 100 threshold: 100
Partition:
Message: No partition data found.
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.18 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 40.5 C mobo: N/A gpu: amdgpu temp: 63.0 C
mem: 62.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
Processes: 309 Uptime: 6m wakeups: 0 Memory: 31.18 GiB
used: 3.99 GiB (12.8%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1821
libs: 519 tools: octopi,paru Shell: garuda-inxi (sudo) default: Bash
v: 5.1.16 running-in: konsole inxi: 3.3.26
warning: database file for 'garuda' does not exist (use '-Sy' to download)
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.6.16-1):
System install date: 2023-05-13
Last full system update: 2023-05-13 ↻
Is partially upgraded: No
Relevant software: snapper NetworkManager dracut
Windows dual boot: No/Undetected
Failed units:
spajdrEX:
God, please not Macbook
Macbooks have a weird hacky efibootmgr
thing that has to be done to get the installation up in some cases.
Can you describe the steps leading up to this message? This does not look like part of the tutorial you linked.
Please also post the output of:
efibootmgr -v
and:
sudo parted -l
About that part "parted -l | grep -iE "^Disk /|esp" | grep -B1 esp "
I got this from here.:
From Grub fails after update - #3 by librewish
Some unlucky times that your system is not bootable and the only advised option is to use chroot from a Live ISO to repair the installed system (for example, to (re)install the bootloader), here is the suggested method:
steps required to chroot to your installed Garuda installation (btrfs)
Boot to a Garuda usb Live ISO
Start a terminal and
Find your installed system (btrfs) partition, you need the /dev/<something> part.
lsblk -f
Warning: Remem…
part.:
If the system is installed in UEFI
Find existing $esp partitions if more than one
As for the two commands output
**efibootmgr -v**
EFI variables are not supported on this system.
error trace:
**sudo parted -l**
Model: WD My Passport 070A (scsi)
Disk /dev/sda: 249GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 249GB 249GB primary boot
2 249GB 249GB 33.6MB primary fat16 esp
Model: ADATA SX8200PNP (nvme)
Disk /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
2 538MB 2685MB 2147MB linux-swap(v1) swap
3 2685MB 4833MB 2147MB
4 4833MB 512GB 507GB
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: The partition's data region doesn't occupy the entire partition.
Ignore/Cancel?
odel: WD Virtual CD 070A (scsi)
Disk /dev/sr0: 700MB
Sector size (logical/physical): 2048B/2048B
Partition Table: mac
Disk Flags:
Number Start End Size File system Name Flags
1 2048B 32.8kB 30.7kB Apple
2 437MB 598MB 161MB DiscRecording 4.0.3d3
Model: CT500P2SSD8 (nvme)
Disk /dev/nvme1n1: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 17.4kB 134MB 134MB Microsoft reserved partition msftres
2 135MB 500GB 500GB ntfs Basic data partition msftdata
Model: Unknown (unknown)
Disk /dev/zram0: 33.5GB
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 33.5GB 33.5GB linux-swap(v1)
Disk have created partitions, but even if I do quick format and start a new installation, it does not change anything.
Are you sure legacy mode has not been enabled? I ask because of this:
Double-check in the BIOS menu that legacy mode is disabled.
Which disk are you choosing as the installation target? Are you attempting a full wipe/install, or something else?
1 Like
Yes, I'm running OS in UEFI mode.
First I tried following this.:
Then I also tried full/wipe/install and I'm trying to install it only on.:
Model: ADATA SX8200PNP (nvme)
Disk /dev/nvme0n1: 512GB
Results were only the same.
Hmm, something about your UEFI does not seem to be handling this correctly. Check if you have a CSM option in the BIOS menu and disable it.
There is a switch in BIOS where you can choose CSM or UEFI, it's been enabled (by default too ) as UEFI.
I installed around 15 distros in last 3 days and only Garuda have this issue.
It appears something is tricking your UEFI into using legacy mode, so the installation fails because it is attempting to use UEFI mode. My hunch is a setting in your BIOS menu is responsible, although I obviously cannot see what you have in there. Another consideration would be to try a different USB stick.
1 Like
Use ventoy.net , use normal boot to boot the ISO.
I'll try live boot with other distros and let you know if efibootmgr reports something different. Thanks for the checking
@SGS That's the way I'm installing any distro including Garuda.
1 Like
Ok, with other distros it also reported same issue >
EFI variables are not supported on this system.
Then I thought of one last thing to try, I reset the bios settings.
╰─λ efibootmgr -v
BootCurrent: 0009
Timeout: 1 seconds
BootOrder: 0009,000A
Boot0005 UEFI OS HD(1,GPT,acbe5d56-8082-3a43-a8b2-47bb835bad46,0x1000,0x1f4000)/File(\EFI\BOOT\BOOTX64.EFI)0000424f
dp: 04 01 2a 00 01 00 00 00 00 10 00 00 00 00 00 00 00 40 1f 00 00 00 00 00 56 5d be ac 82 80 43 3a a8 b2 47 bb 83 5b ad 46 02 02 / 04 04 30 00 5c 00 45 00 46 00 49 00 5c 00 42 00 4f 00 4f 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
data: 00 00 42 4f
Boot0009* UEFI OS HD(2,MBR,0x29a507b,0x1d066800,0x10000)/File(\EFI\BOOT\BOOTX64.EFI)0000424f
dp: 04 01 2a 00 02 00 00 00 00 68 06 1d 00 00 00 00 00 00 01 00 00 00 00 00 7b 50 9a 02 00 00 00 00 00 00 00 00 00 00 00 00 01 01 / 04 04 30 00 5c 00 45 00 46 00 49 00 5c 00 42 00 4f 00 4f 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
data: 00 00 42 4f
Boot000A* ubuntu HD(1,GPT,06457706-b697-4a4f-82ca-4267e33bf0d3,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)0000424f
dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 00 10 00 00 00 00 00 06 77 45 06 97 b6 4f 4a 82 ca 42 67 e3 3b f0 d3 02 02 / 04 04 34 00 5c 00 45 00 46 00 49 00 5c 00 55 00 42 00 55 00 4e 00 54 00 55 00 5c 00 53 00 48 00 49 00 4d 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
data: 00 00 42 4f
I will let you know if installation finish normally now
Finally, installation finished. I'm not sure what settings make in happen in BIOS (And no, it was set to UEFI mode before resetting bios just like after reset).
Thanks again for the assistance guys!
system
Closed
15 May 2023 18:40
16
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.