A hard disk partitioning method, device, equipment and computer readable storage medium

CN120610665BActive Publication Date: 2026-10-23INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510829348.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-20
Publication Date
2026-10-23
Estimated Expiration
2045-06-20

AI Technical Summary

Technical Problem

需求的多样性和不灵活的配置应对方案,增加了配置验证的成本以及装配的出错率,影响出货效率,导致市场适应能力不足

Benefits of technology

[0031]本发明所提供的硬盘分区方法,获取目标预装计算机的目标硬盘配置信息;将目标硬盘配置信息与动态分区数据存储模块中预存的硬盘分区映射关系集合进行匹配;其中,动态分区数据存储模块中存储有各硬盘配置信息与各硬盘分区划分数组之间的硬盘分区映射关系;当从硬盘分区映射关系集合中匹配到目标硬盘配置信息对应的目标硬盘分区映射关系时,根据目标硬盘分区映射关系中的目标硬盘分区划分数组对目标预装计算机进行硬盘分区。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120610665B_ABST
    Figure CN120610665B_ABST
Patent Text Reader

Abstract

The application discloses a hard disk partition method, device and equipment and a computer readable storage medium, and comprises the following steps: obtaining target hard disk configuration information of a target pre-installed computer; matching the target hard disk configuration information with a pre-stored hard disk partition mapping relationship set in a dynamic partition data storage module; wherein the dynamic partition data storage module stores hard disk partition mapping relationships between each hard disk configuration information and each hard disk partition division array; when a target hard disk partition mapping relationship corresponding to the target hard disk configuration information is matched from the hard disk partition mapping relationship set, performing hard disk partition on the target pre-installed computer according to a target hard disk partition division array in the target hard disk partition mapping relationship. The application reduces the configuration verification cost, eliminates the error risks caused by manual configuration, and can realize dynamic and automatic partition configuration based on the diversification of customer demand.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a hard disk partitioning method, apparatus, device, and computer-readable storage medium. Background Technology

[0002] Operating systems manage hardware downwards and system application software upwards, coordinating hardware and software resources in an orderly manner to serve users. Currently, the hardware partitioning scheme commonly used in operating system pre-installation is a fixed or manual process. In mass pre-installation of complete machines, this technological inertia is followed by configuring and verifying different hardware configurations separately based on customer pre-installation and shipment requirements before production. The diversity of requirements and the inflexible configuration solutions increase the cost of configuration verification and the error rate of assembly, affecting shipment efficiency and resulting in insufficient market adaptability.

[0003] In summary, how to effectively solve the problems of high configuration and verification costs, high assembly error rates, and low operating system pre-installation efficiency in current hard disk partitioning methods is an urgent issue that needs to be addressed by those skilled in the art. Summary of the Invention

[0004] The purpose of this invention is to provide a hard disk partitioning method that reduces configuration verification costs, eliminates the risk of errors caused by manual configuration, and enables dynamic and automated partitioning configuration based on diverse customer needs. Another purpose of this invention is to provide a hard disk partitioning device, equipment, and computer-readable storage medium.

[0005] To solve the above-mentioned technical problems, the present invention provides the following technical solution:

[0006] A hard disk partitioning method, comprising:

[0007] Obtain the target hard drive configuration information of the target pre-installed computer;

[0008] The target hard disk configuration information is matched with the set of hard disk partition mapping relationships pre-stored in the dynamic partition data storage module; wherein, the dynamic partition data storage module stores the hard disk partition mapping relationship between each hard disk configuration information and each hard disk partition division array;

[0009] When a target hard disk partition mapping relationship corresponding to the target hard disk configuration information is matched from the set of hard disk partition mapping relationships, the target pre-installed computer is partitioned according to the target hard disk partition division array in the target hard disk partition mapping relationship.

[0010] In one specific embodiment of the present invention, obtaining the target hard disk configuration information of the target pre-installed computer includes:

[0011] The hard drive configuration information of the target pre-installed computer is obtained using a hard drive configuration detection module; wherein, the hard drive configuration detection module is a module created based on the data capture and transmission characteristics of the operating system's pre-installed partition interface.

