can't remove custom entry

Asked by Pedro Bessa

There are two entries in grub2 that I want to delete. In grub.cfg, they appear by the end of the 30_os-prober section. When I remove 30_os-prober, I lose some of the good entries.

I think I made those custom entries by editing 40_custom or by using one of the grub-* like grub-install. Now, they are in 30_os-prober and I can't delete them. How to remove a custom entry?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
delance (olivier-delance) said :
#1

Custom entries are defined in /etc/grub.d/40_custom. To remove custom entries, simply edit (or delete) file 40_custom.
30_os-prober is a files which contains entries to OSes other that main Ubuntu installation. It usually means a Windows recovery partition and a main Windows partition. This file is build at installation, by os-prober. To rebuild it, run command:
   sudo update-grub.

Revision history for this message
Pedro Bessa (pedbessa) said :
#2

The entries that I made in 40_custom started appearing in the os-prober section which can't be deleted.
When I deleted the entries in 40_custom, the wrong custom entries in os-prober section remained.

Revision history for this message
Pedro Bessa (pedbessa) said :
#3

I ran live cd, then commands to create a dedicated grub2 partition, then I got a mkconfig bug, then I was booting into ubuntu manually, but read many failed, then restored a backup with clone zilla, now I don't have this bug.

I was going to turn this question into a complete with dependencies bug report, but I don't have this bug any longer.

Can you help with this problem?

Provide an answer of your own, or ask Pedro Bessa for more information if necessary.

To post a message you must log in.