tech:notes_bios_uefi_efi_-_efibootmgr
Table des matières
Notes BIOS UEFI EFI - efibootmgr
Exemple
efibootmgr -v
BootCurrent: 0003 BootOrder: 0003,0004,0000,0001,0002 Boot0000* EFI DVD/CDROM ACPI(a0341d0,0)PCI(1,1)ATAPI(1,0,0) Boot0001* EFI Hard Drive ACPI(a0341d0,0)PCI(d,0)SATA(0,0,0) Boot0002* EFI Internal Shell MM(b,2100000,28fffff)FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1) Boot0003* Red Hat Enterprise Linux HD(1,800,64000,ecdb5984-9559-4c58-abdf-896609472d2b)File(\EFI\redhat\shim.efi) Boot0004* rEFInd Boot Manager HD(1,800,64000,ecdb5984-9559-4c58-abdf-896609472d2b)File(\EFI\refind\refind_x64.efi)
Changer l'ordre de démarrage pour la prochaine fois seulement
efibootmgr -n 0004
Changer l'ordre de démarrage
efibootmgr -o 0004,0003,0000,0001,0002
Ajout entrée
efibootmgr -c -l '\EFI\refind\refind_x64.efi' -L 'rEFInd Boot Manager' -d /dev/sda -p 1 #efibootmgr -c -l '\EFI\debian\grubx64.efi' -L 'Debian Grub' -d /dev/sda -p 1 efibootmgr --create --label CentOS --disk /dev/sda1 --loader "\EFI\centos\shim.efi"
Où /dev/sda1 correspond à /boot/efi.
Pb Bug 100% CPU
Solution
apt-get install amd64-microcode
Autres
BOOTNUMS=$(efibootmgr | sed '/plop/!d; s,\* .*,,; s,Boot,,') for BOOTNUM in $BOOTNUMS; do if [ -n "$BOOTNUM" ]; then efibootmgr -b "$BOOTNUM" -B fi done rm -f /boot/efi/EFI/ubuntu/plop.efi
tech/notes_bios_uefi_efi_-_efibootmgr.txt · Dernière modification : de 127.0.0.1
