How to install and switch dual systems on Kirin operating system?

WBOY
Release: 2023-08-08 12:01:06
Original
9840 people have browsed it

How to install and switch dual systems on Kirin operating system?

How to install and switch dual systems on Kirin operating system?

Kirin operating system is an open source operating system developed based on the Linux kernel. It has the advantages of stability and security and is deeply loved by users. For some users, a single operating system cannot meet their diverse needs, so they hope to implement dual system installation and switching on the Kirin operating system. This article will introduce the detailed steps on how to install and switch dual systems on Kirin operating system, and provide corresponding code examples.

Step One: Preparation
First, we need to prepare a partition that can be used to install the second operating system. We can use the GParted partition tool that comes with Kirin operating system to partition. Enter the following command in the terminal to install the GParted partition tool:

sudo apt-get install gparted
Copy after login

After the installation is complete, open the GParted partition tool and create a new partition for installing the second operating system.

Step 2: Install the second operating system
On the prepared partition, we can choose to install another operating system. Here we take the Windows operating system as an example.

First, we need to prepare a Windows installation media, which can be a CD or a USB flash drive. Insert the installation media into the computer and restart the computer.

When the computer starts, press the corresponding button to enter the BIOS setting interface. The keys of each computer may be different, and there will be prompts on the startup interface or startup screen. In the BIOS setting interface, set the startup mode to Legacy mode, save the settings and exit.

After the computer restarts, it will enter the Windows installation interface. Select the partition that needs to be installed according to the prompts, and install Windows to the partition we prepared previously. After completing the installation, the computer will automatically restart.

Step 3: Install the grub boot program
After installing the second operating system on the Kirin operating system, we need to install the grub boot program to achieve system switching. Enter the following command in the terminal to install the grub boot program:

sudo apt-get install grub
sudo grub-install /dev/sda
sudo update-grub
Copy after login

The "/dev/sda" here is the device name of the hard disk, which may vary depending on the computer. You can view the hard disk through the command "lsblk" in the terminal device name.

Step 4: Configure grub boot menu
After the installation is completed, we need to add support for the second operating system to the grub boot menu. Enter the following command in the terminal to edit the grub configuration file:

sudo gedit /etc/grub.d/40_custom
Copy after login

In the opened file, add the following content:

menuentry "Windows" {
    insmod ntfs
    insmod chain
    set root=(hd0,msdos<分区号>)
    chainloader +1
}
Copy after login

Among them, is the partition number we prepared before . After saving and closing the file, enter the following command to update the grub boot menu:

sudo update-grub
Copy after login

Step 5: Switch operating system
Now that we have completed the installation and configuration of the dual system, we can pass it when the system starts grub boot menu to select the operating system that needs to be booted. After the computer restarts, the grub boot menu will appear. Select the corresponding operating system according to your needs to switch.

Summary:
Through the above steps, we can install and switch dual systems on the Kirin operating system. First, we prepare a partition for installing the second operating system, then install the second operating system (such as Windows), then install the grub boot program, configure the grub boot menu, and finally switch the operating system. I hope this article can be helpful to users who want to implement dual system installation and switching on Kirin operating system.

Note: The code examples provided in this article are for reference only. Please modify and operate accordingly according to your actual situation to ensure safety and stability.

The above is the detailed content of How to install and switch dual systems on Kirin operating system?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!