grub-install: 错误: 找不到 EFI 目录

Evi*_*ane 8 grub2 grub-efi

Device          Start        End   Sectors   Size Type
/dev/sda1        2048    1050623   1048576   512M EFI System
/dev/sda2     1050624  837228543 836177920 398.7G Linux filesystem
/dev/sda3  1452748800 1465147391  12398592   5.9G Linux swap
/dev/sda4   837228544 1452748799 615520256 293.5G Microsoft basic data

Partition table entries are not in disk order.


Disk /dev/sdb: 14.6 GiB, 15636364800 bytes, 30539775 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00378159


Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1  *     2048 30539774 30537727 14.6G  c W95 FAT32 (LBA)
Run Code Online (Sandbox Code Playgroud)

我有点迷失在这里。我对 ubuntu 不是很有经验,可能需要一些详细的解决方案。我在 ubuntu 16.10 之后安装了 Windows 10,当我尝试重新安装 grub2 时,它给了我以下错误: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 请帮忙!

kyo*_*ake 6

尝试这个:

启动 Ubuntu Live Usb-Dvd。

打开终端,

Ctrl+ Alt+T

运行:

sudo -i
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot/efi
grub-install --boot-directory=/mnt/boot --bootloader-id=ubuntu  --target=x86_64-efi --efi-directory=/mnt/boot/efi  
reboot
Run Code Online (Sandbox Code Playgroud)

  • grub-install: 错误:/usr/lib/grub/x86_64-efi/modinfo.sh 不存在。请指定--target 或--directory。 (2认同)