10
submitted 2 years ago by dditty@lemm.ee to c/archlinux@lemmy.ml

Hey all, I recently wound up with duplicate GRUB entries for my Garuda install. The second entry is the same installation as the top one. How can I remove the duplicate? Should I edit the grub config file?

you are viewing a single comment's thread
view the rest of the comments
[-] just_another_person@lemmy.world 11 points 2 years ago

Yep. Edit /etc/default/grub, then run grub-mkconfig -o /boot/grub/grub.cfg to generate the new menu. Reboot.

[-] dditty@lemm.ee 3 points 2 years ago

Perfect, will do. Thanks! I just wanted to check first since some threads I read online were very cautionary about editing the grub config file (for obvious reasons).

[-] just_another_person@lemmy.world 4 points 2 years ago* (last edited 2 years ago)

Yes, you need to be careful about syntax errors and dead links but otherwise, any major issues should be caught by mkconfig. You can always just boot from a liveUSB if you mess something up and fix it.

[-] dditty@lemm.ee 1 points 2 years ago

hey @just_another_person@lemmy.world i'm not sure what to remove from my grub config file. Here are the contents of the file, do you know what I should delete or comment out to get rid of the duplicate grub entry? https://pastebin.com/q8TEJMk5

[-] just_another_person@lemmy.world 3 points 2 years ago* (last edited 2 years ago)

So your config is importing other drop-in configs as mentioned here:

# This config file imports drop-in files from /etc/default/grub.d/.

Go look in that directory. You probably just have a duplicate file with your menuentries which you can just rename to be safez then run your mkconfig command again and reboot.

[-] dditty@lemm.ee 2 points 2 years ago

Thanks, that's what I thought but when I checked the file that was there its contents didn't seem like what I was expecting. I just backed up the file there, deleted the original, ran the command to remake the grub menu and rebooted, and it worked! Tysm!

this post was submitted on 20 Mar 2025
10 points (100.0% liked)

Arch Linux

10065 readers
1 users here now

The beloved lightweight distro

founded 6 years ago
MODERATORS