How to edit boot items of grub

I cant upload image,
this is my boot page,just a brief description

Garuda linux
Advanced options
Garuda linux (/dev/nvme0n1p2)
Advanced options(/dev/nvme0n1p2)
Windows

I want to hide Garuda linux (/dev/nvme0n1p2) Advanced options(/dev/nvme0n1p2)
I searched on the google,it tells me to edit /etc/default/grub,its the default,and I cant find the above items.
Here is my disk

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 238.5G  0 disk
├─sda1        8:1    0   300M  0 part
├─sda2        8:2    0   128M  0 part
└─sda3        8:3    0 238.1G  0 part
zram0       254:0    0   5.7G  0 disk [SWAP]
nvme0n1     259:0    0 238.5G  0 disk
├─nvme0n1p1 259:1    0   300M  0 part /boot/efi
├─nvme0n1p2 259:2    0 229.4G  0 part /var/lib/docker/btrfs
│                                     /var/tmp
│                                     /var/log
│                                     /var/cache
│                                     /srv
│                                     /home
│                                     /root
│                                     /
└─nvme0n1p3 259:3    0   8.8G  0 part [SWAP]

Hi there, welcome to the forum!
Give a look at this thread and relevant link.

I think you could add /nvme0n1p2 to your skip list
PS: please always provide your garuda-inxi as requested by the template

5 Likes

I spilled my beer laughing at my own confusion about EFI boot, but yes, that should work LOL.

1 Like

It was a very good catch (find :blush:) indeed. It always stuck with me because it was a problem that mysteriously returned every now and then. And it still comes back, but at least we know what to do.... :crazy_face:

4 Likes

disabling the os prober always ended up being the perfect option for me. This might not be such a smart idea in a dual-boot scenario, but otherwise always worth a try.

The solution steps are as follows

sudo os-prober # get ID

sudo vi /etc/default/grub
#add a line
GRUB_OS_PROBER_SKIP_LIST=“Above_ID@/dev/nvme0n1p2”
#then
grubup

its a good solution for dual systems
You can just disable os-prober,if you only have linux

4 Likes

Nice one, I didn't know you could do that.

Welcome to the community by the way. :slightly_smiling_face:

2 Likes

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