1

So I had issues with Ubuntu and reinstalled it a few times. Now I have two Ubuntu options in the BIOS that I don't want because they aren't installed.

Now I would like to delete these options from the BIOS before I install Ubuntu cleanly.

My question is: How do I remove these options while using Ubuntu from a flash drive?

I tried sudo efibootmgr but that gives me the error EFI variables are not supported on this system.. Tried to find a solution on the internet but without any success.

Thanks for reading

1 Answers1

0

Edit boot/grub/grub.cfg by Hand

  • Assuming that you have everything valuable backed up.

  • Boot Live USB.

  • Open Gnome-Disks.

  • Select the disk you want to modify on the left panel.

  • Select the partition with the filesystem on it on the right panel.

  • If there is a little triangle lower left click it. If there is a little square leave it.

  • Note the link in blue at the bottom of Disk's window.

  • Open Terminal and type sudo -H nautilus.

  • Navigate to the destination shown in the blue link: it should be similar to Filesystem root/media/ubuntu/xxxxxxxxxxxx

  • Open /boot/grub/grub.cfg

  • The menuentries you want to delete look similar to:

      menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-84562320-e49d-4d53-af05-793a1a8ac86c' {
          recordfail
          load_video
          gfxmode $linux_gfx_mode
          insmod gzio
          if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
          insmod part_gpt
          insmod ext2
          set root='hd0,gpt3'
          if [ x$feature_platform_search_hint = xy ]; then
            search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  84562320-e49d-4d53-af05-793a1a8ac86c
          else
            search --no-floppy --fs-uuid --set=root 84562320-e49d-4d53-af05-793a1a8ac86c
          fi
          linux   /boot/vmlinuz-5.4.0-53-generic root=UUID=84562320-e49d-4d53-af05-793a1a8ac86c ro  quiet splash $vt_handoff
          initrd  /boot/initrd.img-5.4.0-53-generic
      }
    
  • Delete only the menuentry, do not leave any spaces between the line above and the line below it.

  • If you have any doubts or questions please ask before proceeding.

EDIT

After reading your first post here: Boot partition missing? Can't boot into Ubuntu anymore. Does it have to do with GRUB or Boot partition or similar?

It looks like you just need to Format your HDD and install Ubuntu in UEFI mode.

To ensure that you are installing in UEFI mode follow the instructions for Rufus in this post:

Unable to access Ubuntu from UEFI

C.S.Cameron
  • 20,530
  • 12
  • 78
  • 125