How to handle grub rescue in Ubuntu

Source: Internet
Author: User


How to Deal With grub rescue in Ubuntu has just been installed with ubuntu 12.04 recently. After a few days of multimedia and command line tossing, I have been very cool at reading from laruence these days, who knows the grub rescue problem occurred when I started this evening, and I was shocked !!! However, after google, this problem is better solved. Record the solution: If you know that your linux is installed in that partition, for example (hd0, 7 ). It is easy to directly execute the following grub configuration information: set root = (hd0, 7) set prefix = (hd0, 7)/root/grubinsmod/boot/grub/normal. after mod, enter the normal command to go To the grub boot page for a long time! Thank God !! After entering, you need to fix the problem and enter the terminal and enter the following code: sudo update-grub www.2cto.com sudo grub-install/dev/sda. What if you don't know where linux is installed, for example, when installing an instance like LZ, you can run to chat, so that the system is installed by default (Khan !!!). It doesn't matter. We can execute the following code to search for it: first, ls can check your computer disk partition information;
Next, Run ls (hd0, X)/boot/grub. Here, X runs through your disk partition until the file is found. (How to run it? I have no idea how to repeat it a few times.) When you see a bunch of files, congratulations! This partition is the partition where you install the system. PS: when no error is found, two error messages will appear. One is error system (which is probably the meaning, but cannot be remembered), and the other is file not found; if we see the previous information, this partition is not what we are looking for; if there is a later situation .... maybe you have entered the wrong path and try again. (I do. I don't know why.) PS2: I don't know why I encountered this problem. I shut down normally last night, but I went to windows 7 at noon today, I don't know if this is the problem !! References: Workshop
 

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.