分页: 1 / 1

最近坛子里出现grub error 17的故障报错,特给出关于grub error 17的解决方法

发表于 : 2007-08-18 21:22
trend1975
如果是grub都进不去,自己先恢复
sudo grub
find /boot/grub/stage1
root (hdx,y)
setup (hdx)
quit

这时候启动到GRUB,选择UBUNTU菜单不要按回车,连按两下E(注意一定要两下,回车不好使,靠,不知道为什么,晕死,害得偶试了好几回),然后更改GRUB所在分区(菜单原来显示的一定出错,不是原来的分区),然后还是不能按回车(我再晕),按B键就OK了,本人以前也走过弯路,但是哪里跌倒就从那里就爬起来,嘿嘿,不知道为什么有位仁兄同一个问题连发三个帖都没人理,汗

忘说了,进入系统之后还要改一下启动菜单,否则下回你还得改(当然如果你愿意的话,BT,无语,嘿嘿),
命令如下
sudo gpedit /boot/grub/menu.lst
然后自己改

发表于 : 2007-08-18 22:08
wjs272
支持楼主

发表于 : 2007-08-18 22:18
Conan304
支持下楼主。tks

发表于 : 2007-08-18 22:43
flyinflash
另,如果grub因为安装多个发行版而坏掉(尤其是不安装mbr的GRUB)

可以试试这个

ubuntu@ubuntu:~$ sudo -i
root@ubuntu:~# mount /dev/sda2 /mnt/sda2/
root@ubuntu:~# chroot /mnt/sda2/
root@ubuntu:/# cp -a /usr/lib/grub/i386-pc/ /boot/grub/
root@ubuntu:/# grub-set-default

root@ubuntu:/# update-grub
Searching for GRUB installation directory ... found: /boot/grub
findfs: Unable to resolve 'UUID=45a48c22-4922-455d-b44a-befe18ecb9c1'
Cannot determine root device. Assuming /dev/hda1
This error is probably caused by an invalid /etc/fstab
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... found: (hd0,1)${BOOTPREFIX}/grub/splashimages/KUBUNTU_splashscreen_blue_neon_logo_03.xpm.gz

Found kernel: /boot/vmlinuz-2.6.20-16-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

root@ubuntu:/# update-grub
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... found: (hd0,1)${BOOTPREFIX}/grub/splashimages/KUBUNTU_splashscreen_blue_neon_logo_03.xpm.gz
Found kernel: /boot/vmlinuz-2.6.20-16-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
root@ubuntu:/# update-grub ; grub-install /dev/sda
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... found: (hd0,1)${BOOTPREFIX}/grub/splashimages/KUBUNTU_splashscreen_blue_neon_logo_03.xpm.gz
Found kernel: /boot/vmlinuz-2.6.20-16-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/sda
root@ubuntu:/#

思路
LiveCD启动
挂载原系统/分区
chroot
复制必要GRUB文件
更新并安装GRUB
重启

发表于 : 2007-08-18 23:43
xbl
呵呵,flyinflash好认真哦

发表于 : 2007-08-19 10:45
trend1975
忘说了,进入系统之后还要改一下启动菜单,否则下回你还得改(当然如果你愿意的话,BT,无语,嘿嘿),
命令如下
sudo gpedit /boot/grub/menu.lst
然后自己改

发表于 : 2007-09-13 20:15
逗逗豆豆
在删掉scim后,重启,也发生了error17。

find /boot/grub/stage1
我在进行上面这步之后提示 找不到 not found 扎办呢


另外按照flyinflash的方法
root@ubuntu:~# mount /dev/sda2 /mnt/sda2/
root@ubuntu:~# chroot /mnt/sda2/
root@ubuntu:/# cp -a /usr/lib/grub/i386-pc/ /boot/grub/
这三个命令都会提示我没有这个/dev/sda2 和/boot/grub文件

我怎么办啊,晕死

发表于 : 2007-11-17 15:44
邓果
:cry: 求助啊各位
我电脑不知道哪里弄错了,昨天进入了xp系统用迅雷下了一部电影,看完就关机了,一切正常。。。
今天启动时电脑报grub出错,找不到,用光盘启动后想修复grub结果在终端输入grub> find /grub/stage1时提示
no file or dir 可是我在/usr/lib里面找到了grub这个文件的 怎么办?不想重装,特此求助

发表于 : 2007-12-03 19:16
allstar
重装系统,分区表乱了。修复grub的时候 我也也遇到了 谢谢楼主~

发表于 : 2007-12-28 17:49
dragoneagle
嘿嘿……,按照lz的方法成功修复。谢谢!

发表于 : 2008-06-06 19:16
alexair
grub 修复以后好像修改了 grub.conf,
开机后按e,e,改root (hdx,y) 为/boot 分区就可以了。

发表于 : 2008-06-07 13:50
flyinflash

Re: 最近坛子里出现grub error 17的故障报错,特给出关于grub error 17的解决方法

发表于 : 2010-05-24 16:25
meoow
真给力阿~~~老湿