CN114546503A - Hard disk-based booting method and electronic equipment - Google Patents

Hard disk-based booting method and electronic equipment Download PDF

Info

Publication number
CN114546503A
CN114546503A CN202210129866.7A CN202210129866A CN114546503A CN 114546503 A CN114546503 A CN 114546503A CN 202210129866 A CN202210129866 A CN 202210129866A CN 114546503 A CN114546503 A CN 114546503A
Authority
CN
China
Prior art keywords
boot
file
partition
boot partition
hard disk
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
CN202210129866.7A
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 CN202210129866.7A priority Critical patent/CN114546503A/en
Publication of CN114546503A publication Critical patent/CN114546503A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/575Secure boot
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Abstract

The application discloses a hard disk-based booting method and electronic equipment, wherein the method comprises the following steps: acquiring a preset first zone bit in a specific storage space of a memory through a BIOS of the electronic equipment; based on the first flag, finding a first boot partition at a first location in a hard disk of the electronic device; acquiring a first boot file in the first boot partition; finding a second boot partition at a second location in a hard disk of the electronic device based on the first boot file; and booting the electronic equipment to enter an operating system based on the second boot file in the second boot partition. The method can ensure that the electronic equipment can smoothly enter the operating system. The phenomenon that the second boot file cannot be called and the operating system cannot be smoothly accessed due to misoperation or access error and the like is avoided.

Description

