A system backup recovery tool deployment method and a recovery system method
By configuring and managing backup and recovery tools within the hidden partition of an SSD, the problem of the inability to efficiently and securely restore the operating system of a non-hidden partition in existing technologies is solved, enabling tool deployment and system recovery within the hidden partition.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 联想开天科技有限公司
- Filing Date
- 2022-11-10
- Publication Date
- 2026-04-24
AI Technical Summary
In the existing technology, there is no suitable method to deploy and run backup and recovery tools in the hidden partition of an SSD, which makes it impossible to efficiently and safely recover when the operating system on the non-hidden partition crashes.
Configure and install the operating system backup and recovery tool in the hidden partition of the SSD, and control its running status by setting the visibility of the hidden partition, and use the standard NVMe protocol for partition management and tool deployment.
It enables efficient and secure deployment and operation of backup and recovery tools within a hidden SSD partition, allowing the hidden partition to be started for system maintenance and recovery when needed, avoiding the instability and data loss associated with external tools.
Smart Images

Figure CN115639967B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer technology, and in particular relates to a method for deploying a system backup and recovery tool and a method for restoring a system. Background Technology
[0002] On an SSD, a method similar to HD's HPA can be used to hide part of the LBA, thus creating a hidden partition on the SSD. Once this storage space is partitioned, it is invisible to general-purpose software such as the BIOS and operating system, achieving the purpose of hiding and data protection. Theoretically, it can also prevent viruses and unauthorized access or loss of data after the storage device is stolen.
[0003] To maximize the value of an SSD's hidden partition, this storage space can be used for backing up important user data, installing special applications, or even a lightweight operating system. This greatly expands the scenarios for using SSD hidden partitions in ordinary computers, giving users greater scope and possibilities.
[0004] Besides storing data in the hidden partition, operating systems can be installed and deployed in both the non-hidden and hidden partitions. Under normal circumstances, customers can boot and use the operating system on the SSD; if the operating system in the non-hidden partition crashes or requires maintenance, the operating system in the hidden partition can be booted and used to maintain or upgrade the computer.
[0005] In particular, when the operating system in the non-hidden partition of an SSD becomes unusable due to improper operation, system upgrade, or abnormal device driver operation, and restarting or resetting cannot effectively solve the problem, the usual practice is to use external recovery tools or recovery tools deployed in a certain partition of the hard drive at the factory to restore or reinstall the operating system.
[0006] However, the tools deployed on the hard drive partition at the factory will be erased during a full disk format and system reinstallation, and will naturally become unusable if abnormalities occur.
[0007] With a hidden partition on the SSD, backup and recovery tools can be deployed to the hidden partition. When needed, the hidden partition can be opened to launch the tool, allowing for more efficient and secure maintenance.
[0008] However, there is currently no suitable method for deploying and running backup and recovery tools within a hidden SSD partition. Summary of the Invention
[0009] In view of the above-mentioned problems existing in the prior art, the purpose of this invention is to provide a system backup and recovery tool deployment method and a system recovery method.
[0010] The technical solution adopted in this embodiment of the invention is a system backup and recovery tool deployment method, including:
[0011] Configure a hidden partition for the SSD;
[0012] Deploy operating system backup and recovery tools within a hidden partition of the SSD;
[0013] The visibility of hidden partitions is set based on the running status of the system backup and recovery tool.
[0014] Furthermore, the configuration of the hidden partition for the SSD includes:
[0015] The command to set the capacity of the hidden SSD partition defines the capacity of the hidden partition; the command to open the hidden SSD partition makes the hidden partition visible.
[0016] Furthermore, the configuration of the hidden partition for the SSD also includes:
[0017] Record the number of SSD LBAs that can be accessed normally; set an appropriate starting LBA value for partitioning the hidden partition.
[0018] Furthermore, the setting of an appropriate starting LBA value for partitioning the hidden partition includes:
[0019] The maximum number of LBAs for normally accessible SSDs is shifted backward by a set number of LBAs to serve as the starting LBA value for partitioning the hidden partition.
[0020] Furthermore, the deployment of the operating system backup and recovery tool within the hidden partition of the SSD includes:
[0021] Install and deploy the operating system backup and recovery tool to the hidden partition of the configured SSD;
[0022] Integrate GPT partition information of non-hidden partitions and GPT partition information of hidden partitions, and save GPT partition table backup information at the end of the SSD disk;
[0023] Set the hidden partition to be invisible.
[0024] Furthermore, the setting of the visibility status of the hidden partition based on the running status of the system backup and recovery tool includes:
[0025] When you need to run backup and restore tools, make the hidden partition visible.
[0026] When the backup and restore tool finishes running, set the hidden partition to an invisible state.
[0027] The technical solution adopted in this embodiment of the invention is a method for restoring a system, including:
[0028] Deploy the system backup and recovery tool using one of the system backup and recovery tool deployment methods described above;
[0029] Use system backup and recovery tools to back up the system and save the backup as a system image;
[0030] Use a system backup and recovery tool to restore the backed-up system image to the system.
[0031] Furthermore, the process of backing up the system using system backup and recovery tools includes:
[0032] Booting from BIOS;
[0033] Make the hidden SSD partition visible;
[0034] Call the GPT partition information adjustment program to import the partition table information, which includes hidden partition information, into the SSD header;
[0035] Reload GPT partition information;
[0036] Boot the system backup and recovery tool, use its backup function to back up the operating system in the non-hidden partition of the SSD, and save the backed-up system image.
[0037] Furthermore, the step of using a system backup and recovery tool to restore the backed-up system image to the system includes:
[0038] Booting from BIOS;
[0039] Make the hidden SSD partition visible;
[0040] Call the GPT partition information adjustment program to import the partition table information, which includes hidden partition information, into the SSD header;
[0041] Reload GPT partition information;
[0042] Boot the system backup and recovery tool, and use its recovery function to restore the saved system image to the non-hidden partition of the SSD;
[0043] Reboot the computer, enter the BIOS, and set the SSD hidden partition to be invisible.
[0044] The program that adjusts GPT partition information is invoked to import partition table information that does not contain hidden partition information into the SSD header.
[0045] Compared with existing technologies, the system backup and recovery tool deployment method and system recovery method proposed in this technical solution use a general partitioning tool, eliminating the need to develop a separate hidden partition operation tool program; it can complete the creation of a hidden partition file system and install and deploy the operating system backup and recovery tool in the hidden partition; the system backup and recovery tool deployed in the hidden partition can be used to back up or restore non-hidden partitions without affecting the function of the hidden partition.
[0046] It should be understood that the foregoing general description and the following detailed description are exemplary and illustrative only, and are not intended to limit the invention.
[0047] The overview of various implementations or examples of the technology described in this invention is not a complete disclosure of the full scope or all features of the disclosed technology. Attached Figure Description
[0048] In drawings that are not necessarily drawn to scale, the same reference numerals may describe similar parts in different views. The same reference numerals with or without letter suffixes may indicate different instances of similar parts. The drawings generally illustrate various embodiments by way of example rather than limitation and, together with the description and claims, serve to explain embodiments of the invention. Where appropriate, the same reference numerals are used in all drawings to refer to the same or similar parts. Such embodiments are illustrative and not intended to be exhaustive or exclusive embodiments of the apparatus or method.
[0049] Figure 1 This is a schematic diagram of the relevant process in an embodiment of the present invention.
[0050] Figure 2 This is a schematic diagram of an embodiment of the present invention.
[0051] Figure 3 This is a schematic diagram of yet another embodiment of the present invention. Detailed Implementation
[0052] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the described embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0053] Unless otherwise defined, the technical or scientific terms used in this invention shall have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," and similar terms used in this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0054] To keep the following description of the embodiments of the present invention clear and concise, detailed descriptions of known functions and known components are omitted.
[0055] See Figure 1 This invention provides a method for deploying a system backup and recovery tool, comprising:
[0056] Configure a hidden partition for the SSD;
[0057] The hidden partition configured for the SSD includes:
[0058] The command to set the capacity of the hidden SSD partition defines the capacity of the hidden partition; the command to open the hidden SSD partition makes the hidden partition visible.
[0059] Also includes:
[0060] Record the number of SSD LBAs that can be accessed normally; set an appropriate starting LBA value for partitioning the hidden partition;
[0061] The appropriate starting LBA values for partitioning the hidden partition include:
[0062] The maximum number of LBAs for normally accessible SSDs is shifted backward by a set number of LBAs to serve as the starting LBA value for partitioning the hidden partition.
[0063] Deploy operating system backup and recovery tools within a hidden partition of the SSD;
[0064] include:
[0065] Install and deploy the operating system backup and recovery tool to the hidden partition of the configured SSD;
[0066] Integrate GPT partition information of non-hidden partitions and GPT partition information of hidden partitions, and save GPT partition table backup information at the end of the SSD disk;
[0067] Set the hidden partition to be invisible.
[0068] The visibility status of hidden partitions is set based on the running status of the system backup and recovery tool;
[0069] include:
[0070] When you need to run backup and restore tools, make the hidden partition visible.
[0071] When the backup and restore tool finishes running, set the hidden partition to an invisible state.
[0072] Traditional hidden partition layout method:
[0073] For example, the EFI system partition can be viewed in Windows Disk Management or the DiskGenius tool in LiveCD. This allows you to perform operations such as deleting and formatting the partition.
[0074] The firmware-layer hidden partitions involved in this method are invisible and inaccessible by default in the BIOS and operating system of NVMe SSDs. Therefore, it is impossible to damage the programs, data, or the hidden partitions themselves deployed within them. These hidden partitions are more robust and stable.
[0075] The operation method and read / write operations of such a hidden partition are completely different from those of a normal hidden partition. Special instructions are required to make the hidden partition visible and operable.
[0076] The proposed system backup and recovery tool deployment method aims to deploy and use a special application—an operating system backup and recovery tool—within the special firmware layer hidden partition of an NVMe SSD.
[0077] The specific implementation steps are as follows: optional steps (1) to (11):
[0078] (1) Execute the command to set the capacity of the hidden partition of the SSD in accordance with the standard NVMe protocol, and allocate the capacity of the hidden partition of a specific size;
[0079] (2) Restart the computer and start the livecd system to record the maximum number of SSD LBAs that can be accessed normally after the hidden partition capacity is allocated.
[0080] (3) Execute the command to open the hidden SSD partition in accordance with the standard NVMe protocol and set the hidden partition to a visible state;
[0081] (4) The maximum number of LBAs of the normally accessible SSD recorded in step (2) is offset by a certain number of LBAs to the end as the starting LBA value for partitioning the hidden partition.
[0082] (5) Starting with the hidden partition partition set in step (4), divide the entire hidden partition into several partitions as needed;
[0083] (6) Install and deploy the operating system backup and recovery tool to the partition created in step (5);
[0084] (7) Integrate the non-hidden GPT partition information and the newly created hidden partition information, and save the GPT partition table backup information at the end of the SSD disk.
[0085] (8) Execute the command to disable the hidden partition of the SSD in accordance with the standard NVMe protocol and set the hidden partition to an invisible state;
[0086] (9) When the backup and recovery tool needs to be executed, execute the SSD hidden partition command to set the hidden partition to a visible state, adjust the GPT backup partition table information at the end of the SSD to the beginning of the SSD, and reload the partition table.
[0087] (10) Using the adjusted GPT partition table, access the hidden partition file system and execute the system backup and recovery tool deployed in the hidden partition;
[0088] (11) Use system backup and recovery tools to perform system backup or system recovery on non-hidden partitions.
[0089] According to the UEFI (Unified Extensible Firmware Interface) protocol, when partitioning using GPT, a backup of the current partition table is stored in the last 33 LBAs (GUID Partition Tables) of the SSD. This means that the last 33 LBAs cannot be included in partitions containing ordinary user data, and partitioning tools for various operating systems must comply with this protocol requirement.
[0090] However, when the NVMe (Non-Volatile Memory Host Controller Interface Specification) SSD specification command is executed to make the SSD's hidden partition visible, the NVMe SSD firmware will report all LBAs within the hidden partition, and the LBAs in the hidden partition are numerically consecutive with those in the non-hidden partition. At this point, when the partitioning tools of various operating systems are executed again, the partitioning tools will identify the end of the hidden partition as the location where the disk stores the GPT partition table backup information.
[0091] Therefore, the last 33 LBAs of the non-hidden area will be used as ordinary data area. So this method needs to adjust the starting LBA of the hidden area partition file system to be offset, which is "step (4)" of this method.
[0092] The operating system backup and recovery tool deployed in the hidden area can be a customized Windows or Linux system, working in conjunction with an automatically executed backup and recovery tool; alternatively, it can be a BIOS-level system recovery tool based on a UEFI shell environment. If it's a customized Windows or Linux system, the system kernel can be booted via Grub (a globally unique identifier), and then the backup and recovery tool can be executed automatically. If it's a BIOS-level UEFI shell system, the tool can be directly booted and executed via Grub.
[0093] However, regardless of the type of backup and recovery tool, before execution, it is necessary to execute the command to open the hidden SSD in accordance with the standard NVMe protocol, set the hidden area to a visible state, and adjust the GPT partition table information.
[0094] See Figures 2 to 3 This invention provides a method for restoring a system, comprising:
[0095] Deploy the system backup and recovery tool using one of the system backup and recovery tool deployment methods described above;
[0096] Use system backup and recovery tools to back up the system and save the backup as a system image;
[0097] Use a system backup and recovery tool to restore the backed-up system image to the system.
[0098] See Figure 2 Specifically, in some embodiments, backing up the system using system backup and recovery tools includes:
[0099] Booting from BIOS;
[0100] Make the hidden SSD partition visible;
[0101] Call the GPT partition information adjustment program to import the partition table information, which includes hidden partition information, into the SSD header;
[0102] Reload GPT partition information;
[0103] Boot the system backup and recovery tool, use its backup function to back up the operating system in the non-hidden partition of the SSD, and save the backed-up system image.
[0104] See Figure 3Specifically, in some embodiments, restoring the backed-up system image to the system using a system backup and recovery tool includes:
[0105] Booting from BIOS;
[0106] Make the hidden SSD partition visible;
[0107] Call the GPT partition information adjustment program to import the partition table information, which includes hidden partition information, into the SSD header;
[0108] Reload GPT partition information;
[0109] Boot the system backup and recovery tool, and use its recovery function to restore the saved system image to the non-hidden partition of the SSD;
[0110] Reboot the computer, enter the BIOS, and set the SSD hidden partition to be invisible.
[0111] The program that adjusts GPT partition information is invoked to import partition table information that does not contain hidden partition information into the SSD header.
[0112] Before performing either backup or restore, it is necessary to execute the command to open the hidden SSD partition in accordance with the standard NVMe protocol, set the hidden partition to be visible, and adjust the GPT partition table information.
[0113] The above description is intended to be illustrative and not restrictive. Those skilled in the art can make variations, modifications, substitutions, and alterations to the above embodiments within the scope of this disclosure. Moreover, the above examples (or one or more of them) can be used in combination with each other, and these embodiments can be combined with each other in various combinations or arrangements.
Claims
1. A method for restoring a system, characterized in that, include: Deploy the system backup and recovery tool using the system backup and recovery tool deployment method; Use system backup and recovery tools to back up the system and save the backup as a system image; Use a system backup and recovery tool to restore the backed-up system image to the system; The process of using the system backup and recovery tool to back up the system includes: booting into the BIOS; setting the hidden partition of the SSD to a visible state; calling the GPT partition information adjustment program to import the partition table information containing the hidden partition information into the SSD header; reloading the GPT partition information; booting the system backup and recovery tool; using the backup function of the system backup and recovery tool to back up the operating system in the non-hidden partition of the SSD; and saving the backed-up system image. The process of using a system backup and recovery tool to restore the backed-up system image to the system includes: booting into the BIOS; setting the hidden SSD partition to a visible state; and calling a program to adjust GPT partition information, importing the partition table information containing the hidden partition information into the SSD header. Reload GPT partition information; boot the system backup and recovery tool, and use the recovery function of the system backup and recovery tool to restore the saved system image to the non-hidden partition of the SSD; restart the computer, start the BIOS, and set the hidden partition of the SSD to an invisible state; call the program to adjust GPT partition information, and import the partition table information that does not contain hidden partition information into the header of the SSD; The system backup and recovery tool deployment method includes: Configure a hidden partition for the SSD; Deploy operating system backup and recovery tools within a hidden partition of the SSD; The visibility of hidden partitions is set based on the running status of the system backup and recovery tool.
2. The method for restoring a system according to claim 1, wherein, The hidden partition configured for the SSD includes: The command to set the capacity of the hidden SSD partition defines the capacity of the hidden partition; the command to open the hidden SSD partition makes the hidden partition visible.
3. The method for restoring a system according to claim 2, wherein, The hidden partition configured for the SSD also includes: Record the number of SSD LBAs that can be accessed normally; set an appropriate starting LBA value for partitioning the hidden partition.
4. The method for restoring a system according to claim 3, wherein, The appropriate starting LBA values for partitioning the hidden partition include: The maximum number of LBAs for normally accessible SSDs is shifted backward by a set number of LBAs, which is used as the starting LBA value for partitioning the hidden partition.
5. A method for restoring a system according to claim 3, wherein, The deployment of the operating system backup and recovery tool within the hidden partition of the SSD includes: Install and deploy the operating system backup and recovery tool to the hidden partition of the configured SSD; Integrate GPT partition information of non-hidden partitions and GPT partition information of hidden partitions, and save GPT partition table backup information at the end of the SSD disk; Set the hidden partition to be invisible.
6. A method for restoring a system according to claim 5, wherein, The setting of the visibility status of the hidden partition based on the running status of the system backup and recovery tool includes: When you need to run backup and restore tools, make the hidden partition visible. When the backup and restore tool finishes running, set the hidden partition to an invisible state.
Citation Information
Patent Citations
File system protection method and device, readable storage medium and electronic equipment
CN114491651A
System starting method and device
CN114816542A