CN111382009A - System automatic maintenance method and computer equipment with automatic maintenance function - Google Patents
System automatic maintenance method and computer equipment with automatic maintenance function Download PDFInfo
- Publication number
- CN111382009A CN111382009A CN201811632643.2A CN201811632643A CN111382009A CN 111382009 A CN111382009 A CN 111382009A CN 201811632643 A CN201811632643 A CN 201811632643A CN 111382009 A CN111382009 A CN 111382009A
- Authority
- CN
- China
- Prior art keywords
- code
- automatic maintenance
- storage unit
- backup
- temporary storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012423 maintenance Methods 0.000 title claims abstract description 52
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000003860 storage Methods 0.000 claims abstract description 101
- 238000011084 recovery Methods 0.000 claims description 5
- 230000001960 triggered effect Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 2
- 239000012620 biological material Substances 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1417—Boot up procedures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a system automatic maintenance method and computer equipment with an automatic maintenance function. The system automatic maintenance method is used for restoring or backing up an operating system and comprises the following steps. Firstly, the BIOS detects whether the temporary storage unit has the first code or the second code. When the temporary storage unit stores the first code, the basic input/output system drives the first storage module to execute the backup program. When the temporary storage unit stores the second code, the basic input/output system drives the second storage module to execute the restoring program.
Description
[ technical field ] A method for producing a semiconductor device
The present invention relates to a system automatic maintenance method and a computer device with an automatic maintenance function, and more particularly, to a system automatic maintenance method and a computer device with an automatic maintenance function, which can be executed by a bios.
[ background of the invention ]
Conventionally, if a boot exception occurs in an Operating System (OS), a user may choose to restore the last backup boot data by performing a system restore. For example, when a user finds that a part of the driver is damaged, the user can start a restore process of the system in the operating system, select an appropriate backup time point, and then perform the restore process of the system. However, there are still many problems in practical use, such as that when the boot data is damaged and the operating system cannot be accessed, the user often cannot smoothly perform the system recovery procedure.
In addition, the traditional backup mode is not humanized and the backup time points are not many. For example, system backups often cannot be easily and intuitively performed due to the lengthy steps of system backups. For another example, a conventional backup time point is not so many, and the backup time point may be established only when the system is significantly updated, so that the user is often forced to use the backup file that is too old. Therefore, there is a need for a system automatic maintenance method and a computer device with automatic maintenance function, which can overcome the above-mentioned problems.
[ summary of the invention ]
The invention provides a system automatic maintenance method, which can execute the recovery program of the system by the basic input output system, and can execute the backup program of the system by the basic input output system periodically or according to the control of a user.
The invention provides an automatic system maintenance method which is used for restoring or backing up an operating system. Firstly, the BIOS detects whether the temporary storage unit has the first code or the second code. When the temporary storage unit stores the first code, the basic input/output system drives the first storage module to execute the backup program. When the temporary storage unit stores the second code, the basic input/output system drives the second storage module to execute the restoring program.
In one example, the system automatic maintenance method may further include the following steps. The basic input/output system compares the first code or the second code with the set data to generate a backup command or a restore command. The backup instruction is used for driving the first storage module to execute the backup program, and the restoration instruction is used for driving the second storage module to execute the restoration program. In addition, the basic input/output system can also be provided with an Extensible Firmware Interface (EFI), and the extensible firmware interface generates a backup instruction or a restore instruction according to the result of comparing the first code with the second code and setting the data. In addition, the basic input/output system can periodically generate a backup instruction or a restore instruction, or the basic input/output system or the operating system periodically stores the first code or the second code in the temporary storage unit.
The invention provides a computer device with automatic maintenance function, which can execute the recovery program of the system by the basic input output system, and can execute the backup program of the system by the basic input output system periodically or according to the control of the user.
The invention provides computer equipment with an automatic maintenance function, which comprises a first storage module, a second storage module, a temporary storage unit and a processing unit. The temporary storage unit is used for receiving the first code or the second code. The processing unit is used for selectively executing a basic input/output system (BIOS) or an operating system. The BIOS detects whether the temporary storage unit stores the first code or the second code, when the temporary storage unit stores the first code, the BIOS drives the first storage module to execute the backup program, and when the temporary storage unit stores the second code, the BIOS drives the second storage module to execute the restore program.
[ Effect and Effect of the invention ]
In summary, the automatic system maintenance method and the computer device with the automatic maintenance function provided by the present invention can execute the recovery program of the system by the bios without entering the operating system. In addition, the system automatic maintenance method of the invention can execute the backup program of the system by the basic input output system regularly or according to the control of the user.
[ description of the drawings ]
FIG. 1 is a functional block diagram of a computer device with automatic maintenance function according to an embodiment of the present invention.
FIG. 2 is a flowchart illustrating a method for automatic system maintenance according to an embodiment of the invention.
[ detailed description ] embodiments
The features, objects, and functions of the present invention are further disclosed below. However, the following description is only an example of the present invention, and the scope of the present invention should not be limited thereby, and all equivalent changes and modifications made within the scope of the present invention will not be lost, and the present invention should be considered as further embodiments of the present invention.
Referring to fig. 1, fig. 1 is a functional block diagram of a computer device with an automatic maintenance function according to an embodiment of the invention. As shown in fig. 1, a computer apparatus 1 with automatic maintenance function may include a first storage module 10, a second storage module 12, a temporary storage unit 14, and a processing unit 16. The first storage module 10, the second storage module 12 and the buffer unit 14 may be electrically connected to the processing unit 16, respectively, and the processing unit 16 accesses data in the first storage module 10, the second storage module 12 and the buffer unit 14.
The first storage module 10 and the second storage module 12 may be used for a backup program and a restore program, respectively, and the first storage module 10 and the second storage module 12 may be the same storage device or different storage devices. For example, the first storage module 10 and the second storage module 12 may refer to the same sector of the same hard disk, so that the latest backup data stored in the backup program can be directly used for the restore process. Of course, the first storage module 10 and the second storage module 12 may be different hard disks or different sectors of the same hard disk. For example, the user may alternatively backup the system in different hard disks, so that the user may also select the previous backup data to perform the restore procedure, which is not limited herein.
The temporary storage unit 14 may be configured to receive the first code or the second code. The register unit 14 may be a register, such as a CMOS device, for writing simple data. The processing unit 16 may be a Central Processing Unit (CPU) or other computing device for selectively executing a basic input/output system (BIOS) or an Operating System (OS). For example, in the boot program, the processing unit 16 may first run the bios, and then run the operating system after determining that the boot program is normally completed. Of course, the processing unit 16 may have more computing functions, and the embodiment is not limited thereto. In fact, the bios is run and before entering the operating system, the bios may determine whether the register unit 14 stores the first code or the second code. When the temporary storage unit 14 stores the first code, the bios drives the first storage module 10 to execute the backup program, and when the temporary storage unit 14 stores the second code, the bios drives the second storage module 12 to execute the restore program.
In one example, whether the first code or the second code is stored in the register unit 14 is a basis for determining whether to perform the backup procedure or the restore procedure. Therefore, it is worth noting how to write the first code in the temporary storage unit 14 when the system backup is needed, and how to write the second code in the temporary storage unit 14 when the system recovery is needed. In an actual operation example, a user may manually determine when a system backup or a system restore is required, and the user may run a setting program in the operating system, and write the first code or the second code into the temporary storage unit 14 by the setting program. It should be noted that the running of the set program in the operating system does not mean that the operating system directly executes the backup or restore, but the bios still executes the backup or restore program in order to allow the user to conveniently schedule the flow to be backed up or restored through the operating system.
In one example, the computer device 1 with automatic maintenance function may further comprise function keys 18, and the function keys 18 may be directly and manually controlled by a user. For example, the function key 18 may have a button dedicated to requiring backup and a button dedicated to requiring restore. When the user wishes to back up the computer device 1 having the automatic maintenance function, the corresponding button of the function key 18 may be pressed so that the first code is set in the temporary storage unit 14. Conversely, when the user wishes to restore the computer apparatus 1 having the automatic maintenance function, the corresponding button of the function key 18 may be pressed, so that the second code is set in the temporary storage unit 14. Of course, the present embodiment does not limit the functions corresponding to the function keys 18 and the purpose of the user to operate the function keys 18. For example, the function keys 18 may provide more different commands for the user, or the function keys 18 may provide only the user for backup or only the user for restore.
Then, when the computer device 1 with the automatic maintenance function enters the boot program again, the bios may check whether there is a set code in the register unit 14. In one example, the bios further has an Extensible Firmware Interface (EFI), and when the bios determines that the temporary storage unit 14 has the first code, the EFI may compare the first code with a pre-stored configuration data to generate a backup command. In fact, the setting data may be defined by the user himself, and the user may define the corresponding relationship between the first code and the backup command in the setting data. In some examples, the user may also define the corresponding relationship between the first code and other instructions, which is not limited herein. Of course, the embodiment herein does not limit how the computer device 1 with the automatic maintenance function enters the power-on program again, for example, after the function key 18 is pressed, the command for triggering the power-on restart may be accompanied, or the user is waited to manually power on again.
In other words, the bios may generate the corresponding command according to the code in the register unit 14. In the above example, when the temporary storage unit 14 has the first code, the bios may start the backup program to control the first storage module 10 to store the backup data. On the other hand, when the bios determines that the temporary storage unit 14 has the second code, the bios may also generate the restore command through the extensible firmware interface. Then, the bios may start the recovery procedure and recover the system using the data stored in the second storage module 12. As mentioned above, the first storage module 10 and the second storage module 12 may actually refer to the same sector of the same hard disk, so that the latest backup data stored in the backup program can be directly used for the restore process.
In a practical example, the backup command and the restore command may be transmitted to the first storage module 10 and the second storage module 12 through the extensible firmware interface. Taking the first storage module 10 and the second storage module 12 as the same sector as each other, the backup command is provided to a sector of the hard disk related to a system core (kernel) to drive the hard disk to completely move the data in the sector of the operating system to another backup sector. In other words, the backup data can fully backup the operating system as long as the backup sector capacity is sufficient. On the other hand, the restore command is also provided to the sector of the hard disk related to the system kernel to drive the hard disk to completely cover the backup data in the backup sector with the sector of the original operating system.
In addition, in addition to the user directly and manually controlling when the backup or restore is to be performed, the computer apparatus 1 having the automatic maintenance function can automatically perform the backup or restore of the system according to some conditions. In one example, the bios may not only perform backup or restore according to the codes in the register unit 14, but also periodically generate a backup instruction or a restore instruction without according to the codes in the register unit 14. For example, the bios may backup the bios at a fixed time, and the bios may provide a setting screen to display options (e.g., a fixed time period) for periodically backing up the relevant settings. After the user finishes the setting, the basic input and output system can send out the backup command periodically according to the time set by the user. Here, the bios directly gives a backup instruction, and may also avoid a risk caused by the system not performing a backup for a long time. In addition, the bios may also periodically store the first code or the second code in the temporary storage unit 14, and when the bios is next booted, the bios may check the code in the temporary storage unit 14, so as to perform backup or restore correspondingly.
In another example, the operating system may periodically store the first code or the second code in the temporary storage unit 14, and the bios may check the code in the temporary storage unit 14 at the next boot process, so as to perform the backup or restore accordingly. In addition, when a failure or a crash of the boot data occurs and a backup or restore is deemed necessary, the operating system may also store the first code or the second code in the temporary storage unit 14. Therefore, when the computer is booted next time, the bios may check the codes in the temporary storage unit 14, so as to perform backup or restore accordingly. Similarly, the first code or the second code is stored in the temporary storage unit 14 by the operating system, which does not mean that the operating system directly executes the backup or restore, but actually the bios executes the backup or restore program.
In order to make the person skilled in the art understand the system automatic maintenance method of the present invention, the following description is provided with a computer device 1 having an automatic maintenance function. Referring to fig. 1 and fig. 2 together, fig. 2 is a flowchart illustrating a method for automatically maintaining a system according to an embodiment of the invention. As shown in the drawing, in step S20, the bios detects whether the temporary storage unit 14 stores the first code or the second code. In step S22, when the temporary storage unit 14 stores the first code, the bios drives the first storage module 10 to execute the backup program. In step S24, when the temporary storage unit 14 stores the second code, the bios drives the second storage module 12 to execute the restore process. Other steps of the system automatic maintenance method have been fully described in the foregoing embodiments, and are not described herein again.
[ Effect and Effect of example ]
In summary, the automatic system maintenance method and the computer device with the automatic maintenance function provided by the present invention can execute the recovery program of the system by the bios without entering the operating system. In addition, the system automatic maintenance method of the invention can execute the backup program of the system by the basic input output system regularly or according to the control of the user.
[ notation ] to show
Computer equipment with automatic maintenance function
10 first storage module
12 second storage module
14 temporary storage unit
16 processing unit
18 function key
S20-S24 process flow
[ depositing of biological Material ]
None.
Claims (14)
1. A system automatic maintenance method for restoring or backing up an operating system, comprising:
detecting whether the temporary storage unit has the first code or the second code by the basic input/output system;
when the temporary storage unit stores the first code, the basic input/output system drives a first storage module to execute a backup program; and
when the temporary storage unit stores the second code, the basic input/output system drives a second storage module to execute a restoring program.
2. The system automatic maintenance method of claim 1, further comprising:
comparing the first code or the second code with set data by the basic input and output system so as to generate a backup instruction or a recovery instruction;
the backup instruction is used for driving the first storage module to execute the backup program, and the restoration instruction is used for driving the second storage module to execute the restoration program.
3. The system automatic maintenance method according to claim 2, characterized in that:
the BIOS further comprises an extensible firmware interface, and the extensible firmware interface generates the backup instruction or the restore instruction according to the result of comparing the first code or the second code with the set data.
4. The system automatic maintenance method according to claim 2, further comprising:
and periodically generating the backup instruction or the recovery instruction by the basic input and output system.
5. The system automatic maintenance method according to claim 2, further comprising:
and the first code or the second code is periodically stored in the temporary storage unit by the basic input and output system.
6. The system automatic maintenance method according to claim 2, further comprising:
periodically storing, by the operating system, the first code or the second code in the staging unit.
7. The system automatic maintenance method according to claim 1, characterized in that:
the temporary storage unit is controlled by an external instruction and is written into the first code or the second code.
8. A computer device having an automatic maintenance function, comprising:
a first storage module;
a second storage module;
the temporary storage unit is used for receiving the first code or the second code; and
the processing unit is electrically connected with the first storage module, the second storage module and the temporary storage unit and is used for selectively executing a basic input/output system (BIOS) or an operating system;
the BIOS detects whether the temporary storage unit stores the first code or the second code, when the temporary storage unit stores the first code, the BIOS drives the first storage module to execute a backup program, and when the temporary storage unit stores the second code, the BIOS drives the second storage module to execute a restore program.
9. A computer device with automatic maintenance function according to claim 8, characterized in that:
the basic input and output system compares the first code or the second code with set data to generate a backup instruction or a reduction instruction, wherein the backup instruction is used for driving the first storage module to execute the backup program, and the reduction instruction is used for driving the second storage module to execute the reduction program.
10. A computer device with automatic maintenance function according to claim 9, characterized in that:
the BIOS further comprises an extensible firmware interface, and the extensible firmware interface generates the backup instruction or the restore instruction according to the result of comparing the first code or the second code with the set data.
11. A computer device with automatic maintenance function according to claim 9, characterized in that:
wherein, the BIOS further periodically generates the backup command or the restore command.
12. A computer device with automatic maintenance function according to claim 9, characterized in that:
the BIOS periodically stores the first code or the second code in the temporary storage unit.
13. A computer device with automatic maintenance function according to claim 9, characterized in that:
the operating system periodically stores the first code or the second code in the temporary storage unit.
14. The computer device with automatic maintenance function according to claim 8, further comprising:
the function key generates an external instruction when being triggered, and the external instruction is used for setting the temporary storage unit so that the temporary storage unit selectively stores the first code or the second code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811632643.2A CN111382009B (en) | 2018-12-29 | 2018-12-29 | Automatic system maintenance method and computer equipment with automatic maintenance function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811632643.2A CN111382009B (en) | 2018-12-29 | 2018-12-29 | Automatic system maintenance method and computer equipment with automatic maintenance function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111382009A true CN111382009A (en) | 2020-07-07 |
CN111382009B CN111382009B (en) | 2024-01-09 |
Family
ID=71214974
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811632643.2A Active CN111382009B (en) | 2018-12-29 | 2018-12-29 | Automatic system maintenance method and computer equipment with automatic maintenance function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111382009B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114968379A (en) * | 2021-02-24 | 2022-08-30 | 宇瞻科技股份有限公司 | Storage device recovery system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6052793A (en) * | 1998-06-10 | 2000-04-18 | Dell Usa, L.P. | Wakeup event restoration after power loss |
US6757838B1 (en) * | 2000-10-13 | 2004-06-29 | Hewlett-Packard Development Company, L.P. | Hardware independent implementation of computer system BIOS recovery |
TW201248499A (en) * | 2011-05-18 | 2012-12-01 | Asustek Comp Inc | Method of swapping between operating systems applied to computer system |
CN103186434A (en) * | 2011-12-31 | 2013-07-03 | 国民技术股份有限公司 | Method and system for recovering basic input/output system |
CN103455387A (en) * | 2012-05-30 | 2013-12-18 | 深圳市祈飞科技有限公司 | Method and system for backing up and restoring operation system in UEFI (united extensible firmware interface) BIOS (basic input /output system) |
CN107844439A (en) * | 2016-09-20 | 2018-03-27 | 三星电子株式会社 | Support the storage device and system and its operating method of command line training |
-
2018
- 2018-12-29 CN CN201811632643.2A patent/CN111382009B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6052793A (en) * | 1998-06-10 | 2000-04-18 | Dell Usa, L.P. | Wakeup event restoration after power loss |
US6757838B1 (en) * | 2000-10-13 | 2004-06-29 | Hewlett-Packard Development Company, L.P. | Hardware independent implementation of computer system BIOS recovery |
TW201248499A (en) * | 2011-05-18 | 2012-12-01 | Asustek Comp Inc | Method of swapping between operating systems applied to computer system |
CN103186434A (en) * | 2011-12-31 | 2013-07-03 | 国民技术股份有限公司 | Method and system for recovering basic input/output system |
CN103455387A (en) * | 2012-05-30 | 2013-12-18 | 深圳市祈飞科技有限公司 | Method and system for backing up and restoring operation system in UEFI (united extensible firmware interface) BIOS (basic input /output system) |
CN107844439A (en) * | 2016-09-20 | 2018-03-27 | 三星电子株式会社 | Support the storage device and system and its operating method of command line training |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114968379A (en) * | 2021-02-24 | 2022-08-30 | 宇瞻科技股份有限公司 | Storage device recovery system |
Also Published As
Publication number | Publication date |
---|---|
CN111382009B (en) | 2024-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7827396B2 (en) | Information processing apparatus, storage medium, and data rescue method | |
EP2130126B1 (en) | Self-managed processing device | |
EP2068246B1 (en) | Auto repair method of system configurations using single key control | |
CN105917306B (en) | System and method for configuring system firmware configuration data | |
US20120311279A1 (en) | Data recovery and backup system and process | |
US20170046229A1 (en) | Dual boot computer system | |
US20090271660A1 (en) | Motherboard, a method for recovering the bios thereof and a method for booting a computer | |
KR101696490B1 (en) | Partial rebooting recovery apparatus and method | |
US20200250313A1 (en) | Bios recovery and update | |
JP2011258032A (en) | Information processing unit | |
US11275591B2 (en) | Data storage device and method for maintaining normal boot operation of data storage device | |
US8583959B2 (en) | System and method for recovering data of complementary metal-oxide semiconductor | |
EP3879396B1 (en) | Fail safe update of firmware in an audio processing chip | |
CN111522690B (en) | Data storage device and method for maintaining normal start-up operation of data storage device | |
CN111382009B (en) | Automatic system maintenance method and computer equipment with automatic maintenance function | |
CN112035171A (en) | Factory setting restoration method and system based on UEFI firmware | |
US20220179756A1 (en) | Computer system and method capable of self-monitoring and restoring an operation of operating system | |
KR20130075807A (en) | An atm with back-up hdd for booting and the booting method there of | |
US11409607B1 (en) | Basic input output system updates | |
KR101850275B1 (en) | Method for generating boot image for fast booting and image forming apparatus for performing the same, method for performing fast booting and image forming apparatus for performing the same | |
TWI707228B (en) | Method for automatically maintaining system and computer thereof | |
US20160004607A1 (en) | Information processing apparatus and information processing method | |
KR100964636B1 (en) | System Controller and Operating Method of the Same | |
KR20130040638A (en) | Method for restoring error of boot image for fast booting and image forming apparatus for performing the same | |
KR20130040637A (en) | Method for updating boot image for fast booting and image forming apparatus for performing the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |