Teach you how to install and uninstall Windows Linux dual system

Posted May 25, 20208 min read

Author:- Ye Dian Zhiqiu
Link: https://blog.csdn.net/fanxuey...
Reprint please keep the source

Liang Xu Foreword:

Suddenly, many friends left a message in the background to see the installation of Linux + Windows dual system. I wanted to write one myself, but glanced at my old antique that has been in service for 6 years.

So I found this tutorial on the Internet, and I have obtained the original author's permission to reprint it to this public account, and marked it as original with his permission. If you think this article is helpful to you, welcome to appreciate, all the proceeds will be returned to the author.


Reference from https://blog.csdn.net/flyyufe...
Reference from https://blog.csdn.net/u012052...

**Installation of Windows + Linux dual system**

1 . Preparation

1.1 Making of U disk boot disk

Prepare a USB flash drive above 8G(actually 4G is enough), back up the data, and format the USB flash drive later.

Then go to Ubuntu official website to download the ISO format image file you want to install, usually Ubuntu 18 or Ubuntu 16. If your English is not very good, you can choose to use chrome browser, it will be automatically translated when you open the webpage.

  1. https://www.ubuntu.com/downlo... //Ubuntu 18.04.2 and 19.04 download address
  2. http://releases.ubuntu.com/?_... //Other mirror download addresses

Next, make a U disk boot disk, the tool used is Rufus .

Open it after downloading, select the image file you downloaded, it will automatically set the parameters, and then click "Start" to wait for completion.

If a prompt message appears, the default selection is sufficient.

Detailed tutorials are also available on the official website, here link If the link is broken, you can find it at this location on the official website-it is the last page of your download mirror page.

1.2 Allocate disk space

Separate a space from the current computer hard disk for installing Ubuntu.

Windows + x Select Disk Management, or right-click My Computer-> Management-> Disk Management.

Choose the other than the C drive and have enough free space(100G or more), if the previous conditions are met, it is best to choose the last drive letter( if there are three CDE drives, choose E, or CDEF. F), right-click on compressed volume, enter the size of the space you want to allocate to the Ubuntu system, you can not worry here, take a look at the Ubuntu partition introduced later, and then choose the space to allocate according to your actual situation size.

I have a lot of remaining space, here is divided into 600G. You can see that 600G of space is isolated and will be allocated to Ubuntu for use.

2 . Install Ubuntu

Insert the U disk boot disk just created on the computer, press the hot key when booting, enter the boot item selection, you should see a very conspicuous boot item with Ubuntu, select that .

Then you can see the Ubuntu startup interface, after which there are multiple options for you to choose, the first two should be Try Ubuntu and Install Ubuntu, choose to install.

Ready to install, if there is internet, it is recommended to check the option to download updates.

Next, select the type of installation, clearing the entire disk will cause the original Windows system to be cleared, select other options to partition ourselves.

You should be able to see a lot of partitions on this interface, including a free space that you allocated earlier.

2.1 Partition

Next, partitioning, partitioning is to divide your free space into several blocks, each of which has its own responsibility.

Ubuntu Linux can use the partition as a mount point and load the directory. The most commonly used hard disk size(500G-1000G) distribution directory is recommended as shown in the following table:

Catalog Recommended size Format Description
/ 150G-200G ext4 Root directory
/tmp Around 5G ext4 Temporary files of the system, the general system restart will not be saved.(Need to set up a server?)
/boot Around 1G ext4 The starting position of the system boot, it is recommended:should be greater than 400MB or 1GB Linux kernel and files needed to boot the system program, such as vmlinuz initrd.img file are located in this directory. Under normal circumstances, the GRUB or LILO system boot manager is also located in this directory; the startup hits the file storage location, such as kernels, initrd, grub.
/home As large as possible ext4 User working directory; personal configuration files, such as personal environment variables, etc .; all accounts are assigned a working directory.
swap double the physical memory swap space swap space:swap partition is equivalent to "virtual memory" in Windows, if the memory is low(1-4G), twice the physical memory, if the high point(8-16G) Either equal to physical memory, or physical memory + 2g or so

