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?
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?
10 Comments
just_another_person@lemmy.world · 11 pts · 1y
Yep. Edit
/etc/default/grub, then rungrub-mkconfig -o /boot/grub/grub.cfgto generate the new menu. Reboot.dditty@lemm.ee · 3 pts · 1y
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 pts · 1y
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 pts · 1y
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 pts · 1y
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 pts · 1y
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!
just_another_person@lemmy.world · 2 pts · 1y
👍
FreeBird@lemmy.dbzer0.com · 4 pts · 1y
This might help.
https://archlinux.org/packages/extra/x86_64/grub-customizer/
dditty@lemm.ee · 2 pts · 1y
I thought about using this but I found some Garuda threads that say not to use it since Garuda uses garuda-boot-options instead.
deadcatbounce@reddthat.com · 0 pts · 1y
[tangential] Please can I suggest that you follow a path to remove grub completely. There really isn't any need to have it anymore, certainly on systemd distributions.
I don't know much about Void Linux and the others, so YMMV there.Re-edit: it's a ArchLinux community. Doh!