请问grub里的win的启动项究竟应该怎样编辑?
Tofloor
poster avatar
liujy126
deepin
2020-06-08 20:14
Author
我的双硬盘win10和deepin都在第一块硬盘也就是hd0吧?efi分区应该是在第一扇区,也就是gpt1吧,
那这样的内容应该没有错吧?
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then   search --no-floppy --fs-uuid --set=root 0EA5-3E18
fi
drivemap -s (hd0) ${root}
chainloader +1

但每次,grub customizer保存的时候,都提示错误

请问,应该咋样搞?

现在是grub启动菜单上win是废的,总是回到启动菜单,想进入win就得bios里选。
Reply Favorite View the author
All Replies
avatar
今风
deepin
2020-06-08 22:13
#1
set root='hd0,gpt1'    :表示第一块硬盘的第一个gpt分区

换成试试,我的就是这样的
set root= 'hd0,msdos5'        :表示第一块硬盘的第一个逻辑分区
Reply View the author
avatar
liujy126
deepin
2020-06-09 00:21
#2
https://bbs.deepin.org/post/195690
set root='hd0,gpt1'    :表示第一块硬盘的第一个gpt分区

换成试试,我的就是这样的

哦,不行,您的那个是mbr的分区表的,我的那个是gpt的
Reply View the author
avatar
走钢丝
deepin
2020-06-09 02:06
#3
Reply View the author
avatar
stone
deepin
2020-06-09 02:45
#4
为啥要自己写grub? grub-mkconfig 这个命令没用了?
Reply View the author
avatar
今风
deepin
2020-06-09 03:19
#5

新建一个启动项,

menuentry "启动 Windows"{
    search --file --set /EFI/Microsoft/Boot/bootmgfw.efi ; then
    chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
Reply View the author
avatar
lbygljq
deepin
2020-06-09 05:09
#6
grub2都有自动配置更新的,为何这么弄。自动更新后,想要美化再做点小的修改,不就完美啦。
Reply View the author
avatar
liujy126
deepin
2020-06-09 17:10
#7
https://bbs.deepin.org/post/195690
grub2都有自动配置更新的,为何这么弄。自动更新后,想要美化再做点小的修改,不就完美啦。 ...

不想折腾它,只是升级里n卡驱动之后,再升级内核5.6.14,显示n卡出错,然后启动换旧内核,于是windows就无法引导里,每次都得进入bios
Reply View the author