# US 12,001,285 B2 · System booting method and apparatus, node device, and computer-readable storage medium

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

- Number: US 12,001,285 B2
- Document ID: US12001285B2
- Status: Granted
- Kind: B2
- Application number: 17/704,713
- Filed: 2022-03-25
- Published: 2022-07-07
- Granted: 2024-06-04
- Earliest claimed: 2019-09-29
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Ming Chen
- Web page: https://patentgrep.com/patent/US12001285B2

## CPC

- G06F 11/1417: {Boot up procedures}
- G06F 9/441: {Multiboot arrangements, i.e. selecting an operating system to be loaded}
- G06F 9/44568: {Immediately runnable code}
- G06F 11/2094: {Redundant storage or storage space (G06F11/2056 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system booting method, a node device, and a computer-readable storage medium relate to the technical field of operating systems and include determining a location of a first operating system to be booted by the node device in a target persistent memory; and booting, based on the location of the first operating system and by the node device, the first operating system.

## Claims

### Claim 1

A method comprising:
determining a location of a first operating system to be booted by a node device in a target persistent memory;
determining, based on the location, whether the first operating system is damaged by performing, based on the location, a target operation on the first operating system to obtain first description information indicating the first operating system, determining that the first operating system is not damaged when the first description information is consistent with second description information, wherein the second description information indicates a target operating system that is updated to the first operating system, and determining that the first operating system is damaged when the first description information is not consistent with second description information;
booting the first operating system in the target persistent memory when the first operating system is not damaged; and
when the first operating system is damaged:
querying a target storage medium in the node device that stores a second operating system, wherein the second operating system is a backup of the first operating system;
repairing, based on the second operating system, the first operating system to obtain a repaired first operating system; and
booting the repaired first operating system in the target persistent memory.

### Claim 2 (depends on 1)

The method of claim 1, further comprising determining a system boot source of the first operating system indicating a boot location of the first operating system, wherein the boot location comprises at least one of a persistent memory or a persistent storage medium.

### Claim 3 (depends on 1)

The method of claim 1, wherein the target persistent memory has a read-write response delay of less than one microsecond (μs).

### Claim 4 (depends on 1)

The system booting method of claim 1, further comprising:
detecting whether the second operating system is damaged;
performing the step of repairing the first operating system in the target persistent memory based on the second operating system in the target storage medium when the second operating system is not damaged; and
terminating booting the first operating system when the second operating system is damaged.

### Claim 5 (depends on 1)

The system booting method of claim 1, further comprising:
directly booting, for a preset quantity of times based on the location, the first operating system in the target persistent memory; and
determining that the first operating system is damaged when the first operating system is not successfully booted after having been booted for the preset quantity of times.

### Claim 6 (depends on 1)

The method of claim 1, further comprising displaying an operating system login interface when the first operating system is successfully booted, wherein the operating system login interface logs in to the first operating system.

### Claim 7

A node device comprising:
a memory configured to store instructions; and
a processor coupled to the memory, wherein the instructions when executed by the processor cause the node device to:
determine a location of a first operating system to be booted by the node device in a target persistent memory; and
determine, based on the location, whether the first operating system is damaged by performing, based on the location, a target operation on the first operating system to obtain first description information indicating the first operating system, determine that the first operating system is not damaged when the first description information is consistent with second description information, wherein the second description information indicates a target operating system that is updated to the first operating system, and determine that the first operating system is damaged when the first description information is not consistent with second description information;
boot the first operating system in the target persistent memory when the first operating system is not damaged; and
when the first operating system is damaged:
query a target storage medium in the node device that stores a second operating system, wherein the second operating system is a backup of the first operating system;
repair, based on the second operating system, the first operating system to obtain a repaired first operating system; and
boot the repaired first operating system in the target persistent memory.

### Claim 8 (depends on 7)

The node device of claim 7, wherein the instructions when executed by the processor further causes the node device to determine a system boot source of the first operating system indicating a boot location of the first operating system, and wherein the boot location comprises at least one of a persistent memory or a persistent storage medium.

### Claim 9 (depends on 7)

The node device of claim 7, wherein the target persistent memory has a read-write response delay of less than one microsecond (μs).

### Claim 10 (depends on 7)

The node device of claim 7, wherein the instructions when executed by the processor further cause the node device to:
directly boot, for a preset quantity of times based on the location, the first operating system; and
detect, based on the location, whether the first operating system is damaged when the first operating system is not successfully booted after having been booted for the preset quantity of times.

### Claim 11 (depends on 10)

The node device of claim 10, wherein the instructions when executed by the processor further cause the node device to:
detect whether the second operating system is damaged;
repair, based on the second operating system, the first operating system when the second operating system is not damaged; and
terminate booting the first operating system when the second operating system is damaged.

### Claim 12 (depends on 7)

The node device of claim 7, wherein the instructions when executed by the processor further cause the node device to display an operating system login interface when the first operating system is successfully booted, and wherein the operating system login interface logs in to the first operating system.

### Claim 13

A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a processor, cause a node device to:
determine a location of a first operating system to be booted by the node device in a target persistent memory; and
determine, based on the location, whether the first operating system is damaged by performing, based on the location, a target operation on the first operating system to obtain first description information indicating the first operating system, determine that the first operating system is not damaged when the first description information is consistent with second description information, wherein the second description information indicates a target operating system that is updated to the first operating system, and determine that the first operating system is damaged when the first description information is not consistent with second description information;
boot the first operating system in the target persistent memory when the first operating system is not damaged; and
when the first operating system is damaged:
query a target storage medium in the node device that stores a second operating system, wherein the second operating system is a backup of the first operating system;
repair, based on the second operating system, the first operating system to obtain a repaired first operating system; and
boot the repaired first operating system in the target persistent memory.

### Claim 14 (depends on 13)

The non-transitory computer-readable storage medium of claim 13, wherein the computer-executable instructions further cause the node device to determine a system boot source of the first operating system, wherein the system boot source indicates a boot location of the first operating system, and wherein the boot location comprises at least one of a persistent memory or a persistent storage medium.

### Claim 15 (depends on 13)

The non-transitory computer-readable storage medium of claim 13, wherein the target persistent memory has a read-write response delay of less than one microsecond (μs).

### Claim 16 (depends on 13)

The non-transitory computer-readable storage medium of claim 13, wherein the computer-executable instructions further cause the node device to:
directly boot, for a preset quantity of times based on the location, the first operating system; and
determine, based on the location, that the first operating system is damaged when the first operating system is not successfully booted after having been booted for the preset quantity of times.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the computer-executable instructions further cause the node device to:
detect whether the second operating system is damaged;
repair, based on the second operating system, the first operating system when the second operating system is not damaged; and
terminate booting the first operating system in the target persistent memory when the second operating system is damaged.
