LINUX is successfully guided after Windows is reinstalled.
Source: Internet
Author: User
After windows is reinstalled, LINUX-general Linux technology-Linux technology and application information will be guided. The following is a detailed description. WINXP used in the previous period was so fast that it often failed to load mongoer.exe when it was started up. From pressing the power key to the disk light, it would not be too common to spend 5 minutes without flashing, I have been using this system for years and now since LINUX. Is crash nothing new? Especially WIN + _ +. Therefore, we decided to reinstall the MBR, but we must first understand the LINUX boot issue, because after Windows is reinstalled, the mbr linux boot will no longer exist, as we all know. After research, it is found that the simplest method is to use grub for dos. The detailed steps are as follows:
1. Download grub for dos. It is a compressed package. After the package is reinstalled, it will be placed on the drive C. edit boot. ini first. The content is as follows:
[Boot loader]
Timeout = 10
Default = multi (0) disk (0) rdisk (0) partition (1) \ WINDOWS
[Operating systems]
Multi (0) disk (0) rdisk (0) partition (1) \ WINDOWS = "Microsoft Windows XP Professional"/noexecute = optin/fastdetect/usepmtimer
C: \ grldr = "GRUB"
2. Back up the original menu. lst, edit the new menu. lst file, and save the file. We recommend that you edit it in linux. The content is as follows:
# This entry automatically added by the Debian installer for a non-linux OS
# On/dev/sda1
Title Microsoft Windows XP Professional
Root (hd0, 0)
Savedefault
Makeactive
Chainloader + 1
# This is a divider, added to separate the menu items below from the windows
# Ones.
Title Other operating systems:
Root
Title Ubuntu 8.04.1, kernel 2.6.24-20-generic (recovery mode)
Root (hd1, 5)
Kernel/boot/vmlinuz-2.6.24-20-generic root = UUID = 2d457d5d-c38c-4bf6-a841-f8c24d580e97 ro single
Initrd/boot/initrd. img-2.6.24-20-generic
3. reinstall xp. I am using the NTFS system, which can be successfully guided. It seems that FAT32 is acceptable.
4. After the reinstallation is complete, replace the previously edited boot. ini with the boot. ini file in drive C, and then put the edited menu. lst file on drive C. Decompress the downloaded grub for dos to drive C.
OK. When you start the instance again, you can select the GRUB option to go to LINUX or WIN.
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