Stuck with a boot error saying "amd-ucode.img not found" on Arch Linux? This guide shows you how to fix it fast.
Boot from Arch Linux USB drive
Use the official one from the Arch Linux website.
First, mount the target disk
# mkdir /mnt/root
# mount /dev/nvme0n1p2 /mnt/root
# mount /dev/nvme0n1p1 /mnt/root/boot
Enter the mounted environment with chroot
# arch-chroot /mnt/root
Reinstall the amd-ucode package that was accidentally removed
# pacman -S amd-ucode
This should create /boot/amd-ucode.img
.
Create a backup just in case
(If you put the backup in the same directory, grub-mkconfig would use that instead)
# cd /boot
# mkdir backup
# cp initramfs-linux.img backup/initramfs-linux.img.2024-10-08
# cp vmlinuz-linux backup/vmlinuz-linux.2024-10-08
# cp grub/grub.cfg backup/grub.cfg.2024-10-08
# cp /etc/mkinitcpio.conf backup/mkinitcpio.conf.2024-10-08
Regenerate initramfs
# mkinitcpio -p linux
Update GRUB configuration
# grub-mkconfig -o /boot/grub/grub.cfg
Conclusion
Pacman: It's not just a game, folks!
Top comments (0)