# US 2020/0272445 A1 · Installation of operating system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0272445 A1
- Document ID: US20200272445A1
- Status: Published application
- Kind: A1
- Application number: 16/322,525
- Filed: 2017-09-22
- Published: 2020-08-27
- Earliest claimed: 2016-09-23
- Assignees: New H3C Information Technologies Co., Ltd.
- Applicants: New H3C INFORMATION TECHNOLOGIES CO., LTD.
- Inventors: Lina LANG
- Web page: https://patentgrep.com/patent/US20200272445A1

## CPC

- G06F 8/61: Installation
- G06F 9/4406: {Loading of operating system}
- G11B 20/10: Digital recording or reproducing
- G06F 8/63: {Image based installation; Cloning; Build to order}
- G11B 2020/10833: {Copying or moving data from one record carrier to another}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11B: INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER (recording measured values in a way that does not require playback through a transducer G01D9/00; recording or playback apparatus using mechanically marked tape, e.g. punched paper tape, or using unit records, e.g. punched or magnetically marked cards G06K; transferring data from one type of record carrier to another G06K1/18; circuits for coupling output of reproducer to radio receiver H04B1/20; gramophone pick-ups or like acoustic electromechanical transducers or circuits therefor H04R)

## Abstract

Provided are a method and terminal device for installing an operating system. The method includes: copying an installation boot file in a mirror file of a to-be-installed-operating system into a root directory of a removable storage device attached to the terminal device, the mirror file being stored in the removable storage device; creating an installation script file where a pre-installation script indicates the mirror file is to be mounted to a first folder of the terminal device; designating in the installation script file that a storage address of software installation packages is that of the first folder; adding the installation script file to the mirror file and copying the updated mirror file into a hard disk, where the operating system is to be installed, in the terminal device to obtain a startup disk; and installing the operating system in the hard disk with the startup disk and installation boot file.

## Claims

### Claim 1

A method of installing an operating system, comprising:
copying, by a processor in a terminal device, an installation boot file in an iso mirror file of a to-be-installed-operating system into a root directory of a removable storage device attached to the terminal device, wherein the iso mirror file is stored on the removable storage device;
creating, by the processor, an installation script file, wherein the installation script file comprises a pre-installation script used to indicate that the iso mirror file is to be mounted to a first folder of the terminal device;
designating in the installation script file, by the processor, that a storage address of software installation packages in the iso mirror file is a storage address of the first folder;
obtaining, by the processor, an updated iso mirror file by adding the installation script file to the iso mirror file;
obtaining, by the processor, a startup disk by copying the updated iso mirror file into a hard disk, in which the operating system is to be installed, in the terminal device; and
installing, by the processor, the operating system in the hard disk, in which the operating system is to be installed, by using the startup disk and the installation boot file in the root directory of the removable storage device.

### Claim 2 (depends on 1)

The method according to claim 1, wherein copying the installation boot file in the iso mirror file into the root directory of the removable storage device comprises:
creating, by the processor, a second folder on the terminal device, and mounting the removable storage device to the second folder;
creating, by the processor, a third folder on the terminal device, and mounting the iso mirror file in the second folder to the third folder; and
copying, by the processor, the installation boot file in the third folder into the second folder.

### Claim 3 (depends on 1)

The method according to claim 1, wherein designating in the installation script file that the storage address of the software installation packages is the storage address of the first folder comprises:
setting, by the processor, a repo option of the installation script file in a form of baseurl+name of the software installation packages; and
setting, by the processor, the baseurl as the storage address of the first folder.

### Claim 4 (depends on 1)

The method according to claim 1, wherein copying the updated iso mirror file into the hard disk, in which the operating system is to be installed, in the terminal device comprises:
copying, by the processor, the updated iso mirror file into the hard disk, in which the operating system is to be installed, by using a Linux dd command.

### Claim 5 (depends on 1)

