Grub Boot loader takes minutes to start

Hello,

I've only been running Garuda for a couple of weeks, when on the 27-Aug, I updated. The reboot "failed". I tried a few USB Boot recovery options including rolling back to a ealier snapshot and attempting to repair grub. Same issue.

I ended up reinstalling Garuda, but to a new partition as I wanted to keep my configs. It did the same once updated. While staring at screen for several minutes wondering what to do next, the grub boot came up and Garuda started no problems. It just took a loooong time for grub to start. Probably no need to re-install, if I had been patient, it would have eventually booted. But given grub was coming up in seconds prior to that update, who would think of waiting?

I don't reboot often, but I did another update on 1-Sept. I have heard there was a problem with grub on Arch Installs, and grub was rolled back. However, I still have the same problem. Grub takes about 2 minutes to start.

So I followed the recovery procedure (to re-install grub) outlined here:

Rebooted again. This time it took 12 minutes for grub to load, as shown below:

sudo systemd-analyze

Startup finished in 9.700s (firmware) + 12min 252ms (loader) + 3.923s (kernel) + 10.550s (userspace) = 12min 24.427s
graphical.target reached after 10.549s in userspace.

Any ideas why the grub loader is taking so long? I assume the "loader" is grub. Obviously booting from my recovery USB meant I was back in the BIOS double checking boot settings. Still good (no fast boot). My inxi is below.

I love how quickly linux boots (especially i3), but I'm not impressed with grub.

sudo garuda-inxi

System:
  Kernel: 5.19.5-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=91f29d57-8423-442e-a227-98363728a986 rw [email protected]
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3
  Desktop: i3 v: 4.20.1 info: i3bar dm: LightDM v: 1.32.0
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Mini-pc System: Fanless Mini PC product: Quieter 3 v: N/A
    serial: <filter> Chassis: type: 35 serial: N/A
  Mobo: Fanless Mini PC model: Rev JSL1 1.10 serial: N/A UEFI: American
    Megatrends LLC. v: ML_JPL1V3.2 date: 06/16/2022
