4

I got a computer with Windows 10. After installing Ubuntu along Windows 10 and fixing the boot sector with boot-repair, I ended up with this for the 1st time:

grub menu

It does work when I choose the 1st or 2nd last ones. But how to delete all those redundant items?

hg8
  • 13,462
Incerteza
  • 1,470

1 Answers1

4

Removing & modifying grub entries

Graphical way :

Install grub-customizer, it will let you manage your grub entry easily:

sudo apt-add-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

grub customizer

Select the entry you want to delete, click on Remove and when you are done do not forget to click on Save.


In case of problem :

Restoring deleted entries :

If you accidentally deleted the wrong entry grub-customizer include a function to easily restore removed entry :

enter image description here


Restoring initial grub configuration :

You should not need this but I write it just in case something goes wrong.

grub-customizer keep a backup of your initial grub config in /etc/grub.d/backup.

If you accidentally messed up or want to go back to your original grub configuration here is what you can do :

To fix an unbootable configuration, run:

sudo cp /etc/grub.d/backup/boot_grub /boot/grub

To reset the whole configuration, also copy these files:

sudo cp /etc/grub.d/backup/etc_grub_d /etc/grub.d
sudo cp /etc/grub.d/backup/default_grub /etc/default/grub
sudo update-grub 

(Taken from /etc/grub.d/backup/RESTORE_INSTRUCTIONS)


If you still can not managed manage to restore your grub configuration after that, follow this guide.


Refer here for more information.

hg8
  • 13,462