I recently updated my ASUS X515M laptop from Ubuntu 20.04 to 22.04, and it made my magic invalid. I work hard on my magic. Why did Ubuntu invalidate it? :(
Picture of the output after trying to boot
What I think are the important bits:
Initramfs unpacking failed: invalid magic at start of compressed archive
. . .
End Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
My BIOS is ~2 years old.
I found the same issue on the Manjaro forum, I just need help translating the steps to Ubuntu-speak:
Boot a live USB [Ubuntu] (download and “burn” that on any working computer)
start terminal
run sudo -s to be root
run manjaro-chroot -a *(Currently stuck here, chroot -a doesn't do anything in Ubuntu)
edit /etc/mkinitcpio.conf (uncomment COMPRESSION="lz4" | (same as Ubuntu?)
run mkinitcpio -P
exit chroot and reboot
I have a live USB of Ubuntu 22.04.
Thanks.
oopdit: I never solved this. Had to reinstall and replaced the stock realtek wifi chip with one that actually works and use Ubuntu 20.10 so I could automatically install drivers for it.
I did eventually find and edit the .conf I needed in /etc/initramfs-toolsl/initramfs.conf by using nano in a live environment after mounting the filesystem to an temporary rescue file(?) using chroot, but that didn't work either (mkinitcpio.conf seems to be the Manjaro Version of that). One thing I failed to mention is that there was also a NVME on my laptop that I never use, but still had a system installed on it. I think the upgrade got borked because of that, and similarly all my attempts at fixing it failed because of it.
To the best of my memory, the steps I did that probably would've fixed it if it weren't for the forgotten NVME:
Boot to Live USB
Open terminal and create a temporary rescue file system/mounting point (I forget the exact commands for this rn)
Use chroot to mount the broken filesystem to rescue
Use nano to navigate to, and edit the files you need. Follow instructions in nano to save the changes.
Exit 'chroot' and restart
Pray to the Small Gods that it worked.
For me it did something, but it still wouldn't boot properly. So I just reinstalled.