双系统中Windows系统安装后,GRUP如何获得双系统启动菜单
原来环境:
系统一debian,系统二Windows 7-64位。grub软件可以引导双系统启动。后来,Windows 7系统坏了,找不到摄像头了,就用硬盘安装方式把windows系统又重新安装一遍。问题来了,grub启动后可以进入debian,但是不能进入windows系统。
解决方法:
1、进入debian,打开终端。
2、su root ---输入密码。用根用户登录
3、输入:sudo update-grub
4、之后开始更新grub的启动菜单。自动寻找计算机中的系统启动项,然后添加进去。成功后会看到如下信息:
@jian:~$ su root密码:
root@jian:/home/jian# sudo update-grubGenerating grub configuration file …Found background image:
/usr/share/images/desktop-base/desktop-grub.pngFound linux image:
/boot/vmlinuz-4.19.0-16-amd64Found initrd image:
/boot/initrd.img-4.19.0-16-amd64Found linux image:
/boot/vmlinuz-4.19.0-13-amd64Found initrd image:
/boot/initrd.img-4.19.0-13-amd64Found Windows 7 on /dev/sda1done
root@jian:/home/jian#
以上信息经过亲自验证,特此记录下来,做以备份,方便以后遇到此类情况,可做以参考。