Hard disk-based booting method and electronic equipment
Technical Field
The present disclosure relates to the field of booting a hard disk of an electronic device, and more particularly, to a hard disk-based booting method and an electronic device.
Background
A hard disk of an electronic device such as a computer is generally provided with a boot area, and the electronic device can enter an operating system through the boot area. But the boot area is not so secure that it can be easily destroyed, thereby causing the electronic device to be unable to successfully access the operating system. For example, a malfunction may occur when the boot file is directly called from the boot area, or the location of the boot area may be different from the location when it was last accessed, thereby failing to successfully enter the operating system.
Disclosure of Invention
An object of an embodiment of the present application is to provide a hard disk-based booting method, which can ensure that an electronic device smoothly enters an operating system. The phenomenon that the second guide file cannot be called and the operating system cannot be smoothly accessed due to misoperation or access error and the like is avoided.
In order to achieve the object, an embodiment of the present application provides a hard disk-based booting method, including:
acquiring a preset first zone bit in a specific storage space of a memory through a BIOS of the electronic equipment;
based on the first flag, finding a first boot partition at a first location in a hard disk of the electronic device;
acquiring a first boot file in the first boot partition;
finding a second boot partition at a second location in a hard disk of the electronic device based on the first boot file;
and booting the electronic equipment to enter an operating system based on the second boot file in the second boot partition.
Optionally, the finding a first boot partition at a first location in a hard disk of the electronic device based on the first flag bit includes:
determining the first location based on the first flag bit;
determining the first boot partition that is hidden based on the first location, wherein the first boot partition is locked;
unlocking the locked first boot partition based on an agreed-upon unlock key.
Optionally, the method further comprises:
after the first boot file is called and an operating system of the electronic device is started, locking the first boot partition through the operating system, wherein the locked first boot partition has a feature that the locked first boot partition cannot be deleted.
Optionally, after finding the second boot partition, the method further comprises:
determining, in the second boot partition, the second boot file associated with the first boot file based on the first boot file;
and calling the second guide file.
Optionally, the first boot partition has a backup file therein, and the method further includes:
in the event that the second boot partition is determined to be corrupted, repairing the second boot partition based on the backup file;
and calling the second boot file from the repaired second boot partition so as to boot the electronic equipment to an operating system.
Optionally, the repairing the second boot partition based on the backup file includes:
at the second location, reconstructing the second boot partition;
in the reconstructed second boot partition, regenerating the second boot file based on the backup file.
Optionally, the first location is located at an end of a storage area in the hard disk, and the second location is located at a head of the storage area in the hard disk.
Optionally, the method further comprises:
building the first boot partition at a first location in a hard disk of the electronic device based on a request instruction, wherein a capacity of the first boot partition can be dynamically adjusted during use.
An electronic device of an embodiment of the present application includes:
the first obtaining module is configured to obtain a preset first zone bit in a specific storage space of a memory through a BIOS of the electronic device;
a first processing module configured to find a first boot partition at a first location in a hard disk of the electronic device based on the first flag bit;
a second obtaining module configured to obtain a first boot file in the first boot partition;
a second processing module configured to find a second boot partition at a second location in a hard disk of the electronic device based on the first boot file;
and booting the electronic equipment to enter an operating system based on the second boot file in the second boot partition.
An electronic device of an embodiment of the present application includes a processor and a memory, where an executable program is stored in the memory, and the processor executes the executable program to implement the method steps as described above.
According to the hard disk-based boot method, the two different first boot partitions and the second boot partition are arranged, so that the second boot file stored with the boot access operating system cannot be directly accessed, and the security of the second boot file is improved. The electronic equipment can smoothly enter the operating system. The phenomenon that the second boot file cannot be called and the operating system cannot be smoothly accessed due to misoperation or access error is avoided.
Drawings
FIG. 1 is a flowchart of a hard disk-based booting method according to an embodiment of the present application;
FIG. 2 is a flowchart of an example of step S200 in FIG. 1 according to an embodiment of the present application;
FIG. 3 is a flowchart of an embodiment of a hard disk based booting method according to an embodiment of the present application;
FIG. 4 is a flowchart of another embodiment of a hard disk based booting method according to an embodiment of the present application;
FIG. 5 is a flowchart of one embodiment of step S800 in FIG. 4 according to an embodiment of the present application;
FIG. 6 is a flowchart of an embodiment of a hard disk-based booting method according to the present application;
FIG. 7 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a block diagram of an electronic device according to another embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be considered as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It is also to be understood that although the present application has been described with reference to some specific examples, those skilled in the art are able to ascertain many other equivalents to the practice of the present application.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
Fig. 1 is a flowchart of a hard disk-based booting method according to an embodiment of the present application, and as shown in fig. 1 and in combination with fig. 6, a hard disk-based booting method according to an embodiment of the present application, which may be applied to a starting process of an electronic device such as a computer, includes the following steps:
s100, acquiring a preset first zone bit in a specific storage space of a memory through a BIOS of the electronic device.
Illustratively, the computer and other electronic devices have a BIOS (Basic Input Output System), which is a set of programs that are solidified on a ROM chip on a motherboard of the computer and store important Basic Input and Output programs, a power-on self-test program, and a System self-start program of the computer and other electronic devices.
The memory of the electronic device has a specific storage space, and the specific storage space can store data and can be isolated from other storage areas in the memory according to actual use conditions. The specific storage area is provided with a first flag bit, and the first flag bit is used for indicating the position of the first guide partition in the hard disk. The location of the first boot partition in the hard disk may be indicated, e.g., by means of a pointer, which may be an address of the first boot partition.
In this embodiment, when the electronic device does not enter the operating system during the booting process, the preset first flag bit may be obtained from the specific storage space of the memory through the BIOS. Such as may be read from a particular memory space based on a communication protocol.
S200, based on the first zone bit, a first guide partition is found at a first position in a hard disk of the electronic equipment.
The first flag bit may be various types of indication information, such as a pointer, or address information, so as to indicate a first position in the hard disk. The first position may be set in advance in the hard disk for easy management and to avoid data therein being corrupted. The first location may be set at the end of the hard disk, thereby setting the first boot partition at the end of the entire hard disk.
The first boot partition may be set in a hidden state so that a malfunction can be placed, which a general user cannot easily find because it is not visible. And the first boot partition may be found at a first location in the hard disk using the indication of the first flag bit. Thereby operating on the first boot partition.
S300, acquiring a first boot file in the first boot partition.
For example, the first boot partition may store therein a first boot file, and may also store other related data for booting the electronic device. The first boot file is used to boot the BIOS into a second boot partition in the hard disk. The second boot partition, which is different from the first boot partition, may store data for booting. The second boot partition is booted by the first boot file without being accessed using other direct calling methods, which greatly increases the security of the second boot partition.
In this embodiment, the first boot file may be obtained from the first boot partition through the BIOS, for example, the first boot file may be a bootx64.efi file. The BIOS is provided with a capture program, and captures a first boot file, such as the bootx64.efi file, from the first boot partition by the capture program during a boot process of the electronic device.
S400, based on the first boot file, a second boot partition is found at a second position in a hard disk of the electronic equipment.
For example, the second boot partition may store files for booting the electronic device into the operating system. The second boot sub-section is located at a second position different from the first position described above, which makes the second boot sub-section located at a position different from the first boot sub-section. The second boot partition can be distinguished from the first boot partition, so that the second boot partition cannot be directly accessed, but is indirectly searched by the first boot file to implement access, and the security of the file stored in the second boot partition is improved. The first boot partition may not store files for booting the electronic device to the operating system, so that the risk of file corruption is reduced.
In this embodiment, on the one hand, the first boot file may also be a plurality of files having a boot function, such as the above-mentioned pointer, address information, and the like. The specific contents of the first boot file may be utilized to determine a second location in the hard disk, i.e., to find the second boot partition, for operating on the second boot partition. On the other hand, the first boot file may also be used to invoke a file in the second boot partition, such as invoking a second boot file mentioned later. That is, the second boot file in the second boot partition is determined by the first boot file and called. For example, the first boot file is a bootx64.efi file, and the second boot file can be called through the bootx64.efi file.
S500, guiding the electronic equipment to enter an operating system based on the second boot file in the second boot partition.
For example, the second boot file may be used to boot the electronic device into the operating system, so that the electronic device is normally powered on. And the second boot file is stored in the second boot partition, and the second boot partition cannot be directly accessed and needs to be called by the first boot file, so that the safety of the second boot file is improved.
The second boot file is used for guiding the electronic equipment to enter the operating system, so that the BIOS can correctly enter the operating system after being started in the starting process of the electronic equipment.
According to the hard disk-based boot method, the two different first boot partitions and the second boot partition are arranged, so that the second boot file stored with the boot access operating system cannot be directly accessed, and the security of the second boot file is improved. The electronic equipment can smoothly enter the operating system. The phenomenon that the second boot file cannot be called and the operating system cannot be smoothly accessed due to misoperation or access error is avoided.
In an embodiment of the application, the finding a first boot partition at a first location in a hard disk of the electronic device based on the first flag bit, as shown in fig. 2, includes:
s210, determining the first position based on the first zone bit.
The data structure of the first flag bit may be a pointer indicating a first location, for example, the address of the first location in the hard disk is "55 AA", and the pointer may be used to indicate the "55 AA", thereby determining the first boot partition.
S220, determining the hidden first boot partition based on the first position, wherein the first boot partition is locked.
Illustratively, the state of the first boot partition is a hidden state, and the first boot partition in the hidden state is invisible to a general user. This prevents the first boot partition from being easily accessed, and the first boot file therein from being easily destroyed.
In this embodiment, the first boot partition is locked, and the first boot partition in the locked state is not moved, and the capacity and/or the state are not illegally changed, so that the security of the first boot partition is further improved.
S230, unlocking the locked first guide partition based on an agreed unlocking key.
Illustratively, the first boot partition may be locked by encrypting a key. An unlocking key is associated with the encryption key. The first boot partition may be locked using the encryption key such that the first boot partition is not subject to illegal operations, such as illegal movement, illegal state changes, and the like. After the first boot partition is found, the first boot partition may be unlocked through the BIOS to call the first boot file stored therein in order to enable normal data access thereto.
In one embodiment of the present application, the method further comprises the steps of: after the first boot file is called and an operating system of the electronic device is started, locking the first boot partition through the operating system, wherein the locked first boot partition has a feature that the locked first boot partition cannot be deleted.
For example, after the first boot file in the first boot partition is retrieved and the electronic device successfully starts the operating system, the first boot partition still needs to be locked, which ensures that the first boot partition can be unlocked when being used and can be locked in time after being used, thereby ensuring the security of the first boot partition.
Further, the first boot partition may be registered in the operating system in advance, so that the operating system can operate the first boot partition, and after the operating system is successfully started, the electronic device may lock the first boot partition by using the operating system, so that the first boot partition cannot be deleted or modified at will. In addition, the operating system may also maintain or set the first boot partition in a hidden state so that it is not visible to ordinary users.
In one embodiment of the present application, after finding the second boot partition, as shown in fig. 3, the method further comprises the steps of:
s600, determining the second boot file associated with the first boot file in the second boot partition based on the first boot file;
s700, calling the second guide file.
Illustratively, in one aspect, the first boot file is associated with a second boot file, and the second boot file is stored in a second boot partition. Therefore, the second guide partition can be determined based on the first guide file, and the correct second guide file can be called. The electronic device may boot it into the operating system using the second boot file.
On the other hand, the second boot partition may store a plurality of second boot files, and different second boot files may boot different operating systems. A second boot file adapted to the first boot file can be extracted based on the first boot file, and the electronic device is booted into an operating system associated with the second boot file.
In one embodiment of the present application, the first boot partition has a backup file therein, and as shown in fig. 4, the method further includes the following steps:
s800, under the condition that the second guide partition is determined to be damaged, repairing the second guide partition based on the backup file.
For example, the second boot partition may be damaged during use, resulting in the data stored therein being damaged and unusable. For this case, the first boot partition in this embodiment has a backup file therein, which is a backup for data in the second boot partition. And under the condition that the second guide partition is detected to be damaged, calling the backup file from the first guide partition, and repairing the second guide partition, including repairing the data in the second guide partition. For example, the second boot file in the second boot partition is repaired, so that the integrity and correctness of the second boot file can be ensured.
S900, calling the second boot file from the repaired second boot partition so as to guide the electronic equipment to enter an operating system.
The repaired second boot file may be considered a correct boot file, and the electronic device is booted into an operating system corresponding to the second boot file using the correct second boot file.
In one embodiment, the backup file is used to repair the second boot partition and repair the second boot file, and the backup file is used to upgrade the second boot file, so that the effectiveness of the version of the second boot file is ensured.
In an embodiment of the present application, the repairing the second boot partition based on the backup file, as shown in fig. 5, includes:
s810, reconstructing the second guide partition at the second position;
s820, in the reconstructed second boot partition, regenerating the second boot file based on the backup file.
Illustratively, if the second boot partition is damaged, the data in the second boot partition may have a high probability of being damaged. In this case, the damaged second boot file may be directly deleted without retrieving the second boot file therein, and the second boot partition may be reconstructed at the second location of the hard disk, that is, the original location of the second boot partition, to regenerate the second boot file. The correctness of the second boot file is guaranteed.
In one embodiment of the present application, the first location is located at an end portion of a storage area in the hard disk, and the second location is located at a head portion of the storage area in the hard disk. This makes it easy for both the first boot area and the second boot area to be found to avoid affecting the use of other storage areas in the hard disk.
In one embodiment of the present application, the method further comprises the steps of: building the first boot partition at a first location in a hard disk of the electronic device based on a request instruction, wherein a capacity of the first boot partition can be dynamically adjusted during use.
For example, the capacity of the first boot partition may be set and adjusted based on the amount of data it needs to store, and a build tool may be used to build the first boot partition in the hard disk that meets the capacity requirements. A request instruction is generated, such as from empirical data, and a build tool builds a first boot partition at a first location of a hard disk according to the request instruction.
Furthermore, during the usage of the first boot partition, if the capacity is found to be inappropriate, such as too large or too small, according to the actual usage situation, the capacity can be dynamically adjusted. Therefore, the requirement of storing the matched data can be met on the premise of not occupying too large storage space of the hard disk.
An embodiment of the present application further provides an electronic device, as shown in fig. 7, including:
the first obtaining module is configured to obtain a preset first flag bit in a specific storage space of a memory through a BIOS of the electronic device.
Illustratively, the computer and other electronic devices have a BIOS (Basic Input Output System), which is a set of programs that are solidified on a ROM chip on a motherboard of the computer and store important Basic Input and Output programs, a power-on self-test program, and a System self-start program of the computer and other electronic devices.
The memory of the electronic device has a specific storage space, and the specific storage space can store data and can be isolated from other storage areas in the memory according to actual use conditions. The specific storage area is provided with a first flag bit, and the first flag bit is used for indicating the position of the first guide partition in the hard disk. The location of the first boot partition in the hard disk may be indicated, e.g., by means of a pointer, which may be an address of the first boot partition.
In this embodiment, when the electronic device does not enter the operating system during the booting process, the first obtaining module may obtain the preset first flag bit from the specific storage space of the memory through the BIOS. Such as may be read from a particular memory space based on a communication protocol.
A first processing module configured to find a first boot partition at a first location in a hard disk of the electronic device based on the first flag.
For example, the first flag bit may be various types of indication information, such as a pointer, or address information, so as to indicate the first location in the hard disk. The first position may be set in advance in the hard disk for easy management and to avoid data therein being corrupted. The first location may be set at the end of the hard disk, thereby setting the first boot partition at the end of the entire hard disk.
The first boot partition may be set in a hidden state so that a malfunction can be placed, which a general user cannot easily find because it is not visible. And the first processing module may seek the first boot partition at a first location in the hard disk using the indication of the first flag bit. Thereby operating on the first boot partition.
A second obtaining module configured to obtain a first boot file in the first boot partition.
For example, the first boot partition may store therein a first boot file, and may also store other related data for booting the electronic device. The first boot file is used to boot the BIOS into a second boot partition in the hard disk. The second boot partition, which is different from the first boot partition, may store data for booting. The second boot partition is booted by the first boot file without being accessed using other direct calling methods, which greatly increases the security of the second boot partition.
In this embodiment, the second obtaining module may obtain the first boot file from the first boot partition through the BIOS, for example, the first boot file may be a bootx64.efi file. The BIOS is provided with a capture program, and the second acquisition module captures a first boot file, such as the bootx64.efi file, from the first boot partition through the capture program in the boot process of the electronic device.
A second processing module configured to find a second boot partition at a second location in a hard disk of the electronic device based on the first boot file; and booting the electronic equipment to enter an operating system based on the second boot file in the second boot partition.
For example, the second boot partition may store files for booting the electronic device into the operating system. The second boot sub-section is located at a second position different from the first position described above, which makes the second boot sub-section located at a position different from the first boot sub-section. The second boot partition can be distinguished from the first boot partition, so that the second boot partition cannot be directly accessed, but is indirectly searched by the first boot file to implement access, and the security of the file stored in the second boot partition is improved. The first boot partition may not store files for booting the electronic device to the operating system, so that the risk of file corruption is reduced.
In this embodiment, on the one hand, the first boot file may also be a plurality of files having a boot function, such as the above-mentioned pointer, address information, and the like. The second processing module may use the specific contents of the first boot file to determine a second location in the hard disk, i.e., to find the second boot partition, for operating on the second boot partition. On the other hand, the first boot file may also be used to invoke a file in the second boot partition, such as invoking a second boot file mentioned later. That is, the second processing module determines the second boot file in the second boot partition from the first boot file and calls the second boot file. For example, the first boot file is a bootx64.efi file, and the second boot file can be called through the bootx64.efi file.
For example, the second processing module may guide the electronic device to enter the operating system by using the second boot file, so that the electronic device is normally booted. And the second boot file is stored in the second boot partition, and the second boot partition cannot be directly accessed and needs to be called by the first boot file, so that the safety of the second boot file is improved.
The second processing module guides the electronic equipment to enter the operating system by using the second boot file, so that the BIOS can correctly enter the operating system after being started in the starting process of the electronic equipment.
In one embodiment of the present application, the first processing module is further configured to:
determining the first location based on the first flag bit;
determining the first boot partition that is hidden based on the first location, wherein the first boot partition is locked;
unlocking the locked first boot partition based on an agreed-upon unlock key.
In one embodiment of the present application, the second processing module is further configured to:
after the first boot file is called and an operating system of the electronic device is started, locking the first boot partition through the operating system, wherein the locked first boot partition has a feature that the locked first boot partition cannot be deleted.
In one embodiment of the present application, the second processing module is further configured to:
determining, in the second boot partition, the second boot file associated with the first boot file based on the first boot file;
and calling the second guide file.
In one embodiment of the present application, the first boot partition has a backup file therein, and the electronic device further includes a repair module configured to:
in the case that the second guide partition is determined to be damaged, repairing the second guide partition based on the backup file;
and calling the second boot file from the repaired second boot partition so as to boot the electronic equipment to an operating system.
In one embodiment of the present application, the repair module is further configured to:
at the second location, reconstructing the second boot partition;
in the reconstructed second boot partition, regenerating the second boot file based on the backup file.
In one embodiment of the present application, the first location is located at an end portion of a storage area in the hard disk, and the second location is located at a head portion of the storage area in the hard disk.
In one embodiment of the present application, the electronic device further comprises a building module configured to:
building the first boot partition at a first location in a hard disk of the electronic device based on a request instruction, wherein a capacity of the first boot partition can be dynamically adjusted during use.
The present application further provides an electronic device, as shown in fig. 8, including a processor and a memory, where the memory stores an executable program, and the processor executes the executable program to implement the steps in the hard disk-based booting method.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

