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

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
trend1975
帖子: 109
注册时间: 2006-06-10 14:08

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

#1

帖子 trend1975 » 2007-08-18 21:22

如果是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
然后自己改
上次由 trend1975 在 2007-08-19 10:46,总共编辑 1 次。
头像
wjs272
帖子: 775
注册时间: 2007-04-17 13:32
来自: 上海理工大学
联系:

#2

帖子 wjs272 » 2007-08-18 22:08

支持楼主
Conan304
帖子: 299
注册时间: 2006-12-15 16:11
来自: KM

#3

帖子 Conan304 » 2007-08-18 22:18

支持下楼主。tks
flyinflash
帖子: 2376
注册时间: 2006-09-21 14:28

#4

帖子 flyinflash » 2007-08-18 22:43

另,如果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
重启
xbl
帖子: 139
注册时间: 2007-01-01 15:36
来自: 河北

#5

帖子 xbl » 2007-08-18 23:43

呵呵,flyinflash好认真哦
目前的目标就是找个女朋友
trend1975
帖子: 109
注册时间: 2006-06-10 14:08

#6

帖子 trend1975 » 2007-08-19 10:45

忘说了,进入系统之后还要改一下启动菜单,否则下回你还得改(当然如果你愿意的话,BT,无语,嘿嘿),
命令如下
sudo gpedit /boot/grub/menu.lst
然后自己改
头像
逗逗豆豆
帖子: 27
注册时间: 2007-08-26 13:03

#7

帖子 逗逗豆豆 » 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文件

我怎么办啊,晕死
邓果
帖子: 5
注册时间: 2007-11-04 0:31
来自: 浙江

#8

帖子 邓果 » 2007-11-17 15:44

:cry: 求助啊各位
我电脑不知道哪里弄错了,昨天进入了xp系统用迅雷下了一部电影,看完就关机了,一切正常。。。
今天启动时电脑报grub出错,找不到,用光盘启动后想修复grub结果在终端输入grub> find /grub/stage1时提示
no file or dir 可是我在/usr/lib里面找到了grub这个文件的 怎么办?不想重装,特此求助
头像
allstar
帖子: 165
注册时间: 2006-08-25 8:16
来自: NEU
联系:

#9

帖子 allstar » 2007-12-03 19:16

重装系统,分区表乱了。修复grub的时候 我也也遇到了 谢谢楼主~
dragoneagle
帖子: 20
注册时间: 2006-06-27 20:01

#10

帖子 dragoneagle » 2007-12-28 17:49

嘿嘿……,按照lz的方法成功修复。谢谢!
alexair
帖子: 10
注册时间: 2008-05-05 21:18

#11

帖子 alexair » 2008-06-06 19:16

grub 修复以后好像修改了 grub.conf,
开机后按e,e,改root (hdx,y) 为/boot 分区就可以了。
flyinflash
帖子: 2376
注册时间: 2006-09-21 14:28

#12

帖子 flyinflash » 2008-06-07 13:50

附件
linux.lnx.tar.bz2
(10 KiB) 已下载 96 次
头像
meoow
帖子: 96
注册时间: 2009-06-03 14:37

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

#13

帖子 meoow » 2010-05-24 16:25

真给力阿~~~老湿
回复