Battery:
  Device-1: hidpp_battery_0 model: Logitech MX Vertical Advanced Ergonomic
    Mouse serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: Intel Celeron N5105 socket: U3E1 bits: 64 type: MCP
    arch: Tremont built: 2019 process: Intel 10nm family: 6
    model-id: 0x9C (156) stepping: 0 microcode: 0x24000023
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1.5 MiB desc: 1x1.5 MiB L3: 4 MiB
    desc: 1x4 MiB
  Speed (MHz): avg: 1841 high: 2000 min/max: 800/2900 base/boost: 900/2900
    scaling: driver: intel_pstate governor: powersave volts: 0.6 V
    ext-clock: 100 MHz cores: 1: 1931 2: 2000 3: 2000 4: 1434 bogomips: 15974
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT disabled
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
    filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Vulnerable: No microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel JasperLake [UHD Graphics] driver: i915 v: kernel
    arch: Gen-11 process: Intel 10nm built: 2019-21 ports: active: HDMI-A-2
    empty: DP-1,HDMI-A-1,HDMI-A-3 bus-ID: 00:02.0 chip-ID: 8086:4e61
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.4 compositor: Picom v: git-7e568
    driver: X: loaded: modesetting alternate: fbdev,intel,vesa gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3440x1440 s-dpi: 96 s-size: 910x381mm (35.83x15.00")
    s-diag: 987mm (38.84")
  Monitor-1: HDMI-A-2 mapped: HDMI-2 model: LG (GoldStar) ULTRAWIDE
    serial: <filter> built: 2016 res: 3440x1440 hz: 60 dpi: 109 gamma: 1.2
    size: 800x335mm (31.5x13.19") diag: 867mm (34.1") modes: max: 3440x1440
    min: 640x480
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Jasper Lake HD Audio vendor: Realtek driver: snd_hda_intel
    v: kernel alternate: snd_sof_pci_intel_icl bus-ID: 00:1f.3
    chip-ID: 8086:4dc8 class-ID: 0403
  Sound Server-1: ALSA v: k5.19.5-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX201 160MHz driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:4df0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000
    bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-8:5 chip-ID: 8087:0026 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 230.47 GiB used: 10.57 GiB (4.6%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/mmcblk1 maj-min: 179:0 model: A3A444 size: 230.47 GiB
    block-size: physical: 512 B logical: 512 B type: SSD serial: <filter>
    rev: 0x8 scheme: GPT
Partition:
  ID-1: / raw-size: 158.14 GiB size: 158.14 GiB (100.00%) used: 10.57 GiB
    (6.7%) fs: btrfs block-size: 4096 B dev: /dev/mmcblk1p4 maj-min: 179:4
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 608 KiB
    (0.2%) fs: vfat block-size: 512 B dev: /dev/mmcblk1p1 maj-min: 179:1
  ID-3: /home raw-size: 158.14 GiB size: 158.14 GiB (100.00%) used: 10.57
    GiB (6.7%) fs: btrfs block-size: 4096 B dev: /dev/mmcblk1p4
    maj-min: 179:4
  ID-4: /var/log raw-size: 158.14 GiB size: 158.14 GiB (100.00%) used: 10.57
    GiB (6.7%) fs: btrfs block-size: 4096 B dev: /dev/mmcblk1p4
    maj-min: 179:4
  ID-5: /var/tmp raw-size: 158.14 GiB size: 158.14 GiB (100.00%) used: 10.57
    GiB (6.7%) fs: btrfs block-size: 4096 B dev: /dev/mmcblk1p4
    maj-min: 179:4
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 7.52 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 8.8 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/mmcblk1p3 maj-min: 179:3
Sensors:
  System Temperatures: cpu: 52.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 240 Uptime: 6m wakeups: 2 Memory: 7.52 GiB used: 2.35 GiB
  (31.3%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 Packages: pacman: 1276 lib: 325
  Shell: garuda-inxi (sudo) default: Bash v: 5.1.16 running-in: alacritty
  inxi: 3.3.20
Garuda (2.6.6-1):
  System install date:     2022-08-27
  Last full system update: 2022-09-01
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       No/Undetected
  Snapshots:               Snapper
  Failed units:            systemd-vconsole-setup.service
2 Likes

Check

systemd-analyze blame
systemd-analyze

Could you try updating, reinstalling GRUB and rebooting again?

garuda-update
sudo grub-install
sudo grub-mkconfig  -o /boot/grub/grub.cfg
4 Likes

same problem facing for a long time....

> ╭─[email protected] in ~
╰─λ sudo systemd-analyze
Startup finished in 6.596s (kernel) + 18min 54.817s (userspace) = 19min 1.413s
graphical.target reached after 2min 39.325s in userspace.

my case it is 2 min :smiling_face_with_tear:
though ..in my case it is HDD... but it is quite much....... when i install garuda for first time it was taking shorter time... after long term usage it slows up.

previously i reinstall garuda to fix this :joy:..... (though ..that time i use windows duel boot.... but now i'm useing garuda in 2nd HDD)

> esystemd-analyze blame
systemd-analyze
14min 35.969s updatedb.service
5min 4ms linux-modules-cleanup.service
2min 2.612s systemd-networkd-wait-online.service
10.647s dev-sdb3.device
8.621s ldconfig.service
7.653s systemd-remount-fs.service
7.532s systemd-tmpfiles-clean.service
6.853s systemd-tmpfiles-setup.service
6.026s NetworkManager-wait-online.service
5.726s firewalld.service
4.989s udisks2.service
4.143s grub-btrfs-snapper.service
4.099s libvirtd.service
3.654s power-profiles-daemon.service
3.635s polkit.service
3.246s avahi-daemon.service
3.232s thermald.service
3.227s dbus.service
3.226s systemd-machined.service
3.226s systemd-logind.service
2.869s systemd-user-sessions.service
1.912s systemd-modules-load.service
1.901s logrotate.service
1.611s systemd-journal-flush.service
1.523s lvm2-monitor.service
1.453s dev-loop0.device
1.325s nmb.service
1.252s systemd-networkd.service
996ms systemd-guest-user.service
989ms home.mount
913ms upower.service
901ms smb.service
850ms [email protected]
700ms systemd-udevd.service
638ms NetworkManager.service
638ms ModemManager.service
626ms root.mount
614ms garuda-pacman-snapshot-reject.service
614ms systemd-guest-config.service
592ms systemd-vconsole-setup.service
568ms var-log.mount
540ms cups.service
528ms dev-zram0.swap
306ms garuda-pacman-lock.service
292ms plymouth-start.service
290ms systemd-sysusers.service
249ms systemd-journal-catalog-update.service
241ms var-cache.mount
238ms rtkit-daemon.service
231ms systemd-udev-trigger.service
229ms colord.service
159ms [email protected]
143ms systemd-random-seed.service
136ms [email protected]
128ms systemd-binfmt.service
120ms systemd-tmpfiles-setup-dev.service
102ms systemd-journald.service
72ms systemd-update-utmp.service
64ms systemd-timesyncd.service
62ms systemd-oomd.service
55ms proc-sys-fs-binfmt_misc.mount
50ms dev-binderfs.mount
49ms srv.mount
48ms dev-hugepages.mount
46ms var-tmp.mount
46ms dev-mqueue.mount
44ms sys-kernel-debug.mount
43ms sys-kernel-tracing.mount
43ms plymouth-read-write.service
41ms kmod-static-nodes.service
39ms plymouth-deactivate.service
38ms [email protected]
38ms plymouth-quit-wait.service
36ms [email protected]
34ms plymouth-quit.service
32ms systemd-sysctl.service
27ms [email protected]
26ms user-runtim[email protected]
18ms systemd-update-done.service
14ms systemd-network-generator.service
13ms sys-kernel-config.mount
11ms sys-fs-fuse-connections.mount
5ms home-guest.mount
2ms tmp.mount
lines 58-84/84 (END)

Grub on my system was taking somewhere between thirteen to forty seconds to load, after the infamous update. These commands seems to have fixed the issue for me.

P.S. I did see a message after running garuda-update which read something like "downgraded Grub to a more stable version". So I don't know if the other two commands did anything or not.

1 Like

@appu
Why do you hijack this thread?
Your PC seems week, but you do not post your garuda-inxi, in your own, help request.

2 Likes

So, it is not me alone facing this issue.
I am having a fairly new laptop.
And I too faced the grub issue (The bios loop one), which I fixed by chrooting and reinstalling the grub.
Before this incident happened, the grub used to show up within 5 seconds after the display of the Acer logo.
But now, the grub shows up only after some 15-20 seconds.
Though Garuda boots up just as before after the grub menu.

❯ sudo systemd-analyze
Startup finished in 7.598s (firmware) + 20.055s (loader) + 4.874s (kernel) + 10.207s (userspace) = 42.736s 
graphical.target reached after 10.207s in userspace.
❯ garuda-inxi
System:
  Kernel: 5.19.5-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=974f3ce6-ba35-41c5-a737-23cb1e2b873f rw [email protected]
    lsm=landlock,lockdown,yama,integrity,apparmor,bpf quiet splash
    mitigations=off rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3
  Desktop: GNOME v: 42.4 tk: GTK v: 3.24.34 wm: gnome-shell dm: GDM v: 42.0
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Acer product: Swift SF314-43 v: V1.04
    serial: <superuser required>
  Mobo: LN model: Sake_CA v: V1.04 serial: <superuser required>
    UEFI: Insyde v: 1.04 date: 07/28/2021
Battery:
  ID-1: BAT1 charge: 10.9 Wh (21.5%) condition: 50.6/53.2 Wh (94.9%)
    volts: 12.1 min: 11.6 model: COSMX AP20CBL type: Li-ion serial: <filter>
    status: charging
CPU:
  Info: model: AMD Ryzen 5 5500U with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 2 gen: 3 built: 2020-22 process: TSMC n7 (7nm) family: 0x17 (23)
    model-id: 0x68 (104) stepping: 1 microcode: 0x8608102
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 8 MiB desc: 2x4 MiB
  Speed (MHz): avg: 1398 high: 1400 min/max: 1400/4056 boost: enabled
    scaling: driver: acpi-cpufreq governor: powersave cores: 1: 1394 2: 1397
    3: 1400 4: 1400 5: 1397 6: 1397 7: 1397 8: 1397 9: 1400 10: 1400 11: 1400
    12: 1400 bogomips: 50304
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Vulnerable
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 status: Vulnerable: __user pointer sanitization and
    usercopy barriers only; no swapgs barriers
  Type: spectre_v2 status: Vulnerable, IBPB: disabled, STIBP: disabled,
    PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Lucienne vendor: Acer Incorporated ALI driver: amdgpu
    v: kernel arch: GCN-5.1 code: Vega-2 process: TSMC n7 (7nm) built: 2018-21
    pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
    ports: active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 03:00.0
    chip-ID: 1002:164c class-ID: 0300
  Device-2: Quanta HD User Facing type: USB driver: uvcvideo bus-ID: 1-3:2
    chip-ID: 0408:a094 class-ID: 0e02
  Display: wayland server: X.org v: 1.21.1.4 with: Xwayland v: 22.1.3
    compositor: gnome-shell driver: X: loaded: modesetting
    alternate: fbdev,vesa gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: AU Optronics 0x683d built: 2019 res: 1920x1080
    dpi: 158 gamma: 1.2 size: 309x174mm (12.17x6.85") diag: 355mm (14")
    ratio: 16:9 modes: max: 1920x1080 min: 640x480
  Message: Wayland GBM/EGL data currently not available.
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Acer Incorporated
    ALI driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Acer Incorporated
    ALI driver: snd_rn_pci_acp3x v: kernel
    alternate: snd_pci_acp3x,snd_pci_acp5x,snd_pci_acp6x,snd_acp_pci,snd_sof_amd_renoir
    pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
    bus-ID: 03:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Acer Incorporated ALI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Sound Server-1: ALSA v: k5.19.5-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
    vendor: Lite-On driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s
    lanes: 1 bus-ID: 01:00.0 chip-ID: 14c3:7961 class-ID: 0280
  IF: wlp1s0 state: up mac: <filter>
Bluetooth:
  Device-1: Lite-On Wireless_Device type: USB driver: btusb v: 0.8
    bus-ID: 1-4:3 chip-ID: 04ca:3802 class-ID: e001 serial: <filter>
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 476.94 GiB used: 44.43 GiB (9.3%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: OM8PDP3512B-AA1
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: EDFK0S03
    temp: 45.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 64.41 GiB size: 64.41 GiB (100.00%) used: 16.49 GiB
    (25.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 600 MiB size: 598.8 MiB (99.80%) used: 308 KiB
    (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 64 GiB size: 64 GiB (100.00%) used: 7.54 GiB
    (11.8%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-4: /var/log raw-size: 64.41 GiB size: 64.41 GiB (100.00%) used: 16.49
    GiB (25.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 64.41 GiB size: 64.41 GiB (100.00%) used: 16.49
    GiB (25.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 7.12 GiB used: 212 MiB (2.9%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 44.2 C mobo: N/A gpu: amdgpu temp: 43.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 376 Uptime: 11h 1m wakeups: 7564 Memory: 7.12 GiB used: 4.6 GiB
  (64.6%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 Packages: 1459 pacman: 1441 lib: 380 flatpak: 18
  Shell: fish v: 3.5.1 running-in: terminator inxi: 3.3.20
Garuda (2.6.6-1):
  System install date:     2022-08-31
  Last full system update: 2022-08-31
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       No/Undetected
  Snapshots:               Snapper
  Failed units:            shadow.service

Thanks Everyone for their suggestions. FIXED! Better outline what I did

  1. After posting, I saw this
    GRUB downgrade

I explicitly downgraded grub as per instructions and rebooted. Got 2 minutes of loading (better than 12).

I then removed a property in /etc/default/grub. As I mentioned in original post, I reinstalled Garuda on a new partition, and did not need the old one anymore. So no need to probe for other OSs (why would you want anything else but Garuda Linux :slight_smile: )? I had tried this before, but maybe still had not got all the grub updates when I did.

GRUB_DISABLE_OS_PROBER=true
  1. I then took mrvictory's advice
garuda-update
sudo grub-install
sudo grub-mkconfig  -o /boot/grub/grub.cfg

There were more updates, and a futher message about grub being downgraded. Rebooted and back in speedy startup bliss.

Given rolling releases and mirror sites, maybe it just took a few days for all the updates to bubble through. Thanks all.

We always mark here the solution and not the implementation.
:slight_smile:

I changed it for you.

2 Likes

This fixed the issue for me too!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.