UEFI (Unified Extensible Firmware Interface)-based backup and one-key startup item guiding method

A startup item and backup technology, applied in the direction of boot program, program loading/starting, error detection of redundant data in operation, etc., can solve problems such as lack of system backup, reduce the difficulty of use, avoid data leakage, Simple to use effects

Pending Publication Date: 2022-03-11
成都傲梅科技有限公司
0 Cites 0 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a UEFI-based backup and a method for one-key boot startup items, to solve the problem of the lack of...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Abstract

The invention discloses a UEFI (Unified Extensible Firmware Interface)-based backup method. The UEFI-based backup method comprises the following steps of: judging a system; a system partition detection step; a recovery partition detection step; a recovery partition capacity judgment step; a file moving step; a one-key guide creation step; a one-key guide configuration step; and a one-key guide adjustment step. According to the method and the device, the operating system of the user is backed up to the self-defined recovery environment, and the user is guided to enter the recovery environment in a one-key manner through the one-key recovery method provided by the invention, so that the user can conveniently and quickly recover the system to the optimal state.

Application Domain

Technology Topic

Key recoveryUnified Extensible Firmware Interface +4

Image

  • UEFI (Unified Extensible Firmware Interface)-based backup and one-key startup item guiding method
  • UEFI (Unified Extensible Firmware Interface)-based backup and one-key startup item guiding method
  • UEFI (Unified Extensible Firmware Interface)-based backup and one-key startup item guiding method

Examples

  • Experimental program(4)

Example Embodiment

