grub-install:错误:无法嵌入,但这是跨磁盘安装所必需的

grub-install:错误:无法嵌入,但这是跨磁盘安装所必需的

我已经删除了 grub 并且现在需要再次安装它,但是在尝试安装时遇到以下问题。

hutber@hutber:~$ sudo grub-install /dev/sda
Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: error: embedding is not possible, but this is required for cross-disk install.

我的磁盘

hutber@hutber:~$ lsblk /dev/nvme*
lsblk: /dev/nvme0: not a block device
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
nvme0n1     259:0    0 931.5G  0 disk 
├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
├─nvme0n1p2 259:2    0 918.3G  0 part /
└─nvme0n1p3 259:3    0  12.7G  0 part 
nvme0n1p1   259:1    0   512M  0 part /boot/efi
nvme0n1p2   259:2    0 918.3G  0 part /
nvme0n1p3   259:3    0  12.7G  0 part 

有没有一种简单的方法可以让我再次安装 grub?

在我的 nvme 磁盘上尝试:

hutber@hutber:~$ sudo grub-install /dev/nvme0
Installing for i386-pc platform.
grub-install: error: attempt to read or write outside of disk `hostdisk//dev/nvme0'.

编辑

看来我的 sda 被我拥有的外部驱动器占用了:

hutber@hutber:~$ sudo parted /dev/sda "print free"
Model: ATA ST8000AS0002-1NA (scsi)
Disk /dev/sda: 8002GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      17.4kB  134MB   134MB                Microsoft reserved partition  msftres
        134MB   135MB   1031kB  Free Space
 2      135MB   8002GB  8001GB  ntfs         Basic data partition          msftdata
        8002GB  8002GB  335kB   Free Space

相关内容