Wie lösche ich obsolete Boot-Optionen von EFI?

1649
nalzok

Nach dem Installieren und Überschreiben mehrerer Betriebssysteme sieht meine EFI-Partition jetzt ziemlich unordentlich aus:

Wie lösche ich obsolete Boot-Optionen von EFI?

Derzeit gibt es auf meinem Rechner nur zwei Betriebssysteme: macOS und FreeBSD, dh ich benötige die Boot-Optionen "Ubuntu" und "TrueOS" nicht mehr.

Wie kann ich diese veralteten Startoptionen von der EFI-Partition entfernen?

0
Siehe dieses https://superuser.com/questions/930725/how-to-delete-os-from-boot-menu Biswapriyo vor 6 Jahren 1
Die Frage und Antwort, auf die Biswa-Links verweist, bezieht sich auf den integrierten Bootmanager der EFI, der Informationen zu seinen Bootloadern im NVRAM speichert. Diese Frage zeigt jedoch eine rEFInd-Bildschirmaufnahme. rEFInd speichert seine Boot-Optionen nicht im NVRAM. Bei jedem Neustart wird nach Bootloadern gesucht. Daher wird die Lösung anders sein. Rod Smith vor 6 Jahren 1

1 Antwort auf die Frage

1
Rod Smith

rEFInd builds its boot menu "fresh" every time it runs. (An exception is if you use manual boot stanzas -- but if this were the case, you'd presumably be aware of this fact and know how to change them.) Thus, if you're seeing boot entries for OSes you've deleted, the cause is almost certainly that you haven't completely deleted the OSes in question. In most cases, the boot loader files reside on the EFI System Partition (ESP), usually in a subdirectory of EFI; for instance, EFI\ubuntu for Ubuntu. rEFInd usually displays the complete filename, and the name or a description of the volume, under the icons when you highlight an option. For instance, in your screen shot, the description reads Boot EFI\boot\bootx64-trueos.efi from EFI. Thus, to remove that entry, you'd delete that file.

Of course, this means you must know how to access your ESP. The details of how to do this vary from one OS to another. Under macOS, you can use the mountesp script that comes with rEFInd. (Running the script will produce a message revealing where the ESP has been mounted.) I don't know offhand whether FreeBSD mounts the ESP by default, or where it's commonly mounted.

Note that deleting the boot loader is not always appropriate. For instance, if you want to hide an entry without making it completely inaccessible, you should use dont_scan_files, dont_scan_dirs, or dont_scan_volumes in refind.conf to hide the entry. You might do this if the rEFInd boot menu entry is for a tool that you want to leave installed on the ESP, but you just don't want to see a boot entry for it. (Maybe it's something you run from an EFI shell, or that's launched from a boot loader whose entry you want to keep.) Entries for BIOS-mode boot loaders may also need to be handled differently, such as by disabling BIOS-boot option scanning via the scanfor line in refind.conf. I don't think any of these cases apply to you, though; I mention this only for the sake of completeness.

Ich habe eine Boot-Option namens "Boot Fallback Boot Loader von EFI", die eigentlich nach FreeBSD bootet. Ich habe versucht, `/ Volumes / ESP / EFI / refind / refind.conf 'zu bearbeiten, um das Erscheinungsbild (dh Symbol und Label) zu ändern. Ich weiß jedoch nicht, wo sich der Loader befindet. Wissen Sie, wo ich den Loader für `Boot Fallback Bootloader von EFI 'finden kann? nalzok vor 6 Jahren 0
Der Fallback-Bootloader ist `EFI / BOOT / bootx64.efi` (oder gleichwertig für andere CPU-Typen). Rod Smith vor 6 Jahren 0