Win11+Ubuntu20.04 dual system installation process

Table of contents

1. Computer configuration:

1. Physical memory:

2. Disk:

3. Disk partition

2. Delete the system (if necessary)

1. Adjust the startup sequence

2. Delete Ubuntu partition

3. Delete the startup boot item (!! Important, if you don’t delete it, there will be 2 startup items, indistinguishable)

3. Make system disk

4. Install Ubuntu22.04

1. Turn off Win11 Quick Start

2. Set up U disk boot

3. Install Ubuntu

a. The first one to enter by default

b. Waiting for inspection

c. Select language and operation (select according to personal needs), I choose Chinese (Simplified) here

d. Keyboard layout (default is enough)

e. Updates and other software, select normal installation, and check for graphics or wireless hardware...

f. Installation type, select other options

g. Create partition

h. Select the installation location, the default is enough, and it will automatically find the blank partition we created.

i. Select the time zone, fill in the account and password, and start the installation, which will take less than 10 minutes.

5. The installation is complete! After booting, select the system, and Ubuntu is the first one.


1. Computer configuration:

Before installing dual systems, you need to know some hardware configurations of your computer in advance, including physical memory and disk conditions.

1. Physical memory:

Purpose:

Check the size of the physical memory. This step is to determine how much swap space to allocate when finally installing Ubuntu.

operate:

Right-click "This PC" - Properties - Machine with RAM 16.0 GB (15.9 GB available)

2. Disk:

Purpose:

It depends on how many hard drives you have and whether each hard drive is solid state or mechanical.

If there is only one piece, then this can only be installed;

If you have multiple hard drives, you can install Ubuntu on the same one, or you can install it separately on different disks. However, generally the boot \boot and swap must be installed on the solid state. \ and \home do not matter whether they are solid state or mechanical.

operate:

Win+X——Disk Management

As shown in the picture below, my computer has disk 0 and disk 1, which means my computer has 2 disks.

Tips: Solid-state drives are SSDs, and mechanical hard drives are HDDs. They are not shown here. You can view them on this computer - right-click the disk - Properties - Tools - Optimization (refer to How to tell whether a hard drive is solid state or mechanical without disassembling it? No Disassemble the machine to check whether the hard drive is solid state or mechanical_ Computer System City )

3. Disk partition

Here is an explanation of how to understand this picture. As basic knowledge, it will be useful to allocate disk partitions when installing the system later.

(Reference document: How to check disk partition status_51CTO blog_Linux check disk partition )

The picture above shows the disk situation after installation. If I allocate 150G of memory to Ubuntu, in the picture, disk partition 6789 belongs to Ubuntu.

  • You can see the system startup disk 260M, which is the disk for booting the Windows system, which is very important. Then there are my C drive, D drive and E drive. There will also be a 1000M recovery partition, which is extremely important for restoring the computer to its previous state in case of sudden problems.
  • The 191M disk on the 6th is for the Ubuntu startup item, corresponding to the /boot partition when installing Ubuntu; it does not need to be too large, 200M is enough; the main partition; ext4 system.
  • No. 7, 14.90G, is used for Ubuntu memory, corresponding to the /swap partition; generally it must be at least equal to physical memory, or 2 times; logical partition; swap space.
  • Number 8, 55.88G, is for the root directory (equivalent to the C drive system folder), corresponding to / partition; primary partition; ext4 system.
  • No. 9, 79.03G, is used for the HOME directory (equivalent to Win's User folder), corresponding to the /home partition, which is equivalent to the storage system space; primary partition; ext4 system.

2. Delete the system (if necessary)

Reference: Teach you how to completely uninstall Ubuntu dual system without leaving any traces of contamination! -Cloud Community-Huawei Cloud

1. Adjust the startup sequence

After booting, quickly press F2 to enter Bios - adjust the Windows startup items and put them in front of Ubuntu

2. Delete Ubuntu partition

Win+X——Disk Management——right click on the partition corresponding to Ubuntu——Delete Volume

You may encounter problems when deleting Ubuntu's startup partition. The deleted volume is gray. At this time, you can use the software DiskGenius, or you can use Win+R - enter diskpart - list disk - sel disk 0 - list partition——sel partition 6——delete partition override can delete the EFI partition, that is, the boot partition (this partition 6 is the Ubuntu startup partition, based on your own disk and startup partition) (refer to Deleting Ubuntu's EFI Partition - Zhihu )

3. Delete the startup boot item (!! Important, if you don’t delete it, there will be 2 startup items, indistinguishable)

Win+R——输入diskpart——list disk——sel disk 0——list partition

At this time, the following picture is displayed:


Select the partition where the Windows startup items are located, usually more than 200M

select partition 1
assign letter=J

At this time, open Notepad as an administrator, go to [File] in the upper left corner -> [Open], select the J drive you just added, and you will see an EFI folder inside

Go into the EFI folder and delete the Ubuntu folder

Return to the command line just now and enter remove letter=J to delete the drive letter just assigned.

At this point, Ubuntu has been uninstalled cleanly.

3. Make system disk

Making a system disk refers to using UltraISO to make Ubuntu20.04 U disk boot disk_ubuntu20.04 ultraiso_lizhiyuanbest's blog-CSDN blog , you need to use the software UltraISO;

For U disk formatting, please refer to How to format U disks of 64G and above into FAT32 format - Bilibili . You need to use the software partition assistant.

4. Install Ubuntu22.04

reference:

win10 + Ubuntu 20.04 LTS dual system installation (UEFI + GPT) (pictures and texts, multi-picture warning)_uefi installation of ubuntu_ZChen1996's blog-CSDN blog

Windows+Ubuntu20.04 dual system installation tutorial-Zhihu

1. Turn off Win11 Quick Start

2. Set up U disk boot

Insert the USB flash drive;

Turn off the computer and turn it on;

Quickly press F2 to enter the BIOS settings, and put the U disk boot first (the U disk boot item is usually the U disk brand name, with Disk in brackets);

Save and exit.

3. Install Ubuntu

After exiting the BIOS, you will directly enter the Ubuntu installation process.

a. The first one to enter by default

b. Waiting for inspection

c. Select language and operation (select according to personal needs), I choose Chinese (Simplified) here

d. Keyboard layout (default is enough)

e. Updates and other software, select normal installation, and check for graphics or wireless hardware...

f. Installation type, select other options

g. Create partition

Note: Divide the logical partition first, then the primary partition.

I left 300M of space for Ubuntu on the system disk C drive for boot files; I left 570G on the E drive for the swap partition, root partition and home partition. Below is my allocation:

  • 1./boot partition, logical partition, default ext4. I divided nearly 300M and placed the Ubuntu startup boot file;
  • 2./swap swap partition (virtual memory), logical partition, I divided it into 16GB (for 8G and below RAM, choose twice the size, the above size is the same as the RAM size);
  • 3./ Root partition (root partition), logical partition, I choose 150G, the default is ext4;
  • 4./home partition, the main partition, the default is ext4, I choose 400G, all the user's files are here.

! ! Note: After the partition is completed, there is still a device to install the boot boot device. Select the path of the /boot partition, and then click [Install Now]

h. Select the installation location, the default is enough, and it will automatically find the blank partition we created.

i. Select the time zone, fill in the account and password, and start the installation, which will take less than 10 minutes.

5. The installation is complete! After booting, select the system, and Ubuntu is the first one.

Guess you like

Origin blog.csdn.net/qq_45461410/article/details/130188750