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 ###

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM