Initramfs unpacking failed and Kernel Panic

Howdy!

I’ve been having a problem that’s bugging me that I think started after some update. I’ve researched everything that I could and I can’t still figure it out. Maybe someone out there can help me.

I can only boot into my system using a fallback initramfs. Any regular initramfs doesn’t work. I’ve tried installing multiple kernels but none of them work.

While booting I receive the following error message:

Initramfs unpacking failed: uncompression error
Kernel panic - not syncing: No working init found. Try passing init= option to kernel

I’ve already tried recreating the initramfs using mkinitcpio with no success.

Reading the error message, I thought that maybe the problem was the compression algorithm. So I changed the compression on mkinitcpio.conf to uncompressed (COMPRESSION=“cat”). This time I got another error message complaining about some “invalid magic” or something like that.

Can anyone help?

Were there any errors during update?
Couple of things to view:

  1. list the “/boot” folder
  2. copy&paste just the section of the linux/initrd boot section of grub.cfg

@verndog there were no errors during the update.

ls -lh /boot

drwxr-xr-x 4 root root 1,0K dez 31 1969 efi
drwxr-xr-x 7 root root 4,0K dez 1 19:56 grub
drwxr-xr-x 2 root root 4,0K jun 1 2020 memtest86+
-rw-r–r-- 1 root root 30M dez 1 21:09 initramfs-4.19-x86_64-fallback.img
-rw-r–r-- 1 root root 10M dez 1 21:08 initramfs-4.19-x86_64.img
-rw-r–r-- 1 root root 31M dez 1 21:09 initramfs-5.4-x86_64-fallback.img
-rw-r–r-- 1 root root 10M dez 1 21:09 initramfs-5.4-x86_64.img
-rw-r–r-- 1 root root 32M dez 1 21:09 initramfs-5.9-x86_64-fallback.img
-rw-r–r-- 1 root root 9,7M dez 1 21:09 initramfs-5.9-x86_64.img
-rw-r–r-- 1 root root 10M nov 28 13:28 initramfs-linux.img
-rw-r–r-- 1 root root 3,5M nov 19 04:58 intel-ucode.img
-rw-r–r-- 1 root root 23 nov 24 15:41 linux419-x86_64.kver
-rw-r–r-- 1 root root 21 nov 28 06:57 linux54-x86_64.kver
-rw-r–r-- 1 root root 21 nov 28 06:08 linux59-x86_64.kver
-rw-r–r-- 1 root root 5,8M nov 28 00:22 vmlinuz-4.19-x86_64
-rw-r–r-- 1 root root 6,3M nov 28 18:58 vmlinuz-5.4-x86_64
-rw-r–r-- 1 root root 7,8M dez 1 12:22 vmlinuz-5.9-x86_64

The section of linux/initrd on grub.cfg for the main initramfs:

linux /boot/vmlinuz-5.9-x86_64 root=UUID=951914d4-0309-4c16-baeb-7e4b44eca40a rw acpi_osi="!Windows 2012" acpi_osi="!Windows 2013" acpi_osi="!Windows 2015"
initrd /boot/intel-ucode.img /boot/initramfs-5.9-x86_64.img

This one is for the fallback image, which actually boots.

linux /boot/vmlinuz-5.9-x86_64 root=UUID=951914d4-0309-4c16-baeb-7e4b44eca40a rw acpi_osi="!Windows 2012" acpi_osi="!Windows 2013" acpi_osi="!Windows 2015"
initrd /boot/initramfs-5.9-x86_64-fallback.img

Try changing to another linux. ex:5.4

I’ve tried that. The kernels tested so far: 5.9.11-3, 5.4.80-2, and 4.19.160-1. No luck.