Right now I want to remove an entry that grub has auto added when I dropped in a drive with a Windows installation on it. I'm always messing with drives and OSes so this is just an example.
In /boot/grub/grub.cfg I have 2 Windows entries as follows, and I wish to remove the 2nd entry however I note the warning in the header hence this query. When I look at the files in /etc/default/grub and /etc/grub.d nothing there seems to refer to any boot options.
cat /etc/grub/grub.cgf
Code: Select all
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
## BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os>
savedefault
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 0C87-504F
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
menuentry 'Windows Boot Manager (on /dev/nvme1n1p1)' --class windows --class os>
savedefault
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root F654-C732
chainloader /EFI/Microsoft/Boot/bootmgfw.efi