[0012] In one specific embodiment of the present invention, partitioning the target pre-installed computer according to the target hard disk partitioning array in the target hard disk partition mapping relationship includes:

[0013] The target pre-installed computer is partitioned based on the Scalable Firmware Interface partition size, boot partition size, root partition size, backup and restore partition size, and data partition size contained in the target hard disk partitioning array.

[0014] In one specific embodiment of the present invention, after matching the target hard disk configuration information with the set of hard disk partition mapping relationships pre-stored in the dynamic partition data storage module, the method further includes:

[0015] When no target hard disk partition mapping relationship corresponding to the target hard disk configuration information is found from the set of hard disk partition mapping relationships, a matching anomaly type is determined;

[0016] Based on the matched anomaly type, output anomaly alarm information.

[0017] In one specific embodiment of the present invention, based on the matched anomaly type, an anomaly alarm information is output, including:

[0018] When the matching anomaly type is incorrect data format, an error data format alarm message is output.

[0019] In one specific embodiment of the present invention, based on the matched anomaly type, an anomaly alarm information is output, including:

[0020] When the matching exception type is that the target hard disk partition mapping relationship is not included in the set of hard disk partition mapping relationships, a hard disk partition mapping relationship missing prompt message is output.

[0021] In one specific embodiment of the present invention, matching the target hard disk configuration information with a set of pre-stored hard disk partition mapping relationships in the dynamic partition data storage module includes:

[0022] The data comparison module is used to match the target hard disk configuration information with the set of pre-stored hard disk partition mapping relationships in the dynamic partition data storage module.

[0023] A hard disk partitioning device, comprising:

[0024] The hard drive configuration information acquisition module is used to acquire the target hard drive configuration information of the target pre-installed computer.

[0025] The mapping relationship matching module is used to match the target hard disk configuration information with the set of hard disk partition mapping relationships pre-stored in the dynamic partition data storage module; wherein, the dynamic partition data storage module stores the hard disk partition mapping relationship between each hard disk configuration information and each hard disk partition division array;

[0026] The hard disk partitioning module is used to partition the target pre-installed computer according to the target hard disk partitioning array in the target hard disk partitioning relationship when a target hard disk partitioning relationship corresponding to the target hard disk configuration information is matched from the set of hard disk partitioning relationships.

[0027] A hard disk partitioning device, comprising:

[0028] Memory, used to store computer programs;

[0029] A processor for executing the computer program to implement the steps of the hard disk partitioning method as described above.

[0030] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the aforementioned hard disk partitioning method.

[0031] The hard disk partitioning method provided by this invention obtains the target hard disk configuration information of the target pre-installed computer; matches the target hard disk configuration information with a set of pre-stored hard disk partition mapping relationships in a dynamic partition data storage module; wherein, the dynamic partition data storage module stores the hard disk partition mapping relationships between each hard disk configuration information and each hard disk partition division array; when a target hard disk partition mapping relationship corresponding to the target hard disk configuration information is matched from the set of hard disk partition mapping relationships, the target pre-installed computer is partitioned according to the target hard disk partition division array in the target hard disk partition mapping relationship.

[0032] The beneficial effects of this invention lie in the fact that, during the batch pre-installation of the operating system, the hard drive configuration information of the target pre-installed computer is detected. A dynamic partition data storage module pre-stores the hard drive partition mapping relationship between each hard drive configuration information and each hard drive partitioning array. The detected hard drive configuration information is then matched with the set of pre-stored hard drive partition mapping relationships in the dynamic partition data storage module. Upon successful matching, the target pre-installed computer's hard drive is partitioned according to the target hard drive partitioning array in the target hard drive partition mapping relationship. This enables dynamic and automated partition configuration based on diverse customer needs, reduces configuration verification costs, eliminates the potential for errors caused by manual configuration, and achieves batch customized pre-installation of the operating system.

[0033] Accordingly, the present invention also provides a hard disk partitioning device, apparatus, and computer-readable storage medium corresponding to the above-described hard disk partitioning method, which have the above-described technical effects, and will not be elaborated further here. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 This is a flowchart illustrating the implementation of a hard disk partitioning method in an embodiment of the present invention;