\ /tmp is optional, leave 1G for boot, the root directory and/home suggest to leave some more space, tens to hundreds of G, according to actual needs; When allocating, it is best to allocate other space first, and finally allocate swap space \

2.2 Partition Demo

Select your free area, click +, first assign boot

There is such a saying on the Internet, dual system-the computer originally had a booter that is the main partition type, here/boot selects "logical partition"; a completely blank disk/boot should select "primary partition" ". I haven't tried it all, but it should be right.

However, if it is a completely blank disk, you don't need to partition it by yourself. At the beginning, select Clear entire disk.

Special note:This article was written later. I did not retain the screenshots of installing Ubuntu at the time. The pictures in this part are taken from other people's blogs. His boot is only allocated 300 MB. My recommendation is still divided by 1G.

Then click + to allocate other areas, the partition types are all logical partitions, and the positions are the starting positions of the space. If you allocate the size, you can divide it according to my suggestion-the red part under the partition table.

When allocating swap space, change the for option to swap space.

2.3 Installation

The partition is ready for installation.

Install the boot loader device Select the partition corresponding to/boot. After confirming that it is correct, click Install.

After that, there are some simple choices of region and language. Create users and not introduce them again.

Wait for the installation to complete ...

After the installation is complete, go back to windows and see the partition like this

3 . Startup item modification

After the dual system is installed, your computer may choose to start by default when you turn on the computer. If you want Ubuntu to start by default, you need to modify the startup items!

Enter the windows system, download the tool EasyBCD, if the link fails, you can search online.

Link: https://pan.baidu.com/s/1slPiDZ3 Password:z3r7

Move the system option you want to start by default to the top.

**Uninstalling Windows + Linux dual system**

The article is referenced from http://tieba.baidu.com/p/4485 ... .

A few days ago(today, May 14, 2019 15:21:39), I can still watch. Suddenly, the post seems to be gone. Fortunately, I found a Baidu snapshot.

Here is the case of uninstalling Linux and keeping Windows(applicable to UEFI + GPT), please refer to [ https://blog.csdn.net/fanxuey...] ( https://blog .csdn.net/fanxueya1322/article/details/90205143)

1 . Delete all Ubuntu partitions under Windows

Windows + X Open Disk Management

Windows is the flag-like key next to alt.

This is the partition I created when I installed Ubuntu, right-click to delete the volume in turn.

To restore this free partition, I originally compressed the 600GB space from the D drive. Select the D drive and right-click Extended Volume to restore it as before.

2 . Delete startup items

After deleting all the partitions of Ubuntu, choose to restart, and found that the grub interface is still there, but you cannot start after selecting Ubuntu. The next step is to delete the Ubuntu boot file.

If you use easyUEFI software to view the EFI boot items, you will find that Ubuntu writes its own efi boot file to the efi boot partition of Windows.

If you just want to delete the boot file, you can not download easyUEFI. It is only used to view boot items.

Next, prepare to delete the boot entry:

2.1 Mount the EFI partition

(1) Right-click the Windows icon and select Command Prompt(Administrator)
(2) Enter diskpart and press Enter
(3) Enter list disk //List the disks in the system
(4) select disk 0 //select the disk where the EFI boot partition is located, please select according to the actual situation
(5) list partition //List the partitions owned by the selected disk
(6) select partition 1 //select EFI boot partition, the type of system partition is EFI boot partition
(7) assign letter = p //Assign the drive letter to the selected partition, please assign a free drive letter

2.2 With Total Commander

After the mounting is complete, open my computer and you can see a P drive, but you don't have permission to access it, and you can't click Continue as an administrator. What should I do?

Next, we need to use a software, Total Commander, Baidu search, download and install, open after the installation is complete, this software is free for personal use, follow the prompts to open, and then look

After opening, select the P drive

Run as administrator

Enter EFI

Select Ubuntu, the folder turns red, shift + delete delete

carry out!

  1. Follow Original public account "Liu Xu Linux" and get the latest Linux dry goods as soon as possible!
  2. The public account backstage reply [information][interview][resume]to obtain the interview, self-improvement, resume and other materials of selected top-tier manufacturers.
  3. Follow my blog: lxlinux.net