Ubuntu 18.04 上意外格式化的 GRUB 分区

Ubuntu 18.04 上意外格式化的 GRUB 分区

我遇到的情况是,Ubuntu 18.04 服务器上的 1MB GRUB 分区被意外格式化。服务器尚未重新启动。

运行后sudo update-grub出现如下错误:

Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50-curtin-settings.cfg'
Generating grub configuration file ...
grub-probe: error: cannot find a GRUB drive for /dev/sdd2.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdd2.  Check your device.map.
Found linux image: /boot/vmlinuz-4.15.0-74-generic
Found initrd image: /boot/initrd.img-4.15.0-74-generic
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sdd2.  Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sdd2.  Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sdd2.  Check your device.map.
Found linux image: /boot/vmlinuz-4.15.0-72-generic
Found initrd image: /boot/initrd.img-4.15.0-72-generic
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sdd2.  Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sdd2.  Check your device.map.
Found linux image: /boot/vmlinuz-4.15.0-54-generic
Found initrd image: /boot/initrd.img-4.15.0-54-generic
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sdd2.  Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sdd2.  Check your device.map.
done

如何才能安全地修复 grub 分区而不必先重新启动服务器?

答案1

我认为没有办法在不重新启动的情况下检索启动部分。

插入安装盘/USB 并搜索 Ubuntu Repair 选项。

相关内容