One-key recovery device and method for computer system software
By designing a computer system software one-click recovery device with two sets of power supply circuits independent of the host, the problem that users cannot recover the system by themselves in the prior art is solved, and the convenient, safe and energy-saving system recovery for non-professional users is achieved.
Patent Information
- Application Number
- CN202210619226.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-02
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2042-06-02
AI Technical Summary
The existing computer system recovery device has the problems of backup data being vulnerable to attack, complex installation, non-professional personnel cannot operate it themselves, consume power, and cannot plug and unplug it at will. Especially for users who do not have computer knowledge, it is difficult to recover when the system crashes.
A computer system software one-click recovery device is designed, which includes two sets of power supply circuits, which are independent of the host's storage space and are connected through a USB interface. Users only need to press the button to realize system recovery or backup. The device will automatically power off when not in use, avoid virus damage and save power.
It realizes that non-professional users can complete system recovery and backup by themselves, avoid virus attacks, simplify operation processes, save power consumption, and ensure the safety and convenience of the device.
Smart Images

Figure CN114816553B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a one-key recovery device and method for computer system software, which is an electronic digital data processing device and method, and a recovery device and method for data faults of an electronic digital data processing device. Background Art
[0002] Operating system crashes are a very common computer system failure. For computer professionals or those with some computer knowledge, this is just a simple system recovery problem, but for the vast majority of computer users, it is a very difficult problem, especially for those whose work completely depends on the computer and its network. Once the system crashes, the impact is very serious. Even if the system does not crash, long-term use of the computer will generate a large amount of garbage information, and the best way to clear this garbage is to reinstall the operating system. How to reinstall the operating system conveniently without any technical guidance is what most computer operators without any computer professional background hope for.
[0003] Existing methods for recovering computer operating systems are diverse, but there are still some problems, including:
[0004] 1. Some one-key recovery devices for computer systems use the local storage space of the computer system as the backup space. When this space is damaged due to reasons such as the partition table and the file system superblock, the backup data cannot be recovered. For example, in the Chinese patent "Computer System, Recovery Device and Recovery Method Based on One-Key Recovery Function" (application number 200610083036.6).
[0005] 2. Another problem with local storage is that it is vulnerable to network attacks. Once the backup file is attacked and modified, even if the operating system is restored, it will carry viruses and continue to contaminate the reinstalled operating system.
[0006] 3. The installation of some existing one-key recovery devices independent of the host is usually relatively complex and requires modifying the programs of chips such as the BIOS and the south bridge. It must be completed by computer professionals.
[0007] 4. Almost all existing one-key recovery devices independent of the host are powered on when the host system is working and are closely related to the host, and cannot be simply plugged and unplugged. That is to say, without professional knowledge, the one-key recovery device cannot be randomly plugged and unplugged. This not only consumes electricity but also is a great limitation for non-professionals, making non-professionals afraid to restore the operating system by themselves. Summary of the Invention
[0008] The present invention relates to a one-key recovery device and method for computer system software. The one-key recovery device and method particularly emphasize that the user is a user who has no computer professional knowledge at all, and can install the one-key recovery device by himself without the guidance of professionals, and after installation, can press the "one-key recovery" button by himself to complete the system recovery operation. It is also possible to perform a backup operation on the current system after the system configuration is completed through simple screen options. The backup space of the one-key recovery device is completely independent of the host. When it is necessary to back up or restore the system, the storage space of the one-key recovery device is automatically connected to the host. When it is not necessary to back up or restore the system, even if the one-key recovery device is not unplugged from the host, the one-key recovery device can automatically power off and disconnect the storage space with the host system in an offline form to ensure that the storage space is not damaged due to host system viruses, human misoperation, etc.
[0009] The object of the present invention is achieved through the following technical solutions: A one-key recovery device for computer system software, comprising: an interface circuit capable of being plugged and connected to a host, the interface circuit being connected to a storage socket circuit capable of connecting a built-in boot program, data backup recovery software and a storage device for backup data, the interface circuit and the storage socket circuit being connected to a control circuit and a storage power supply circuit, and the control circuit being connected to a control power supply circuit;
[0010] The control circuit is provided with a delayed start terminal, a control power supply maintenance terminal, and a storage power supply maintenance terminal;
[0011] The control power supply circuit has a built-in button, the button is connected to the gate of the control power supply MOS tube and the delay start end respectively through a Schottky diode, the source and drain of the control power supply MOS tube are connected to the bus input end and the high end of the power supply respectively, the control power supply circuit is also provided with a control power supply switch tube, the base of the control power supply switch tube is connected to the control power supply maintenance end, and the collector of the control power supply switch tube is connected to the gate of the control power supply MOS tube;
[0012] The storage power supply circuit is provided with a storage power supply MOS tube and a storage power supply switch tube, the source and drain of the storage power supply MOS tube are respectively connected to the bus input end and the bus output end, the gate of the storage power supply MOS tube is connected to the collector of the storage power supply switch tube, and the base of the storage power supply switch tube is connected to the storage power supply maintaining end.
[0013] Furthermore, the control circuit is also provided with an indicator light for displaying the operating status.
[0014] Further, the interface circuit is one of USB, PCI, and PCI-E. When the interface circuit is a USB interface circuit, the interface circuit is a USB plug circuit; the storage socket circuit is a USB socket circuit.
[0015] Further, the USB plug circuit and the USB socket circuit are USB2.0, USB3.0, or USB3.1; the storage device is a USB interface device, including one of a USB flash drive, a portable hard drive, and a USB card reader.
[0016] Further, the control circuit is also connected to a 5PIN pin.
[0017] Further, the computer system software one-key recovery device has a board card shape.
[0018] Further, the computer system software one-key recovery device has a chassis shape.
[0019] A computer system software one-key recovery method based on the above device includes: the normal operation process of the host, the process of restoring the host operating system, and the process of backing up the host operating system;
[0020] The normal operation process of the host: When the host is operating normally, if the device is plugged into the host, then: the key is in the off state, there is no signal at the delay start terminal, the control power supply maintenance terminal, and the storage power supply maintenance terminal, the control power supply MOS transistor and the storage power supply MOS transistor are in the cut-off state, so that the control circuit is not powered on, thereby making the storage power supply circuit and the storage socket circuit not powered on; the entire device is in a power-off state;
[0021] The process of restoring the host operating system or the process of backing up the host operating system includes the following steps:
[0022] Step 1, key trigger: Regardless of whether the host is powered on, first confirm whether the device is plugged into the host. After confirmation, start or restart the host. When the host is powered on, immediately press and hold the key;
[0023] Step 2, temporary power supply: During the period when the key is held down, the Schottky diode conducts the control power supply MOS transistor and triggers the control circuit respectively; the control power supply MOS transistor conducts the bus input terminal and the power supply high end, so that the host power supply supplies power to the control circuit, and the control circuit starts to count down the time delay, and the indicator light starts to flash quickly;
[0024] Step 3, Normal power-on startup: When the delay expires, the control circuit sends a conduction level to the control power supply switching transistor and the memory power supply switching transistor, causing the control power supply switching transistor and the memory power supply switching transistor to conduct, thereby causing the control power supply MOS transistor and the memory power supply MOS transistor to conduct, powering the control circuit, the memory socket circuit, and the memory device plugged into the USB socket. The indicator light continues to flash rapidly;
[0025] Step 4, Temporary power-off disconnection: After the control circuit, the memory socket circuit, and the memory device are powered on, the indicator light starts to flash slowly, and the button is disconnected; after the button is disconnected, since the control circuit maintains the conduction level of the control power supply switching transistor and the memory power supply switching transistor, the control power supply switching transistor and the memory power supply switching transistor remain conducting, thereby maintaining the conduction of the control power supply MOS transistor and the memory power supply MOS transistor, and thus maintaining the power supply to the control circuit, the memory socket circuit, and the memory device;
[0026] Step 5, Host system maintenance: Since the control circuit, the interface circuit, the memory socket circuit, and the memory device plugged into the USB socket are continuously powered on, the BIOS of the host can find the built-in boot program stored in the memory device, thereby starting the recovery operation or backup operation of the host operating system;
[0027] Step 6: Complete disconnection: After the recovery operation or backup operation of the host operating system is completed, either long-press the button to disconnect the device from the host; or turn off the host and restart the host, the button remains disconnected, and the host cannot power the control circuit, thereby causing the device to lose power and disconnect from the host; or turn off the host and unplug the device from the host, physically disconnecting.
[0028] Further, the disconnection by long-pressing the button includes: during the period when the button is continuously pressed, the control circuit starts the delay timing, and the indicator light starts to flash rapidly; when the delay expires, the control circuit sends a turn-off level to the control power supply switching transistor and the memory power supply switching transistor, causing the control power supply switching transistor and the memory power supply switching transistor to turn off, thereby causing the memory power supply MOS transistor to turn off, and the memory socket circuit and the memory device plugged into the USB socket lose power. Since the Schottky diode continuously conducts the control power supply MOS transistor during the period when the button is continuously pressed, the control power supply MOS transistor continuously conducts the bus input terminal and the power supply high end, enabling the host power supply to maintain power supply to the control circuit, and the indicator light continues to flash rapidly; after the memory socket circuit and the memory device lose power, the indicator light stays on for a certain period of time and then goes out, and the button is disconnected; after the button is disconnected, the Schottky diode turns off the control power supply MOS transistor, thereby turning off the power supply to the control circuit, and the entire device is in a power-off state.
[0029] Further, when the backup process of the host operating system is started, the built-in bootloader boots the data backup and recovery software to run. The data backup and recovery software prompts to select the hard disk data to be backed up and automatically backs up the specified hard disk data to the storage device. There are two areas in the storage device: a FAT32 partition for storing the bootloader and the data backup and recovery software, and an ext4 partition for storing the backup data. The backup files of the host are stored in the storage device in a gzip-compressed manner, and the backup time is recorded simultaneously.
[0030] The beneficial effects of the present invention are as follows: The device of the present invention is provided with two sets of power supply circuits, one for the control circuit and one for the storage circuit. The purpose of separate power supply is to facilitate power-off when the device is not working, so as to protect the device from being attacked. At the same time, setting two sets of power supply circuits can make the restoration or reinstallation of the host operating system completely automated. With the convenient pluggable interface circuit, the operation of restoring the operating system becomes very simple. Computer users with basic computer knowledge can also easily perform the installation, backup, and restoration operations of the host operating system. Compared with the existing one-key recovery operating system, the one-key recovery device and method provided by the present invention can completely avoid being attacked, is more secure, and is easier to learn and operate for the operator. When the host BIOS has been set up, simple operations such as the computer user starting the computer and pressing keys can successfully perform system restoration. This can be achieved without the need for guidance from others and excessive operation options for operators with no computer knowledge at all. Since the device can be disconnected from the host usually and only connected when needed, it will not be damaged by viruses or human operations, and the device is usually in an offline state with zero power consumption, which is more power-saving. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The present invention will be further described below in conjunction with the drawings and embodiments.
[0032] Figure 1 is the circuit schematic diagram of the one-key recovery device according to Embodiment 1 of the present invention;
[0033] Figure 2 is the flowchart of the system restoration or system backup process using the method according to Embodiment 8 of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0034] Embodiment 1:
[0035] This embodiment provides a one-key recovery device for computer system software, as Figure 1As shown in the figure. This embodiment includes: an interface circuit capable of being plugged into and connected to a host computer, the interface circuit being connected to a storage socket circuit capable of connecting to a storage device for an embedded boot program, data backup and recovery software, and backup data, the interface circuit and the storage socket circuit being connected to a control circuit and a storage power supply circuit, and the control circuit being connected to a control power supply circuit.
[0036] The control circuit is provided with a delay start terminal P3.3, a control power supply maintenance terminal P3.4, and a storage power supply maintenance terminal P3.5.
[0037] The control power supply circuit internally has a key SW1. The key is respectively connected to the gate of a control power supply MOS transistor Q1 and the delay start terminal P3.3 through a Schottky diode D1. The source and drain of the control power supply MOS transistor Q1 are respectively connected to a bus input terminal VBUS_IN and a power supply high end VCC. The control power supply circuit also has a control power supply switching transistor Q3. The base of the control power supply switching transistor Q3 is connected to the control power supply maintenance terminal P3.4, and the collector of the control power supply switching transistor Q3 is connected to the gate of the control power supply MOS transistor Q1.
[0038] The storage power supply circuit has a storage power supply MOS transistor Q2 and a storage power supply switching transistor Q4. The source and drain of the storage power supply MOS transistor Q2 are respectively connected to a bus input terminal VBUS_IN and a bus output terminal VBUS_OUT. The gate of the storage power supply MOS transistor Q2 is connected to the collector of the storage power supply switching transistor Q4, and the base of the storage power supply switching transistor Q4 is connected to the storage power supply maintenance terminal P3.5.
[0039] It should be noted that Figure 1 Taking a single-chip microcomputer as the core of the control circuit chip and a USB socket, with corresponding capacitors, resistors and other components in the interface circuit as an example, this embodiment is not limited to this configuration. The control circuit can be other control chips, such as an MCU, etc. The interface circuit connected to the host computer and the interface connected to the storage device can be other types of interfaces.
[0040] One of the purposes of this embodiment is to establish a device that allows a computer user to reinstall the computer operating system completely by himself / herself without the need for the guidance of others without any obstacles. For this purpose, this embodiment has set a key and five parts of circuits: a control power supply circuit, a control circuit, a storage power supply circuit, an interface circuit, and a storage socket circuit. What the user needs to do is just plug the device into the host computer, start the computer, press the only operation key - the key and hold it for a few seconds, and then select the operation to be performed, such as system reinstallation or system backup, through the host computer's screen and mouse. After that, there is no need to operate at all, and it will be completed automatically.
[0041] The control circuit described above is used by the interface controller to control data transmission for the interface circuit and the storage socket circuit. The interface circuit is used to communicate with the host, which can be a USB plug circuit, or a PCI or PCI-E plug-in circuit. This enables the present embodiment to ultimately result in a small box that can be directly plugged into the computer's USB interface, or a dedicated startup panel installed on the back or front of the computer. A dedicated operating system recovery indicator D2 can also be set in the control circuit. The indicator and the button SW1 can be integrated, i.e., pressing the SW1 button, the flashing of the button indicates the installation, backup, or recovery of the operating system.
[0042] It should be noted that the host described in this embodiment can be a desktop computer, a laptop computer, or a rack-mounted server, a blade server installed in a cabinet, as well as an electronic device with computing and storage functions such as a storage array.
[0043] The storage socket circuit is mainly used to plug in a USB flash drive or other storage devices, such as a portable hard drive, etc. The storage device has built-in data backup and recovery software and a backup operating system or data. The backup operating system can be a Linux system, or it can be a Windows, Unix, or other operating systems. Using the one-key recovery device described in this embodiment does not require any modification to the operating system, boot method, boot sector, or BIOS firmware of the host computer system, and has no impact on the existing system software. Only the boot order of the BIOS needs to be modified to give priority to the one-key recovery device. In the case where the BIOS boot order cannot be modified, it is also possible to manually select to boot from the one-key recovery device when the host starts up. If this device is in the form of a board card, ordinary tools such as a screwdriver are required for installation. If it is in the form of a USB box, no tools are required, and it can be directly plugged into the host's USB interface for use, which is very convenient.
[0044] This embodiment has two sets of power supply circuits, which supply power to the single-chip microcomputer and the storage device respectively. The control power supply circuit mainly supplies power to the control circuit and is the key to this embodiment. The storage power supply circuit mainly supplies power to the storage socket circuit.
[0045] The control power supply circuit is provided with a button responsible for the overall startup of the power supply. It also has an MOS transistor Q1 to control the power supply of the switch control circuit (single-chip microcomputer U1), and a switching transistor Q3 is set up to control the gate of the MOS transistor. After the host is powered on, before the button is pressed, both the MOS transistors Q1 and Q2 are not conducting, so power is not supplied to the single-chip microcomputer, and of course, power is not supplied to the connected storage device either. At this time, the one-key recovery device and its connected storage device are in a power-off state, and the power consumption of both is zero.
[0046] When the button is pressed and held, the Schottky diode D1 will conduct the gate of the MOS transistor Q1 to the ground, connecting the power bus of the interface circuit to the VCC of the single-chip microcomputer, and powering on the single-chip microcomputer. At the same time, the other input terminal of the Schottky diode D1 will conduct the delay start terminal P3.3 of the single-chip microcomputer U1 to the ground, causing the single-chip microcomputer to perform a delay timing. When the delay time is reached, the single-chip microcomputer triggers the power supply process for the USB storage device.
[0047] After the single-chip microcomputer runs, the single-chip microcomputer controls the switch transistor Q3 to conduct. After Q3 conducts, it causes the MOS transistor Q1 to continuously conduct, thereby maintaining the power supply of the single-chip microcomputer (even after the button is released, the power supply of the single-chip microcomputer can be maintained through the single-chip microcomputer and the control circuit), or according to software settings, the power supply of the single-chip microcomputer can be delayed (that is, the power supply of the single-chip microcomputer is still controlled by the button, and the power supply of the single-chip microcomputer stops when the button is released). The single-chip microcomputer can obtain the pressed state of the button through the Schottky diode D1.
[0048] The single-chip microcomputer decides whether to supply power to the USB storage device according to the duration of the button press. The single-chip microcomputer controls the switch transistor Q4 to conduct. After Q4 conducts, it causes the MOS transistor Q2 to conduct, thereby controlling the power supply of the USB storage device.
[0049] The storage power supply circuit is mainly used to supply power to the control storage socket circuit. When the storage power supply maintenance terminal P3.5 of the single-chip microcomputer gives a high level, Q4 conducts, thereby causing the source and drain of Q2 to conduct, and connecting the VBUS_IN of the interface circuit and the VBUS_OUT of the storage socket circuit to supply power to the memory.
[0050] Embodiment 2:
[0051] This embodiment is an improvement of Embodiment 1 and is a refinement of Embodiment 1 regarding the control circuit. The control circuit described in this embodiment also has an indicator light D2 for displaying the operating state, as Figure 1 shown.
[0052] In this embodiment, an LED light-emitting diode is connected to P3.2 of the single-chip microcomputer as an indicator light, and it is set that when the button is pressed and held, the indicator light flashes quickly, and when the single-chip microcomputer is working normally, it flashes slowly.
[0053] Embodiment 3:
[0054] This embodiment is an improvement of the above embodiments and is a refinement of the above embodiments regarding the interface circuit. The interface circuit described in this embodiment is one of USB, PCI, and PCI-E. When the interface circuit is a USB interface circuit, the interface circuit is a USB plug circuit; the storage socket circuit is a USB socket circuit.
[0055] The interface circuit described in this embodiment is a bridge connecting to the host motherboard and is also related to the shape of the product formed by the device. If it is in the form of a board card, PCI or PCI-E, or USB can be used. If it is in the form of a box, a USB interface is more suitable and can be directly plugged into the front panel or back panel of the computer for direct operation, which is more convenient.
[0056] Embodiment 4:
[0057] This embodiment is an improvement of the above embodiment and is a refinement of the above embodiment regarding the interface circuit. The USB plug circuit and USB socket circuit described in this embodiment are USB2.0, USB3.0 or USB3.1. The storage device is a USB interface device, including one of a USB flash drive, a portable hard drive, and a USB card reader.
[0058] This embodiment can use multiple versions of the USB interface protocol. Since multiple USB interface protocols can be used, various USB storage devices can be used, such as USB storage devices with USB interfaces like USB flash drives, portable hard drives, SD / TF card readers, etc.
[0059] Embodiment 5:
[0060] This embodiment is an improvement of the above embodiment and is a refinement of the above embodiment regarding the control circuit. The control circuit described in this embodiment is also connected to a 5PIN pin TP, as Figure 1 shown.
[0061] The 5PIN pin is set to facilitate burning the single-chip microcomputer software into the single-chip microcomputer and can also be used as a debugging serial port. The 5PIN pin can be not soldered on the circuit board, and only the pads are reserved on the circuit board for connection using a fixture.
[0062] Embodiment 6:
[0063] The computer system software one-key recovery device according to claim 5, wherein the computer system software one-key recovery device has an outer shape in the form of a board card.
[0064] The form of the board card means a circuit board that can be plugged into the front panel or rear panel of the computer. Generally, the board card has no outer shell and only has a connecting piece connected to the computer case. The plugging method can be a PCI or PCI-E slot, or directly tightened with screws on the computer case or rack.
[0065] Embodiment 7:
[0066] The computer system software one-key recovery device according to claim 5, wherein the computer system software one-key recovery device has an outer shape in the form of a chassis.
[0067] The chassis form means using a box to enclose the entire device, forming a complete product. A USB plug is set on a certain surface of the box, which can be plugged into the USB socket of the host, and keys and indicator lights are set on a certain surface of the box as the startup and status indication of the device.
[0068] Embodiment Eight:
[0069] This embodiment is a method for one-key recovery of computer system software based on the device described in the above embodiment. This embodiment includes: the normal working process of the host, the process of restoring the host system, and the process of backing up the host system. The normal working process of the host means that the host starts the normal operating system and executes normal services. At this time, the said device can be connected to the host or not connected to the host. When the device is not connected to the host, the device is physically disconnected from the host, the device is not powered on, and no working process will occur, nor will it be invaded by viruses.
[0070] It should be noted that this embodiment is described by taking Figure 1 the single-chip microcomputer architecture as an example, and this embodiment is not limited to the single-chip microcomputer architecture.
[0071] When the host is working normally, if the said device is plugged into the host, then: the key SW1 is in the off state, there is no signal at the delay startup terminal P3.3, the control power supply maintenance terminal P3.4, and the storage power supply maintenance terminal P3.5, the control power supply MOS tube Q1 and the storage power supply MOS tube Q2 are in the cut-off state, so that the control circuit is not powered on, and thus the storage power supply circuit and the storage socket circuit are not powered on; the entire said device is in the power-off state. It can be seen from this that at this time the said device is in the power-off state, the indicator light will not light up, and the virus cannot invade, and the device is in a completely safe state.
[0072] The startup methods of the device for the process of restoring the host operating system and the process of backing up the host operating system are the same. Only two options are set for the operator to choose when loading the built-in data backup and recovery software to perform system recovery or system backup respectively, or the default operation or process can be configured so that the operator does not need to perform any operation after the key is disconnected, and the data backup and recovery software automatically completes the maintenance of the host system and shuts down according to the default operation or process. The specific process includes the following steps, and the process is as Figure 2 shown:
[0073] Step 1, key trigger: Regardless of whether the host is powered on or not, first confirm whether the said device is plugged into the host. After confirmation, start or restart the host. When the host is powered on, immediately press and hold the key SW1.
[0074] The button SW1 is the only button that needs to be operated on the device. After confirming that the device is firmly plugged into the host, then confirm whether the host is powered on. If the host is in the powered-on state, it needs to be restarted; if the host is in the powered-off state, then start the host. The purpose of starting is to enable the built-in boot program of the device to automatically boot the data backup and recovery software into the host system maintenance state. It should be noted that the host BIOS should be in the state where the plug-in interface between the device and the host is the preferred option. That is: if the interface is USB, then the host BIOS is USB-priority; if the interface is PCI or PCI-E, then it is PCI or PCI-E priority.
[0075] Step 2, temporary power supply: During the period when the button is kept pressed, the Schottky diode conducts to control the power supply MOS transistor Q1 and the delay start terminal P3.3 to trigger the control circuit respectively; the control power supply MOS transistor Q1 conducts the bus input terminal and the power supply high end, enabling the host power supply to supply power to the control circuit and causing the control circuit to start timing and turn on, and the indicator D2 starts to flash rapidly.
[0076] The temporary power supply mainly connects the control power supply circuit to the power supply of the host and triggers the control circuit. For safety reasons, a delay trigger can be set. For example, press the button for 3 - 6 seconds and then trigger the control circuit, or a delay can not be set and the button is pressed to directly trigger the power supply circuit. To distinguish between the startup state and the working state, the change of the indicator light can be set. For example, it can be set that the rapid flashing of the indicator light represents the startup state, and the slow flashing or constant on represents the working state. A two-color indicator light can also be used to represent different working states. When the button is pressed, one input terminal of the Schottky diode D1 conducts to the ground, making the gate of the control power supply MOS transistor Q1 conduct to the ground. The low level at the gate of Q1 makes the source and drain of Q1 conduct, that is, the single-chip microcomputer of the control circuit is connected to the host power supply and the single-chip microcomputer is powered on. At the same time, the other input terminal of the Schottky diode inputs the trigger level to the single-chip microcomputer U1, causing the single-chip microcomputer to trigger and enter the delay start state.
[0077] Step 3, normal power supply startup: After the delay time is up, the control circuit sends a conducting level to the control power supply switch transistor Q3 and the storage power supply switch transistor Q4, making the control power supply switch transistor Q3 and the storage power supply switch transistor Q4 conduct, thereby causing the control power supply MOS transistor and the storage power supply MOS transistor to conduct, supplying power to the control circuit, the storage socket circuit, and the storage device plugged into the USB socket, and the indicator D2 continues to flash rapidly.
[0078] After the control circuit starts, the control circuit sends a high level to the bases of the switch transistors Q3 and Q4 of the control power supply circuit and the storage power supply circuit through the control power supply maintenance terminal P3.4 and the storage power supply maintenance terminal P3.5, making the collectors of Q3 and Q4 conduct to the ground, thereby causing Q1 and Q2 to conduct, connecting the power supply of the host to the control power supply circuit and the storage power supply circuit and supplying power.
[0079] Step 4, temporary power supply disconnection: After the control circuit, the storage socket circuit, and the storage device are powered on, the indicator light starts to flash slowly, and the button is disconnected. After the button is disconnected, since the control circuit maintains the conducting levels of the control power supply switching transistor Q3 and the storage power supply switching transistor Q4, the control power supply switching transistor Q3 and the storage power supply switching transistor Q4 are maintained in the conducting state, thereby maintaining the conduction of the control power supply MOS transistor Q1 and the storage power supply MOS transistor Q3, and thus maintaining the power supply of the control circuit, the storage socket circuit, and the storage device.
[0080] Since the single-chip microcomputer U1 has been started, continuously maintaining the conducting signals of the control power supply maintenance terminal P3.4 and the storage power supply maintenance terminal P3.5 enables Q3 and Q4 to be maintained in the conducting state, thereby maintaining the conduction of Q1 and Q2, continuously powering the control power supply circuit and the storage power supply circuit. At this time, the temporary power supply is no longer meaningful. At this time, the pressing of the button SW1 can be released to disconnect the power supply of the Schottky diode D1 to the control power supply circuit. At this time, the host power supply continuously and normally powers the control circuit and the storage device.
[0081] Step 5, host system maintenance: Since the control circuit, the interface circuit, the storage socket circuit, and the storage device plugged into the USB socket are continuously powered on, the BIOS of the host can find the built-in boot program stored in the storage device, thereby starting the recovery operation or backup operation of the host operating system.
[0082] The host system maintenance includes two operations: recovering the operating system and backing up the existing operating system. The backup operating system stored in the storage device in this embodiment refers to an operating system that includes the basic operating system, common application software, and corresponding settings. Generally, the recovery of the operating system refers to reinstalling the operating system and installing some common application software at the same time, as well as some conventional system settings, rather than simply installing the operating system.
[0083] Step 6: Completing disconnection: After the recovery operation or backup operation of the host operating system is completed, either long-press the button to disconnect the device from the host; or turn off the host and restart the host. The button remains in the disconnected state, and the host cannot supply power to the control circuit, thereby causing the device to lose power and disconnect from the host; or turn off the host and unplug the device from the host for physical disconnection.
[0084] After the operating system is installed or backed up, both the host and the one-key recovery device are in the powered-on state. For safety reasons, it is necessary to disconnect the host and the one-key recovery device at this time. There are three ways to disconnect: disconnecting by long-pressing the button, disconnecting by restarting the host, and physical disconnection. A long-press program can be set in the single-chip microcomputer. When the device is powered on, long-pressing the button can disconnect the power supply of the device from the power supply of the host, power off the one-key recovery device, and achieve disconnection by long-pressing the button. Disconnecting by restarting the host means that after the host is installed or backed up, directly shut down the host. After the host is powered off, the power supply of the host cannot maintain the power supply of the control circuit, and the single-chip microcomputer cannot operate due to power loss. There is no signal at the control power supply maintenance terminal P3.4 and the storage power supply maintenance terminal P3.5, so that the storage power supply MOS transistor Q3 and the storage power supply switch transistor Q4 are turned off, thereby making the control power supply MOS transistor Q1 and the storage power supply MOS transistor Q2 cut off, and the one-key recovery device returns to the initial off state. Once the host is started, as long as the button SW1 is not pressed, the entire one-key recovery device will not be powered on and will automatically disconnect from the host, achieving disconnection by restarting the host. When the host is shut down, the one-key recovery device can be directly unplugged from the host to achieve physical disconnection.
[0085] Embodiment Nine:
[0086] This embodiment is an improvement of Embodiment Eight and is a refinement of the disconnection by long-pressing the button described in Embodiment Eight. The disconnection by long-pressing the button in this embodiment includes: during the period when the button is held down, the Schottky diode conducts the delay start terminal P3.3 of the single-chip microcomputer to the ground, enabling the control circuit to start the delay timing, and the indicator light starts to flash rapidly; after the delay expires, the control circuit sends a turn-off level to the control power supply switch transistor Q3 and the storage power supply switch transistor Q4, turning off the control power supply switch transistor Q3 and the storage power supply switch transistor Q4, thereby causing the storage power supply MOS transistor Q2 to turn off, and the storage socket circuit and the storage device plugged into the USB socket lose power. Since the Schottky diode continuously conducts the control power supply MOS transistor Q1 during the period when the button is held down, the control power supply MOS transistor Q1 continuously conducts the bus input terminal and the power supply high end, enabling the host power supply to maintain the power supply to the control circuit, and the indicator light continues to flash rapidly; after the storage socket circuit and the storage device lose power, the indicator light stays on for a certain period of time and then goes out, and the button is disconnected; after the button is disconnected, the Schottky diode turns off the control power supply MOS transistor Q1, thereby turning off the power supply of the control circuit, and the entire device is in the power-off state.
[0087] This embodiment is carried out when the host and the one-key recovery device are connected together and powered on simultaneously. A delay start program and a delay shutdown program are set in the single-chip microcomputer at the same time. When the one-key recovery device is in the overall power-off state, pressing the button starts the delay start program. When the one-key recovery device is in the overall powered-on state, pressing the button starts the delay shutdown program. In this embodiment, both the start and the shutdown are borne by the delay start terminal P3.3 of the single-chip microcomputer.
[0088] Example Ten:
[0089] This example is an improvement of Example Nine and a refinement of the backup process in Example Nine. When the operating system backup process in this example starts, the built-in bootloader boots the data backup and recovery software to run. The data backup and recovery software prompts to select the hard disk data to be backed up and automatically backs up the specified hard disk data to the storage device. There are two areas in the storage device: a FAT32 partition for storing the bootloader and the data backup and recovery software, and an ext4 partition for storing the backup data. The backup files of the host are stored in the storage device in a gzip-compressed manner, and the backup time is recorded simultaneously.
[0090] The storage device in this example has a built-in independent bootloader and operating system, and does not depend on the operating system and software installed in the host. Even if the operating system and software of the host completely crash, it does not affect the operation of the one-key recovery program.
[0091] The USB storage device has two partitions. The first partition is a FAT32 partition for storing the bootloader and the data backup and recovery software, and the second partition is an ext4 partition for storing the backup data of the computer system.
[0092] The storage area of the storage device can pre-store the hard disk backup files of the computer system with factory settings. The storage device can automatically restore the data of the host hard disk or RAID group (Redundant Array of Independent Disks) without manual intervention through software, or the user can manually select or confirm the hard disk or RAID group to be backed up and restored through the mouse and keyboard.
[0093] When performing data backup or recovery, a progress bar, elapsed time, and estimated remaining time can be displayed on the monitor for the operator's reference. The data backup and recovery software in the storage device can perform backup and recovery of the computer system hard disk and data hard disk in the way of complete block device mirroring, or can also perform backup and recovery in the way of file copying. The backup files of the host are stored in the storage device in a gzip-compressed manner, and the backup time is recorded simultaneously.
[0094] The large-capacity hard disk or large-capacity RAID group in the computer system can be shielded through software settings. For large-capacity storage systems, it can avoid accidentally restoring the backup files of the system disk to the data disk.
[0095] For each backup and recovery operation, there is a log record in the storage device to avoid disputes caused by misoperations.
[0096] Finally, it should be noted that the above is only used to illustrate the technical solution of the present invention and not to limit it. Although the present invention has been described in detail with reference to the preferred arrangement, those of ordinary skill in the art should understand that the technical solution of the present invention (such as the overall layout of the circuit, the application of various interfaces, the connection methods of various circuit components, the sequence of steps, etc.) can be modified or equivalently replaced without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A one-key recovery device for computer system software, characterized in that Comprising: An interface circuit capable of plugging and connecting to a host, the interface circuit being connected to a storage socket circuit capable of connecting to a storage device for storing a built-in boot program, data backup and recovery software, and backup data, the interface circuit and the storage socket circuit being connected to a control circuit and a storage power supply circuit, and the control circuit being connected to a control power supply circuit; The control circuit is provided with a delay start terminal, a control power supply maintenance terminal, and a storage power supply maintenance terminal; The control power supply circuit has a button built therein, the button being connected to the gate of a control power supply MOS transistor and the delay start terminal respectively through a Schottky diode, the source and drain of the control power supply MOS transistor being connected to a bus input terminal and a high-end power supply respectively, the control power supply circuit further having a control power supply switching transistor, the base of the control power supply switching transistor being connected to the control power supply maintenance terminal, and the collector of the control power supply switching transistor being connected to the gate of the control power supply MOS transistor; The storage power supply circuit has a storage power supply MOS transistor and a storage power supply switching transistor, the source and drain of the storage power supply MOS transistor being connected to a bus input terminal and a bus output terminal respectively, the gate of the storage power supply MOS transistor being connected to the collector of the storage power supply switching transistor, and the base of the storage power supply switching transistor being connected to the storage power supply maintenance terminal.
2. The one-key recovery device for computer system software according to claim 1, characterized in that, The control circuit is further provided with an indicator light for displaying the operating state.
3. The one-key recovery device for computer system software according to claim 2, characterized in that, The interface circuit is one of USB, PCI, and PCI-E. When the interface circuit is a USB interface circuit, the interface circuit is a USB plug circuit; the storage socket circuit is a USB socket circuit.
4. The one-key recovery device for computer system software according to claim 3, characterized in that The USB plug circuit and the USB socket circuit are USB2.0, USB3.0, or USB3.1; the storage device is a USB interface device, including one of a USB flash drive, a portable hard drive, and a USB card reader.
5. The one-key recovery device for computer system software according to claim 4, characterized in that, The control circuit is further connected to a 5PIN pin.
6. The one-key recovery device for computer system software according to claim 5, characterized in that, The computer system software one-key recovery device has a board card shape.
7. The one-key recovery device for computer system software according to claim 5, characterized in that, The computer system software one-key recovery device has a chassis shape.
8. A one-key recovery method for computer system software based on the device described in claim 6 or 7, characterized in that Comprising: The normal operation process of the host, the process of restoring the host operating system, and the process of backing up the host operating system; The normal operation process of the host: When the host is operating normally, if the device is plugged into the host, then: the button is in the off state, the delay start terminal, the control power supply maintenance terminal, and the storage power supply maintenance terminal have no signals, the control power supply MOS transistor and the storage power supply MOS transistor are in the cut-off state, so that the control circuit is not powered on, and thus the storage power supply circuit and the storage socket circuit are not powered on; The entire device is in a power-off state; The process of restoring the host operating system or the process of backing up the host operating system includes the following steps: Step 1, button trigger: Regardless of whether the host is powered on, first confirm whether the device is plugged into the host. After confirmation, start or restart the host. When the host is powered on, immediately press and hold the button; Step 2, Temporary power supply: During the period when the button is kept pressed, the Schottky diode conducts to control the power supply MOS transistor and the trigger control circuit respectively; the control power supply MOS transistor conducts the bus input terminal and the high-end power supply, enabling the host power supply to supply power to the control circuit, and causing the control circuit to start timing with a delay, and the indicator light starts to flash rapidly; Step 3, Normal power supply startup: When the delay time is up, the control circuit sends a conduction level to the control power supply switch transistor and the storage power supply switch transistor, causing the control power supply switch transistor and the storage power supply switch transistor to conduct, thereby causing the control power supply MOS transistor and the storage power supply MOS transistor to conduct, supplying power to the control circuit, the storage socket circuit, and the storage device plugged into the USB socket, and the indicator light continues to flash rapidly; Step 4, Temporary power supply disconnection: After the control circuit, the storage socket circuit, and the storage device are powered on, the indicator light starts to flash slowly, and the button is disconnected; after the button is disconnected, since the control circuit maintains the conduction level of the control power supply switch transistor and the storage power supply switch transistor, the control power supply switch transistor and the storage power supply switch transistor remain conductive, thereby maintaining the conduction of the control power supply MOS transistor and the storage power supply MOS transistor, and thus maintaining the power supply to the control circuit, the storage socket circuit, and the storage device; Step 5, Host system maintenance: Since the control circuit, the interface circuit, the storage socket circuit, and the storage device plugged into the USB socket are continuously powered on, the BIOS of the host can find the built-in boot program stored in the storage device, thereby starting the recovery operation or backup operation of the host operating system; Step 6: Completion of disconnection: After the recovery operation or backup operation of the host operating system is completed, or by pressing and holding the button, the device is disconnected from the host; or by turning off the host and restarting the host, the button remains in the disconnected state, and the host cannot supply power to the control circuit, thereby causing the device to lose power and be disconnected from the host; or by turning off the host and unplugging the device from the host, a physical disconnection is made.
9. The one-key recovery method of computer system software according to claim 8, characterized in that The disconnection by pressing and holding the button includes: During the period when the button is kept pressed, the control circuit starts timing with a delay, and the indicator light starts to flash rapidly; when the delay time is up, the control circuit sends a cut-off level to the control power supply switch transistor and the storage power supply switch transistor, causing the control power supply switch transistor and the storage power supply switch transistor to cut off, thereby causing the storage power supply MOS transistor to cut off, and the storage socket circuit and the storage device plugged into the USB socket lose power. Since the Schottky diode continuously conducts the control power supply MOS transistor during the period when the button is kept pressed, the control power supply MOS transistor continuously conducts the bus input terminal and the high-end power supply, enabling the host power supply to maintain the power supply to the control circuit, and the indicator light continues to flash rapidly; after the storage socket circuit and the storage device lose power, the indicator light stays on for a certain period of time and then goes out, and the button is disconnected; after the button is disconnected, the Schottky diode cuts off the control power supply MOS transistor, thereby cutting off the power supply to the control circuit, and the entire device is in a power-off state.
10. The computer system software one-key recovery method according to claim 8, characterized in that When the backup process of the host operating system starts, the built-in bootloader boots the data backup and recovery software to run. The data backup and recovery software prompts to select the hard disk data to be backed up and automatically backs up the specified hard disk data to the storage device. There are two areas in the storage device: a FAT32 partition for storing the bootloader and the data backup and recovery software, and an ext4 partition for storing the backup data. The backup files of the host are stored in the storage device in a gzip-compressed manner, and the backup time is recorded simultaneously.
Citation Information
Patent Citations
Computer system based on key recovery function, recovery device and method
CN1896915A
Computer system software one-key recovery device
CN217404856U