免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3896 | 回复: 0
打印 上一主题 下一主题

[系统管理] /boot/grub/grub.cfg [||] windows启动无界面 [复制链接]

论坛徽章:
6
程序设计版块每日发帖之星
日期:2016-05-11 06:20:00操作系统版块每日发帖之星
日期:2016-05-12 06:20:00每日论坛发贴之星
日期:2016-05-12 06:20:00操作系统版块每日发帖之星
日期:2016-05-14 06:20:00程序设计版块每日发帖之星
日期:2016-05-31 06:20:00每日论坛发贴之星
日期:2016-05-31 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2017-10-07 08:34 |只看该作者 |倒序浏览
https://segmentfault.com/q/1010000004195538/a-1020000004214053

这是网上查到
和我有类似问题
windows启动无界面
如下是我的 /boot/grub/grub.cfg 片段
不知如何改



# [2017-10-07 08:26:53] root--:/home/soio/1bs
# cat /boot/grub/grub.cfg | sed -n '/### BEGIN \/etc\/grub\.d\/30_os-prober ###/,/### END \/etc\/grub\.d\/30_os-prober ###/p'
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Recovery Environment (loader) (on /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-chain-4802-681F' {
    insmod part_gpt
    insmod fat
    set root='hd0,gpt3'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  4802-681F
    else
      search --no-floppy --fs-uuid --set=root 4802-681F
    fi
    drivemap -s (hd0) ${root}
    chainloader +1
}
menuentry 'Windows 8 (loader) (on /dev/sda5)' --class windows --class os $menuentry_id_option 'osprober-chain-769C8DA29C8D5D8D' {
    insmod part_gpt
    insmod ntfs
    set root='hd0,gpt5'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  769C8DA29C8D5D8D
    else
      search --no-floppy --fs-uuid --set=root 769C8DA29C8D5D8D
    fi
    drivemap -s (hd0) ${root}
    chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###


# [2017-10-07 08:27:53] root--:/home/soio/1bs
# fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 08404FDA-DEC6-4DEC-875B-041B4E3A8004

设备           Start    末尾    扇区   Size 类型
/dev/sda1       2048   2050047   2048000  1000M Windows recovery environment
/dev/sda2    2050048   2582527    532480   260M EFI System
/dev/sda3    2582528   4632575   2050048  1001M Lenovo boot partition
/dev/sda4    4632576   4894719    262144   128M Microsoft reserved
/dev/sda5    4894720 213585919 208691200  99.5G Microsoft basic data
/dev/sda6  213585920 214607871   1021952   499M Windows recovery environment
/dev/sda7  214607872 293894143  79286272  37.8G Microsoft basic data
/dev/sda8  293896192 369393663  75497472    36G Microsoft basic data
/dev/sda9  369393664 444891135  75497472    36G Microsoft basic data
/dev/sda10 444891136 553435135 108544000  51.8G Microsoft basic data
/dev/sda11 553435136 555532287   2097152     1G Microsoft basic data
/dev/sda12 935813120 976773119  40960000  19.5G Windows recovery environment
/dev/sda13 555532288 555534335      2048     1M BIOS boot
/dev/sda14 928591872 935813119   7221248   3.5G Linux swap
/dev/sda15 555534336 928591871 373057536 177.9G Linux filesystem

Partition table entries are not in disk order.


# [2017-10-07 08:29:16] root--:/home/soio/1bs


您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP