CN115639967A - System backup and recovery tool deployment method and system recovery method - Google Patents

System backup and recovery tool deployment method and system recovery method Download PDF

Info

Publication number
CN115639967A
CN115639967A CN202211407958.3A CN202211407958A CN115639967A CN 115639967 A CN115639967 A CN 115639967A CN 202211407958 A CN202211407958 A CN 202211407958A CN 115639967 A CN115639967 A CN 115639967A
Authority
CN
China
Prior art keywords
partition
hidden partition
ssd
hidden
recovery tool
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211407958.3A
Other languages
Chinese (zh)
Inventor
和志华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Kaitian Technology Co Ltd
Original Assignee
Lenovo Kaitian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Kaitian Technology Co Ltd filed Critical Lenovo Kaitian Technology Co Ltd
Priority to CN202211407958.3A priority Critical patent/CN115639967A/en
Publication of CN115639967A publication Critical patent/CN115639967A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a system backup and recovery tool deployment method and a system recovery method. The method comprises the following steps: configuring a hidden partition of the SSD; deploying an operating system backup recovery tool in a hidden partition of the SSD; the visible state of the hidden partition is set based on the running state of the system backup recovery tool. The configuring the hidden partition of the SSD comprises: setting an SSD hidden partition capacity instruction and delimiting the hidden partition capacity; and executing an SSD hidden partition opening instruction, and setting the hidden partition to be in a visible state. The system backup and recovery tool deployment method and the system recovery method provided by the technical scheme use a general partition dividing tool, and a hidden partition operation tool program does not need to be developed independently; the creation of a file system of the hidden partition can be completed, and an operating system backup recovery tool is installed and deployed in the hidden partition; and executing a system backup and recovery tool deployed in the hidden partition to backup or recover the non-hidden partition without influencing the function of the hidden partition.

Description

