原来环境:
系统一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#