Ubuntu 10.04 Grub2的修复步骤是什么,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。
Ubuntu 10.04 LTS终于发布了,原来打算过一阵子再把9.10升一下的,但今天在update manager里,看到已经有提示说可以直接升到10.04,一时冲动没忍住,于是就升了,接着就碰到魔鬼了:重启后在grub那步出错,过不去了,提示 “GRUB loading error: the symbol ‘grub_puts_’ not found”,光标就停在grub rescue>后面,google找了一些文章,发现国内的几个都大同小异,Ubuntu 10.04 Grub2修复后面有一些步骤根本没有交代清除,做到一半就进行不下去了,后来找到一个老外的帖子, 一步一步都很清楚,照着做下来,成功地把grub2修复了。
Ubuntu 10.04 Grub2修复详细步骤1
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
Ubuntu 10.04 Grub2修复详细步骤2
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
Ubuntu 10.04 Grub2修复详细步骤3
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.
Ubuntu 10.04 Grub2修复详细步骤4
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.
看完上述内容,你们掌握Ubuntu 10.04 Grub2的修复步骤是什么的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注亿速云行业资讯频道,感谢各位的阅读!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。