Fix boot files

Source: Internet
Author: User
Fix the boot file-general Linux technology-Linux technology and application information. For more information, see. I installed ubuntu8.04 a few days ago to try it, but I was not very comfortable with Firefox 3.0. Fortunately, I used febe in windows to create a local plug-in file, so I forced the local plug-in file to Firefox 3.0. Many plug-ins are not suitable, and only a few support firefox 3.0. I had to unload firefox 3.0 and install Firefox 2.0, but this problem has come out. The newly installed Firefox 2.0 cannot install new plug-ins, I am always prompted that there is an unknown error during installation. Let me check the error console. The error number is-203. I did not know what it meant. I searched for it online, you didn't have the same problem with me. Later, CharIRC on the ubuntu Forum gave you a lot of tricks, but unfortunately it was useless. In the impulsive and ignorant circumstances, I went to the window to delete the ubuntu partition. The terrible thing finally came out, the boot file disappeared, and xp couldn't enter. Search, search, search. It is a good thing to learn from problems.

"The cause of the fault is that after you install linux, the hard disk MBR (Master Boot Record) is entered by the linux Loader (boot Loader) GRUB. After formatting linux, the boot menu where GRUB is stored on the hard disk disappears. As a result, GRUB cannot load the boot configuration of the XP system in the boot menu, so it cannot enter the XP system."

"The Complete startup environment includes:
1. Correct MBR

2. Several files in the root directory of the active primary partition (usually drive C:
Ntldr
Ntdetect.com
Boot. ini
Bootfont. bin

The startup process is:
Boot-BIOS self-check-load hard disk MBR-search for and load ntldr in the root directory of the active primary partition-search for and load boot in the root directory of the active primary partition. ini, bootfont. bin (this file is used to display Chinese characters in the System Startup menu) -- ntldr reads boot. the system startup Item in ini is displayed on the screen and waits for the user to select the system to start"

Through searching, the basic principle of the problem is clear, but I still haven't done it. I am worried that grub will be broken accidentally and xp will not be able to be restored, I can use a boot disk or a secondary training platform. I can also say that the Windows XP system can be installed to rewrite grub, but I don't think I can do it, later, I made a compilation of each method, but it was not successful, but at least mastered the following:

1. Enter DOS. The general system disk now comes with a tool set, which can be used to access dos. All the problems I encountered were that after I entered fdisk/mbr

2. It seems like fixboot and fixmbr can be used, but I don't know which one is useful because I tried it all.

3. I also used a kvfix tool to manually rewrite the mbr stuff, which is full of blue screen code. I am a little scared.

The first two commands are used later. Grub is restored, there is an option to boot, and you can go in when you select the right option, but you can only enter the login interface, and then do not move, it is really strange. At this time, I have been engaged in a day and decided to take a rest, but I still want to go to bed where something went wrong. Suddenly, as soon as the light came to light, I was already successful, the reason is that my original partition has a big problem. Everyone remembers that every time the system is installed, there is an 8 m space that cannot be used, however, when I first installed the system, I accidentally clicked on it. I chose to install the system on that 8 m. As a result, my c disk is only 8 m. When I checked it through disk management, c disk 8 m (BOOT), d disk 15g (system), after I repair the mbr, follow the above Startup Program, "carrying hard disk MBR -- hard disk MBR searches for and loads ntldr in the root directory of the active primary partition -- ntldr searches for and loads the boot in the root directory of the active primary partition. ini, bootfont. bin (this file is used to display Chinese characters in the System Startup menu) -- ntldr reads boot. the system startup Item in ini is displayed on the screen and waits for the user to select the system to start. "After all these items have passed, the system file cannot be found in drive C, so we stopped here.
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.