Won't start after an kernel update

hey, yesterday i did an update (that also included the garuda-update command), and when i started my pc today the hardened linux kernel threw the error

error: file '/@/boot/initramfs-linux-hardened.img' not found.
Press any key to continue

the latter part is funny, because whatever started instead or not started locked my keyboard… i tried to find others with the same problem, namely these three threads

after doing the steps from the first thread in that list my system now freezes after/at the “loading initramfs” command. i have no idea what to do, i’m currently running on the normal linux kernel. also neither the garuda-update nor the update-grub nor install-grub threw any errors
inxi:

System:
  Kernel: 6.5.3-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux
    root=UUID=6104ec12-31c8-4149-b0f4-da54e147aa2b rw rootflags=subvol=@
    rd.luks.uuid=a2fc9904-d25f-4977-ac91-c799b10c769a rd.udev.log_priority=3
    vt.global_cursor_default=0
    rd.luks.uuid=46b27a70-db7b-45e9-b0fd-5795061b5d01
    resume=/dev/mapper/luks-46b27a70-db7b-45e9-b0fd-5795061b5d01 loglevel=3
    ibt=off
  Desktop: KDE Plasma v: 5.27.8 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
    dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: B450-A PRO MAX (MS-7B86) v: 4.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: M.J0
    date: 06/30/2023
