Remove unknown boot entries found after updating grub

I already switched to the lenovo and it gives the same output for the first command and nothing for the second. I actually haven’t removed any entries yet.

Which commands?

These two.

grep "\.efi" /boot/grub/grub.cfg
grep -i "insyde" /boot/grub/grub.cfg
1 Like

Copy/paste in terminal. Accept multi-lines, and run (Enter).

grep -E "submenu |menuentry |^}" /boot/grub/grub.cfg | sed \
-e 's/ --class.*$//g' \
-e 's/menuentry //g' \
-e 's/submenu //g' \
-e 's/ --hotkey.*$//g' \
-e '/[{}]/d' \
-e 's/^\s*//g'

Do you mean copy and paste the whole thing at once?

I guess i did it right?

[ricklinux@eos-kde ~]$ sudo grep -E "submenu |menuentry |^}" /boot/grub/grub.cfg | sed \
-e 's/ --class.*$//g' \
-e 's/menuentry //g' \
-e 's/submenu //g' \
-e 's/ --hotkey.*$//g' \
-e '/[{}]/d' \
-e 's/^\s*//g'
[sudo] password for ricklinux: 
'EndeavourOS Linux'
'EndeavourOS Linux, with Linux linux'
'EndeavourOS Linux, with Linux linux (fallback initramfs)'
'Windows Boot Manager (on /dev/nvme0n1p1)'
[ricklinux@eos-kde ~]$ 
1 Like

The thing is i know with UEFI using efibootmgr you can clear it all and when you boot the entries get picked back up in the nvram. I just wasn’t sure if i should remove those folders as i had forgotten about other installs and i just thought the new grub update caused them? Wasn’t really thinking about it correctly.

Edit: No boot problems. I just have to check windows boot but I’m sure it’s okay,

1 Like

It did fail to boot the first time because i had removed other entries for pxe boot etc in efibootmgr but i restarted it and it’s okay.

Why does it have 3 entries for endeavouros instead of just two? One is the fallback.

This is in the UEFI menu.

No. Grub is smart :wink:

Grub is the best, no matter the misconceptions, which are created because of PTSD from the broken system and lack of knowledge. It is a pitty.
I hope EnOS forum clears this out finally :man_shrugging:

I usually don’t have any issues with grub. I just don’t have the knowlwedge to understand all of it. I know bits & pieces.

1 Like

The first one is the 1st grub menu.
The next two are from the Advanced options submenu.

This command serves a special reason for my scripts, but it was quickly convenient for this troubleshooting.

1 Like

Thanks for the help to walk me through this. Every time we have these grub topics it gets way too confusing. I don’t usually have any issues with grub. That’s why i use it but i don’t pretend to understand all of it. I only know what i know and that isn’t much. :wink:

2 Likes

Yes i forgot this too. Makes sense.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.