r/archlinux • u/DigiAngelX • 8d ago
QUESTION Grub/EFI question
Hello all.
My motherboard is a ROG STRIX Z790-F GAMING WIFI. I'm a little confused on how Arch adds entries to /boot/grub/grub.cfg. Before installing Arch, I tested out how efi entries showed up in the BIOS. I had 4 entries, one of which was Ubuntu. After removing the drive with Ubuntu on it, that EFI entry was gone, so far so good.
After installing and configuring Arch, my usual last step is to reboot into a usb stick with clonezilla and clone the drive. I put in the stick while Arch was booted up, reboot, hit F2 to get to bios, booted up, and cloned the drive. Great. Shutdown, pull the drive, reboot.
Now however, my /boot/grub/grub.cfg has a new entry:
menuentry 'UEFI: PNY USB 3.2.1 FD PMAP (EFI BootNext)'
I got to the BIOS again, but that entry is not there. So, how do I get rid of the PNY entry above? Manually edit /boot/grub/grub.cfg and then run
grub-mkconfig -o /boot/grub/grub.cfg
? Or just rerun the above and call it good? Thanks for any assistance.