Install CentOS 7 and centos with a USB flash drive on Windows 7

Source: Internet
Author: User

Install CentOS 7 and centos with a USB flash drive on Windows 7

If you already have Windows 7, you have to install CentOS 7 again.

1. Divide disk space

Separate the installation space for CentOS 7 from the disk. If you have multiple hard disks, you must divide them into 2 GB space (in fact, 1 GB is enough) as boot. This is because the BIOS reads the MBR of the master hard disk during boot. If the boot is also from the hard disk, GRUB modifies the MBR of the master hard disk, and the MBR of the master hard disk is not modified, after CentOS 7 is started, the CentOS 7 cannot be started. For example, 2 GB of boot is divided on the master hard disk, and 98 GB of home installation and other content is divided on the hard disk.

2. Create a boot disk

Install and run UltroISO, download the iso file of CentOS 7, and insert an empty 8GU disk. Select write hard disk image..., write mode USB-HDD +, write.

3. Install CentOS 7

Restart the machine, enter the BIOS, select boot from the USB flash disk in the BIOS, enter the CentOS 7 installation interface, press the Tab key, and enter below (the cursor is in front of quiet, not the underline)

Sdc is a USB flash drive. If there is only one hard disk, the USB flash drive should be sdb. 4 indicates the partition on the USB flash disk. Different USB flash disks may be different.

After the installation starts, choose to install GNome. Otherwise, there is no graphical interface.

The most important thing is to select the installation location. If you are not careful, the previous data on Windows 7 and hard disk may be deleted. Below are my general steps for your reference only, it may be wrong.

As shown in, we can see that the first one is the primary hard disk, there is 2g free space, the second is the slave hard disk, there is 98g free space, select the two hard disks, the last one is the USB flash disk.

Select "I want to configure partitions" below. boot must use the free space on the primary hard disk (I am using sda). The partition result is as follows:

The machine name, user name, password, and so on will be set later, which is relatively simple and will not be described.

After installation, GRUB cannot access Windows 7 because it has modified the MBR of the primary hard disk. Go to CentOS 7, edit/boot/grub2/grub. cfg, and add:

menuentry "Windows 7" { insmod ntfs set root=(hd0,1)  chainloader +1 }

Then restart and you will be able to see Windows 7.

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.