[0055] Example one
[0056] Such as figure 1 The UEFI-based backup method includes the following steps:
[0057] System judgment step: By calling NTQuerySystemInformation and obtains the boot type of the current system via the SystemBootenvironmentInformationInformation search, determine if the current system supports UEFI boot; if so, continue, if not, end;
[0058] System Partition Detection step: The SYSTEM partition of the current system is detected. If the head disk of the current system is detected is a GPT disk, and the flag of the current system partition the flag of the current system partition EFI partition, the symbolic link of the partition is retained; if No, the end;
[0059] Recovery Partition Detection Procedure: Check if the disk where the current operating system is located exists, if there is, the next step is performed, if there is no existence, restore the recovery partition according to the location specified by the user;
[0060] Recovery Partition Capacity Judgment Step: Determines whether the recovery partition capacity existing on the disk where the current operating system is located, if so, do not adjust, if not, then re-create the partition according to the location specified by the user;
[0061] File Movement Steps: Copy the WIM file, boot file, and configuration file to the restore partition;
[0062] One-click guidance creation step: Create a boot item for one-button boot in the BIOS of the UEFI;
[0063] One-button boot configuration step: Configure a key boot to create the boot item created in the step;
[0064] One key guidance adjustment step: adjust the order of the boot item that is configured in the one-click guidance configuration step to the first item of the boot; direct the backup by one-click guidance;
[0065] In a key guidance creation step, the boot management of UEFI is done through GetFirmwarevironmentVariableEx, GetFirmwarevironmentVariableEx, setFirmwarevironmentVariableEx, setFirmwarevironmentVariableEx.
[0066] In the recovery partition detection step, the specific steps to create a recovery partition are:
[0067] Restore Partition Judgment Steps: Does the user choose to create a recovery partition, if yes, then adjust the partition and create a recovery partition according to the location specified by the user, if not, store the system backup the mirror file in the user designated position;
[0068] System Backup Steps: Perform system backups according to the location specified by the user;
[0069] Boot item Creation Steps: After the backup is complete, create a UEFI boot item, end.
[0070] In the one-click guidance creation step, the creation of the boot item is:
[0071] Get boot configuration steps: First, call GetFirmwareEnvironmentVariable to get all boot configurations of the current UEFI;
[0072] Create a boot configuration step: Determine if the current UEFI exists, if yes, then delete the existing boot item and recreate a boot item, if not, create a boot item directly.
[0073] In the one-button boot configuration step, the configuration boot item is specifically operated:
[0074] Get the boot step: Get the boot item created in a one-click boot creation step by getFirmwareEnvironmentvirIable;
[0075] Configuration Booting Steps: Fill in the data structure of the boot item created in a one-click boot creating step to complete the configuration.
[0076] In the configuration guidance step, the partition identifier includes a partition number where the partition is located, the originating position of the partition, the size of the partition, the partitioning GUID, the type of partition, the signature of the partition.
[0077] In the one-button guidance adjustment step, the adjustment boot item is specifically:
[0078] Call Boot Configuration Steps: Call GetFirmwareEnvironmentVariable Get all boot item configurations of the current UEFI;
[0079] Judgment Boot Configuration Steps: Determining if the created boot item is the first item configured for all boot items, if so, do not process, if not, jump to step;
[0080] Adjust the boot configuration step: Turn the bootorder0001 after the boot item again to call SETFIRMWAREENVIRONMENTVARIABLE to write it back.
[0081] A method of guiding the start item, the one-button guidance comprises the following steps:
[0082] Information Getting Procedure: Read the OneKeyeficonfig.dat file to get the configuration of display information, delay information, and button;
[0083] Information Display Procedure: Displays information in the configuration file and waits according to delay information;
[0084] Loading judgment step: Determine if the user presses the corresponding button; if yes, load the WIM file, enter the recovery environment; if the timeout does not press the corresponding button, load the boot × 64.efi file startup system; after completion.
[0085] In the load determination step, the specific call is:
[0086] If the user presses the corresponding button:
[0087] BootDevpath = fileDevicePath (Handlebuf [i], (char16 *) l * # * \\ efi \\ boot \\ AneyIpeldr.efi * # *);
[0088] Status = GBS-> LoadImage (True, ImageHandle, BootDevpath, Null, 0, & Hoskernel);
[0089] Loading the AneyLDr.EFI boot loaded by the restoration environment;
[0090] If the timeout is called:
[0091] STRCPY (filename, (char16 *) l * # * \\ efi \\ boot \\ bootx64.efi * # *);
[0092] BootDevpath = FileDevicePath (loadedImage-> devicehandle, filename);
[0093] Status = GBS-> LoadImage (True, ImageHandle, BootDevpath, Null, 0, & Hoskernel); Used to load bootx64.efi program;
[0094] Call if the call failed:
[0095] Strcpy (filename, (char16 *) l * # * \\ efi \\ mircosoft \\ boot \\ bootmgfw.efi * # *);
[0096] BootDevpath = FileDevicePath (loadedImage-> devicehandle, filename);
[0097] Status = GBS-> LoadImage (True, ImageHandle, BootDevpath, Null, 0, & Hoskernel), is used to load the bootmgfw.efi program.
[0098] Aomeipeldr.efi Get / Conin / ReadKeystroke provided by calling EFISDK; gets the user's button information.

Example Embodiment

[0099] Example 2
[0100] In the present invention, the specific implementation steps are: a) Check if the current system supports the UEFI boot, if not support, enter the one-button boot process of the Legacy, if the current system is detected, the head disk is a GPT disk, and the current system The sign of the partition is the flag of the EFI partition, saving the symbolic link of the partition.
[0101] b) Check if there is a recovery partition where the disk where the current operating system is located. If you do not create it, it is necessary to detect whether the disk where the current operating system is located. If you have the condition that the restoration partition is required, if not, you need to adjust the current disk user specified to a partition specified by the current disk user. Create a restore partition after size; if there is a recovery partition capacity on the disk where the current operating system is located enough to save the system backup mirror files, if the current recovery is not enough, it is not enough to store the mirror file of the system backup, you need to specify the location And recreate the restore partition, and the program can automatically expand the restore partition after the size of the adjacent partition is adjusted according to the location of the recovery partition. Users can also choose to back up the mirror file to the data partition, so you don't need to create a separate recovery partition.
[0102] Program copying WIM files, boot files, and configuration files to recovery environments, the main files and directory structures are as follows:
[0103]
[0104]
[0105]
[0106] Amieipeldr.efi is an autonomously developed EFI program, which is used to load the WIM file in the restore partition. The boot.wim file is an independent custom Windows PE, which contains AneyEion Recovery Application for the operation system restore function, Bootmgr .efi is the operating system comes with the system.
[0107] c) After creating a need to create a good environment to be more in the UEFI BIOS for a key to boot startup items, mainly under the Windows operating system to manage the UEFI boot by GetFirmwareEnvironmentVariable, GetFirmwareEnvironmentVariableEx and SetFirmwareEnvironmentVariable, SetFirmwareEnvironmentVariableEx four API, will first Call GetFirmwareEnvironmentvariable Get all boot configurations of the current UEFI, if you already have your own boot item, then delete, create; if you don't exist, create a boot item directly.
[0108]d) After the boot item is created, you need to configure this boot item, the configuration is to let this boot item can identify the resume partition and load the boot file aneylerdr.efi file, and also get the created boot item through GetFirmwarevironmentVariable, and data on the boot item In the structure, the partition number, the origin of the partition, the start position of the partition, the size of the partition, the partitioned GUID, the type of partition, the signature of the partition, and more. The data structure is as follows:
[0109]
[0110]
[0111] The creation of the boot item is completed in the boot configuration of the modified boot item to the UEFI by calling setFirmwareEnvironmentVariable.
[0112] e) Finally, it also needs to adjust the order of the boot item to the first item of the boot to ensure that each boot will load this startup item, the change of the boot item is also called GetFirmware AirOnmentVariable to get all the boot item configuration of the current UEFI. If the boot item is the first item, it does not process. If it is not the first item, it is necessary to adjust its boot configuration. You need to call the bootorder0001 of the boot item to call SetFirmwarevironmentVariable to write it back.