System backup and recovery tool deployment method and system recovery method
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a system backup and recovery tool deployment method and a system recovery method.
Background
The function of hiding part of LBAs can be achieved on the SSD hard disk in a mode similar to HPA of HD, so that a hidden partition on the SSD hard disk is formed. After the part of storage space is divided, the part of storage space is invisible to upper layer software such as a general BIOS (basic input output System), an operating system and the like, so that the purposes of hiding and data protection are realized, and theoretically, viruses can be prevented, and data of the storage equipment which is stolen can be prevented from being illegally accessed or lost.
In order to make the most of the value of the SSD hidden partition, the part of the storage space can be used as a backup for important data of a user, or some special application programs can be installed, and even a light-weight operating system can be arranged in the hidden partition. Therefore, the use scene of the SSD hidden partition in the common computer can be greatly expanded, and larger use space and possibility are provided for users.
In addition to storing data in the hidden partition, an operating system may be installed and deployed within the non-hidden partition and the hidden partition, respectively. Under normal conditions, a client can normally start and use an operating system on the SSD; in the event that the operating system of the non-hidden partition crashes or otherwise requires maintenance, the operating system within the hidden partition may be launched and used to perform maintenance or upgrade on the computer.
Especially, the operating system in the SSD non-hidden partition cannot be used due to improper operation, system upgrade, abnormal operation of the device driver, and the like, and needs to be restored to the previous normal boot state when the reset operation such as restart cannot effectively solve the problem.
However, with the full-disk formatting, the tools that are shipped and deployed on the hard disk partitions are also erased after the system is reinstalled, and the tools cannot be used naturally when the system is abnormal.
With the hidden partition of the SSD, the tool can be started by deploying the backup recovery tool into the hidden partition of the SSD and opening the hidden partition when needed, so that the tool can be maintained more efficiently and safely.
There is no suitable way to deploy and run a backup recovery tool within the SSD hidden partition.
Disclosure of Invention
In view of the foregoing problems in the prior art, an embodiment of the present invention is to provide a system backup and restore tool deployment method and a system backup and restore method.
The technical scheme adopted by the embodiment of the invention is a system backup recovery tool deployment method, which comprises the following steps:
configuring a hidden partition of the SSD;
deploying an operating system backup recovery tool in a hidden partition of the SSD;
the visible state of the hidden partition is set based on the running state of the system backup recovery tool.
Further, the configuring the hidden partition of the SSD includes:
setting an SSD hidden partition capacity instruction and delimiting the hidden partition capacity; and executing an SSD hidden partition opening instruction, and setting the hidden partition to be in a visible state.
Further, the configuring the hidden partition of the SSD further includes:
recording the number of SSD LBAs which can be normally accessed; a starting LBA value appropriate for the hidden partition dividing partition is set.
Further, the setting of the starting LBA value suitable for the hidden partition dividing partition includes:
and shifting the recorded SSD maximum LBA number which can be normally accessed backwards by a set number LBA as the starting LBA value of the hidden partition dividing partition.
Further, the deploying the operating system backup recovery tool in the hidden partition of the SSD includes:
installing and deploying an operating system backup recovery tool into a configured hidden partition of the SSD;
integrating non-hidden partition GPT partition information and hidden partition GPT partition information, and storing GPT partition table backup information at the tail of an SSD disk;
the hidden partition is set to an invisible state.
Further, the setting the visible state of the hidden partition based on the running state of the system backup recovery tool includes:
when a backup recovery tool needs to be executed, setting the hidden partition to be in a visible state;
and when the backup recovery tool is finished executing, setting the hidden partition to be in an invisible state.
The technical scheme adopted by the embodiment of the invention is a method for restoring a system, which comprises the following steps:
deploying the system backup recovery tool by using the system backup recovery tool deployment method;
a system backup recovery tool is used for backing up the system, and a system mirror image is backed up and stored;
and restoring the backed-up system image to the system by using a system backup restoration tool.
Further, the backing up the system by using the system backup recovery tool includes:
starting up a BIOS;
setting the SSD hidden partition to be in a visible state;
calling a GPT partition information adjusting program, and importing partition table information containing hidden partition information into an SSD head;
reloading the GPT partition information;
and booting the system backup recovery tool, backing up the operating system in the SSD non-hidden partition by using the backup function of the system backup recovery tool, and storing the backed-up system mirror image.
Further, the restoring the backed-up system image to the system by using the system backup restoring tool includes:
starting up a BIOS;
setting the SSD hidden partition to be in a visible state;
calling a GPT partition information adjusting program, and importing partition table information containing hidden partition information into an SSD head;
reloading the GPT partition information;
the system backup recovery tool is booted and restored to the SSD non-hidden partition by using the recovery function of the system backup recovery tool;
restarting, starting the BIOS, and setting the SSD hidden partition to be in an invisible state;
and calling a GPT partition information adjusting program, and importing the partition table information which does not contain the hidden partition information into the SSD head.
Compared with the prior art, the system backup recovery tool deployment method and the system recovery method provided by the technical scheme use a general partition dividing tool, and a hidden partition operation tool program does not need to be developed independently; the creation of a file system of the hidden partition can be completed, and an operating system backup recovery tool is installed and deployed in the hidden partition; and executing a system backup recovery tool deployed in the hidden partition to backup or recover the non-hidden partition without influencing the function of the hidden partition.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention.
The summary of various implementations or examples of the technology described in this disclosure is not a comprehensive disclosure of the full scope or all features of the disclosed technology.
Drawings
In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views. Like reference numerals having letter suffixes or different letter suffixes may represent different instances of similar components. The drawings illustrate various embodiments, by way of example and not by way of limitation, and together with the description and claims, serve to explain the inventive embodiments. The same reference numbers will be used throughout the drawings to refer to the same or like parts, where appropriate. Such embodiments are illustrative, and are not intended to be exhaustive or exclusive embodiments of the present apparatus or method.
Fig. 1 is a related flow chart of the embodiment of the invention.
FIG. 2 is a schematic diagram of an embodiment of the present invention.
FIG. 3 is a schematic diagram of another embodiment of the present invention.
Detailed Description
In order to make the objects, 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 drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without any inventive step, are within the scope of protection of the invention.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used only to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
To maintain the following description of the embodiments of the present invention clear and concise, a detailed description of known functions and known components of the invention have been omitted.
Referring to fig. 1, an embodiment of the present invention provides a system backup recovery tool deployment method, including:
configuring a hidden partition of the SSD;
the configuring the hidden partition of the SSD comprises:
setting an SSD hidden partition capacity instruction, and delimiting the hidden partition capacity; executing an SSD hidden partition opening instruction, and setting a hidden partition to be in a visible state;
further comprising:
recording the number of SSD LBAs which can be normally accessed; setting a starting LBA value suitable for the hidden partition dividing partition;
the setting of the starting LBA value appropriate for the hidden partition dividing partition includes:
and shifting the recorded SSD maximum LBA number which can be normally accessed backwards by a set number LBA as the starting LBA value of the hidden partition dividing partition.
Deploying an operating system backup recovery tool in a hidden partition of the SSD;
the method comprises the following steps:
installing and deploying an operating system backup recovery tool into a configured hidden partition of the SSD;
integrating non-hidden partition GPT partition information and hidden partition GPT partition information, and storing GPT partition table backup information at the tail of an SSD disk;
the hidden partition is set to an invisible state.
Setting a visible state of the hidden partition based on the running state of the system backup recovery tool;
the method comprises the following steps:
when a backup recovery tool needs to be executed, setting the hidden partition to be in a visible state;
and when the backup recovery tool is finished executing, setting the hidden partition to be in an invisible state.
The traditional hidden partition layout mode:
such as EFI system partitioning, can be viewed on the disk manager of a Windows system or the DiskGenius tool of a Livecd system. So that the partition can be deleted, formatted and the like.
The firmware layer hidden partition related by the method is characterized in that the NVMe SSD firmware layer hidden partition can not be checked and operated in BIOS and an operating system by default, and programs, data and the hidden partition which are deployed in the hidden partition can not be damaged. Such hidden partitions are more robust and robust.
The operation mode and read-write operation of the hidden partition are completely different from those of the common hidden partition, and the hidden partition needs to be set to be visible and operable through a special instruction.
The deployment method of the system backup recovery tool provided by the technical scheme aims to solve the problem that a special application program, namely an operating system backup recovery tool, is deployed and used in a special firmware layer hidden partition of an NVMe SSD.
The specific implementation steps are as follows, optional steps (1) to (11):
(1) Executing an SSD hidden partition capacity setting instruction formulated according to a standard NVMe protocol, and delimiting hidden partition capacity with a specific size;
(2) Restarting the computer, and starting a livecd system to record the maximum LBA number of the SSD which can be normally accessed after dividing the capacity of the hidden partition;
(3) Executing an SSD hidden partition opening instruction formulated according to a standard NVMe protocol, and setting a hidden partition to be in a visible state;
(4) Shifting a certain number of LBAs backwards by the maximum number of the normally accessible SSD LBAs recorded in the step (2) to serve as the starting LBA value of the hidden partition dividing partition;
(5) Starting the LBA of the hidden partition set in the step (4), and dividing the whole hidden partition into a plurality of partitions according to the needs;
(6) Deploying an operating system backup recovery tool installation into the partition created in step (5);
(7) Integrating GPT partition information of the non-hidden partition and newly created hidden partition information, and storing GPT partition table backup information at the tail of the SSD disk
(8) Executing an SSD hidden partition closing instruction formulated according to a standard NVMe protocol, and setting a hidden partition to be in an invisible state;
(9) When the backup recovery tool needs to be executed, executing an SSD hidden partition instruction to set the hidden partition to be in a visible state, adjusting GPT backup partition table information at the tail part of the SSD to the head part of the SSD, and reloading the partition table;
(10) Accessing the file system of the hidden partition by using the adjusted GPT partition table, and executing a system backup recovery tool deployed in the hidden partition;
(11) And performing system backup or system recovery on the non-hidden partition by using a system backup recovery tool.
According to the UEFI (unified extensible firmware interface) protocol requirement, when partitioning is performed in a GPT manner, the backup information of the current partition table is stored in 33 LBAs (GUID disk partition tables) at the end of the SSD. I.e., the last 33 LBAs cannot be included in a partition of ordinary user data, the partitioning tools of various operating systems will comply with this protocol requirement.
However, when an NVMe (non-volatile memory host controller interface specification) SSD specification command is executed and the SSD hidden area is set to the visible state, the NVMe SSD firmware program reports all LBAs in the hidden area, and the LBAs in the hidden area are numerically consecutive to the LBAs in the non-hidden area. When the partition tool of each operating system is executed again at this time, the partition tool may identify the location at the end of the hidden area where the GPT partition table backup information is stored for the disk.
Therefore, the last 33 LBAs of the previous non-hidden area are used as normal data areas, so the method needs to adjust the offset of the starting LBA of the hidden area partitioning file system, i.e., "step (4)" of the method.
The operating system backup recovery tool deployed in the hidden area can be a cut and customized Windows system or Linux system and is matched with an automatically executed backup recovery tool; or a system recovery tool based on UEFI shell environment at BIOS level. If the system is a cut Windows or linux system, the system kernel can be guided through Grub (global unique identifier), and then the backup recovery tool is automatically executed; if the BIOS level is based on UEFI shell, the execution tool can be directly guided through Grub.
However, in any type of backup recovery tool, before execution, an SSD hidden area opening instruction formulated according to the standard NVMe protocol needs to be executed, the hidden area is set to be in a visible state, and GPT partition table information is adjusted.
Referring to fig. 2 to 3, an embodiment of the present invention provides a method for restoring a system, including:
deploying the system backup recovery tool by using the system backup recovery tool deployment method;
a system backup recovery tool is used for backing up the system, and a system mirror image is backed up and stored;
and restoring the backed-up system image to the system by using a system backup restoration tool.
Referring to fig. 2, in particular, in some embodiments, the backing up the system by using the system backup recovery tool includes:
starting up a BIOS;
setting the SSD hidden partition to be in a visible state;
calling a GPT partition information adjusting program, and importing partition table information containing hidden partition information into an SSD head;
reloading the GPT partition information;
and booting the system backup recovery tool, backing up the operating system in the SSD non-hidden partition by using the backup function of the system backup recovery tool, and storing the backed-up system mirror image.
Referring to fig. 3, in particular, in some embodiments, the restoring the backed-up system image to the system by using the system backup restoring tool includes:
starting up a BIOS;
setting the SSD hidden partition to be in a visible state;
calling a GPT partition information adjusting program, and leading partition table information containing hidden partition information into an SSD head;
reloading the GPT partition information;
the system backup recovery tool is booted and restored to the SSD non-hidden partition by using the recovery function of the system backup recovery tool;
restarting, starting the BIOS, and setting the SSD hidden partition to be in an invisible state;
and calling a GPT partition information adjusting program, and importing the partition table information which does not contain the hidden partition information into the SSD head.
Before the backup or recovery function is executed, an SSD hidden area opening instruction formulated according to a standard NVMe protocol needs to be executed, the hidden area is set to be in a visible state, and GPT partition table information is adjusted.
The above description is intended to be illustrative, and not restrictive, and variations, modifications, substitutions, and alterations may be made to the above-described embodiments by those of ordinary skill in the art within the scope of the present disclosure. Also, the above-described examples (or one or more versions thereof) may be used in combination with each other, and it is contemplated that the embodiments may be combined with each other in various combinations or permutations.

