Windows 8.1 and CentOS6.5 dual-system installation

Source: Internet
Author: User

Use rEFInd in GPT to guide Windows8.1 and CentOS

1. Install Windows8.1 [install Windows8 first because it creates two hidden partitions by default]

Boot the optical drive. Windows 8.1 is installed completely. The GPT Partition Table is used by default. The installation process is not described in detail. GB hard disk, partition:

If 70 GB is used as a Windows system disk (drive C), two hidden partitions exist. One m recovery zone and one m efi partition in the format of FAT32 are used to store boot files, this is the main step behind dual-system boot.

Divide three 102400 M (100G) partitions as D, E, and F disks.

There is no division for the rest.

The previous article describes UEFI, GPT, and CentOS installation in detail :. This article describes how to install the dual system.

64-bit CentOS 6.5 Installation Method

64-bit CentOS 6.4 dual-system installation in Win7

Precautions for installing CentOS and Windows systems

Install Windows 8 and CentOS on UEFI + GPT

----------------------------- Split line -----------------------------

[Differences between GPT and MBR]

MBR traditional partition Identification Method

Only four spaces are used to identify partitions. Therefore, only four primary partitions are allowed. If more partitions are required, you must set a primary partition as an extended partition and a container, in this container, the extended partition can also be divided into 12 logical partitions.

Such an MBR Partition Table can recognize only 12 logical partitions + 4 primary partitions-15 extended partitions.

What should I do when I need more partitions? The solution is to set the schema partition to a logical volume. The logical volume can be divided into several partitions with names and the number of partitions is unlimited.

However, it is important to note that the system needs to be restarted to modify the physical partition, but the modification to the logical volume does not need to restart the system.

The MBR uses 16 bytes to indicate the partition capacity, that is, the 32 power of 2 can be about 2 TB of hard disk. Therefore, MBR only divides hard disks smaller than 2 TB.

GPT

When the hard disk is larger than 2 TB, or the partition identification method to solve some limitations of MBR

This partition scheme is used by MAC system by default.

When the disk capacity to be divided is greater than 2 TB, it is automatically converted to the GPT mode.

----------------------------- Split line -----------------------------

2. Install centos6.5

Boot the optical drive. Briefly describe the partition: select a custom partition -->

/Partition 10240 M (10G)

Swap partition 4096 M (4G)

/Var partition 10240 M (10G)

/Home partition 20960 M (20G)

Others are not divided

Note that before entering the centos system, a dump will be enabled to restore the partition. The default value is 128 MB.

The installation process is not described in detail.

3. The system will be restarted after the installation. [The system will go to Windows by default and no CentOS startup item will be found]

Now that you are in windows, do two more things:

Go to disk management and divide a partition J in the 500 M FAT32 format, which can be directly mounted in linux;

Download a pilot management tool: rEFInd, download it, decompress it, and copy it to partition J.

Note that after decompression, there is a docs folder, which contains the introduction and instructions for using this tool.

4. Restart and choose to start from the optical drive to the rescue mode of centos.

Switch chroot/mnt/sysimage to the root directory

Mkdir-p/mnt/efi create the efi directory in the mnt directory

Mount-t vfat/dev/sda2/mnt/efi: The Hidden EFI partitions in windows. In linux, the default sda2 partition is mounted to the/mnt/efi/directory.

Ls/mnt/efi/you can see that there is an EFI directory in which you can view and operate the files in the EFI partition. By default, there is a BOOT and Microsoft directory.

Cp/boot/efi/EFI/RedHat/mnt/efi/copy the linux EFI boot file to the EFI Partition

5. Install the refind third-party startup Manager

Mkdir-p/mnt/refind create a refind directory in the mnt directory

Mount-t vfat/dev/sda12/mnt/refind mount the last fat32 partition to the/mnt/refind directory.

Ls/dev/we can see that the last sda12 is determined as the 500Mfat32 partition.

Ls/mnt/refind you can see that the directory where we downloaded the decompressed rEFInd is in the refind-bin-0.7.6 folder

Cd/mnt/refind/refind-bin-0.7.6/go to the directory where rEFInd is located

./Install. sh run the installation script

An error is reported, prompting that the installation tool must mount the EFI partition to the/boot or/boot/efi directory.

Mount-t vfat/dev/sda2/boot mount the EFI partition (sda2) to the/boot directory.

./Install. sh run the script again and prompt that the installation is successful.

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

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.