重新安装 18.04.3 并双启动 Windows 10,启动到 grub 提示符。如何重新创建 grub 并启动到 ubuntu?

重新安装 18.04.3 并双启动 Windows 10,启动到 grub 提示符。如何重新创建 grub 并启动到 ubuntu?

Win/Ubuntu 都安装在我的第四块 HD - SDD 上,从 Live CD 重新安装 Ubuntu 18.04.3 后,我无法回到 Ubuntu。

我使用 SDA、SDB、SDC 作为附加硬盘。

我可以手动选择“Windows”从 bios(MSI 主板)启动并启动 Win10,但是那里还有其他 2 个选择:另一个 Win10 和 Ubuntu......都将我带到 grub 提示符,我可以确定在那里做什么以及如何修复 grub。

这是我的原始启动信息报告: http://paste.ubuntu.com/p/sFghcwPvtv/ (忽略其他驱动器上的某些“旧”版本的 grub/windows,我猜我已经交换了一些硬盘驱动器)。

相关部分位于切割线下方。

几年前我尝试过 Grub2Win(因此造成了很大麻烦!),但是在 Windows 更新后它似乎不起作用,所以我恢复了传统的 Grub,一切都正常了。

然后我安装了启动修复(我假设它完成了初始报告底部的建议)并且运行后,它说有“错误”: http://paste.ubuntu.com/p/57Hn5BD5cm/ (相关部分在底部)

有没有简单的方法可以清除所有这一切(除了核能)?或者至少让我进入工作状态?

    ---------------------------------------------------------------------------
 => Grub2 (v2.00) is installed in the MBR of /dev/sdd and looks at sector 
    1824911768 of the same hard drive for core.img. core.img is at this 
    location and looks for (,gpt6)/boot/grub. It also embeds following 
    components:

    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_gpt biosdisk

sdd1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdd2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 8/2012: FAT32
    Boot sector info:  According to the info in the boot sector, sdd2 starts 
                       at sector 923648. But according to the info from 
                       fdisk, sdd2 starts at sector 923656.
    Operating System:  
    Boot files:        /EFI/ubuntu/grub.cfg /EFI/Boot/bkpbootx64.efi 
                       /EFI/Boot/bootx64.efi /EFI/Boot/fbx64.efi 
                       /EFI/grub2win/grub2win.boot64.efi 
                       /EFI/grub2win/grub2win.efilevel.124.txt 
                       /EFI/grub2win/grub2win.efirescue.cfg 
                       /EFI/grub2win/grub2win.efisetup.cfg 
                       /EFI/ubuntu/fwupx64.efi /EFI/ubuntu/grubx64.efi 
                       /EFI/ubuntu/mmx64.efi /EFI/ubuntu/shimx64.efi 
                       /EFI/Microsoft/Boot/bootmgfw.efi 
                       /EFI/Microsoft/Boot/bootmgr.efi 
                       /EFI/Microsoft/Boot/memtest.efi 
                       /boot-repair/log/20181204_003552/sdd2/bootx64.efi

sdd3: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: /mnt/BootInfo/sda1: unknown filesystem type ''.
mount: /mnt/BootInfo/sdd3: unknown filesystem type ''.

sdd4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  According to the info in the boot sector, sdd4 starts 
                       at sector 1161216. But according to the info from 
                       fdisk, sdd4 starts at sector 1161240.
    Operating System:  
    Boot files:        /grub2/grub.cfg /bootmgr /Windows/System32/winload.exe

sdd5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdd6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 18.04.3 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab 
                       /boot/grub/i386-pc/core.img

sdd7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdd8: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

----------------------------------------------------------------
An error occurred during the repair.

You can now reboot your computer.
Please do not forget to make your BIOS boot on sdd2/EFI/ubuntu/shimx64.efi file!

If your computer reboots directly into Windows, try to change the boot order in your BIOS.
If your BIOS does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi

----------------------------------------------------------

相关内容