Claims (10)

1. A hard disk based boot method, comprising:
acquiring a preset first zone bit in a specific storage space of a memory through a BIOS of the electronic equipment;
based on the first flag, finding a first boot partition at a first location in a hard disk of the electronic device;
acquiring a first boot file in the first boot partition;
finding a second boot partition at a second location in a hard disk of the electronic device based on the first boot file;
and booting the electronic equipment to enter an operating system based on the second boot file in the second boot partition.
2. The method of claim 1, the finding a first boot partition at a first location in a hard disk of the electronic device based on the first flag, comprising:
determining the first location based on the first flag bit;
determining the first boot partition that is hidden based on the first location, wherein the first boot partition is locked;
unlocking the locked first boot partition based on an agreed-upon unlock key.
3. The method of claim 2, further comprising:
after the first boot file is called and an operating system of the electronic device is started, locking the first boot partition through the operating system, wherein the locked first boot partition has a feature that the locked first boot partition cannot be deleted.
4. The method of claim 1, after finding a second boot partition, the method further comprising:
determining, in the second boot partition, the second boot file associated with the first boot file based on the first boot file;
and calling the second guide file.
5. The method of claim 1, the first boot partition having a backup file therein, the method further comprising:
in the event that the second boot partition is determined to be corrupted, repairing the second boot partition based on the backup file;
and calling the second boot file from the repaired second boot partition so as to boot the electronic equipment to enter an operating system.
6. The method of claim 5, the repairing the second boot partition based on the backup file, comprising:
at the second location, reconstructing the second boot partition;
in the reconstructed second boot partition, regenerating the second boot file based on the backup file.
7. The method of claim 1, wherein the first location is located at an end of a storage area in the hard disk and the second location is located at a head of the storage area in the hard disk.
8. The method of claim 1, further comprising:
building the first boot partition at a first location in a hard disk of the electronic device based on a request instruction, wherein a capacity of the first boot partition can be dynamically adjusted during use.
9. An electronic device, comprising:
the first obtaining module is configured to obtain a preset first zone bit in a specific storage space of a memory through a BIOS of the electronic device;
a first processing module configured to find a first boot partition at a first location in a hard disk of the electronic device based on the first flag bit;
a second obtaining module configured to obtain a first boot file in the first boot partition;
a second processing module configured to find a second boot partition at a second location in a hard disk of the electronic device based on the first boot file;
and booting the electronic equipment to enter an operating system based on the second boot file in the second boot partition.
10. An electronic device comprising a processor and a memory, the memory having stored therein an executable program, the processor executing the executable program to perform the method steps of any of claims 1 to 8.
CN202210129866.7A 2022-02-11 2022-02-11 Hard disk-based booting method and electronic equipment Pending CN114546503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210129866.7A CN114546503A (en) 2022-02-11 2022-02-11 Hard disk-based booting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210129866.7A CN114546503A (en) 2022-02-11 2022-02-11 Hard disk-based booting method and electronic equipment

