Windows & amp; Ubuntu dual-system one-click ghost, prompting grub rescue Solution

Source: Internet
Author: User

One-click ghost for Windows and Ubuntu systems, prompting grub rescue Solution

For Windows 7 & Ubuntu 10.10, the grub rescue solution is displayed when you click ghost in the dual system.

I have installed Windows 7 + Ubuntu 10.10, and the hard disk is directly installed. Because Windows 7 has installed several major software, we decided to back up the ghost with one click. After the restart, we entered the grub rescue interface:

Error: unknown filesystem grub rescue>

This problem was solved after a long study. Let's talk about what is going on. During Ubuntu installation, grub2 is used for startup. My Windows 7 is on drive C, and the Ubuntu space is separated from drive D. We know that grub is first entered every time the system is started, that is, the system to be selected in the ubuntu startup directory. If grub2 is in (hd0, msdos7) by partition) that is, the partition where my ubuntu is located. In this case, the root should be set to (hd0, msdos7) during startup. You can change the root to (hd0, msdos9) with one click. This is a windows partition, that is, NTFS partition, ubuntu cannot identify such a file system, so there is an error: unknown filesystem. In this case, it cannot be started, so grub2 will start grub rescue mode, which is the repair mode. So what we need to do is to re-point grub (hd0, msdos7 ). The procedure is as follows:

① View partitions

Because each person's partition is different, we need to check the partition. After using the ls command grub rescue> ls to press enter, it will appear

(Hd0) (hd0, msdos9) (hd0, msdos8) (hd0, msdos7) (hd0, msdos6) (hd0, msdos5) (hd0, msdos1) grub rescue>

Note: grub2 is used. For grub users, there is no msdos before the partition. The above is my partition, and each person is different. Grub rescue> set press ENTER

Prefix = (hd0, msdos9)/boot/grub root = hd0, msdos9

As shown above, my system is started from (hd0, msdos9. So how do I know which partition ubuntu is in? Step 2

② Search for the ubuntu Partition

In this step, we need to try it one by one, or use the ls command.

Try grub rescue> ls (hd0, msdos8) not in (hd0, msdos8)

Press enter to find out, no, or unknown filesystem ......... When I try

(Hd0, msdos7), you can see a lot more words, these are my ubuntu main folder and file name. OK. The partition is found!

Wk_ad_begin ({pid: 21}); wk_ad_after (21, function () {$ ('. ad-den '). hide () ;}, function () {$ ('. ad-den '). show ();});

③ Modify the startup Partition

Grub rescue> root = (hd0, msdos7)

Grub rescue> prefix =/boot/grub // grub path setting grub rescue> set root = (hd0, msdos7)

Grub rescue> set prefix = (hd0, msdos7)/boot/grub rescue> insmod normal // start normal startup

Grub rescue> normal

I typed in the preceding commands in sequence. Do I see the familiar Startup menu? After selecting Windows 7, one-click ghost will start to back up the system. Don't be happy too early. Everything is not starting yet. If you do not enter grub rescue because of one-click ghost, you can directly jump to Step 5.

④ Try again

When you wait for one-click ghost to back up the system and restart the system, you find that

Error: unknown filesystem

Grub rescue>

Don't worry. Just repeat the first three steps.

⑤ Go to the command line to start Ubuntu

After entering the system startup option interface, you find that you have not modified grub, and you need to modify it in ubuntu.

After entering the system startup Item interface, press C to enter the command line mode

Grub> set root = hd0, msdos7

Grub> set prefix = (hd0, msdos7)/boot/grub

Grub> linux/vmlinuz-xxx root =/dev/sda7 // press the Tab key for xxxx. If there is an acpi problem, add acpi = off.

Grub> initrd/initrd. img-xxx grub> boot

Is Ubuntu started normally?

6. The major success of repairing grub in Ubuntu will be high.

After entering Ubuntu, fix grub and run sudo update-grub on the terminal.

Recreate grub to the first hard disk mbr sudo grub-install/dev/sda

OK, restart, everything is done!

Solve the Problem of installing Ubuntu to a mobile hard drive & grub rescue

How to fix grub rescue after an error occurs in Linux Installation

Linux repairs grub in rescue (rescue) Mode)

How to fix grub rescue> terminal mode when Ubuntu is started

Grub rescue when multiple systems enter Ubuntu

Ubuntu 10.10 prompts grub rescue Solution

This article permanently updates the link address:

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.