[0036] Figure 2 This is a flowchart illustrating another hard disk partitioning method in an embodiment of the present invention.

[0037] Figure 3 This is a structural block diagram of a hard disk partitioning device according to an embodiment of the present invention;

[0038] Figure 4 This is a structural block diagram of a hard disk partitioning device according to an embodiment of the present invention;

[0039] Figure 5 This is a schematic diagram of the specific structure of a hard disk partitioning device provided in an embodiment of the present invention. Detailed Implementation

[0040] To enable those skilled in the art to better understand the present invention, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0041] See Figure 1 , Figure 1 This is a flowchart illustrating an implementation method for hard disk partitioning according to an embodiment of the present invention. The method may include the following steps:

[0042] S101: Obtain the target hard drive configuration information of the target pre-installed computer.

[0043] When it is necessary to partition the hard drive and pre-install the operating system on the target pre-installed computer, obtain the target hard drive configuration information of the target pre-installed computer. The target hard drive configuration information may include information such as hard drive size and hard drive model.

[0044] S102: Match the target hard disk configuration information with the set of pre-stored hard disk partition mapping relationships in the dynamic partition data storage module.

[0045] The dynamic partition data storage module stores the hard drive partition mapping relationship between the configuration information of each hard drive and the partition division array of each hard drive.

[0046] A hard drive partition mapping relationship is pre-established between the configuration information of each hard drive and the partition division array of each hard drive, and a dynamic partition data storage module is encapsulated based on the hard drive partition mapping relationship. After obtaining the target hard drive configuration information of the target pre-installed computer, the target hard drive configuration information is matched with the set of pre-stored hard drive partition mapping relationships in the dynamic partition data storage module.

[0047] For example, a hard drive partition mapping relationship can be pre-established between the configuration size range of each hard drive and the partition division array of each hard drive, with different hard drive configuration size ranges corresponding to different hard drive partition division arrays.

[0048] Each hard drive partition can include the size of the Scalable Firmware Interface partition, the size of the boot partition, the size of the root partition, the size of the backup and restore partition, and the size of the data partition.

[0049] S103: When a target hard disk partition mapping relationship corresponding to the target hard disk configuration information is matched from the set of hard disk partition mapping relationships, the target pre-installed computer is partitioned according to the target hard disk partition division array in the target hard disk partition mapping relationship.

[0050] After matching the target hard disk configuration information with the set of pre-stored hard disk partition mapping relationships in the dynamic partition data storage module, when a target hard disk partition mapping relationship corresponding to the target hard disk configuration information is matched from the set of hard disk partition mapping relationships, the target pre-installed computer is partitioned according to the target hard disk partition division array in the target hard disk partition mapping relationship.

[0051] This method involves probing the hard drive configuration information of the target pre-installed computer during batch operating system pre-installation. A dynamic partition data storage module pre-stores the hard drive partition mapping relationships between each hard drive configuration and its corresponding partition array. The detected hard drive configuration information is then matched against this pre-stored set of partition mapping relationships. Upon successful matching, the target pre-installed computer's hard drive is partitioned according to the target hard drive partition array within the target partition mapping relationship. This approach enables dynamic and automated partition configuration based on diverse customer needs, reducing configuration verification costs, eliminating potential errors caused by manual configuration, and achieving customized batch pre-installation of the operating system.

[0052] It should be noted that, based on the above embodiments, the present invention also provides corresponding improvements. In subsequent embodiments, steps identical or corresponding to those in the above embodiments can be referenced interchangeably, and their respective beneficial effects can also be referred to each other. These improvements will not be elaborated upon in the following improved embodiments.

[0053] See Figure 2 , Figure 2 This is a flowchart illustrating another hard disk partitioning method in an embodiment of the present invention. The method may include the following steps:

[0054] S201: Use the hard disk configuration detection module to obtain the target hard disk configuration information of the target pre-installed computer.

[0055] The hard drive configuration detection module is a module created based on the data capture and transmission characteristics of the pre-installed partition interface of the operating system.

