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