Windows XP installation CentOS7 Dual System Summary

Source: Internet
Author: User

 First, follow the network tutorial, using the hard drive installation mode (FAILED):

One, use the Sub-disk tool (EaseUS partion Master) to separate a piece of unused space, for the installation of CentOS and save image files to prepare.

Two, will be divided into a part of the space, using the sub-disk tool (in fact, the sub-disk is modified MBR, master boot record), create a partition, created a partition of the format ext2, set its logical partition, to ensure that the Linux knowledge, while the Windows system does not recognize the ext2 format, So you need to use the EXT2FSD software to assign a drive letter to the partition. The other part temporarily remains unassigned, leaving the installation centOS7.

Third, download the Centos-7.0-1406-x86_64-dvd.iso image file on the official website, save to the root directory of the partition allocated in step "two". and follow the network tutorial, using the Decompression tool, "partial decompression" out of the centos-7.0-1406-x86_64-dvd.iso in the images and Isolinux folder.

Four, modify the file viewing options, modify the C packing directory (hidden files), boot. ini, add a line: c:\grldr= "Grub" code.

Five, because XP under EASYBCD software can not be used, download grub for Dos, copy the Menu.lst file to the C packing directory, and modify the file, add the following lines of code:

Title Install-rhel7/centos7
Root (hd0,5)//Note: (hd0,5) and the sda6 below point to the newly assigned logical partition in step two.
Kernel/isolinux/vmlinuz Linux repo=hd:/dev/sda6:/
Initrd/isolinux/initrd.img
Boot

Six, restart the computer, the results did not appear to install the CentOS boot, this method attempts to fail. Although unsuccessful, various attempts are still recorded for later use.

Method Two: Install CentOS using a USB stick (success)

First, the use of USBWriter.exe program, the image file written to the USB flash drive, and then restart the computer, set up the system from the USB stick boot, you can successfully enter the CENTOS7 Installation Guide interface. (Do not know after writing the USB stick, can I delete the Centos-7.0-1406-x86_64-dvd.iso file of this machine?) Not yet experimented. )

Second, follow the instructions to set up and install centOS7 can. Among them, the default minimized installation, for ease of use, I chose the desktop installation, and checked all the supporting software. Second on the partition, instead of using automatic partitioning, use manual partitioning, click "Create them", and + Create/BOOT,/,SWAP partition, etc., where only boot can be set to "standard partition" other is set to LVM, where the space used for partitioning is the unallocated space at the beginning of the reservation , otherwise the available space shown at the bottom left is almost 0MB, resulting in the inability to manually partition successfully, or to remove disk space under Windows for distribution to Linux.

Third, after restarting the computer, found that only the boot of CentOS, no Windows XP boot boot. Then query the network solution

  Network scenario One (failure):

At startup, you can manually boot into the win7 system using the GRUB command line . When the system boots into the following screen, press the C key on the keyboard to Enter the Grub command line. Use the LS command to view all hard drive devices, showing the following results:

(hd0) (hd0, MSDOS6) (hd0, MSDOS5) ... (HD0,MSDOS1) (HD1) (HD1,MSDOS1)

You can then enter the Win7 system by running the following command on the Grub command line .

Set root= (hd0, MSDOS1)

Chainloade +1// Try, the system prompt error, do not know "+1"

Boot

In the above three commands, theset command specifies the partition that will start the system, and my win7 system is installed on the first hard disk hd0 msdos1(that is, the first partition). The second command notes that there must be a space between the chainloader and the argument. The third command starts the system.

< Span style= "Font-family:simsun;" lang= "ZH-CN" > < Span lang= "en-US" > network scenario two (success)

< Span style= "Font-family:simsun;" lang= "ZH-CN" > < Span lang= "en-US" >
Modify the Grub.cfg file under/boot/grub2/, because the file is a read-only property, you cannot double-click to open the modification, you need to log in with the root user, then open the file with the command, then manually modify the file, and then save. Operations such as:

(sudo chmod +w grub.cfg command is to add "write" permission to the Grub.cfg file, and then try to remove "Write permission": sudo chmod-w grub.cfg

You can also use sudo gedit grub.cfg to open the file, modify it, and then click the Save button. )

Modify the/boot/grub2/grub.cfg file as follows:

# # # Begin/etc/grub.d/30_os-prober # #
Menuentry ' Windows XP ' {
Insmod NTFS
Set root= (hd0,1)//pointing to the XP system installed in drive C
Chainloader +1
}
# # # End/etc/grub.d/30_os-prober # #

Save the file.

Restart the computer, successfully "Windows XP" (modify the name taken in the Grub.cfg file) to start the boot of Windows.

Windows XP installation CentOS7 Dual System Summary

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.