[0056] A hard disk configuration detection module M2 is pre-created based on the data capture and transmission characteristics of the pre-installed partition interface of the operating system. When it is necessary to partition the hard disk of the target pre-installed computer and pre-install the operating system, the hard disk configuration detection module is used to obtain the target hard disk configuration information of the target pre-installed computer, thereby realizing the automatic detection of the target hard disk configuration information of the target pre-installed computer.

[0057] S202: Use the data comparison module to match the target hard disk configuration information with the set of pre-stored hard disk partition mapping relationships in the dynamic partition data storage module.

[0058] The dynamic partition data storage module stores the hard drive partition mapping relationship between the configuration information of each hard drive and the partition division array of each hard drive.

[0059] A pre-created data comparison module M3, after obtaining the target hard drive configuration information of the target pre-installed computer using the hard drive configuration detection module, matches the target hard drive configuration information with the set of pre-stored hard drive partition mapping relationships in the dynamic partition data storage module. This data comparison module enables automatic matching of the target hard drive configuration information with the set of pre-stored hard drive partition mapping relationships in the dynamic partition data storage module.

[0060] S203: When a target hard disk partition mapping relationship corresponding to the target hard disk configuration information is matched from the set of hard disk partition mapping relationships, the target pre-installed computer is partitioned according to the scalable firmware interface partition size, boot partition size, root partition size, backup and restore partition size and data partition size contained in the target hard disk partitioning array.

[0061] When the target hard drive partition mapping relationship corresponding to the target hard drive configuration information is matched from the set of hard drive partition mapping relationships, the target pre-installed computer is partitioned according to the Extensible Firmware Interface (EFI) partition size, boot partition size, root partition size, backup and restore partition size, and data partition size contained in the target hard drive partitioning array, and then the operating system is pre-installed. By partitioning the target pre-installed computer's hard drive according to the Extensible Firmware Interface partition size, boot partition size, root partition size, backup and restore partition size, and data partition size, the potential for errors caused by manual configuration is eliminated, achieving accurate hard drive partitioning.

[0062] The hard drive can be partitioned according to different pre-installed computer hard drive configurations: When the hard drive specification is S0 (64GB ≤ capacity ≤ 256GB), the expandable firmware interface partition size is A0, the boot partition size is B0, the root partition is C0, the backup and restore partition is D0, and the data partition is E0; when the hard drive specification is S1 (capacity 512GB), the expandable firmware interface partition size is A1, the boot partition size is B1, the root partition is C1, the backup and restore partition is D1, and the data partition is E1; when the hard drive specification is S2 (capacity ≥ 1TB), the expandable firmware interface partition size is A2, the boot partition size is B2, the root partition is C2, the backup and restore partition is D2, and the data partition is E2. Based on this, a dynamic partition configuration database F0 / F1 / F2 is constructed, establishing the mapping relationships S0→F0, S1→F1, and S2→F2, and encapsulated as a dynamic partition storage module M1.

[0063] S204: When no target hard disk partition mapping relationship corresponding to the target hard disk configuration information is found in the set of hard disk partition mapping relationships, determine the matching exception type.

[0064] After the data comparison module matches the target hard drive configuration information with the set of pre-stored hard drive partition mapping relationships in the dynamic partition data storage module, if no matching target hard drive partition mapping relationship is found in the set of hard drive partition mapping relationships, the matching anomaly type is determined. Matching anomaly types can include incorrect data format, missing hard drive partition mapping relationships, etc.

[0065] S205: Output the abnormal alarm information according to the matched abnormality type.

[0066] After determining the matching exception type, an exception alarm message is output based on the matching exception type. By outputting the corresponding exception alarm message according to the matching exception type, the cause of the matching exception is accurately indicated.

[0067] In one specific embodiment of the present invention, step S205 may include the following steps:

[0068] When the matching exception type is "incorrect data format", output an "incorrect data format" alarm message.

[0069] When the matching anomaly type is "incorrect data format," an "incorrect data format" alarm message is output. This allows for adjustment of the hard drive configuration information's data format based on the alarm message, and a re-matching of the hard drive partition mapping relationship based on the adjusted data format information. This prevents hard drive partition mapping relationship matching failures caused by incorrect data formats.

