A Simple Method for Linux and Windows XP dual-system startup

Source: Internet
Author: User
Article Title: a simple way to start Windows XP and Linux systems. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Generally, Windows XP has been installed before LINUX. In this case, GURB is installed on the hard disk MBR, when we reinstall XP or use the partition magician to adjust the hard disk, it is easy to destroy MBR and LINUX cannot be started. What I will introduce to you is to install GURB in the hard disk winner partition, that is, drive C, use XP to guide LINUX.

1. install LINUX with XP installed, and choose to install GURB in MBR at startup.

2. Go to the LINUX root directory:/boot/gurb and find a file named: menu. copy the lst file. This file will be used in XP. You can put it in a FAT32 partition or a USB flash disk for backup.

3. Go to the XP system to download the gurb.tar.gzdecompressed file, put grldrand grub.exe files in the C root directory, and put the menu. lst files tested in LINUX into the C root directory.

4. Find the boot. ini file in the root directory of the C drive, and add

C: \ grldr = "LINUX" Save (LINUX can be changed to the English you want ). In my computer properties, change your XP boot menu time to 5 or 10 seconds.

5. For the first time you restart the system, select start XP. After you see the Start Menu of XP, select Add. In that LINUX, if the steps are correct, you can go to the LINUX system and restart the DOS boot disk to start the DOS command line. Enter fdisk/mbr at the end of the prompt and press Enter, the MBR is replaced. After restart, You can boot LINUX from the XP boot menu. If you want to reinstall XP next time, you only need to back up the grldr, grub, and exemenu. lst files. After the files are installed, you can add the boot item to boot. ini.

6. If it is the first installed LINUX and then installed XP, connect to the next software that reads LINUX partitions under windows and extract the menu. lst file under windows.

Anod221 wrote:

Ls, how should I use liveCD to reinstall grub?

Code execution:

Grub

Go to grub shell or use the code:

Grub-install

Grub-install must contain parameters.

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.