kalda@Lenovo:~$ sudo parted -l Model: ATA ST1000LM024 HN-M (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/4096B Tabulka oddílů: gpt Disk Flags: Číslo Začátek Konec Velikost Systém souborů Název Přepínače 1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp 2 538MB 1000GB 1000GB ext4 |
kalda@Lenovo:~$ sudo efibootmgr --verbose BootCurrent: 0000 Timeout: 0 seconds BootOrder: 0000,2003,2001,2002 Boot0000* ubuntu HD(1,GPT,d1d762ec-526b-431d-b7f1-80cde95c982d,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi) Boot0005* EFI Network 0 for IPv4 (50-7B-9D-B6-4D-60) PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(507b9db64d60,0)/IPv4(0.0.0.0:0<->0.0.0.0:0,0,0)RC Boot0006* EFI Network 0 for IPv6 (50-7B-9D-B6-4D-60) PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(507b9db64d60,0)/IPv6([::]:<->[::]:,0,0)RC Boot2001* EFI USB Device RC Boot2002* EFI DVD/CDROM RC Boot2003* EFI Network RC |
4 root root 4096 říj 25 19:39 ./ drwx------ 3 root root 4096 led 1 1970 ../ drwx------ 2 root root 4096 led 13 17:32 BOOT/ drwx------ 3 root root 4096 pro 17 19:24 ubuntu/ root@Lenovo:/boot/efi/EFI# pwd /boot/efi/EFI |
cd /etc/grub.d/ vi 30_uefi-firmware na pozadovanou: #! /bin/sh set -e # grub-mkconfig helper script. # Copyright (C) 2012 Free Software Foundation, Inc. # # GRUB is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # GRUB is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GRUB. If not, see <http://www.gnu.org/licenses/>. prefix="/usr" exec_prefix="/usr" datarootdir="/usr/share" export TEXTDOMAIN=grub export TEXTDOMAINDIR="${datarootdir}/locale" . "${datarootdir}/grub/grub-mkconfig_lib" efi_vars_dir=/sys/firmware/efi/vars EFI_GLOBAL_VARIABLE=8be4df61-93ca-11d2-aa0d-00e098032b8c OsIndications="$efi_vars_dir/OsIndicationsSupported-$EFI_GLOBAL_VARIABLE/data" if [ -e "$OsIndications" ] && \ [ "$(( $(printf 0x%x \'"$(cat $OsIndications | cut -b1)") & 1 ))" = 1 ]; then LABEL="System setup" gettext_printf "Adding boot menu entry for EFI firmware configuration\n" >&2 onstr="$(gettext_printf "(on %s)" "${DEVICE}")" cat << EOF menuentry 'uefi-firmware' { fwsetup } EOF fi |