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