Linux dual system installation and uninstallation

Source: Internet
Author: User

Because students recommend to learn the Python language, and recommend the use of Linux to conding, so I spent a few days, waste of Dickens, finally understand the installation and uninstallation of Linux.

Installing a Linux system is not a simple matter. where is the difficulty? This will require a comparison with the Windows installation. Of course, if you don't install Windows, that's even more difficult.

Here I only talk about installing Windows and Linux dual systems, because simply installing Linux is simpler than a dual system.

Installation system, I want to mainly involve two aspects, partition + boot .

Windows is simple, because you don't need to partition or boot, fool-like installation. In particular, you use Ghost win, that is directly with the WinPE user interface operation, simple mouse click, you can install complete. of course, here I say to Windows no need to boot some extreme, in fact, Windows needs to partition, which can be done in WinPE, is also relatively simple. While booting, Windows silently installs itself without you going to the operation.

However, Linux is not so simple, before installing Linux, I think you need and have to look at the basic knowledge of Linux. Linux and Windows is a different, that is, Linux to all the devices as files to deal with, so-called file is to have read, write, perform three kinds of operations. So don't bring the partitioning concept of Windows into Linux, you need to know about Linux:

1. File System (Directory configuration): generally understand the general purpose of each document, convenient zoning planning

2. disk Partitioning, understanding the concept of mounting : Plan partitions for your own use, and attach partitions to certain files as I now understand, generally I use them, partitions and mounts are generally as follows:

3. understand how the system starts and boot: Because you want to install a dual system, you need to know how to start the system on the basis of disk partitioning, that is, how the system is booting. It is important to note that to install the dual system, you must install Windows before installing Linux, because the Windows installation will automatically overwrite the MBR, and Linux will be the boot into the MBR, know why Windows is overbearing. No matter what, just install me, it must only me.

When you understand the partitioning and booting under Linux, you can install Linux.

USB Stick Install Linux: Why is a U disk, because there is no disc AH!!!

Software Prerequisites:

1. Ultraliso: This software is used to write the CentOS ISO file to the USB flash drive

2. CentOS: linux system files, recommended to use Centos-5.5-i386-bin-dvd.iso, don't ask me why? Because I used him. I am a 32-bit system, so choose I386, the rest of the version in addition to the intermediate setting options are different, but basically the same

3. Partition Assistant: used to deal with the compressed space, because in my second installation, I want to more than a few areas to mount according to different purposes, in a separate free space to partition, but when the partition to the third when the error message " Unable to allocate the submitted partition Notenoughfree space on disks", Strange, my remaining space also has 40G, only divides 10G, why the space is insufficient. This is the basic knowledge of the front, a hard disk, the partition table can record the maximum number of primary partition + extended partition can only have four, where the extended partition can only have one. You got it! Because each time in the free space is divided directly by default to the primary partition, so after two points, the partition table is already full (not the actual hard disk full). What do we do? This is the time to use the partition Assistant, the free space partition as a logical partition (to mount a portion of Linux directory), leaving unused space to mount the root directory of Linux as the boot partition (the boot partition must be the primary partition). That's why I think a hard drive can install up to three operating systems.

4. Mbrfix: This software is very important, because if you want to uninstall just installed centOS5.5, change a CentOS6.5, to uninstall Linux, this software is used . Because Linux is different from the installation of the Windows boot program, this step is not simply to say that the Linux disk format has been successful. Because every time you boot from Linux, you need to read boot to the root directory to provide Windows boot. If the simple format of the Linux disk, will inevitably lead to the loss of boot, the end result is Windows can not start, you can only reload windows, pity me c file Ah!!! Mbrfix can help you restore the boot on the MBR to a situation where there is no Linux and only Windows , so that after the Linux disk is formatted, the restart guarantees direct access to Windows.

How to use it? Very simple....

* Download Mbrfix:http://download.csdn.net/detail/tongyuehong/8343261

* Will MbrFix.exe put in C Packing directory (partition of Windows installation)

* Go to cmd window, switch to C packing directory, execute command (note space):

* Mbrfix.exe/drive 0 Fixmbr/yes

* Click on Enter to fix

* Then you can confidently format the Linux disk.

Step1: You need to compress a piece of unused space on your hard disk as free space on your Linux installation. (How to compress?) Go and search.)

Step2: Reboot the computer, boot from USB stick (how to boot the USB stick?) Go and search.)

Step3: Follow the instructions to install one step at a time (there are several important notes during the period)

(1) Select the location of the system, that is, the USB stick

I encountered a problem here, that is OK, after the prompt said: "U disk can not find the system "

It's strange that the name has been written to the flash drive, and successfully started, why not find?

Workaround: write to play the u disk and put the centos-5.5-i386-bin-dvd.iso into u system is found. I can't explain this, but I can do it.


(2) into the partition, the key steps Ah

When choosing how to use Disk installation in a partition, be sure to choose how you want to use customizations , and then create and mount them yourself to the disk drive.

Need to pay attention to the other point is that every time you create, you have to count off , if not point off, even a USB stick a point, not stupid!

Use ext3 the format, recommended

Since I have already carved out two logical partitions USR and var in the partition assistant, I am using it to mount two folders respectively. This allows you to Edit, Mount, and format the logical partition directly to ext3, OK

Be sure to set up a primary partition on your free space, Mount the root directory, and serve as a linux boot partition .

This allows the primary and logical partitions to be completely mounted and created.

(3) Go to the boot installation, also make the key step AH

Choose the boot program where to install, in fact, there are two places can be installed, one is a U disk, one is a hard drive. So replace the device, then change the order of the BIOS, put the hard disk on top, the USB stick on the bottom. This is the boot program installed on the hard disk, and does not overwrite windows Oh


Step4: The following is the choice to install what software ah, I would like to install more software, because you do not know what you want to use, anyway, Linux installation software is not a simple thing, not only because the instructions installed, the same because the Linux software is less.

Step 5: Restart settings, Kdump, SELinux Select, firewall off ..., innocuous customizations.

Restart again and you'll be able to see the nice Linux.


Also attached to a few references, above what do not understand, you can find the following reference to find the answer:

1.USB flash Drive Install CentOS 6.4 + Windows 7 dual system (install CentOS 6.4 under Windows 7): http://blog.csdn.net/jcjc918/article/details/9412757

2. U disk installation CentOS5.5 Baidu Library: http://wenku.baidu.com/link?url= T-gpisgjwyaxzzft2hdnbvlhgrjiqbncfbpdclsse5wx8xnsjd-l8gl9hi342nbajs4qsh34bayfxrw44wdoi6o4j6k7iihgz5c0ckz9y_3

3. Dual system Delete linux:http://www.51testing.com/html/88/n-3569488.html

Coding of people, Linux is the kingly way.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Linux dual system installation and uninstallation

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.