Claims (9)

1. A system backup and recovery tool deployment method is characterized by comprising the following steps:
configuring a hidden partition of the SSD;
deploying an operating system backup recovery tool in a hidden partition of the SSD;
the visible state of the hidden partition is set based on the running state of the system backup recovery tool.
2. The method of claim 1, wherein configuring the hidden partition of the SSD comprises:
setting an SSD hidden partition capacity instruction and delimiting the hidden partition capacity; and executing an SSD hidden partition opening instruction, and setting the hidden partition to be in a visible state.
3. The system backup recovery tool deployment method of claim 2, wherein the configuring the hidden partition of the SSD further comprises:
recording the number of SSD LBAs which can be normally accessed; a starting LBA value appropriate for the hidden partition dividing partition is set.
4. The method of claim 3, wherein the setting the starting LBA value appropriate for the hidden partition partitioning comprises:
and shifting the recorded SSD maximum LBA number which can be normally accessed backwards by a set number LBA as the starting LBA value of the hidden partition dividing partition.
5. The deployment method of the system backup recovery tool according to claim 3, wherein the deploying the operating system backup recovery tool in the hidden partition of the SSD comprises:
installing and deploying an operating system backup recovery tool into a configured hidden partition of the SSD;
integrating non-hidden partition GPT partition information and hidden partition GPT partition information, and storing GPT partition table backup information at the tail of an SSD;
the hidden partition is set to an invisible state.
6. The system backup recovery tool deployment method of claim 5, wherein the setting the visible state of the hidden partition based on the running state of the system backup recovery tool comprises:
when a backup recovery tool needs to be executed, setting the hidden partition to be in a visible state;
and when the backup recovery tool is finished executing, setting the hidden partition to be in an invisible state.
7. A method of restoring a system, comprising:
deploying a system backup and recovery tool by using a system backup and recovery tool deployment method according to any one of claims 1 to 6;
a system backup recovery tool is used for backing up the system, and a system mirror image is backed up and stored;
and restoring the backed-up system image to the system by using a system backup restoration tool.
8. The method of restoring a system according to claim 7, wherein said backing up the system using a system backup restore tool comprises:
starting up a BIOS;
setting the SSD hidden partition to be in a visible state;
calling a GPT partition information adjusting program, and importing partition table information containing hidden partition information into an SSD head;
reloading the GPT partition information;
and guiding to start the system backup and recovery tool, backing up the operating system in the SSD non-hidden partition by using the backup function of the system backup and recovery tool, and storing the backed-up system image.
9. The method of any one of claims 7 and 8, wherein said using a system backup restore tool to restore a backed up system image to a system comprises:
starting up a BIOS;
setting the SSD hidden partition to be in a visible state;
calling a GPT partition information adjusting program, and importing partition table information containing hidden partition information into an SSD head;
reloading the GPT partition information;
the system backup recovery tool is booted and restored to the SSD non-hidden partition by using the recovery function of the system backup recovery tool;
restarting, starting the BIOS, and setting the SSD hidden partition to be in an invisible state;
and calling a GPT partition information adjusting program, and importing the partition table information which does not contain the hidden partition information into the SSD head.
CN202211407958.3A 2022-11-10 2022-11-10 System backup and recovery tool deployment method and system recovery method Pending CN115639967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211407958.3A CN115639967A (en) 2022-11-10 2022-11-10 System backup and recovery tool deployment method and system recovery method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211407958.3A CN115639967A (en) 2022-11-10 2022-11-10 System backup and recovery tool deployment method and system recovery method

