Ubuntu – How to remove an old OS entry from grub

dual-bootgrub2uefi

So, I was trying to install Arch in my system, which already had a dual-boot with Ubuntu 14.04 and Windows 10 installed. The installation went wrong, so I deleted both root and swap partitions from Arch. I had some problems first because my computer was using Arch's grub installation to boot, so I was always entering in grub recovery mod, which I fixer after changing boot order by putting Ubuntu on top again.

My problem is even though I run sudo update-grub from Ubuntu terminal, at grub menu, the Arch option is still there, with its advanced options. I tried to delete the arch_boot folder from /boot/efi/EFI directory but it didn't change.

How can I get rid of this? I want to try to make an another Arch installation, but I get the feeling that this entry at grub menu will disturb me. Then, what should I do? Thanks in advance.

Best Answer

Re-install Grub

sudo grub-install path/to/root/disk

Grub auto-detects operative systems during installation. I think it will also detect outside the disk you install it on, Like if you have a Live USB plugged that is not the booted system it will include it too.

I have mine in /dev/sda

sudo grub-install /dev/sda

Open Disks app and look for the partition that shows (Bootable):

enter image description here

Live CD installation Video