this post was submitted on 20 Mar 2025
11 points (100.0% liked)
Arch Linux
8539 readers
2 users here now
The beloved lightweight distro
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yep. Edit
/etc/default/grub
, then rungrub-mkconfig -o /boot/grub/grub.cfg
to generate the new menu. Reboot.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).
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.
hey @[email protected] 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
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.
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!
👍