Home Operation and Maintenance Linux Operation and Maintenance How to install and switch dual systems on Kirin operating system?

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

Aug 08, 2023 pm 12:01 PM
switch Dual system installation Kirin operating system

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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to switch between 4g and 5g on Xiaomi Mi 14Ultra? How to switch between 4g and 5g on Xiaomi Mi 14Ultra? Feb 23, 2024 am 11:49 AM

Xiaomi 14Ultra is one of the most popular Xiaomi models this year. Xiaomi 14Ultra not only upgrades the processor and various configurations, but also brings many new functional applications to users. This can be seen from the sales of Xiaomi 14Ultra mobile phones. It is very popular, but there are some commonly used functions that you may not know yet. So how does Xiaomi 14Ultra switch between 4g and 5g? Let me introduce the specific content to you below! How to switch between 4g and 5g on Xiaomi 14Ultra? 1. Open the settings menu of your phone. 2. Find and select the "Network" and "Mobile Network" options in the settings menu. 3. In the mobile network settings, you will see the "Preferred network type" option. 4. Click or select this option and you will see

Operation tutorial for switching from win11 home version to professional version_Operation tutorial for switching from win11 home version to professional version Operation tutorial for switching from win11 home version to professional version_Operation tutorial for switching from win11 home version to professional version Mar 20, 2024 pm 01:58 PM

How to convert Win11 Home Edition to Win11 Professional Edition? In Win11 system, it is divided into Home Edition, Professional Edition, Enterprise Edition, etc., and most Win11 notebooks are pre-installed with Win11 Home Edition system. Today, the editor will show you the steps to switch from win11 home version to professional version! 1. First, right-click on this computer on the win11 desktop and properties. 2. Click Change Product Key or Upgrade Windows. 3. Then click Change Product Key after entering. 4. Enter the activation key: 8G7XN-V7YWC-W8RPC-V73KB-YWRDB and select Next. 5. Then it will prompt success, so you can upgrade win11 home version to win11 professional version.

How to implement dual system switching in Win10 system How to implement dual system switching in Win10 system Jan 03, 2024 pm 05:41 PM

Many friends may not be used to the win system when they first come into contact with it. There are dual systems in the computer. At this time, you can actually switch between the two systems. Let's take a look at the detailed steps for switching between the two systems. How to switch between two systems in win10 system 1. Shortcut key switching 1. Press the "win" + "R" keys to open Run 2. Enter "msconfig" in the run box and click "OK" 3. In the open "System Configuration" In the interface, select the system you need and click "Set as Default". After completion, "Restart" can complete the switch. Method 2. Select switch when booting 1. When you have dual systems, a selection operation interface will appear when booting. You can use the keyboard " Up and down keys to select the system

Switch the dual system boot mode of Apple computer Switch the dual system boot mode of Apple computer Feb 19, 2024 pm 06:50 PM

How to switch between Apple dual systems when starting up Apple computers are powerful devices. In addition to their own macOS operating system, you can also choose to install other operating systems, such as Windows, to achieve dual system switching. So how do we switch between the two systems when booting? This article will introduce to you how to switch between dual systems on Apple computers. First of all, before installing dual systems, we need to confirm whether our Apple computer supports dual system switching. Generally speaking, Apple computers are based on

How to configure and use printers and scanners on Kirin operating system? How to configure and use printers and scanners on Kirin operating system? Aug 06, 2023 am 09:25 AM

How to configure and use printers and scanners on Kirin operating system? As an operating system based on Linux distributions, Kirin operating system is widely used in China. In order to meet the needs of different users, Kirin operating system provides easy-to-use printer and scanner configuration and use methods. This article will tell you how to configure and use printers and scanners on Kirin OS, and provide corresponding code examples. Printer configuration and use Kirin operating system uses CUPS (Common UNIX Printing System) as printing

How to quickly restore and reinstall the system on Kirin operating system? How to quickly restore and reinstall the system on Kirin operating system? Aug 04, 2023 pm 04:05 PM

How to quickly restore and reinstall the system on Kirin operating system? Kirin operating system is a Linux-based open source operating system independently developed in China and is highly praised for its stability and security. However, due to various reasons, we will inevitably encounter system crashes, software problems, etc. when using Kirin operating system. In order to solve these problems, we need to learn to quickly restore and reinstall the system. This article will introduce how to quickly restore and reinstall the system on Kirin operating system. System quick recovery: On Kirin operating system, we can use

How to install and manage fonts on Kirin OS? How to install and manage fonts on Kirin OS? Aug 05, 2023 pm 02:22 PM

How to install and manage fonts on Kirin OS? Kirin operating system is an open source operating system based on Linux. It is loved by the majority of users for its stability and security. For designers, typographers, or users who need to customize fonts, it is very important to install and manage fonts correctly. This article will introduce how to install and manage fonts on Kirin operating system and provide corresponding code examples. The font directory used by Kirin operating system to install fonts is /usr/share/fonts. We can

How to install applications on Kirin OS? How to install applications on Kirin OS? Aug 07, 2023 pm 01:10 PM

How to install applications on Kirin OS? Kirin operating system is an open source operating system based on Linux, developed and maintained by Huawei. As a lightweight operating system, Kirin system has outstanding performance and stability and is widely used in scenarios such as smartphones, tablets, laptops, and IoT devices. Installing applications on Kirin OS is very simple. This article will give you a detailed introduction on how to install applications on Kirin OS. 1. Use the App Store to install applications. Kirin operating system has its own

See all articles