[0070] In one specific embodiment of the present invention, step S205 may include the following steps:

[0071] When the matching exception type is that the target hard disk partition mapping relationship is not included in the set of hard disk partition mapping relationships, a message indicating that the hard disk partition mapping relationship is missing will be output.

[0072] When the matching anomaly type is "the target hard disk partition mapping relationship is not included in the set of hard disk partition mapping relationships," it indicates that the target hard disk partition mapping relationship corresponding to the target hard disk configuration information does not exist in the pre-packaged dynamic partition data storage module, and a hard disk partition mapping relationship missing prompt message is output. Therefore, based on the hard disk partition mapping relationship missing prompt message, the current hard disk partition and operating system pre-installation can be stopped in a timely manner, or the hard disk partition mapping relationship set can be expanded based on the hard disk partition mapping relationship missing prompt message.

[0073] Users can record events where hard drive partition mapping fails due to missing mapping information. When the probability of hard drive partition mapping failure due to similar hard drive configuration information reaches a preset value, the hard drive partition mapping set can be adjusted based on the similar hard drive configuration information. For example, when the probability of hard drive partition mapping failure for a certain hard drive configuration size range reaches a preset value, a hard drive partition partitioning array corresponding to that hard drive configuration size range can be generated. The hard drive configuration size range and its corresponding hard drive partition partitioning array are then added to the hard drive partition mapping set, thereby effectively expanding the hard drive partition mapping set and improving the success rate of hard drive partition mapping matching.

[0074] You can also configure it so that if there is no matching hard disk partition mapping relationship in the set of hard disk partition mapping relationships, it means that the hard disk configuration information of the target pre-installed computer is not in the set of hard disk partition mapping relationships, and dynamic partitioning and pre-installation of the operating system cannot be performed.

[0075] Corresponding to the above method embodiments, the present invention also provides a hard disk partitioning device, and the hard disk partitioning device described below can be referred to in correspondence with the hard disk partitioning method described above.

[0076] See Figure 3 , Figure 3 This is a structural block diagram of a hard disk partitioning device according to an embodiment of the present invention. The device may include:

[0077] The hard disk configuration information acquisition module 31 is used to acquire the target hard disk configuration information of the target pre-installed computer.

[0078] The mapping relationship matching module 32 is used to match the target hard disk configuration information with the set of hard disk partition mapping relationships pre-stored in the dynamic partition data storage module; wherein, the dynamic partition data storage module stores the hard disk partition mapping relationship between each hard disk configuration information and each hard disk partition division array;

[0079] The hard disk partitioning module 33 is used to partition the target pre-installed computer according to the target hard disk partition division array in the target hard disk partition mapping relationship when the target hard disk configuration information is matched from the set of hard disk partition mapping relationships.

[0080] This method involves probing the hard drive configuration information of the target pre-installed computer during batch operating system pre-installation. A dynamic partition data storage module pre-stores the hard drive partition mapping relationships between each hard drive configuration and its corresponding partition array. The detected hard drive configuration information is then matched against this pre-stored set of partition mapping relationships. Upon successful matching, the target pre-installed computer's hard drive is partitioned according to the target hard drive partition array within the target partition mapping relationship. This approach enables dynamic and automated partition configuration based on diverse customer needs, reducing configuration verification costs, eliminating potential errors caused by manual configuration, and achieving customized batch pre-installation of the operating system.

[0081] In one specific embodiment of the present invention, the hard disk configuration information acquisition module 31 is specifically a module that uses the hard disk configuration detection module to acquire the target hard disk configuration information of the target pre-installed computer; wherein, the hard disk configuration detection module is a module created based on the data capture and transmission characteristics of the operating system pre-installed partition interface.

[0082] In one specific embodiment of the present invention, the hard disk partitioning module 33 is specifically a module that partitions the hard disk of the target pre-installed computer according to the Scalable Firmware Interface partition size, boot partition size, root partition size, backup and restore partition size and data partition size contained in the target hard disk partitioning array.

