问题出现
-
在安装linux和windows双系统时,一般先安装windows系统,再安装Linux系统,会自动修复引导。
-
当进行windows版本升级时,引导会丢失,启动后出现
error : unknow filesystem grub rescue>
问题解决
1.查看分区
grub rescue> ls
会出现如下分区信息
(hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
2.确定linux所在分区,一个一个试,如果出现unknow filesystem
,尝试下一个分区,直到出现Linux系统根目录下的文件和文件夹
grub rescue> ls (hd0,msdos3)/
grub rescue> ./ ../ tmp/ bin/ lib/ proc/ boot/ lib32/ root/ lib64/ run/ lost+found/ sbin/ usr/ media/ srv/ var/ dev/ mnt/ vmlinuz/ etc/ vmlinuz.old sys/ opt/
确定linux所在分区为 (hd0,msdos3)
3.修改启动分区
grub rescue> set root=hd0,msdos3
grub rescue> set profix=(hd0,msdos3)/boot/grub
grub rescue> set prefix=(hd0,msdos3)/boot/grub
grub rescue> insmod normal
grub rescue> normal
然后就会出现双系统的选择界面,进入linux系统
4.进入linux系统更新grub引导
update-grub
grub-install /dev/sda
reboot