歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu重裝XP後用安裝盤恢復GRUB後出現ERROR 17的解決

Ubuntu重裝XP後用安裝盤恢復GRUB後出現ERROR 17的解決

日期:2017/2/28 17:36:13   编辑:Linux教程
早上重裝了XP,然後從Ubuntu的LIVE CD啟動,通過如下恢復GRUB後:

sudo grub
find /boot/grub/stage1 //我這裡反饋回來的是(hd0,9)
root (hd0,9)
setup (hd0)
quit

然後重啟,從硬盤啟動,GRUB啟動後選擇UBUNTU 7.04,然後出現了ERROR 17的錯誤提示:說是不能掛載所選的分區。按任意鍵回到GRUB主菜單,選擇recovery mode 也出現ERROR 17,memtest86+也是這樣,想想估計是重裝XP後分區表亂了,然後就按e修改,把root (hd0,9)改成root (hd0,10),還是出現ERROR 17錯誤,繼續改,改成root (hd0,8),系統成功啟動,進入系統後,修改menu.lst:

sudo gedit /boot/grub/menu.lst

把:
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,9)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=bb0b700e-9d24-4e00-9e8c-eeeeaca5c06a ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,9)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=bb0b700e-9d24-4e00-9e8c-eeeeaca5c06a ro single
initrd /boot/initrd.img-2.6.20-16-generic

title Ubuntu, memtest86+
root (hd0,9)
kernel /boot/memtest86+.bin
quiet

裡面的root (hd0,9)全部改為:root (hd0,8)

保存退出,重啟,一個一個選擇看了一下,全部都能正常啟動了這次,沒出現ERROR 17的錯誤提示了。
Copyright © Linux教程網 All Rights Reserved