Menu

Basic question

Ian Harris
2017-01-17
2017-01-22
  • Ian Harris

    Ian Harris - 2017-01-17

    I'm confused.

    I have Linux Mint 18 (Sarah), WIndows 10, and Ubuntu 16.10. I recently installed Ubuntu into a partition that had Debian 8.2 in it. Now Refind still has the Debian icon in the list, and if I select it it tries to boot Debian and fails dismally (hangs, and I have to reboot the PC by holding the on button down for 10 seconds). When I installed Ubuntu it also installed Grub, and now when I boot I see an entry for Ubuntu that says "Boot EFI\Ubuntu\grubx64.efi from EFI system partition", and if I select that I get a Grub menu for Ubuntu. I've tried deinstalling Grub as per the instructions, and running refind-install again, but it makes no difference. Do I have to manually modify the refind.conf file? Surely there is a better way. Why isn't Refind rescanning the EFI directory and finding that a) Debian has gone, and b) Ubuntu has appeared, and why is it still using Grub?
    Confused, big time...

     
  • dragon788

    dragon788 - 2017-01-22

    There is probably a remnant EFI loader for Debian in the /boot/EFI directory. Ubuntu and Grub is a fun one, the kernel itself as of a certain version of 3.x includes an EFI stub loader so Grub isn't really necessary, but since not everybody has EFI capable hardware the Ubuntu standard is still to install Grub and suggest it's use.

    What do you have for folders under /boot/EFI? When you uninstall Grub you may also need to remove the /boot/EFI/Ubuntu/grubx64.efi manually if you are going to just use the kernel loader.

     
  • Roderick W. Smith

    On an EFI-based computer, OSes normally install their boot loaders to the EFI System Partition (ESP), which is shared by all OSes. When you delete an OS's partition(s), unless you explicitly delete the OS's boot loader files from the ESP, those files will remain behind, and rEFInd will detect them. Generally speaking, rEFInd has no way of knowing that the OS's partitions are gone. Thus, you've got to delete the EFI boot loader(s) for any OS(es) you don't want to appear. Alternatively, if the OS is still installed and you want to keep its boot loader but remove its entry from rEFInd, you can fiddle with the dont_scan_files, dont_scan_dirs, or dont_scan_volumes options in refind.conf.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.