1. Make Ubuntu system disk
1. Download the Ubuntu image source
Alibaba Cloud Open Source Mirror Site: https://mirrors.aliyun.com/ubuntu-releases/
Tsinghua University Open Source Software Mirror Site: https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/
Select the version you want to download, I am using version 20.04.
2. Make a U disk boot disk
1. Download UltraISO Floppy Disk: https://cn.ultraiso.net/xiazai.html
2. Open the image file
3. Write hard disk image
If "device is busy, please close other applications" appears, please clean up the USB flash drive as follows:
2. Allocate hard disk space
1. If your computer has a single hard disk, allocate space from the last disk for Ubuntu. Select the disk and right-click, select Compressed Volume, and enter the amount of compressed space.
2. If your computer has dual hard disks, you need to create a blank partition on the C drive (that is, the Windows system boot disk, that is, the first hard disk) to install the ubuntu startup items. Then allocate space from the last disk to Ubuntu. Select the disk and right-click, select Compressed Volume, and enter the amount of compressed space.
3. Install the Ubuntu system
1. Enter the U disk boot item
Different computers have different shortcut keys to enter the BIOS. After entering, adjust the boot priority and select the U disk to boot.
2. Choose Ubuntu
3. Install Ubuntu
Including language, keyboard, network, not to list them one by one, the focus is on the partition. Be sure to choose the other option Manual Partitioning.
4. Partition
4.1EFI system partition
A single hard disk can be partitioned in a free partition. For dual hard disks, a logical partition is added to the first system disk for the EFI system partition. The remaining partitions are operated in the same way for both single and dual hard disks.
4.2swap swap space
As the virtual memory of ubuntu, the general size is about twice the physical memory of the computer. It can be divided into 32G, logical partitions, and the starting position of the space, which is used for "swap" or "swap space".
4.3 root directory/
/: This is the root directory of ubuntu, which is used to install the system and software. It is equivalent to the C disk of Windows, the main partition, the starting position of the space, used for the "ext4 log file system", and the mount point is "/" (according to your If there is enough free space, you can give more. After all, ubuntu software is installed in the root directory by default.)
4.4/home
Equivalent to other Windows disks, the remaining space is allotted to it, the logical partition, the starting position of the space, used for "ext4 log file system", and the mount point is "/home".
4.5 Choose where to install startup items
Select the 4.1EFI system partition number to install. Next is the time zone username and password.
Finally, the installation was successful.
5. Set the kernel startup sequence
grep menuentry grub.cfg
vim /etc/default/grub
default=1 is the ubuntu advanced option on the boot page, and 4 is the kernel selected in the Ubuntu advanced option. The default is 0, changed to the order of our newly compiled kernel, starting from 0. At the same time, comment out hidden, and set a default startup TIMEOUT (in seconds), so that the grub page will be displayed at startup. If you do not manually select it, it will enter the kernel of the default startup sequence after the countdown. (If TIMEOUT is -1, you must manually select the kernel version to enter the system)