[0083] In one specific embodiment of the present invention, the device may further include:

[0084] The matching anomaly type determination module is used to determine the matching anomaly type when, after matching the target hard disk configuration information with the set of pre-stored hard disk partition mapping relationships in the dynamic partition data storage module, no target hard disk partition mapping relationship corresponding to the target hard disk configuration information is found in the set of hard disk partition mapping relationships.

[0085] The abnormal alarm information output module is used to output abnormal alarm information according to the matching abnormal type.

[0086] In one specific embodiment of the present invention, the abnormal alarm information output module is specifically a module that outputs an alarm information for incorrect data format when the matched abnormal type is incorrect data format.

[0087] In one specific embodiment of the present invention, the abnormal alarm information output module is specifically a module that outputs a hard disk partition mapping relationship missing prompt information when the matching abnormality type is that the hard disk partition mapping relationship set does not contain the target hard disk partition mapping relationship.

[0088] In one specific embodiment of the present invention, the mapping relationship matching module 32 is specifically a module that uses a data comparison module to match the target hard disk configuration information with the set of hard disk partition mapping relationships pre-stored in the dynamic partition data storage module.

[0089] For the method embodiments described above, see [link to relevant documentation]. Figure 4 , Figure 4 This is a schematic diagram of a hard disk partitioning device provided by the present invention, which may include:

[0090] Memory 332 is used to store computer programs;

[0091] The processor 322 is used to implement the steps of the hard disk partitioning method in the above method embodiments when executing a computer program.

[0092] For details, please refer to Figure 5 , Figure 5This is a schematic diagram illustrating the specific structure of a hard disk partitioning device provided in this embodiment. The hard disk partitioning device can vary significantly due to differences in configuration or performance. It may include a processor (central processing unit, CPU) 322 (e.g., one or more processors) and a memory 332. The memory 332 stores one or more computer programs 342 or data 344. The memory 332 can be temporary or persistent storage. The program stored in the memory 332 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the data processing device. Furthermore, the processor 322 may be configured to communicate with the memory 332 and execute the series of instruction operations stored in the memory 332 on the hard disk partitioning device 301.

[0093] The hard disk partitioning device 301 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input / output interfaces 358, and / or one or more operating systems 341.

[0094] The steps in the hard disk partitioning method described above can be implemented by the structure of the hard disk partitioning device.

[0095] Corresponding to the above method embodiments, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can perform the following steps:

[0096] Obtain the target hard drive configuration information of the target pre-installed computer; match the target hard drive configuration information with the set of pre-stored hard drive partition mapping relationships in the dynamic partition data storage module; wherein, the dynamic partition data storage module stores the hard drive partition mapping relationship between each hard drive configuration information and each hard drive partitioning array; when the target hard drive partition mapping relationship corresponding to the target hard drive configuration information is matched from the set of hard drive partition mapping relationships, the target pre-installed computer is partitioned according to the target hard drive partitioning array in the target hard drive partition mapping relationship.

[0097] The computer-readable storage medium may include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0098] For a description of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments; the present invention will not be described in detail here.

[0099] Corresponding to the above method embodiments, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the aforementioned hard disk partitioning method.

[0100] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatuses, devices, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to the method section.

[0101] This article uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the technical solutions and core ideas of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made to the present invention without departing from the principles of the present invention, and these improvements and modifications also fall within the protection scope of the present invention.

Claims

