Fedora-16 dual Linux and win7 systems, grub rescue Processing

Source: Internet
Author: User
Tags erro

I installed Windows 7 + fedora16. Today I want to install an oracle 11g on my computer. However, it seems that the compatibility between oracle and Windows 7 on the Internet is not very good and it is very troublesome to install Windows 7, therefore, I want to split the C drive into a 10 Gb partition. I want to install xp and install oracle on xp, I found a GhostXP CD and tried to read the CD directly under win7 to try to restore the system to the new partition. Run the CD-> select "Install windowsXP"-> select a new partition-> click OK. The result shows no response =

If the system can be restored only after the drive is started, shutdown and start from the drive. after entering the menu, I found that the drive can only restore the system to the drive C, so I gave up my mind.

----------------------------------------------------------- Background --------------------------------------------------------------------

Take out the CD and restart the computer. This is a tense scene:

A system boot error occurs. The kernel cannot be found after the system is started, and GRUB loading occurs.

Erro: unknown filesystem

Grub rescue> _

So I thought of Baidu, the omnipotent one. After a hundred times, I learned a little about the principle: My win7 is on drive C, and the hard disk space of fedora is separated from drive D, when the system is started, grub is first entered, that is, the system selected in the ora startup directory. If grub is in (hd0, msdos6) by partition (each person may be different) that is, the partition installed by my fedora, so the root should be located at (hd0, msdos6) during startup, but I don't know when the GHOST's close disk has changed the startup, change root to the selected partition (or win7 partition). It is a windows partition, that is, the NTFS partition. This is the problem, linux does not recognize such a file system, so there is erro: unknown.
Filesystem. In this case, grub cannot be started, so grub will start the repair mode and grub rescue will appear. In this case, we need to re-point grub (hd0, msdos6 ).

!!!!!!!!!!!!!!!! The following is why I wrote this log !!!!!!!!!!!!!!!!!!!!

Baidu has many people who have encountered the same problem and have many answers. But I don't know if all those who write logs have tried it !! Some of them are wrong at all !! You cannot follow the steps he wrote !! Ah !!!

So I will summarize my processing steps here, which may be rarely used. However, I can see Baidu can search for everyone's logs, so I hope to help those who encounter the same problem. The following steps are all feasible by yourself.

In rescue mode, only a few basic commands are available. You must perform some operations to load the normal module and then enter the normal mode.
In rescue mode, the following commands can be used: set, ls, insmod, root, and prefix (set the startup path)

1. View partitions

You need to check the partition because the partition conditions are different for each person.

Grub rescue> ls press ENTER

(Hd0) (hd0, msdos9) (hd0, msdos8) (hd0, msdos7) (hd0, msdos6) (hd0, msdos5) (hd0, msdos4) (hd0, msdos2) (hd0, msdos1) Note: The above is my partition, and each person may be different.

Because I don't know which partition the fedora is installed in, check it one by one and use the following statement:

Grub rescue> ls (hd0, msdosx)/(here X is the number shown above) Note: pay special attention to the "/" in this, if "/" is not added, the system partition will display bad filename.

The above sentence is equivalent to grub rescue> ls (hd0, x )/

If the unknown filesystem command is displayed after you press enter to verify that it is not the partition you want to find, continue to the next one. After you press enter, a long directory is displayed .. /... /lost + found /... /boot /... /.... this is correct. My is (hd0, msdos6 ).

2. Set the start partition and path of grub.

Enter the following four commands:

Grub rescue> root = (hd0, 6) Press ENTER

Grub rescue> prefix = (hd0, 6)/boot/grub2 Press enter. Note: grub2 is used here. grub is written in all online tutorials. It may be different for linux versions, for fedora, grub2 is required; otherwise, not found file is displayed below.

Grub rescue> set root = (hd0, 6) Press ENTER

Grub rescue> set prefix = (hd0, 6)/boot/grub2 Press enter. Note: grub2 is also used here.

3. Load the Basic module and enter the normal mode.

Input: grub rescue> insmod normal press enter to enter the grub environment. The obvious change is that the display of grub rescue Becomes brighter and grub rescue becomes grub. Enter grub> normal and press enter to view the long-awaited system selection page. However, don't think that all the work has been completed here. If you only need to start the computer here, it will still enter grub rescue. So next step.

4. Update grub

On the system selection page, select fedora to enter the system.

Open the terminal and enter grub-install/dev/sda. After a moment, the system will prompt installation finished. no error reported.

If you do not have the installation permission, enter su and press enter, then enter the administrator password, and then enter the preceding statement.

This is a success!

From: http://blog.renren.com/share/345572644/12504696783? From = 0101010202 & ref = hotnewsfeed & sfet = 102 & fin = 4 & ff_id = 345572644

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.