- 论坛徽章:
- 6
|
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
|
|