CentOS + Win7 dual-system hard drive installation

Source: Internet
Author: User
I have installed the USB flash drive many times, but I cannot find the file. Finally, I found a blog to see how to install dual systems. Finally, I found that I could use hard disks for installation. After more than five hours, it was finally completed. ^-^. 1. The first is Partitioning. you can use the built-in Disk Management Program of Window7 to partition. (Ps I used CentOS to install the disc partition, because I first installed it with a USB flash disk, but it failed and the partition was successful. In the partition tool of Window7, right-click "computer "? & Gt; "management") I used more than 200 GB to enable the USB flash disk to be installed many times. it is said that the file could not be found. Finally, I found a blog to see how to install dual systems. Finally, I found that I could use hard disks for installation. After more than five hours, it was finally completed. ^-^.

1. The first is Partitioning. you can use the built-in Disk Management Program of Window7 to partition. (Ps I used CentOS to install the disc partition, because I first installed it with a USB flash disk, but it failed and the partition was successful. In the partition tool of Window7, right-click "computer"?> "Management") I use more than 200 GB. This is my score. First, format all. Then, use 40 GB of memory to format it into the FAT32 format (note that it cannot be NTFS format. Microsoft, you know .) In this case, the G disk can be used in Linux and Windows 7.



If you are afraid that the disk cannot be used due to a partition error, you can back up the disk before using DiskGenius_4.3.0.1. You can also use this software for partitioning.



2. configure the hard disk file.

(1) free up a FAT32 system disk, that is, the split disk. I call it a G disk.

(2) Download the DVD image CentOS-6.4-i386-bin-DVD.iso, put it on the G disk, in which isolinux to extract the isolinux folder to the C: Root Directory (PS iso file can be opened .)



(3) decompress the images folder to the G drive root directory (the images/install. img file is required during installation) (Linux files with different PS distribution may be different. I will give a connection later)