Publications (1)

Publication Number Publication Date
CN114546503A true CN114546503A (en) 2022-05-27

Family

ID=81674371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210129866.7A Pending CN114546503A (en) 2022-02-11 2022-02-11 Hard disk-based booting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114546503A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294572A (en) * 2012-03-04 2013-09-11 三星电子株式会社 Electronic device to restore MBR, and method thereof
CN103984910A (en) * 2014-05-14 2014-08-13 清华大学深圳研究生院 System partitioning hiding method
US20160034683A1 (en) * 2014-08-01 2016-02-04 Samsung Electronics Co., Ltd. Memory card and storage system having authentication program and method for operating thereof
CN107003863A (en) * 2015-01-29 2017-08-01 惠普发展公司,有限责任合伙企业 Guide on-chip system device
CN112612524A (en) * 2020-12-22 2021-04-06 西人马(西安)测控科技有限公司 Method, device and equipment for starting Linux system and storage medium
CN113485757A (en) * 2021-07-22 2021-10-08 北京青云科技股份有限公司 Decryption method, device, equipment and storage medium in system starting process

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294572A (en) * 2012-03-04 2013-09-11 三星电子株式会社 Electronic device to restore MBR, and method thereof
CN103984910A (en) * 2014-05-14 2014-08-13 清华大学深圳研究生院 System partitioning hiding method
US20160034683A1 (en) * 2014-08-01 2016-02-04 Samsung Electronics Co., Ltd. Memory card and storage system having authentication program and method for operating thereof
CN107003863A (en) * 2015-01-29 2017-08-01 惠普发展公司,有限责任合伙企业 Guide on-chip system device
CN112612524A (en) * 2020-12-22 2021-04-06 西人马(西安)测控科技有限公司 Method, device and equipment for starting Linux system and storage medium
CN113485757A (en) * 2021-07-22 2021-10-08 北京青云科技股份有限公司 Decryption method, device, equipment and storage medium in system starting process