The method according to claim 1, wherein installing the operating system in the hard disk, in which the operating system is to be installed, comprises:
loading, by the processor, a compact disk boot file in the startup disk;
loading, by the processor, a kernel and a ramfs file system by means of the compact disk boot file;
loading, by the processor, the installation boot file in the root directory of the removable storage device after startup of the kernel;
executing, by the processor, the installation script file by means of the loaded installation boot file to mount the iso mirror file in the removable storage device to the first folder; and
loading, by the processor, the software installation packages in the first folder after obtaining from the installation script file that the storage address of the software installation packages is the storage address of the first folder.

### Claim 6 (depends on 5)

The method according to claim 5, wherein mounting the iso mirror file in the removable storage device to the first folder comprises:
creating, by the processor, a fourth folder on the terminal device, and mounting the removable storage device to the fourth folder; and
creating, by the processor, the first folder on the terminal device, and mounting the iso mirror file in the fourth folder to the first folder.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the operating system is a Linux operating system, and
the installation boot file is an install.img file;
the installation script file is a kickstart.cfg file, and the storage address of the software installation packages is designated in the kickstart.cfg file; and
the compact disk boot file is an isolinux.bin file.

### Claim 8

A terminal device, comprising:
a processor; and
a machine-readable storage medium that stores machine-executable instructions, wherein by executing the machine-executable instructions, the processor is caused to:
copy an installation boot file in an iso mirror file of a to-be-installed-operating system into a root directory of a removable storage device attached to the terminal device, wherein the iso mirror file is stored in the removable storage device;
create an installation script file, wherein the installation script file comprises a pre-installation script used to indicate that the iso mirror file is to be mounted to a first folder of the terminal device;
designate in the installation script file that a storage address of software installation packages in the iso mirror file is a storage address of the first folder;
obtain an updated iso mirror file by adding the installation script file to the iso mirror file;
obtain a startup disk by copying the updated iso mirror file into a hard disk, in which the operating system is to be installed, in the terminal device; and
install the operating system in the hard disk, in which the operating system is to be installed, by using the startup disk and the installation boot file in the root directory of the removable storage device.

### Claim 9 (depends on 8)

The device according to claim 8, wherein when copying the installation boot file in the iso mirror file into the root directory of the removable storage device, the processor is further caused by the machine-executable instructions to:
create a second folder on the terminal device, and mount the removable storage device to the second folder;
create a third folder on the terminal device, and mount the iso mirror file in the second folder to the third folder; and
copy the installation boot file in the third folder into the second folder.

### Claim 10 (depends on 8)

The device according to claim 8, wherein when designating in the installation script file that the storage address of the software installation packages is the storage address of the first folder, the processor is further caused by the machine-executable instructions to:
set a repo option of the installation script file in a form of baseurl+name of the software installation packages; and
set the baseurl as the storage address of the first folder.

### Claim 11 (depends on 8)

The device according to claim 8, wherein when copying the updated iso mirror file into the hard disk, in which the operating system is to be installed, in the terminal device to obtain a startup disk, the processor is further caused by the machine-executable instructions to:
copy the updated iso mirror file into the hard disk, in which the operating system is to be installed, by using a Linux dd command.

### Claim 12 (depends on 8)

The device according to claim 8, wherein when installing the operating system in the hard disk, in which the operating system is to be installed, the processor is further caused by the machine-executable instructions to:
load a compact disk boot file in the startup disk;
load a kernel and a ramfs file system by means of the compact disk boot file;
load the installation boot file in the root directory of the removable storage device after startup of the kernel;
execute the installation script file by means of the loaded installation boot file to mount the iso mirror file on the removable storage device to the first folder; and
load the software installation packages in the first folder after obtaining from the installation script file that the storage address of the software installation packages is the storage address of the first folder.

### Claim 13 (depends on 12)

The device according to claim 12, wherein when mounting the iso mirror file in the removable storage device to the first folder, the processor is further caused by the machine-executable instructions to:
create a fourth folder on the terminal device, and mount the removable storage device to the fourth folder; and
create the first folder on the terminal device, and mount the iso mirror file in the fourth folder to the first folder.

### Claim 14 (depends on 12)

The device according to claim 12, wherein the operating system is a Linux operating system, and
the installation boot file is an install.img file;
the installation script file is a kickstart.cfg file, and the storage address of the software installation packages is designated in the kickstart.cfg file; and
the compact disk boot file is an isolinux.bin file.
