Ubuntu 10.04 Grub版本发布及问题解决

系统 Linux
Ubuntu 10.04 Grub终于发布了,原来打算过一阵子再把9.10升一下的,但今天在update manager里,看到已经有提示说可以直接升到10.04

Ubuntu 10.04 Grub一时冲动没忍住,于是就升了,接着就碰到魔鬼了:重启后在grub那步出错,过不去了,提示 “GRUB loading error: the symbol ‘grub_puts_’ not found”,光标就停在Ubuntu 10.04 Grub rescue>后面,google找了一些文章,发现国内的几个都大同小异,后面有一些步骤根本没有交代清除,做到一半就进行不下去了,后来找到一个老外的帖子, 一步一步都很清楚,照着做下来,成功地把Ubuntu 10.04 Grub修复了。

Boot to the LiveCD Desktop (Ubuntu 9.10 or Ubuntu 10.04).
Open a terminal – Applications, Accessories, Terminal .
Determine your normal system partition – (the switch is a lowercase “L”) sudo fdisk -l
If you aren’t sure, rundf -Th . Look for the correct disk size and ext3 or ext4 format.
Mount your normal system partition:
Substitute the correct partition: sda1, sdb5, etc.
sudo mount /dev/sdXX /mnt # Example: sudo mount /dev/sda1 /mnt

Only if you have a separate boot partition :
sdYY is the /boot partition designation (examply sdb3)
sudo mount /dev/sdYY /mnt/boot
Mount devices:sudo mount --bind /dev/ /mnt/dev
To ensure that only the grub utilities from the LiveCD get executed, mount /usrsudo mount --bind /usr/ /mnt/usr
mount proc filesystemsudo mount --bind /proc/ /mnt/proc
Chroot into your normal system device:sudo chroot /mnt
If there is no /boot/grub/grub.cfg or it’s not correct, create one usingupdate-grub
Reinstall GRUB 2:
Substitute the correct device – sda, sdb, etc. Do not specify a partition number.
grub-install /dev/sdX

Verify the install (use the correct device, for example sda . Do not specify a partition): sudo grub-install --recheck /dev/sdX
Exit chroot : CTRL-D on keyboard
Unmount devices:sudo umount /mnt/dev
If you mounted a separate /boot partition:sudo umount /mnt/boot
Unmount last device:sudo umount /mnt
Reboot.reboot

Post-Restoration Commands
Once the user can boot to a working system, try to determine why the system failed to boot. The following commands may prove useful in locating and/or fixing the problem.
To refresh the available devices and settings in /boot/grub/grub.cfg
sudo update-grub
To look for the bootloader location.
grub-probe -t device /boot/grub
To install GRUB 2 to the sdX partition’s MBR (sda, sdb, etc.)
sudo grub-install /dev/sdX
To recheck the installation. (sda, sdb, etc.) sudo grub-install --recheck /dev/sdX
Please check the following link for further details.
https://help.ubuntu.com/community/Grub2#Reinstalling%20GRUB%202

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/vesslan1029/archive/2010/05/06/5562298.aspx

【编辑推荐】

  1. DataRescue IDA Pro动态链接库远程格式串处理漏洞
  2. DataRescue IDA Pro PE引入表解析缓冲区溢出漏洞
  3. 深入浅出的了解Linux rescue
  4. Linux rescuev修复模式跨越控制台登录
  5. Linux rescue单用户模式修复模式
责任编辑:chenqingxiang 来源: CSDN
相关推荐

2010-06-17 11:35:24

Ubuntu 修复Gr

2010-06-13 11:41:53

Ubuntu Grub

2011-08-16 14:32:23

UbuntuLinuxQQ

2011-09-07 17:41:01

ubunturvm

2009-11-17 10:43:59

ubuntu 9.10输入法解决方法

2011-09-02 15:01:29

ubuntu

2010-06-17 09:59:34

Ubuntu 10.0

2012-02-17 10:13:19

Ubuntu 10.0

2011-07-22 09:30:35

Ubuntu 10.0

2013-08-13 10:59:03

Android Stu启动

2011-08-18 18:46:24

SQL Server

2011-09-02 13:25:39

UbuntuMacbuntu

2010-04-28 18:01:15

Unix系统

2011-06-27 16:44:59

Qmake

2011-06-13 16:16:32

Qt 中文问题

2011-08-22 18:03:32

Ubuntupdnsd

2010-06-12 09:02:12

Ubuntu Grub

2011-08-03 11:07:01

布线管理软件

2011-09-06 09:26:03

2012-05-09 10:08:41

跨机房
点赞
收藏

51CTO技术栈公众号