Solution for failure to repair grubrescue mode during Ubuntu reinstallation

Source: Internet
Author: User
After upgrading Ubuntu from 13.04 to 13.10, the mouse encountered a problem. as soon as the web page was opened, the page continued to flash, and a lot of things were different and not easy to use, so I chose to reinstall the system, during the re-installation, Ubuntu was re-allocated.

After upgrading Ubuntu from 13.04 to 13.10, the mouse encountered a problem. as soon as the web page was opened, the page continued to flash, and a lot of things were different and not easy to use, so I chose to reinstall the system, during the re-installation, we had to re-split the partition, and then installed it. after a restart, we suffered a tragedy and entered the grub rescue mode. at that time, we did not know what to do, fortunately, there is also a tablet that can access the Internet and search online immediately. Soon I found a lot. click the first one and "start Windows with a USB flash drive to rewrite mbr "? Then my Ubuntu will be gone !!! PASS !!! "Fix it directly under grub rescue". well, this is good. Try the method I just followed. it's totally different! No changes at all !! Search again. well, this article seems to be much more reliable. I also wrote the corresponding situation for this problem. it's good. it's caused by re-Partitioning. This looks like it is. Follow the instructions immediately.
1. enter set to view the current settings (originally, this is to view the current settings, and the previously searched settings are not clear)
2. input set root = (hd0, msdos11). It is no wonder that my changes have not changed. If no set is found before, root = (hd0, msdos11) will be displayed. (Msdos11 is my Ubuntu installation location. different people can use ls (hd0, x)/root/grub to check which partition is installed, after running the command, many files are displayed)
3. enter insmod/grub/normal. mod. I rely on this file. what is the situation !!! Isn't my Ubuntu !! This is not scientific !!! Calm down! Check the disk on which Ubuntu is installed with several folders and whether the file path is different. well, check another file path and enter ls (hd0, msdos11) /root/grub/i386-pc, a return, out of a large string of file names, most of them. mod and. img, should be this, replace the command with insmod (hd0, msdos11)/root/grub/i386-pc/normal. mod, successful !!!!
4. enter normal and press Enter. the familiar Start menu is displayed. But it is not complete yet.
5. run Ubuntu, open the terminal, enter sudo update-grub, and update the boot file.
6. enter sudo grub-install/dev/sda. wait for a few seconds. I rely on it and fail. there is no reason !! Forget it. restart it. Waiting... I'm going, grub rescue again !!! Come back, go to Ubuntu again, pull the webpage down again, and there are solutions, but just now it's okay to start it with live cd. please try again! (In general, the repair should be completed here, but my situation is different. I re-allocated the district during the reinstallation, in addition, the location of the boot file is also re-specified, and the following method is required .)
7. input sudo mount/dev/sda11/mnt to mount the mounted disk to/mnt.
8. enter sudo grub-install -- boot-directory =/mnt/boot/dev/sda. What is this string? I did not enter an error, why is it not running successfully! Try again! Still like this !!!! After a few retries, forget it. restart it. the miraculous menu is displayed !! Has it been successfully executed ?!!
Okay! This is the process, my heart !!! (This method does not separate/boot. if you separate/boot, you can just remove "/boot" from the command)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.