Logo

dev-resources.site

for different kinds of informations.

What to do if you accidentally remove the `amd-ucode` package on Arch Linux

Published at
10/9/2024
Categories
archlinux
grub
troubleshooting
linux
Author
anekos
Author
6 person written this
anekos
open
What to do if you accidentally remove the `amd-ucode` package on Arch Linux

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 fullscreen mode Exit fullscreen mode

Enter the mounted environment with chroot

# arch-chroot /mnt/root
Enter fullscreen mode Exit fullscreen mode

Reinstall the amd-ucode package that was accidentally removed

# pacman -S amd-ucode
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Regenerate initramfs

# mkinitcpio -p linux
Enter fullscreen mode Exit fullscreen mode

Update GRUB configuration

# grub-mkconfig -o /boot/grub/grub.cfg
Enter fullscreen mode Exit fullscreen mode

Conclusion

Pacman: It's not just a game, folks!

archlinux Article's
30 articles in total
Favicon
GNOME vs KDE Plasma: Which One Is for You?
Favicon
DΓ­a 1/365. Instalar Rust en ArchLinux
Favicon
Git Auto Push
Favicon
Endpoint Security Bypass EXPOSED! Hackers Don't Want You to Know This!
Favicon
Creating a bootable USB flash drive in a GUI application
Favicon
Install and use VirtualBox on Arch Linux & Snigdha OS
Favicon
As a beginner I use Arch, Neovim and code in assembly btw
Favicon
Publishing My First AUR Package: CPIG
Favicon
Como habilitar el "Natural scrolling" en el touchpad en Arch Linux
Favicon
Essential Linux Text Manipulation Tools: cut, sort, uniq, tr πŸ› οΈ
Favicon
Resolving Audio Issues on Arch Linux with Hyprland: A Step-by-Step Guide
Favicon
Shell Scripting for Beginners: Automating Common Coding Tasks
Favicon
Essential Arch Linux Commands: Advanced Mastery(Part-2)[Must Read]
Favicon
Create Your Custom WSL from Any Linux Distribution (Part - 2)
Favicon
How to use Pacman on Arch Linux πŸš€
Favicon
How to Install BlackArch on Top of Arch Linux πŸ–€πŸ§
Favicon
Automate Repetitive Tasks: Creating Bash Scripts for Everyday Use πŸš€
Favicon
Bash Basics: A Beginner’s Guide to Shell Scripting
Favicon
Mastering Arch Linux: A Guide to Installation, Commands, and Mastery(Part-1)[Must Read]
Favicon
Arch Linux Pacman: A Detailed Guide with Commands and Examples 🎩🐧
Favicon
Introducing Snigdha OS: A Fresh Take on Open-Source Operating Systems
Favicon
πŸš€ Arch Linux Cheat Sheet: Essential Commands for new Users
Favicon
.py extension convention
Favicon
Repurposing Your Old Laptop: A Linux-Powered Home Server
Favicon
Step-by-Step Guide to Installing PostgreSQL on Arch Linux
Favicon
Is Linux an Operating System or a Kernel?
Favicon
Installing Arch Linux in UEFI systems(windows)
Favicon
New Rotating Shapes Animation
Favicon
What to do if you accidentally remove the `amd-ucode` package on Arch Linux
Favicon
Holy Trinity?

Featured ones: