dell工作站T5810装完双系统后开机没有windows选项

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
zhanhli
帖子: 16
注册时间: 2018-11-01 9:31
系统: Ubuntu16.04

dell工作站T5810装完双系统后开机没有windows选项

#1

帖子 zhanhli » 2018-11-01 9:40

大神求助啊。我已经弄了一天了,也没弄好。就是电脑用uefi启动直接进入ubuntu,用legacy启动直接进入windows10,开机的时候根本没有选项。好心人帮帮忙 :Cry
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: dell工作站T5810装完双系统后开机没有windows选项

#2

帖子 astolia » 2018-11-01 9:42

你为什么不两个系统都在legacy或uefi模式下安装
zhanhli
帖子: 16
注册时间: 2018-11-01 9:31
系统: Ubuntu16.04

Re: dell工作站T5810装完双系统后开机没有windows选项

#3

帖子 zhanhli » 2018-11-01 9:44

windows10是这个工作站自带的系统,然后ubuntu16我是用u盘在uefi模式下安装的
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: dell工作站T5810装完双系统后开机没有windows选项

#4

帖子 astolia » 2018-11-01 9:49

参照这个,在/etc/grub.d/40_custom手动增加win10的引导项,然后update-grub
https://wiki.debian.org/DualBoot/Windows10
zhanhli
帖子: 16
注册时间: 2018-11-01 9:31
系统: Ubuntu16.04

Re: dell工作站T5810装完双系统后开机没有windows选项

#5

帖子 zhanhli » 2018-11-01 10:08

按照这个试了,最后在终端输入
sudo update-grub
显示是这样的……
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.13.0-36-generic
Found initrd image: /boot/initrd.img-4.13.0-36-generic
Adding boot menu entry for EFI firmware configuration
done
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: dell工作站T5810装完双系统后开机没有windows选项

#6

帖子 astolia » 2018-11-01 10:14

然后重启看能不能通过grub引导win10啊。启动时如果没有显示grub菜单,反复按上下键
zhanhli
帖子: 16
注册时间: 2018-11-01 9:31
系统: Ubuntu16.04

Re: dell工作站T5810装完双系统后开机没有windows选项

#7

帖子 zhanhli » 2018-11-01 10:21

启动时还是没有系统选项,直接进入了ubuntu。如果反复按上下键,就会卡在ubuntu的启动界面
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: dell工作站T5810装完双系统后开机没有windows选项

#8

帖子 astolia » 2018-11-01 10:26

你把/etc/grub.d/40_custom的内容贴上来看看
zhanhli
帖子: 16
注册时间: 2018-11-01 9:31
系统: Ubuntu16.04

Re: dell工作站T5810装完双系统后开机没有windows选项

#9

帖子 zhanhli » 2018-11-01 10:27

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.

menuentry "Windows 10" --class windows --class os {
insmod ntfs
search --no-floppy --set=root --fs-uuid 1D584C40586B2873
ntldr /bootmgr
}
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: dell工作站T5810装完双系统后开机没有windows选项

#10

帖子 astolia » 2018-11-01 10:37

你别不看文章就傻乎乎直接照抄啊
那篇写得很清楚,用blkid /dev/sda1来确定windows的系统保留分区的uuid,如果系统保留分区不是/dev/sda1,再去试sda2、sda3。把1D584C40586B2873换成你分区实际的uuid号

另外可以在最后加一行set timeout=10
zhanhli
帖子: 16
注册时间: 2018-11-01 9:31
系统: Ubuntu16.04

Re: dell工作站T5810装完双系统后开机没有windows选项

#11

帖子 zhanhli » 2018-11-01 10:49

抱歉没看仔细。改完了之后,还是没有变化

update-grub之后也是没有变化 :Cry
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: dell工作站T5810装完双系统后开机没有windows选项

#12

帖子 astolia » 2018-11-01 11:02

在保证网络连上的情况下,运行下列命令安装并运行boot-repair

代码: 全选

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair
然后点Recommended repair等它自动修复。修复完了会显示个paste.ubuntu.com/XXX的链接,记下来。如果重启后还是不行,把那个链接发上来
zhanhli
帖子: 16
注册时间: 2018-11-01 9:31
系统: Ubuntu16.04

Re: dell工作站T5810装完双系统后开机没有windows选项

#13

帖子 zhanhli » 2018-11-01 11:21

现在开机有了windows选项,显示是这样的:
*ubuntu
ubuntu高级选项
efi/EFI/ubuntu/fwupx64.efi
efi/EFI/ubuntu/mmx64.efi
EFI/ubuntu/fwupx64.efi sdb6
EFI/ubuntu/mmx64.efi sdb6
System setup
Windows 10
然后选择windows10 回车
显示
错误=can't find command 'ntldr'
按任意键继续,然后又会回到之前的开机选项





链接是这个
http://paste.ubuntu.com/p/hmJCH9ycgk/
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: dell工作站T5810装完双系统后开机没有windows选项

#14

帖子 astolia » 2018-11-01 11:37

先安装缺少的模块
sudo apt install grub-pc-bin
然后重运行boot-repair再修复一遍,然后重启看能进win10不
zhanhli
帖子: 16
注册时间: 2018-11-01 9:31
系统: Ubuntu16.04

Re: dell工作站T5810装完双系统后开机没有windows选项

#15

帖子 zhanhli » 2018-11-01 11:42

修复的时候出现了这个:


修复过程中出现一个错误。

请纸录以下URL:
http://paste.ubuntu.com/p/4C95q7j3NC/


如果您仍然遇到引导问题,请在此 URL 处留言:
boot.repair@gmail.com

现在您可以重新启动计算机。
别忘了将BIOS设置为从sdb6/EFI/ubuntu/shimx64.efi启动

[操作系统正在使用中 - Ubuntu 16.04.4 LTS]的引导文件距磁盘头部太远,你的BIOS可能无法检测到它们。 您可以创建一个/boot/efi分区然后重试 (FAT32, 100MB~250MB, 磁盘起始位置, boot 标志). 这可以通过诸如 gParted 等工具来操作。 然后在 [引导修复]的[单独的/boot/efi分区]中选择该分区。

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
回复