最近坛子里出现grub error 17的故障报错,特给出关于grub error 17的解决方法
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 109
- 注册时间: 2006-06-10 14:08
最近坛子里出现grub error 17的故障报错,特给出关于grub error 17的解决方法
如果是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
然后自己改
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
- 来自: 上海理工大学
- 联系:
-
- 帖子: 2376
- 注册时间: 2006-09-21 14:28
另,如果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
重启
可以试试这个
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
重启
-
- 帖子: 109
- 注册时间: 2006-06-10 14:08
- 逗逗豆豆
- 帖子: 27
- 注册时间: 2007-08-26 13:03
-
- 帖子: 5
- 注册时间: 2007-11-04 0:31
- 来自: 浙江
- allstar
- 帖子: 165
- 注册时间: 2006-08-25 8:16
- 来自: NEU
- 联系:
-
- 帖子: 20
- 注册时间: 2006-06-27 20:01
-
- 帖子: 10
- 注册时间: 2008-05-05 21:18
-
- 帖子: 2376
- 注册时间: 2006-09-21 14:28
- 附件
-
- linux.lnx.tar.bz2
- (10 KiB) 已下载 96 次
- meoow
- 帖子: 96
- 注册时间: 2009-06-03 14:37