(PS because I don't know if I should remove images. In fact, a directory is selected during Linux installation. If you are not at ease, just like me .)

(4) so far, operating system disks have been mounted on the G drive, but how does Win7 know to load and read the G drive. At this time, you need to know how Windows is started (for details, refer to the link ). Because the Window is Bootmgr. Linux does not. Therefore, grub is a multi-operating system startup program from the GNU project. Download an EasyBCD software, open EasyBCD, Add New Entry?> NeoGrub-> Install?> Configure, a txt file will pop up and enter:
Title centos-install
Kernel (hd0, 0)/isolinux/vmlinuz
Initrd (hd0, 0)/isolinux/initrd. img
Kernel and initrd are actually files on the corresponding G disk. you can open isolinux to check them. It is hard to determine the one (hd0, 0). What I found on the Internet is (sd0, 1). I did it, but it was not loaded successfully, then I checked the private dish of laruence Linux. The difference between this and the book is the file after (hd0, 0), because we are preparing to install it on the hard disk. If it cannot be started, manually modify it under grub. my hd0 and 0 are also tested. Grub e indicates editing.

After grub Install is complete, you can delete it.
(PS at this time, you need to have grub rules to understand .)

(5) close, restart and choose centos-install, select the directory where the CentOS-6.4-i386-bin-DVD.iso file is located, and then select the second when the installation menu appears, it looks like "install system with basic driver" or something. the windows7 graphics card driver may have an impact on the installation interface. For the rest, refer to the following CD installation steps.

3. install linux.

(1) select the second option when the installation menu appears. (You can see that NeoGrub BootLoader is just added. If you encounter any special circumstances during the installation process, you can go to Windows 7 and modify it. At the beginning, it was not very good, so it took a lot of detours and countless restart and switching times. However, it is worth it. We recommend that you check other options of EasyBCD without damaging the original system .)



(2) the following options are usually used to select the second one to be loaded from the local hard disk (fuzzy). If you try both, the problem persists. Select the first Local CD/DVD to enter the second image, and then select the second option Use a driver disk. The third image is the disk you own. The first 4th images are displayed. It is actually the directory tree of the G disk. Then select install. img. (I cannot say this either .)









(3) when selecting the Linux installation type, select the last custom installation (that is, on the next page after the password is entered, the last custom installation is required, sorry, I didn't cut the image ). Then customize the formatting partition. MB to/boot, 80 GB to/, 80 GB to/home, 4 GB to swap (depending on your physical memory), these are random. At the same time, it is not very casual. /Boot is generally MB, which is used for boot. Swap is a swap partition, similar to the virtual memory in Windows. For the rest, give the/root directory, which is more convenient. Of course, you can allocate other images/home if you understand them. Note that the root directory is large. (Otherwise, the machine cannot be started .) The function of allocating data to multiple directories is to facilitate system backup and system recovery. The format of linux Format is ext4, and there is a vfat in it, you can also format several G to the fat format. Because the format can also be used in Windows. In this way, data can be shared between the two systems. In fact, our G disk is fat32. Yes, data can be shared. (Google)

(4) This step is now shown in the figure. (This step won't work if I use a USB flash drive .) The first is Other and the second is CentOS. This is a problem with the startup item. This is CentOS's own grub. Now you have two grub instances. When you restart, you will find that you have two options in CentOS-grub: Other (that is, Windows7) and CentOS (that is, the operating system installed on the hard disk, not an operating system image .) If you click Other, the Windows7 and NeoGrub BootLoader options in (1) figure are displayed. (This can be deleted later .) (Note that when selecting the bootstrap program, someone says it's important to change the device ), select the/boot mount point you just set (this can be seen when you customize and format the partition). it should be selected by default. I have no choice. if you cannot open the server, it will be very troublesome. Maybe Windows 7 will disappear, so I 'd like to remind you .)



(5) The last step. Select the type of system you want to install CentOS. (Generally, users use Desktop, but Linux technicians choose Database Server or Web Server or Software Development Workstation.) CentOS will customize and install the Software based on the different types you choose. However, there is a custom installation below. So far, the installation has been successful. After the installation is complete, restart (and configure the system step by step) and then restart.

(6) If there are no six, but I still want to say that the following interface is a very simple task. There is a kdump memory under Kdump. The default value is MB. I thought it was the memory used by the system to run a key program in the system, so I added a 0 to 128 m after. What are the consequences? After the configuration is complete, restart. Then there will be no more, and we will never be able to enter the system, but at this time Windows 7 can still be entered. However, this gives me a practical opportunity. Can't you enter the system? I used the Linux boot CD image installed in the original USB flash drive (fortunately, the system in the USB flash drive has not been deleted. it is also a coincidence that the USB flash drive is inserted on the host without any problems, and it is ineffective to restart multiple times, but started the system in the USB flash drive .). I used the system's rescue and repair mode to access the USB flash drive system. Then mount the disk to Linux as prompted (note that the system is already installed and cannot be started properly because the Kdump is too large ). Then modify/etc/grub. conf using bash (I don't know if it is, I forgot ). We found that a Kdump = 1280 M was used to decisively delete 0 (which also took a lot of detours ).



4. Cleanup (none of these can be done)

(1) after installation, restart the computer to window7, open EasyBCD, click add new entry, and select Linux/BSD, select the M file that was just attached to/boot. (4) I seem to have set it in advance during mounting. Because I did this step in advance, I have switched many times .), Click Add. If you select 3. (4), this should be unnecessary.

(2) open the Edit Boot Menu and delete the NeoGrub BootLoader. the following Boot default OS time can be 1.

(3) my current system is to turn on the grub provided by the computer Linux. There are two options: CentOS and Other (the process is 5 seconds, and CentOS is the default, these can be modified in CentOS ). CentOS directly enters the CentOS system. if you click Other to enter grub in Windows, there is an option Windows 7 (if you do not do step (2), there will be two options ). The time delay is 30 seconds. at, Windows 7 enters the Windows 7 system (you can use easybcdto modify it, and Windows 7 also uses bcdedit.exe. enter it in cmd, but I won't do it ).

5. description
In fact, I did not follow the steps above. I did not see this article before installation. There are also many innocent operations such as system switching and EasyBCD modification of startup items. If a USB flash drive is used for installation. I have been using CentOS for nearly six hours.
Reminder: install the SDK with caution! We recommend that you use VMware as a virtual machine if it is only applicable to general systems and is not strictly required. I spent a year using a virtual machine, and I couldn't stand it anymore.
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.