Example Embodiment

[0113] Example three
[0114] This example is further refinered in Example 2. The specific process of one-button guidance is: 1, according to the above steps, BIOS has been able to properly load the AneyLDr.efi program. It is mainly responsible for two things in AneyLDr.efi: 1, load the WIM file, start the recovery environment; 2. Load the current system Bootmgr.efi program, start the current system;
[0115] 2. When the BIOS loads AneyLDr.efi successfully, Aomeipeldr.efi reads the oneKeyeficonfig.dat file to read display information, delay information, and button configuration. AneyLDr.efi will display relevant information according to display information, delay information display information On the screen, if the user presses the corresponding button within the delay, enter the recovery environment, if the timeout does not press the corresponding button to boot the current operating system.
[0116] 3, Aomeipeldr.efi By calling Efisdk GST-> Conin-> ReadKeystroke (GST-> Conin, & Key), get the user's button information, if the user presses the corresponding button:
[0117] BootDevpath = fileDevicePath (Handlebuf [i], (char16 *) l * # * \\ efi \\ boot \\ AneyIpeldr.efi * # *);
[0118] Status = GBS-> LoadImage (True, ImageHandle, BootDevpath, Null, 0, & Hoskernel).
[0119] Loading the restore environment AneyLDr.efi boot loaded WIM file:
[0120] If the timeout is called:
[0121] STRCPY (filename, (char16 *) l * # * \\ efi \\ boot \\ bootx64.efi * # *);
[0122] BootDevpath = FileDevicePath (loadedImage-> devicehandle, filename);
[0123] Status = GBS-> LoadImage (True, ImageHandle, BootDevpath, Null, 0, & Hoskernel);
[0124] Call if the call failed:
[0125] Strcpy (filename, (char16 *) l * # * \\ efi \\ mircosoft \\ boot \\ bootmgfw.efi * # *);
[0126] BootDevpath = FileDevicePath (loadedImage-> devicehandle, filename);
[0127] Status = GBS-> LoadImage (True, ImageHandle, BootDevpath, Null, 0, & Hoskernel);
[0128] At this point, the above is a full process of a method based on a UEFI backup and a one-button boot start term.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Decentralization-based mobile hard disk encryption and decryption method and system

ActiveCN106980580APrevent Data LeakageUnauthorized memory use protectionDigital data authenticationDisk encryptionDisk loading
Owner:宁夏凯速德科技有限公司

Classification and recommendation of technical efficacy words

  • Prevent Data Leakage
  • Easy to operate

Method and apparatus for dynamically regulating visual angle of screen

ActiveCN101488326APrevent Data LeakageImprove convenienceCathode-ray tube indicatorsInstrumental componentsVisual rangeScreen viewing
Owner:HTC CORP

Secure storage device

ActiveCN104239820AAchieve securityPrevent Data LeakageInternal/peripheral component protectionLocal machineComputer hardware
Owner:POTEVIO INFORMATION TECH

Protection method and device for executable programs

ActiveCN103488919APrevent memory dumpsPrevent Data LeakageProgram/content distribution protectionData informationExecutable
Owner:BEIJING SENSESHIELD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products