Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the repair steps for Ubuntu 10.04 Grub2

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Ubuntu 10.04 Grub2 repair steps, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Ubuntu 10.04 LTS was finally released, originally intended to put 9.10 liters again after a while, but today in update manager, I saw that there was a hint that I could go up to 10.04 directly. I couldn't help it on impulse, so I went up, and then I met the devil: I made a mistake in grub after rebooting, and I couldn't get through. I prompted "GRUB loading error: the symbol 'grub_puts_' not found". The cursor stopped behind grub rescue >, and google found some articles. Found that several domestic are more or less the same, Ubuntu 10.04 Grub2 repair behind some steps did not explain the removal, half of it can not be done, and then found a foreigner's post, step by step are very clear, follow down, successfully repaired the grub2.

Ubuntu 10.04 Grub2 repair step 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 repair step 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 repair step 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 repair step 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. After reading the above, have you mastered the repair steps of Ubuntu 10.04 Grub2? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report