Data recovery method, electronic equipment and storage medium
By receiving an interrupt signal during the startup process of the basic input and output system and starting the first operating system, connecting to a wireless network to download the second operating system image file, the problem of terminal equipment not being able to recover quickly when the system crashes is solved, and the rapid recovery and high reliability of the system are achieved.
Patent Information
- Application Number
- CN202411731453.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-21
AI Technical Summary
The prior art cannot effectively support terminal devices connected through wireless networks to quickly restore the operating system when the system crashes, resulting in the system being unavailable.
By receiving an interrupt signal during the startup process of the basic input and output system, the first operating system of the first partition is started, and the first operating system is connected to the wireless network to download the second operating system image file for recovery.
It realizes rapid recovery of the system when the terminal device system crashes, improves the reliability of the system, and is suitable for wired and wireless network terminal devices.
Smart Images

Figure CN119668932A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of backup and recovery of operating systems, and in particular to a data recovery method, an electronic device and a storage medium. Background Art
[0002] Generally, most terminal devices have fast recovery capabilities, so that when the system crashes, the terminal device can quickly restore the system data. The fast recovery capability of the terminal device will directly affect the reliability of the information system supported by the terminal device. Therefore, how to solve the problem of system unavailability caused by the failure of operating system or software upgrade becomes a key factor in data reliability.
[0003] To address this problem, in traditional technology, the unified extensible firmware interface (UEFI) basic input output system (BIOS) is used to connect to the network, obtain the corresponding version of the operating system image file, and use the operating system image file to restore the operating system. However, the disadvantage of this solution is that UEFI BIOS cannot support terminal devices such as laptops that only have wireless network connection functions to obtain operating system image files through the network. Therefore, it is urgent to provide a data recovery method to solve the above problems. Summary of the invention
[0004] In view of at least one of the above technical problems existing in the prior art, this application is proposed. According to one aspect of this application, a data recovery method is provided, which is applied to an electronic device, wherein the hard disk of the electronic device comprises at least a first partition and a second partition, a first operating system is installed in the first partition, and a second operating system is installed in the second partition; the method comprises:
[0005] During the startup of the basic input and output system, an interrupt signal is received;
[0006] Based on the interrupt signal, starting the first operating system of the first partition;
[0007] Using the first operating system, based on the received instruction to download the second operating system image file, connecting to a wireless network to download the second operating system image file from a server; wherein the instruction to download the second operating system image file includes a network storage address of the second operating system image file;
[0008] The second operating system is restored using the acquired second operating system image file.
[0009] In some embodiments, the second operating system image file includes at least two versions of the second operating system image file; wherein connecting to the network and downloading the second operating system image file includes:
[0010] Receive an instruction to select one of the second operating system image files;
[0011] Based on the instruction to select one of the second operating system image files, download the one of the second operating system image files.
[0012] In some embodiments, the first partition is a security partition, wherein the security partition is in an invisible state; and the method further comprises:
[0013] When the interrupt signal is received, the basic input and output system uses a reserved custom field of a non-volatile memory host controller interface specification standard protocol to open the security partition and sets the security partition to a visible state.
[0014] In some embodiments, the method further comprises:
[0015] When shutting down the first operating system, releasing the memory resources occupied by the first operating system;
[0016] The first partition is set to an invisible state.
[0017] In some embodiments, the first partition is also installed with a backup recovery program, and the first partition and / or the second partition stores a backup recovery file; the method further comprises at least one of the following steps:
[0018] Using the first operating system, based on the received custom backup and recovery instruction, using the backup and recovery program and the backup and recovery file, performing custom recovery on the second operating system;
[0019] Using the operation of the first operating system, based on the received operating system recovery instruction, using the backup recovery program and the backup recovery file, the second operating system is restored;
[0020] Utilizing the operation interface of the first operating system, based on the received instruction to restore the desktop cloud mode, utilizing the backup recovery program and the backup recovery file, the desktop cloud mode of the second operating system is restored.
[0021] In some embodiments, the method further comprises:
[0022] During the startup of the basic input / output system, when the interrupt signal is not received, the second operating system installed in the second partition is started.
[0023] In some embodiments, the method further comprises:
[0024] During the startup of the basic input and output system, when the interrupt signal is received, detecting whether the first partition exists;
[0025] In the case that the first partition does not exist, the second operating system installed in the second partition is started.
[0026] In some embodiments, when the wireless network cannot be connected and a wired network exists, using the first operating system, based on the received instruction to download the second operating system image file, connecting to the wired network to download the second operating system image file of the server;
[0027] The second operating system is restored using the acquired second operating system image file.
[0028] Another aspect of the present application provides an electronic device, wherein the system includes:
[0029] A memory and a processor, wherein the memory stores a computer program executed by the processor, and when the computer program is executed by the processor, the processor executes the data recovery method as described above.
[0030] On another aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the data recovery method as described above.
[0031] The data recovery method of the embodiment of the present application receives an interrupt signal during the startup process of the basic input and output system, starts the first operating system of the first partition, connects to the network and downloads the second operating system image file based on the received instruction to download the second operating system image file, and uses the downloaded second operating system image file to recover the second operating system. The embodiment of the present application is applicable to terminal devices using wired networks (for example, desktop computers and industrial computers, etc.) or terminal devices using wireless networks (for example, laptops). It has strong versatility, can achieve accurate push, and can quickly restore the system when the terminal device system crashes, thereby improving the reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0033] Figure 1 A schematic flow chart showing a data recovery method according to an embodiment of the present application;
[0034] Figure 2 A schematic flow chart showing setting a security partition to a visible state according to an embodiment of the present application is shown;
[0035] Figure 3 A schematic flow chart showing setting a first partition to an invisible state when shutting down a first operating system according to an embodiment of the present application is shown;
[0036] Figure 4 A schematic diagram showing a display interface presented after starting a first operating system according to an embodiment of the present application;
[0037] Figure 5 A schematic flowchart of step S103 according to an embodiment of the present application is shown;
[0038] Figure 6 A schematic diagram showing a second operating system image file download interface according to an embodiment of the present application;
[0039] Figure 7 A schematic diagram showing a display interface after downloading and installing a second operating system image file according to an embodiment of the present application;
[0040] Figure 8 A schematic flowchart of restoring a system using a local backup recovery file according to an embodiment of the present application is shown;
[0041] Fig. 9 A schematic flow chart showing starting a second operating system installed in a second partition according to an embodiment of the present application;
[0042] Fig.10 A schematic flowchart showing whether a first partition exists according to an embodiment of the present application is shown;
[0043] Fig.11 A schematic flow chart showing a data recovery method according to another embodiment of the present application;
[0044] Fig.12 A schematic block diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0045] In order to enable those skilled in the art to better understand the technical solutions of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] Based on at least one of the aforementioned technical problems, the present application provides a data recovery method, which is applied to an electronic device, wherein the hard disk of the electronic device includes at least a first partition and a second partition, a first operating system is installed in the first partition, and a second operating system is installed in the second partition; the method includes: receiving an interrupt signal during a basic input and output system process; based on the interrupt signal, starting the first operating system of the first partition; using the first operating system, based on the received instruction to download the second operating system image file, connecting to a wireless network to download the second operating system image file of a server; wherein the instruction to download the second operating system image file includes a network storage address of the second operating system image file; and using the acquired second operating system image file to recover the second operating system. The data recovery method of the embodiment of the present application receives an interrupt signal during the startup process of the basic input and output system, starts the first operating system of the first partition, connects to the network and downloads the second operating system image file based on the received instruction to download the second operating system image file, and uses the downloaded second operating system image file to recover the second operating system. The embodiment of the present application is applicable to terminal devices using wired networks (for example, desktop computers and industrial computers, etc.) or terminal devices using wireless networks (for example, laptops). It has strong versatility, can achieve accurate push, and can quickly restore the system when the terminal device system crashes, thereby improving the reliability of the system.
[0047] The data recovery method of the embodiment of the present application is applied to an electronic device, the hard disk of the electronic device at least includes a first partition and a second partition, a first operating system is installed in the first partition, and a second operating system is installed in the second partition. For example, the first operating system is a Linux system, and the second operating system is a Windows system.
[0048] The electronic devices in the embodiments of the present application may include portable electronic devices such as personal computers, laptops, tablet computers, mobile phones, digital cameras, personal digital assistants, game consoles, etc., and may also include large fixed electronic devices such as automatic teller machines (ATMs), etc. The embodiments of the present application are described using a laptop computer as an example.
[0049] In one embodiment of the present application, when the hard disk supports the Non Volatile Memory Host Controller Interface Specification (NVMe), the Non Volatile Memory Host Controller Interface Specification command is used to divide the hard disk into the first partition and the second partition. The first partition is a security partition, and the security partition can be set to a default invisible state to prevent the data in the security partition from being arbitrarily changed, thereby ensuring the security of the data. Of course, when necessary, the security partition can be set to a visible state to facilitate operations on the data in the security partition.
[0050] In the embodiment of the present application, when backing up and restoring data, the hard disk can be divided into a safe zone, and then the initial backup file can be stored in the safe zone. When the backup and recovery function needs to be executed, the safe zone is opened through the Basic Input Output System (BIOS), and the backup and recovery software is called to implement the data backup and recovery function.
[0051] For example, by defining the general NVMe protocol instructions and sending the control instructions, the SSD firmware can realize the establishment of the security partition in the SSD and the management of the visual state according to the specific values of each parameter in the control instruction. It has high compatibility and versatility, supports all PCIe NVMe SSD devices, and realizes the user's demand for data protection. For example, for a 256G hard disk, the manufacturer sets the last 6G as the security zone through the NVMe protocol management tool, so that the partition software and BIOS cannot see the 6G partition, that is, the entire hard disk capacity is only displayed as 250G under the operating system and BIOS. In addition, the scheme of the embodiment of the present application can realize the deep protection of the data in the security partition, avoid the identification of third-party tools, and improve the security of the backup file; in addition, the method provided in the embodiment of the present application can be realized on the NVMe SSD layer, without relying on the operating system architecture or the central processing unit (CPU) platform, and has better universality.
[0052] Generally, the first partition can be allocated a smaller hard disk space as a security partition, and the second partition can be allocated a larger hard disk space as a common partition. For example, for a 512G hard disk, 500G hard disk space can be allocated as the second partition, and 12G hard disk space can be allocated as the first partition.
[0053] The embodiment of the present application is introduced by taking the Linux operating system as the first operating system as an example, and the second operating system may be Microsoft's Windows operating system.
[0054] In one example, the embodiment of the present application can install a simplified Linux operating system on the first partition. To reduce the size of the operating system, the simplified Linux operating system can only install necessary program software, such as desktop programs, network card drivers, etc.
[0055] Figure 1 A schematic flow chart of a data recovery method according to an embodiment of the present application is shown; Figure 1 As shown, the data recovery method 100 according to the embodiment of the present application may include the following steps S101, S102, S103 and S104:
[0056] In step S101, during the startup process of the Basic Input Output System (BIOS), an interrupt signal is received.
[0057] Typically, when an electronic device is turned on or restarted, a Basic Input Output System (BIOS) is started. During the process of starting the Basic Input Output System (BIOS), an interrupt signal can be sent to enter the first operating system. The interrupt signal can be sent by a user by pressing a key. For example, when an electronic device is turned on or restarted, during the startup process of the Basic Input Output System (BIOS), the user generates and sends an interrupt signal by pressing a hot key. After receiving the interrupt signal, the electronic device enters the secure partition and starts the first operating system. For example, the hot key can be a function key such as the "F2" function key, or a combination key.
[0058] In step S102, based on the interrupt signal, the first operating system of the first partition is started.
[0059] In one embodiment of the present application, Figure 2 As shown, the method further comprises step A1:
[0060] In step A1, when the interrupt signal is received, the basic input and output system uses a reserved custom field of the non-volatile memory host controller interface specification standard protocol (NVMe) to open the security partition and sets the security partition to a visible state.
[0061] During the startup process of the Basic Input Output System (BIOS), when an interrupt signal is received, the Basic Input Output System (BIOS) opens the security zone. For example, the BIOS uses an opening instruction of the NVMe standard protocol to set the security partition to a visible state.
[0062] In the embodiment of the present application, the data protection area is turned on or off by setting the first partition as a security partition (i.e., invisible to the host), so as to achieve the purpose of data protection based on user needs. When the user accesses the first partition, the first partition is set to a visible state for user convenience. In the specific implementation, for a solid-state drive that supports the non-volatile memory host controller interface specification standard protocol (NVMe), a general non-volatile memory host controller interface specification standard protocol (NVMe) instruction can be used to define and control the sending of instructions, so that the solid-state drive firmware can establish a security partition in the solid-state drive and manage the visible state according to the specific values of each parameter in the control instruction. It has high compatibility and versatility, supports all solid-state drives (SSDs) SSD devices of the non-volatile memory host controller interface specification standard protocol (NVMe), and realizes the user's demand for data protection.
[0063] For example, for a 512G hard disk, the manufacturer sets the last 12G as a security zone through the Non-Volatile Memory Host Controller Interface Specification Standard Protocol (NVMe) management tool, so that the partitioning software and BIOS cannot see this 12G partition, that is, the entire hard disk capacity is only displayed as 500G under the operating system and BIOS. When the user needs to access this 12G security partition, the reserved custom field of the Non-Volatile Memory Host Controller Interface Specification Standard Protocol (NVMe) is used to open the 12G security partition and enter the first operating system for operation.
[0064] In one embodiment of the present application, Figure 3 As shown, the method further includes step B1 and step B2:
[0065] In step B1, when the first operating system is shut down, memory resources occupied by the first operating system are released;
[0066] In step B2, the first partition is set to an invisible state.
[0067] The embodiment of the present application sets the first partition to a default invisible state to prevent the data in the secure partition from being arbitrarily changed and ensure the security of the data. Of course, when necessary, the secure partition can be set to a visible state to facilitate operations on the data in the secure partition.
[0068] In step S103, using the first operating system, based on the received instruction to download the second operating system image file, connect to the wireless network to download the second operating system image file from the server; wherein the instruction to download the second operating system image file includes the network storage address of the second operating system image file.
[0069] The wireless network includes a local area network and / or the Internet. Since the first operating system has its own wired network card driver and wireless network card driver, the second operating system image file can also be downloaded through the network for a terminal device only equipped with a wireless network card.
[0070] like Figure 4 The figure shows the display interface presented after starting the first operating system. A "Mirror Download" button is displayed on the display interface. When the user presses the "Mirror Download" button, an instruction to download the second operating system image file is generated, and then the system downloads the image file based on the network download address of the second operating system image file.
[0071] Accordingly, if Figure 5 As shown, step S103 of connecting to the network and downloading the second operating system image file includes step C1 and step C2:
[0072] In step C1, an instruction to select one of the second operating system image files is received;
[0073] In step C2, based on the instruction to select one of the second operating system image files, one of the second operating system image files is downloaded.
[0074] In one embodiment of the present application, Figure 6 As shown, it is a schematic diagram of the second operating system image file download interface. The second operating system image file includes at least two versions of the second operating system image file. For example, the first version of the second operating system image file is a Windows 10 system, and the second version of the second operating system image file is a Windows 11 system. For another example, the first version of the second operating system image file is a professional version of Windows 10 system, and the second version of the second operating system image file is a home version of Windows 10 system. Users can download according to their needs.
[0075] like Figure 7 As shown, this is the display interface after the second operating system image file is downloaded and installed. After clicking the "Finish" button, the terminal device can be restarted to enter the second partition and start the second operating system.
[0076] In step S104, the second operating system is restored using the acquired second operating system image file.
[0077] The first partition also has a backup and recovery program installed, and the first partition and / or the second partition stores backup and recovery files.
[0078] In one embodiment of the present application, Figure 8 As shown, the method further includes the following steps D1, D2 or D3:
[0079] In step D1, using the first operating system, based on the received custom backup and recovery instruction, using the backup and recovery program and the backup and recovery file, the second operating system is custom restored;
[0080] In step D2, the second operating system is restored using the first operating system, based on the received operating system restoration instruction, the backup restoration program and the backup restoration file;
[0081] In step D3, the first operating system is used to restore the desktop cloud mode of the second operating system based on the received instruction to restore the desktop cloud mode, using the backup recovery program and the backup recovery file.
[0082] Continue to combine Figure 2 On the display interface, there are a custom backup and restore button, a restore operating system button, and a restore desktop cloud mode button. When the user chooses to press any of these buttons, the corresponding instruction is generated. Among them, the custom backup and restore button, the restore operating system button, and the restore desktop cloud mode button can be linked to the storage address of the local restore backup file.
[0083] For example, when the user presses a custom backup and restore button, the local restore backup file is called to perform system recovery, during which the user can customize the data or version information to be restored.
[0084] For another example, when the user presses the restore operating system button, the local restore backup file is called to perform system recovery to restore the entire operating system.
[0085] For another example, when the user presses the button to restore the desktop cloud mode, the local backup file is called to restore the system to restore the desktop cloud mode. The desktop cloud mode here is also called desktop virtualization and cloud computer, which is a new mode to replace traditional computers. After adopting the desktop cloud mode, users no longer need to buy a computer host. The CPU, memory, hard disk and other components contained in the host are all virtualized in the back-end server. A single high-performance server can virtualize 1-50 virtual hosts. The mainstream front-end device is to use a thin client (a device similar to a TV set-top box) to connect the display and keyboard and mouse. After the user installs the client, he accesses the virtual machine host on the back-end server through a unique communication protocol to achieve interactive operations and achieve the same experience as the computer. At the same time, the cloud desktop not only supports the replacement of traditional computers, but also supports other smart devices such as mobile phones and tablets to access on the Internet. It is also the latest solution for mobile office.
[0086] As for the backup recovery file, the generated backup recovery file can be stored in any specified location of the hard disk, for example, the first partition and / or the second partition. In the case where the first partition includes a plurality of sub-partitions, or the second partition includes a plurality of sub-partitions, the backup file can be stored in any one or more sub-partitions of the first partition, or the backup file can be stored in any one or more sub-partitions of the second partition.
[0087] In one embodiment of the present application, Fig. 9 As shown, the method further comprises step E1:
[0088] In step E1, during the startup of the basic input / output system, when the interrupt signal is not received, the second operating system installed in the second partition is started.
[0089] Generally speaking, by default, the electronic device directly starts the second operating system of the second partition after it is turned on. The second operating system installed in the second partition will only be started when, for example, an interrupt signal is received, an abnormality occurs when entering the first partition, resulting in the inability to access the first partition, or the first partition does not exist. This saves the waiting time of waiting for the user to issue an instruction to enter the second operating system every time the electronic device is turned on.
[0090] In one embodiment of the present application, Fig.10 As shown, the method further includes step F1, step F2 and step F3:
[0091] In step F1, during the startup of the basic input and output system, when the interrupt signal is received, it is detected whether there is a first partition; if the first partition exists, step F3 is executed, otherwise step F2 is executed
[0092] In step F2, in the absence of the first partition, starting the second operating system installed in the second partition;
[0093] In step F3, the first operating system of the first partition is started.
[0094] The actual step F3 is the above-mentioned step S102.
[0095] In another example of the present application, when the wireless network cannot be connected and a wired network exists, the first operating system can also be used to connect to the wired network to download the second operating system image file from the server based on the received instruction to download the second operating system image file, and then use the obtained second operating system image file to restore the second operating system.
[0096] The data recovery method of the embodiment of the present application receives an interrupt signal during the startup process of the basic input and output system, starts the first operating system of the first partition, connects to the network and downloads the second operating system image file based on the received instruction to download the second operating system image file, and uses the downloaded second operating system image file to recover the second operating system. The embodiment of the present application is applicable to terminal devices using wired networks (for example, desktop computers and industrial computers, etc.) or terminal devices using wireless networks (for example, laptops). It has strong versatility, can achieve accurate push, and can quickly restore the system when the terminal device system crashes, thereby improving the reliability of the system.
[0097] like Fig.11 , which is a schematic flow chart of a data recovery method according to another embodiment of the present application. The data recovery method 1100 according to the embodiment of the present application may include the following steps S1101, S1102, S1103, S1104 and S1105;
[0098] In step S1101, a terminal device is turned on, where the terminal device may be a desktop computer, a tablet computer, a notebook computer, or the like.
[0099] In step S1102, it is detected whether an interrupt instruction is received; if yes, step S1103 is executed; otherwise, step S1105 is executed. For example, a function key "F2" may be set, and when the function key "F2" is pressed during the system startup process, an interrupt instruction is generated.
[0100] In step S1103, check whether there is a secure partition; if so, execute step S1104; otherwise, execute step S1105.
[0101] In step S1104, the security zone partition is set to be visible, the Linux system in the security partition is started, the network is connected to download the client operating system image file, and the downloaded client operating system image file is used to perform the operation of restoring the client operating system.
[0102] In step S1105, the client operating system is started. For example, the client operating system is the Windows operating system of Microsoft Corporation.
[0103] The data recovery method of the embodiment of the present application receives an interrupt signal during the startup process of the basic input and output system, starts the first operating system of the first partition, connects to the network and downloads the second operating system image file based on the received instruction to download the second operating system image file, and uses the downloaded second operating system image file to recover the second operating system. The embodiment of the present application is applicable to terminal devices using wired networks (for example, desktop computers and industrial computers, etc.) or terminal devices using wireless networks (for example, laptops). It has strong versatility, can achieve accurate push, and can quickly restore the system when the terminal device system crashes, thereby improving the reliability of the system.
[0104] Combine the following Fig.12 The electronic device of the present application is described, wherein: Fig.12 A schematic block diagram of an electronic device according to an embodiment of the present application is shown.
[0105] like Fig.12 As shown, the electronic device 1200 includes: one or more memories 1201 and one or more processors 1202, and the memory 1201 stores a computer program executed by the processor 1202. When the computer program is executed by the processor 1202, the processor 1202 executes the data recovery method described above.
[0106] The electronic device 1200 may be part or all of a computer device that can implement the data recovery method through software, hardware, or a combination of software and hardware.
[0107] like Fig.12 As shown, the electronic device 1200 includes one or more memories 1201, one or more processors 1202, a display (not shown), and a communication interface, etc. These components are interconnected through a bus system and / or other forms of connection mechanisms (not shown). It should be noted that Fig.12 The components and structures of the electronic device 1200 shown are merely exemplary and non-limiting. The electronic device 1200 may also have other components and structures as required.
[0108] The memory 1201 is used to store various data and executable program instructions generated during the operation of the related method, such as for storing various application programs or algorithms for implementing various specific functions. It can include one or more computer program products, and the computer program product can include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory can include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory can include, for example, read-only memory (ROM), hard disk, flash memory, etc.
[0109] Processor 1202 may be a central processing unit (CPU), a graphics processing unit (GPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other form of processing unit having data processing capabilities and / or instruction execution capabilities, and may be other components in electronic device 1200 to perform desired functions.
[0110] In one example, the electronic device 1200 also includes an output device that can output various information (such as images or sounds) to the outside (such as a user), and can include one or more of a display device, a speaker, and the like.
[0111] The communication interface can be an interface of any currently known communication protocol, such as a wired interface or a wireless interface, wherein the communication interface may include one or more serial ports, USB interfaces, Ethernet ports, WiFi, wired networks, DVI interfaces, device integrated interconnect modules or other suitable ports, interfaces, or connections.
[0112] In addition, according to an embodiment of the present application, a storage medium is also provided, on which program instructions are stored, and when the program instructions are executed by a computer or a processor, the corresponding steps of the data recovery method of the embodiment of the present application are executed. The storage medium may include, for example, a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, or any combination of the above storage media.
[0113] The electronic device and storage medium of the embodiments of the present application can implement the aforementioned data recovery method, and therefore have the same advantages as the aforementioned data recovery method.
[0114] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present application to this. Those of ordinary skill in the art may make various changes and modifications therein without departing from the scope and spirit of the present application. All these changes and modifications are intended to be included within the scope of the present application as required by the appended claims.
[0115] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0116] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0117] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0118] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present application should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the corresponding claims, the inventive point is that the corresponding technical problem can be solved with features less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby explicitly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0119] It will be understood by those skilled in the art that, except for mutually exclusive features, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this specification may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0120] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
[0121] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some modules according to the embodiments of the present application. The application can also be implemented as a device program (e.g., computer program and computer program product) for executing a part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0122] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.
[0123] The above is only a specific implementation or description of a specific implementation of the present application, and the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A data recovery method, characterized in that: Applied to an electronic device, the hard disk of the electronic device includes at least a first partition and a second partition, a first operating system is installed in the first partition, and a second operating system is installed in the second partition; the method includes: During the startup of the basic input and output system, an interrupt signal is received; Based on the interrupt signal, starting the first operating system of the first partition; Using the first operating system, based on the received instruction to download the second operating system image file, connecting to a wireless network to download the second operating system image file from a server; wherein the instruction to download the second operating system image file includes a network storage address of the second operating system image file; The second operating system is restored using the acquired second operating system image file.
2. The method according to claim 1, characterized in that The second operating system image file includes at least two versions of the second operating system image file; wherein connecting to the network and downloading the second operating system image file includes: Receive an instruction to select one of the second operating system image files; Based on the instruction to select one of the second operating system image files, download the one of the second operating system image files.
3. The method according to claim 1, characterized in that The first partition is a security partition, wherein the security partition is in an invisible state; the method further includes: When the interrupt signal is received, the basic input and output system uses a reserved custom field of a non-volatile memory host controller interface specification standard protocol to open the security partition and sets the security partition to a visible state.
4. The method according to claim 3, characterized in that The method further comprises: When shutting down the first operating system, releasing the memory resources occupied by the first operating system; The first partition is set to an invisible state.
5. The method according to claim 1, characterized in that The first partition is also installed with a backup recovery program, and the first partition and / or the second partition stores a backup recovery file; the method further comprises at least one of the following steps: Using the first operating system, based on the received custom backup and recovery instruction, using the backup and recovery program and the backup and recovery file, performing custom recovery on the second operating system; Using the first operating system, based on the received operating system recovery instruction, using the backup recovery program and the backup recovery file, the second operating system is restored; Using the first operating system, based on the received instruction to restore the desktop cloud mode, using the backup recovery program and the backup recovery file, the desktop cloud mode of the second operating system is restored.
6. The method according to claim 1, characterized in that The method further comprises: During the startup of the basic input / output system, when the interrupt signal is not received, the second operating system installed in the second partition is started.
7. The method according to claim 1, characterized in that The method further comprises: During the startup of the basic input and output system, when the interrupt signal is received, detecting whether the first partition exists; In the case that the first partition does not exist, the second operating system installed in the second partition is started.
8. The method according to claim 1, characterized in that The method further comprises: In the case where the wireless network cannot be connected and a wired network exists, using the first operating system, based on the received instruction to download the second operating system image file, connecting to the wired network to download the second operating system image file of the server; The second operating system is restored using the acquired second operating system image file.
9. An electronic device, characterized in that: The electronic device comprises: A memory and a processor, wherein the memory stores a computer program executed by the processor, and when the computer program is executed by the processor, the processor executes the data recovery method according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, enables the processor to execute the data recovery method according to any one of claims 1 to 8.