Removing duplicate GRUB entry?

2 years ago by dditty to c/archlinux

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?

just_another_person 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.

path: 0 15822756, hotness: undefined, score: 11, children: 6
dditty 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).

path: 0 15822756 15824470, hotness: undefined, score: 3, children: 1
just_another_person 4 points 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.

path: 0 15822756 15824470 15825508, hotness: undefined, score: 4, children: 0
dditty 1 point 2 years ago path: 0 15822756 15835661, hotness: undefined, score: 1, children: 3
just_another_person 3 points 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.

path: 0 15822756 15835661 15835974, hotness: undefined, score: 3, children: 2
dditty 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!

path: 0 15822756 15835661 15835974 15836328, hotness: undefined, score: 2, children: 1
just_another_person 2 points 2 years ago

👍

path: 0 15822756 15835661 15835974 15836328 15838119, hotness: undefined, score: 2, children: 0
FreeBird 4 points 2 years ago path: 0 15825958, hotness: undefined, score: 4, children: 1
dditty 2 points 2 years ago

I thought about using this but I found some Garuda threads that say not to use it since Garuda uses garuda-boot-options instead.

path: 0 15825958 15826199, hotness: undefined, score: 2, children: 0
deadcatbounce 0 points 2 years ago

[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!

path: 0 15825397, hotness: undefined, score: 0, children: 0
archlinux
archlinux

@lemmy.ml

login for more options
10009
427
77

The beloved lightweight distro

go to feed...