Win7安装Kali 2019.4双系统后Win7无法进入系统

root@kali:~# vim /boot/grub/grub.cfg

找到Windows 7的引导信息位置,注释掉insmod part_msdos ,将set root='(hd0,msdos1)' 改为 set root='(hd0,1)' ,这里根据自己的实际情况填写,fdisk -l 查看分区信息,我的win7系统在第0块硬盘的第1个分区,再把if...else中的内容注释掉,:wq! 保存重启即可

### BEGIN /etc/grub.d/30_os-prober ### 
menuentry 'Windows 7 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-0EB419950EB41995' { 
###     insmod part_msdos 
        insmod ntfs 
        set root='hd0,1' 
        ntldr /bootmgr 
        boot 
###     if [ x$feature_platform_search_hint = xy ]; then 
###       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  0EB419950EB41995 
###     else 
###       search --no-floppy --fs-uuid --set=root 0EB419950EB41995 
###     fi 
###     parttool ${root} hidden- 
###     chainloader +1 
} 
### END /etc/grub.d/30_os-prober ###

猜你喜欢

转载自www.cnblogs.com/lewsuy/p/12014521.html