1. A hard disk partitioning method, characterized in that, include: Obtain the target hard drive configuration information of the target pre-installed computer; The target hard disk configuration information is matched with the set of hard disk partition mapping relationships pre-stored in the dynamic partition data storage module; wherein, the dynamic partition data storage module stores the hard disk partition mapping relationship between each hard disk configuration information and each hard disk partition division array; When a target hard disk partition mapping relationship corresponding to the target hard disk configuration information is matched from the set of hard disk partition mapping relationships, the target pre-installed computer is partitioned according to the target hard disk partition division array in the target hard disk partition mapping relationship; This includes obtaining the target hard drive configuration information of the target pre-installed computer, including: The hard drive configuration information of the target pre-installed computer is obtained using a hard drive configuration detection module; wherein, the hard drive configuration detection module is a module created based on the data capture and transmission characteristics of the operating system's pre-installed partition interface; The target pre-installed computer is partitioned according to the target hard disk partitioning array in the target hard disk partition mapping relationship, including: The target pre-installed computer is partitioned based on the Scalable Firmware Interface partition size, boot partition size, root partition size, backup and restore partition size, and data partition size contained in the target hard disk partitioning array; After matching the target hard disk configuration information with the set of pre-stored hard disk partition mapping relationships in the dynamic partition data storage module, the process further includes: When no target hard disk partition mapping relationship corresponding to the target hard disk configuration information is found from the set of hard disk partition mapping relationships, a matching anomaly type is determined; Based on the matched anomaly type, output an anomaly alarm message; Matching the target hard disk configuration information with the set of pre-stored hard disk partition mapping relationships in the dynamic partition data storage module includes: The data comparison module is used to match the target hard disk configuration information with the set of pre-stored hard disk partition mapping relationships in the dynamic partition data storage module; Also includes: The event of a hard disk partition mapping relationship failure due to a missing hard disk partition mapping relationship is recorded based on the hard disk partition mapping relationship missing prompt information. When the probability of a hard disk partition mapping relationship failure due to a similar hard disk configuration information reaches a preset value, the hard disk partition mapping relationship set is adjusted according to the similar hard disk configuration information.

2. The hard disk partitioning method according to claim 1, characterized in that, Based on the matched anomaly type, output anomaly alarm information, including: When the matching anomaly type is incorrect data format, an error data format alarm message is output.

3. The hard disk partitioning method according to claim 1, characterized in that, Based on the matched anomaly type, output anomaly alarm information, including: When the matching exception type is that the target hard disk partition mapping relationship is not included in the set of hard disk partition mapping relationships, a hard disk partition mapping relationship missing prompt message is output.

4. A hard disk partitioning device, characterized in that, include: The hard drive configuration information acquisition module is used to acquire the target hard drive configuration information of the target pre-installed computer. The mapping relationship matching module is used to match the target hard disk configuration information with the set of hard disk partition mapping relationships pre-stored in the dynamic partition data storage module; wherein, the dynamic partition data storage module stores the hard disk partition mapping relationship between each hard disk configuration information and each hard disk partition division array; The hard disk partitioning module is used to partition the target pre-installed computer according to the target hard disk partitioning array in the target hard disk partitioning relationship when a target hard disk partitioning relationship corresponding to the target hard disk configuration information is matched from the set of hard disk partitioning relationships. The hard drive configuration information acquisition module is specifically a module that uses the hard drive configuration detection module to obtain the target hard drive configuration information of the target pre-installed computer; wherein, the hard drive configuration detection module is a module created based on the data capture and transmission characteristics of the operating system's pre-installed partition interface; The hard disk partitioning module is specifically designed to partition the hard disk of a target pre-installed computer based on the Scalable Firmware Interface partition size, boot partition size, root partition size, backup and restore partition size, and data partition size contained in the target hard disk partitioning array. Also includes: The matching anomaly type determination module is used to determine the matching anomaly type when, after matching the target hard disk configuration information with the set of pre-stored hard disk partition mapping relationships in the dynamic partition data storage module, no target hard disk partition mapping relationship corresponding to the target hard disk configuration information is found in the set of hard disk partition mapping relationships. The abnormal alarm information output module is used to output abnormal alarm information according to the matched abnormal type; Also includes: The set adjustment module is used to record events where hard disk partition mapping relationship matching fails due to missing hard disk partition mapping relationship prompt information. When the probability of hard disk partition mapping relationship matching failure in similar hard disk configuration information reaches a preset value, the set of hard disk partition mapping relationships is adjusted according to the similar hard disk configuration information.

5. A hard disk partitioning device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the hard disk partitioning method as described in any one of claims 1 to 3 when executing the computer program.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the hard disk partitioning method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method and device for installing operating system

    CN114579148A

  • Method and device for starting operating system and computing equipment

    CN118939325A