CPU:
  Info: model: AMD Ryzen 5 5500 bits: 64 type: MT MCP arch: Zen 3 gen: 4
    level: v3 note: check built: 2021-22 process: TSMC n7 (7nm)
    family: 0x19 (25) model-id: 0x50 (80) stepping: 0 microcode: 0xA50000D
  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: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 2783 high: 3129 min/max: 400/4267 scaling:
    driver: amd-pstate-epp governor: powersave cores: 1: 2996 2: 2993 3: 2989
    4: 2994 5: 2993 6: 2983 7: 2993 8: 2950 9: 2990 10: 3129 11: 400 12: 2997
    bogomips: 86274
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] vendor: ASUSTeK
    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,HDMI-A-1 empty: DP-1,DP-3 bus-ID: 12:00.0 chip-ID: 1002:73ff
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.2.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: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.00x11.22")
    s-diag: 1055mm (41.54")
  Monitor-1: DP-2 mapped: DisplayPort-1 pos: right model: HP V22e
    serial: <filter> built: 2020 res: 1920x1080 hz: 60 dpi: 102 gamma: 1.2
    size: 477x268mm (18.78x10.55") diag: 547mm (21.5") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: primary,left
    model: Samsung C24F390 serial: <filter> built: 2019 res: 1920x1080 hz: 60
    dpi: 94 gamma: 1.2 size: 521x293mm (20.51x11.54") diag: 598mm (23.5")
    ratio: 16:9 modes: max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 23.1.7-arch1.1 renderer: AMD Radeon RX 6600
    (navi23 LLVM 16.0.6 DRM 3.54 6.5.3-arch1-1) direct-render: Yes
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 12:00.1 chip-ID: 1002:ab28
    class-ID: 0403
  Device-2: AMD Renoir Radeon High Definition Audio vendor: Micro-Star MSI
    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: 30:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-3: AMD Family 17h/19h HD Audio vendor: Micro-Star MSI
    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: 30:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Device-4: JMTek LLC. USB PnP Audio Device
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 3-2.2:4 chip-ID: 0c76:161e class-ID: 0300
  API: ALSA v: k6.5.3-arch1-1 status: kernel-api tools: N/A
  Server-1: PipeWire v: 0.3.80 status: active 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: 22:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp34s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 4.09 TiB used: 753.54 GiB (18.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT1000P3SSD8
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: P9CR30A temp: 27.9 C
    scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000DM008-2FR102
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: 0001 scheme: MBR
  ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST500LX005-1CW162
    size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 5400 serial: <filter> fw-rev: LVD1 scheme: GPT
  ID-4: /dev/sdc maj-min: 8:32 vendor: Crucial model: CT1000BX500SSD1
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 054
Partition:
  ID-1: / raw-size: 914.15 GiB size: 914.15 GiB (100.00%)
    used: 601.4 GiB (65.8%) fs: btrfs dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-a2fc9904-d25f-4977-ac91-c799b10c769a
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 720 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 914.15 GiB size: 914.15 GiB (100.00%)
    used: 601.4 GiB (65.8%) fs: btrfs dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-a2fc9904-d25f-4977-ac91-c799b10c769a
  ID-4: /var/log raw-size: 914.15 GiB size: 914.15 GiB (100.00%)
    used: 601.4 GiB (65.8%) fs: btrfs dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-a2fc9904-d25f-4977-ac91-c799b10c769a
  ID-5: /var/tmp raw-size: 914.15 GiB size: 914.15 GiB (100.00%)
    used: 601.4 GiB (65.8%) fs: btrfs dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-a2fc9904-d25f-4977-ac91-c799b10c769a
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: partition size: 17.06 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-46b27a70-db7b-45e9-b0fd-5795061b5d01
  ID-2: swap-2 type: zram size: 31.24 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 12 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 40.6 C mobo: N/A gpu: amdgpu temp: 33.0 C
    mem: 34.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 0
Info:
  Processes: 384 Uptime: 1h 20m wakeups: 0 Memory: total: 32 GiB
  available: 31.24 GiB used: 10.68 GiB (34.2%) Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages: 1702
  pm: pacman pkgs: 1651 libs: 432 tools: octopi,paru pm: flatpak pkgs: 51
  Shell: Bash v: 5.1.16 running-in: konsole inxi: 3.3.29
Garuda (2.6.16-1):
  System install date:     2023-04-12
  Last full system update: 2023-09-20
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:            

So you are currently able to boot into your system with a different kernel.

Can you give us a quick rundown of what commands you have actually ran in your system up until now?

btw,

Have you tried to regenerate initramfs using dracut? This is the command to trigger a rebuild,

sudo dracut-rebuild

Since the issue is with Linux-hardended it could be either corrupt package download or perhaps the initramfs generation was interrupted while it was happening.
clean your pacman cache so that pacman pulls linux-hardened from remote repo again instead of using local cache,

sudo paccache -rk0

then reinstall,

sudo pacman -S linux-hardened linux-hardened-headers
3 Likes

thank you for your quick answer,

yes, sorry, i should have clarified that

to the commands you suggested: i did them all, still the same problem

here’s my history:

478  garuda-update
479  lsblk
480  update-grub
481  sudo update-grub
482  sudo grub-install /dev/nvme0n1
483  sudo reboot
484  sudo grub-install
485  sudo grub-install --no-nvram
486  sudo update-grub
487  garuda-inxi
488  sudo nano /boot/grub/grub.cfg
489  exit
490  tldr clip
491  tldr yclip
492  tldr xclip
493  garuda-inxi | xclip -sel clip
495  sudo dracut-rebuild
496  sudo paccache -rk0
497  paru -Syyu linux-hardened linux-hardened-headers
498  cleanup
499  history
500  sudo reboot
501  history

to 488, i did not write anything, just looked, i was hoping for something along the lines of recovery
edit: these are only the commands i entered on the system on my disk, the ones from the live session are not in here

can you try this,

sudo grub-install --no-nvram --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id="Garuda"
sudo update-grub

I see that you are using a UEFI system and allmost eveyone has 64 bit system these days so hope this works…

4 Likes

thank you, that did it. tho i have no idea why it did not work and even less why this works. same with what --no-nvram means, i just added it because it was somewhere in the three threads

from

man grub-install
--no-nvram
don’t  update the ‘boot-device’/‘Boot*’ NVRAM variables. This option is only available on EFI
and IEEE1275 targets.

To answer your query, your initial grub-install query was incomplete of sorts notice how I mentioned where I want grub to be installed and what platform I want grub to be installed on etc…

btw, if you are curious in what is nvram

Non-volatile random-access memory (NVRAM) is random-access memory that retains data without applied power. This is in contrast to dynamic random-access memory (DRAM) and static random-access memory (SRAM), which both maintain data only for as long as power is applied, or forms of sequential-access memory such as magnetic tape, which cannot be randomly accessed but which retains data indefinitely without electric power.

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