You are not logged in.
So I have a windows dual boot which I rarely use, Arch being my daily driver and for some stuff I had open my windows. When restarting it started to update and when rebooted in my systemd bootloader. I was greeted with:
Error preparing initrd: Volume corruptSo I managed to solve it by repair my btrfs root partition.
But then I was greeted with:
Error loading \vmlinuz-linux: UnsupportedThis was also solved by me chrooting into my own setup and updating my linux kernel and headers to 6.9.5 1-1.
But since then when I try to boot back into my system I am faced with
Initramfs unpacking failed: Invalid magic at start of Compressed archiveNow what all I have tried,
- I edited the mkinitcpio.conf in /etc/ to add COMPRESSION="zstd" and then rebuilding initramfs my mkinitcpio -P
- I also reinstalled Linux kernel and header
Now I am just a beginner in solving my machines issues so please help accordingly and it will be of great help if you could explain what u r actually doing.
Last edited by nightfury (2024-06-18 06:00:07)
Offline
check whether you're running out of free space on /boot and how big that ultimately actually is. chances are you have too little space there, and will have to either resize the filesystem/partition, relocate the kernel files to your root partition, or potentially disable generation of the fallback image assuming you don't change HW much, see https://bbs.archlinux.org/viewtopic.php?id=293333
Offline
please avoid double posting https://bbs.archlinux.org/viewtopic.php?id=296884
Offline
check whether you're running out of free space on /boot and how big that ultimately actually is. chances are you have too little space there, and will have to either resize the filesystem/partition, relocate the kernel files to your root partition, or potentially disable generation of the fallback image assuming you don't change HW much, see https://bbs.archlinux.org/viewtopic.php?id=293333
My boot partition is of 1gb space so I guess that shouldn't be an issue, but I'll check once.
Also how can I check space of my boot partition without chrooting, is that possible.
Offline
please avoid double posting https://bbs.archlinux.org/viewtopic.php?id=296884
Sure will keep in mind from next time but I was confused where to post it.
Offline
You might be looking at the wrong initramfs, how to you load CPU microcode updates?
https://wiki.archlinux.org/title/Microcode
Did you try to re-install amd-ucode?
Online
I edited the mkinitcpio.conf in /etc/ to add COMPRESSION="zstd"
This will end up in /etc/mkinitcpio.conf.pacnew files with potential to break the bootchain (after system update) as your active mkinitcpio.conf file remains untouched (not getting updates).
Better use drop-ins (/etc/mkinitcpio.conf.d) and restore the original file with 'sudo tar xf /var/cache/pacman/pkg/mkinitcpio-39.2-2-any.pkg.tar.zst -C / --overwrite etc/mkinitcpio.conf'.
'zstd' is default so you don't need that in particular though.
https://wiki.archlinux.org/title/Pacman … nd_Pacsave
https://wiki.archlinux.org/title/mkinit … figuration
Last edited by Maniaxx (2024-06-18 21:38:14)
sys2064
Offline
You might be looking at the wrong initramfs, how to you load CPU microcode updates?
https://wiki.archlinux.org/title/MicrocodeDid you try to re-install amd-ucode?
Ok so I reinstalled the amd-ucode and just to be safe I even rebuilt my Initramfs.
But still Initramfs unpacking failed then I did something which is a bit unusual I installed another arch with same kernels on my same machine and then copied it’s Initramfs and amd-ucode to my suprise my prev sys booted up, this makes me wonder there’s more to know about these than what I thought. If any of any of you would like to add something do add I would love to give it a read.
Offline
Make sure your system is not partially updated (especially #3.3 and #3.5).
Post this:
$ ls /etc |grep pacnew
$ pacman -Qkk mkinitcpio
$ cat /etc/mkinitcpio.d/linux.preset
$ cat /etc/mkinitcpio.conf
$ sudo file /boot/initramfs-linux.img # do this on the defect initramfs
$ sudo lsinitcpio -a /boot/initramfs-linux.img # do this on the defect initramfsLast edited by Maniaxx (2024-06-19 10:48:04)
sys2064
Offline