Win7、Ubuntu双系统出现“unknown filesystem”提示和“grub rescue”命令行,修改启动引导的·方法。

来源:互联网 发布:易天行软件 编辑:程序博客网 时间:2024/05/29 09:35

大三买的acer笔记本,留着原配的win7家庭版系统,后来装了win7旗舰版,再后来玩ubuntu,笔记本从而带了3个系统。为了扩充旗舰版的系统盘空间,就把原装的系统acer盘给格了,合并到旗舰版的系统盘。没考虑太多,直接格式化。谁知,重启后,就出现error:unknown filesystem,还有grub rescue,提示修复grub。吓了一把,做了重装的准备。不过看提示,心想应该修改启动项就可以了,没严重到重装的地步。

所以,在网上搜了一下,http://askubuntu.com/questions/142300/how-to-fix-error-unknown-filesystem-grub-rescue给的帖子列了一些解决办法,我是采用下面那位大侠的做法。首先,找出unbuntu安装在哪个盘,可以通过ls命令来识别,比如ls (hd0,msdos6)/boot/grub,如果出现unknown filesystem说明那个盘不是unbuntu所在的盘。出现完整的路径,则说明那个是我们想找的安装unbuntu的盘。再按照下面的命令去设置root和prefix,然后insmod normal,再normal。然后重启,记得进入unbuntu里去更新grub,直接打开unbuntu命令行,sudo update-grub,然后sudo grub-install /dev/sda。重启就可以进入win7了。

不过,由于我的acer盘被合并到旗舰版的系统盘,原来安装在系统盘的软件或数据,可以回出现路径找不到的情况,就要视情况而选择冲洗安装。

These steps solved the issue. I am having Windows 7 & Ubuntu 10.04. After running steps on the below I don't need to run these every time and able to boot OSs normally:

  1. set root=(hd0,6)
  2. set prefix=(hd0,6)/boot/grub
  3. insmod normal
  4. normal
  5. sudo update-grub (Run this in terminal after getting into Ubuntu)
  6. sudo grub-install /dev/sda (Run this in terminal after getting into Ubuntu)

原创粉丝点击