Similar Documents

Publication Publication Date Title
US8041913B2 (en) Data protection method
US7702894B2 (en) System and method for loading programs from HDD independent of operating system
US6618735B1 (en) System and method for protecting shared system files
US5012514A (en) Hard drive security system
US6820214B1 (en) Automated system recovery via backup and restoration of system state
US7849267B2 (en) Network-extended storage
US7111203B2 (en) Method for implementing data backup and recovery in computer hard disk
US7743424B2 (en) Method for protecting data in a hard disk
US7401249B2 (en) Method for backing up and recovering data in a hard disk
US6851073B1 (en) Extensible system recovery architecture
US6675295B1 (en) Method and computer system for detecting and correcting a failure in a computer application program during startup
EP1022655B1 (en) Computer with bootable secure program
US7380140B1 (en) Providing a protected volume on a data storage device
US7210013B2 (en) Data protection for computer system
US7366888B2 (en) Booting to a recovery/maintenance environment
US9720782B2 (en) Authenticating a backup image with bifurcated storage
US6389539B1 (en) Method and system for enhancing security access to a data processing system
US10817211B2 (en) Method for completing a secure erase operation
US20090138969A1 (en) Device and method for blocking autorun of malicious code
US6430706B1 (en) Tracking and managing failure-susceptible operations in a computer system
JP4387856B2 (en) Computer lock management program, computer lock management method, and computer lock management device
US20030037279A1 (en) HDD data backup and recovery method
CN112632517A (en) Authentication method, system and device of USB storage equipment
CN114546503A (en) Hard disk-based booting method and electronic equipment
US7882353B2 (en) Method for protecting data in a hard disk

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