Publications (1)

Publication Number Publication Date
CN115639967A true CN115639967A (en) 2023-01-24

Family

ID=84949680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211407958.3A Pending CN115639967A (en) 2022-11-10 2022-11-10 System backup and recovery tool deployment method and system recovery method

Country Status (1)

Country Link
CN (1) CN115639967A (en)

Similar Documents

Publication Publication Date Title
KR101115486B1 (en) Apparatus and method for controlling booting of computer system
US6820214B1 (en) Automated system recovery via backup and restoration of system state
US6851073B1 (en) Extensible system recovery architecture
US7111203B2 (en) Method for implementing data backup and recovery in computer hard disk
US7366887B2 (en) System and method for loading programs from HDD independent of operating system
US6167494A (en) Method and system for recovering from operating system failure
US7401249B2 (en) Method for backing up and recovering data in a hard disk
US20040172578A1 (en) Method and system of operating system recovery
US20080155216A1 (en) Protection and Recovery System for Automatic Disk Recovery
US7000231B1 (en) Method of manufacturing operating system master template, method of manufacturing a computer entity and product resulting therefrom, and method of producing a production version of an operating system
US9239725B2 (en) System and method for installing an OS via a network card supporting PXE
EP3769224B1 (en) Configurable recovery states
US7007195B2 (en) BIOS shadowed small-print hard disk drive as robust, always on, backup for hard disk image & software failure
CN101183324A (en) Recovery method of computer system
CN105138431A (en) Linux system back-up and restoring method
US20100037092A1 (en) System and method for backup, reboot, and recovery
CN111258666A (en) Reading method and device of computer file, computer system and storage medium
CN101246458A (en) Hard disk data protection method and system
US8370612B2 (en) Computer system with built-in hidden two operating devices
EP3769225B1 (en) Free space pass-through
CN115639967A (en) System backup and recovery tool deployment method and system recovery method
US20160004607A1 (en) Information processing apparatus and information processing method
KR20050032902A (en) Data backup and recovery method
CN102681859A (en) Method for starting Windows operation systems from USB (universal serial bus) mass storage device
CN100392593C (en) Method for protecting hard disk last partition

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination