Article directory
background
Galaxy Kirin desktop operating system V10SP1-2203 is the latest version of the desktop operating system released by Kirin Software Company as of April 2023. There are two forms of installing this version of the operating system: "full disk installation" and "custom installation", so how to install it like Windows How about reinstalling the Kylin system without formatting the "data disk" just like the system retains the "D drive" for reinstallation? This article will introduce the specific steps in detail.
Initial environment introduction
-
OS version: Galaxy Kirin desktop operating system V10SP1-2203 (x86_64)
-
The system's default full-disk partition structure is as follows:
system partition Partition mount point Partition description boot partition /boot Stores files needed for the operating system kernel and boot process root partition partition / The root directory of the Linux system is displayed as "File System" in the Kirin system, similar to the "C drive" of the Windows system Backup and restore partition /backup The "backup and restore" partition of the Kylin system. If the partition is not created, the "Backup and Restore" tool in the system cannot be used. data partition /data The partition used to store user data is displayed as a "data disk" in the Kirin system, similar to the "D drive" in the Windows system SWAP partition - That is, the swap partition, similar to the "virtual memory" in Windows systems
Reinstall the operating system
- To create a system boot USB flash drive, it is recommended to use Rufus portable software;
- Insert the USB boot disk into the computer, restart the computer and select to boot from the USB disk, then select "Try the Galaxy Kirin operating system without installation" to enter the Livecd environment (similar to the PE environment of Windows systems); Note: If you are interested in the
current Since each partition information of the system has been known and recorded, you can also directly choose "Install Galaxy Kirin Operating System".
- After entering the Livecd trial environment, we can first open "Computer" to view the partition information of the current hard disk and the old system, so that we can format each partition and configure the mount point when reinstalling the system;
- After confirming the system partition information, click the "Install Kylin" icon on the system desktop to enter the system installation interface;
- After completing the steps of "Select Language" - "Select Installation Path" - "Read License Agreement" - "Select Time Zone", come to the "Create User" step.
需要注意的是,为保证在后续操作中保留的“数据盘”能在重装后的新系统中被正确挂载和读取,此步骤中我们创建的用户名必须和旧系统中的用户名一致。
- Click "Next" to enter the hard disk partition interface. Because we want to retain the "data disk", we need to select "Custom Installation" to manually partition. Double-click the partition identified in the figure below to format and configure the mount point.
注意:“数据盘”分区千万不能格式化,我们只需要格式化boot分区、根分区、备份还原分区和swap分区并配置相应的挂载点(swap分区无需设置挂载点)即可。
- After the hard disk custom partition is completed, click "Next" directly to start installing the operating system and wait for the system installation to complete.
Configuration after reinstallation
- After the reinstallation is completed, log in to the system and open "Computer". You will find that there are only two disks: "File System" and "DATA", but there is no "Data Disk", and the files previously stored on the system desktop are not visible;
- Right-click the mouse to unmount the automatically mounted "DATA" partition;
- Open the terminal command line and execute to
sudo blkid
view the UUID of the "DATA" disk and copy it, then execute tosudo pluma /etc/fstab
start editing the /etc/fstab file. After editing is completed, click the "Save" button, and then close the text editor;
- Continue to enter the following commands in the terminal command to create the corresponding mounting directory;
kylin@kylin-vmwarevirtualplatform:~/桌面$ sudo mkdir -p /data/root /data/home
- Execute the following command to confirm that the edited content in /etc/fstab is correct;
kylin@kylin-vmwarevirtualplatform:~/桌面$ sudo mount -a
- At this time, when we open "Computer", we will find that the "Data Disk" has been displayed, but there are still no files on the desktop;
- The last step is to restart the operating system. The files on the "data disk" and desktop can be displayed normally. Now you're done.