One-click Restore wizard installed in Windows 7 + Ubuntu system causes grub to fail to boot into the system. How can this problem be solved?

Source: Internet
Author: User

After installing the Ubuntu 10.10 dual system, I found that there was no ghost backup for a long time. Today I want to back up win7, so I got a one-click Restore Wizard to install the backup (Backup can be successful before the win7 Single System ), I did not expect the tragedy to happen ...... After the one-click Restore wizard fails to be installed in DOS .. As a result, the guiding items of both systems are unavailable, and no system can be entered:

Error: unknow filesystem

Grub rescue>

After thinking about it, the one-click Restore wizard wanted to back up the NTFS file system under Windows 7. Who knows that the ext3 File System on Ubuntu cannot be installed, then the boot area is disrupted. Take a USB flash drive and check the information in it. It should be a mess of the partition table. It's a big deal to reinstall the system (but you have to install a bunch of software to reinstall it, which is troublesome! Or find another solution )(--! Back up important information first, otherwise the consequences will be borne by you ). I have never encountered this problem before. I Googled myself and referred to some methods. For example, I entered some code under DOS and reported failure (maybe my method is wrong)

Back to the question, the final solution: Later, I thought about whether I could use my Ubuntu disk to directly fix it. (previously, I fixed Ubuntu boot under Windows 7 on my computer, so try this method to see if you can fix it ).

We recommend that you use a USB flash drive to start the Ubuntu image. The CD is too noisy and slow ...... (The method for making a USB flash drive to start Ubuntu is searched by yourself, which is different from the method for making win). The following content is a reprinted method: (I think it is simple and practical. I hope you can see it with a smile, do not spray me)

First, use the Ubuntu installation disc (USB flash drive) to fix the problem. After starting with the disc (USB flash drive), select the first "Try Ubuntu without any change to your computer, open terminal and enter the following command. The output of sudo fdisk-L is as follows:

Device boot start end blocks ID system

/Dev/sda1 1 154 1228800 7 HPFs/NTFS partition 1 does not end on cylinder boundary.

/Dev/sda2*154 6661 52268032 7 HPFs/NTFS

/Dev/sda3 6661 37638 248828355 + F w95 ext 'd (LBA)

/Dev/sda4 37639 38914 10240000 7 HPFs/NTFS

/Dev/sda5 6661 14310 61440000 7 HPFs/NTFS

/Dev/sda6 14310 21959 61440000 7 HPFs/NTFS

/Dev/sda7 21959 29608 61440000 7 HPFs/NTFS

/Dev/sda8 29609 29850 1943833 + 82 Linux swap/Solaris

/Dev/sda9 29851 37638 62557078 + 83 Linux
As you can see, in my system, Ubuntu is installed in sda9, write down, and output the following command:

Sudo Mount/dev/sda9/mnt

Sudo grub-install -- root-directory =/mnt // DEV/SDA so that it can be loaded to Ubuntu. Generally, after restarting, the system boot interface will appear, if not, add -- force to the statement. If the following code is not input. (My system boot will be able to be restored directly, but later win7 will have to be repaired and repaired by myself before it can normally enter the system &...... &--! However, it is much more convenient for the new Lattice-based dress-up system)

It turns out to be the grub command line interface, similar to the following: Sh: grub> enter the following command in sequence: Linux/boot/vmlinuz-(press the tab key to complete) root =/dev/sda9 Ro intrid/boot/intrid-(press the tab key to complete) boot to enter the Ubuntu system. We need to enter the following command in terminal, to restore the normal: sudo update-grub2 sudo grub-install/dev/SDA this is done.

 

The above method applies to the repair of grub in Ubuntu, just with a try attitude, I did not think about it, but also set my win7.

Lessons learned: Be careful when installing something that involves the underlying software of the computer ...... Especially when there are multiple different systems .. Back up important information before getting your computer. Otherwise, you will be at your own risk --!

For Original Articles, please refer to blog.csdn.net/jjzhoujun2010 for reprinting.

Author: Dream fly

Related Article

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.