[go: up one dir, main page]

TWI707228B - Method for automatically maintaining system and computer thereof - Google Patents

Method for automatically maintaining system and computer thereof Download PDF

Info

Publication number
TWI707228B
TWI707228B TW107147115A TW107147115A TWI707228B TW I707228 B TWI707228 B TW I707228B TW 107147115 A TW107147115 A TW 107147115A TW 107147115 A TW107147115 A TW 107147115A TW I707228 B TWI707228 B TW I707228B
Authority
TW
Taiwan
Prior art keywords
code
basic
storage unit
backup
temporary storage
Prior art date
Application number
TW107147115A
Other languages
Chinese (zh)
Other versions
TW202024857A (en
Inventor
李柏翰
陳國傑
Original Assignee
精英電腦股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 精英電腦股份有限公司 filed Critical 精英電腦股份有限公司
Priority to TW107147115A priority Critical patent/TWI707228B/en
Publication of TW202024857A publication Critical patent/TW202024857A/en
Application granted granted Critical
Publication of TWI707228B publication Critical patent/TWI707228B/en

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for automatically maintaining system and a computer thereof. The method is configured to recover or backup an OS, and the method comprises the following steps. First, basic input output system (BIOS) detects whether a first code or a second code is stored in a register unit. When the first code is stored in the register unit, the BIOS drives a first storage module to perform a backup procedure. When the second code is stored in the register unit, the BIOS drives a second storage module to perform a recovery procedure.

Description

系統自動維護方法與具自動維護功能的電腦設備System automatic maintenance method and computer equipment with automatic maintenance function

本發明係關於一種系統自動維護方法與具自動維護功能的電腦設備,特別是關於一種可以由基本輸出入系統執行的系統自動維護方法與具自動維護功能的電腦設備。The present invention relates to a system automatic maintenance method and computer equipment with automatic maintenance function, in particular to a system automatic maintenance method that can be executed by a basic input/output system and computer equipment with automatic maintenance function.

傳統上,如果發生作業系統(OS)的開機異常,使用者往往會選擇藉由進行系統還原,以回復上次備份的開機資料。舉例來說,當使用者發現部分的驅動程式毀損,使用者可以在作業系統中開啟系統的還原程式,選擇適當的備份時間點,接著便可以進行系統的還原程序。然而,實際使用上仍然有許多問題,例如當開機資料毀損,無法進入作業系統時,使用者往往無法順利進行系統的還原程序。Traditionally, if an operating system (OS) boot exception occurs, users often choose to restore the boot data from the last backup by performing a system restore. For example, when the user finds that part of the driver is damaged, the user can open the system restore program in the operating system, select an appropriate backup time point, and then perform the system restore process. However, there are still many problems in actual use. For example, when the boot data is damaged and cannot enter the operating system, users often cannot perform the system restoration process smoothly.

此外,傳統的備份方式不人性化且備份時間點不多。例如,由於系統備份的步驟冗長,往往無法很輕易、直覺地執行系統備份。又例如,傳統的備份時間點不多,可能只有在系統重大更新時才會建立備份時間點,從而使用者經常被迫使用太舊的備份檔案。因此,業界需要一種系統自動維護方法與具自動維護功能的電腦設備,能夠克服上述問題。In addition, the traditional backup method is not user-friendly and there are not many backup time points. For example, due to the lengthy steps of system backup, it is often impossible to perform system backup easily and intuitively. For another example, there are not many traditional backup time points, and the backup time points may only be established when the system is majorly updated, so users are often forced to use backup files that are too old. Therefore, the industry needs an automatic system maintenance method and a computer device with automatic maintenance function that can overcome the above-mentioned problems.

本發明提供一種系統自動維護方法,可以由基本輸出入系統執行系統的還原程序,並且可以定期或依照使用者的控制,由基本輸出入系統執行系統的備份程序。The present invention provides an automatic system maintenance method, which can execute the restoration program of the system by the basic I/O system, and can execute the backup program of the system by the basic I/O system periodically or according to the control of the user.

本發明提出一種系統自動維護方法,用以還原或備份一作業系統,所述系統自動維護方法包含下列步驟。首先,由基本輸出入系統偵測暫存單元是否存有第一編碼或第二編碼。當暫存單元存有第一編碼,由基本輸出入系統驅動第一儲存模組執行備份程序。當暫存單元存有第二編碼,由基本輸出入系統驅動第二儲存模組執行還原程序。The present invention provides a system automatic maintenance method for restoring or backing up an operating system. The system automatic maintenance method includes the following steps. First, the basic I/O system detects whether the temporary storage unit contains the first code or the second code. When the temporary storage unit stores the first code, the basic I/O system drives the first storage module to execute the backup program. When the second code is stored in the temporary storage unit, the basic I/O system drives the second storage module to execute the restoration process.

於一個例子中,系統自動維護方法更可以包含下列步驟。由基本輸出入系統將第一編碼或第二編碼比對設定資料,據以產生備份指令或還原指令。備份指令用以驅動第一儲存模組執行備份程序,還原指令用以驅動第二儲存模組執行還原程序。此外,基本輸出入系統更可以具有可延伸韌體介面(EFI),可延伸韌體介面依據第一編碼或第二編碼比對設定資料的結果,產生備份指令或還原指令。另外,由基本輸出入系統可以週期地產生備份指令或還原指令,或者,由基本輸出入系統或作業系統週期地將第一編碼或第二編碼儲存於暫存單元。In one example, the automatic system maintenance method may further include the following steps. The basic I/O system compares the first code or the second code with the setting data, and generates a backup command or a restore command accordingly. The backup instruction is used to drive the first storage module to execute the backup process, and the restore instruction is used to drive the second storage module to execute the restore process. In addition, the basic I/O system may further have an Extensible Firmware Interface (EFI), which generates a backup command or a restore command based on the result of comparing the setting data with the first code or the second code. In addition, the basic I/O system can periodically generate backup instructions or restore instructions, or the basic I/O system or the operating system may periodically store the first code or the second code in the temporary storage unit.

本發明提供一種具自動維護功能的電腦設備,可以由基本輸出入系統執行系統的還原程序,並且可以定期或依照使用者的控制,由基本輸出入系統執行系統的備份程序。The present invention provides a computer device with automatic maintenance function, which can execute the restoration program of the system from the basic I/O system, and can execute the backup program of the system from the basic I/O system periodically or according to the control of the user.

本發明提出一種具自動維護功能的電腦設備,包含第一儲存模組、第二儲存模組、暫存單元以及處理單元。暫存單元用以接收第一編碼或第二編碼。處理單元用以選擇性地執行基本輸出入系統(BIOS)或作業系統。其中,基本輸出入系統偵測暫存單元是否存有第一編碼或第二編碼,當暫存單元存有第一編碼,由基本輸出入系統驅動第一儲存模組執行備份程序,當暫存單元存有第二編碼,由基本輸出入系統驅動第二儲存模組執行還原程序。The present invention provides a computer device with automatic maintenance function, including 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 to selectively execute a basic input/output system (BIOS) or an operating system. Among them, the basic I/O system detects whether the temporary storage unit contains the first code or the second code. When the temporary storage unit stores the first code, the basic I/O system drives the first storage module to execute the backup procedure. The unit stores the second code, and the basic I/O system drives the second storage module to execute the restoration process.

綜上所述,本發明提供的系統自動維護方法與具自動維護功能的電腦設備,可以在沒有進入作業系統的情況下,由基本輸出入系統執行系統的還原程序。此外,本發明的系統自動維護方法可以定期或依照使用者的控制,由基本輸出入系統執行系統的備份程序。To sum up, the system automatic maintenance method and the computer equipment with automatic maintenance function provided by the present invention can execute the system restoration program from the basic I/O system without entering the operating system. In addition, the system automatic maintenance method of the present invention can execute the backup program of the system from the basic I/O system periodically or according to the control of the user.

下文將進一步揭露本發明之特徵、目的及功能。然而,以下所述者,僅為本發明之實施例,當不能以之限制本發明之範圍,即但凡依本發明申請專利範圍所作之均等變化及修飾,仍將不失為本發明之要意所在,亦不脫離本發明之精神和範圍,故應將視為本發明的進一步實施態樣。The features, objectives and functions of the present invention will be further disclosed below. However, the following are only examples of the present invention, and should not be used to limit the scope of the present invention, that is, all equivalent changes and modifications made in accordance with the scope of the patent application of the present invention will still be the essence of the present invention. Without departing from the spirit and scope of the present invention, it should be regarded as a further embodiment of the present invention.

請參閱圖1,圖1係繪示依據本發明一實施例之具自動維護功能的電腦設備的功能方塊圖。如圖1所示,具自動維護功能的電腦設備1可以包含第一儲存模組10、第二儲存模組12、暫存單元14以及處理單元16。第一儲存模組10、第二儲存模組12以及暫存單元14可以分別電性連接到處理單元16,並由處理單元16存取第一儲存模組10、第二儲存模組12以及暫存單元14中的資料。Please refer to FIG. 1. FIG. 1 is a functional block diagram of a computer device with automatic maintenance function according to an embodiment of the present invention. As shown in FIG. 1, the computer device 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 temporary storage unit 14 may be electrically connected to the processing unit 16, and the processing unit 16 can access the first storage module 10, the second storage module 12, and the temporary storage unit. Store the data in unit 14.

第一儲存模組10與第二儲存模組12可以分別用於備份程序與還原程序,且第一儲存模組10與第二儲存模組12的可以是相同或不同的儲存設備。舉例來說,第一儲存模組10與第二儲存模組12可以指同一個硬碟的相同磁區,從而於備份程序中儲存最新的備份資料可以直接用於還原程序。當然,第一儲存模組10與第二儲存模組12也可以是不同的硬碟,或同一個硬碟的不同磁區。例如使用者可以交替地將系統備份於不同的硬碟中,從而使用者也可以選擇前一次的備份資料進行還原程序,本實施例在此不加以限制。The first storage module 10 and the second storage module 12 can be used for a backup process and a restore process, respectively, and the first storage module 10 and the second storage module 12 can be the same or different storage devices. For example, the first storage module 10 and the second storage module 12 can refer to the same sector of the same hard disk, so that the latest backup data stored in the backup process can be directly used for the restore process. Of course, the first storage module 10 and the second storage module 12 may also be different hard disks, or different sectors of the same hard disk. For example, the user can alternately back up the system to different hard disks, so that the user can also select the previous backup data to perform the restoration process, which is not limited in this embodiment.

暫存單元14可以用以接收第一編碼或第二編碼。在此,暫存單元14可以是一個暫存器,例如CMOS元件,可以寫入簡易的資料。處理單元16可以是中央運算單元(CPU)或其他有運算功能的元件,用來選擇性地執行基本輸出入系統(BIOS)或作業系統(OS)。舉例來說,在開機程序中,處理單元16可以先運行基本輸出入系統,確定正常地完成開機程序後再運行作業系統。當然,處理單元16更可以有更多的運算功能,本實施例不加以限制。實務上,基本輸出入系統被運行且在進入作業系統之前,可以由基本輸出入系統確認暫存單元14是否存有第一編碼或第二編碼。當暫存單元14存有第一編碼,由基本輸出入系統驅動第一儲存模組10執行備份程序,當暫存單元14存有第二編碼,由基本輸出入系統驅動第二儲存模組12執行還原程序。The temporary storage unit 14 can be used to receive the first code or the second code. Here, the temporary storage unit 14 may be a temporary storage, such as a CMOS device, which can write simple data. The processing unit 16 may be a central processing unit (CPU) or other components with arithmetic functions for selectively executing a basic input/output system (BIOS) or an operating system (OS). For example, in the boot process, the processing unit 16 may first run the basic I/O system, and then run the operating system after determining that the boot process is completed normally. Of course, the processing unit 16 may have more computing functions, which is not limited in this embodiment. In practice, the basic I/O system is running and before entering the operating system, the basic I/O system can confirm whether the temporary storage unit 14 has the first code or the second code. When the temporary storage unit 14 stores the first code, the basic I/O system drives the first storage module 10 to execute the backup program. When the temporary storage unit 14 stores the second code, the basic I/O system drives the second storage module 12 Perform the restore procedure.

於一個例子中,暫存單元14中有沒有儲存第一編碼或第二編碼,是決定是否進行備份程序或還原程序的依據。因此,如何在需要進行系統備份時,在暫存單元14中寫入第一編碼,以及如何在需要進行系統還原時,在暫存單元14中寫入第二編碼,會是值得注意的議題。以實際操作的例子來說,使用者可以手動地決定何時需要進行系統備份或系統還原,此時使用者可以運行作業系統中的設定程式,由所述設定程式在暫存單元14中寫入第一編碼或第二編碼。值得一提的是,運行作業系統中的設定程式並不代表由作業系統直接執行備份或還原,而是為了讓使用者方便經由作業系統排定要備份或還原的流程,實際上仍然是由基本輸出入系統執行備份程序或還原程序。In one example, whether the first code or the second code is stored in the temporary storage unit 14 is the basis for deciding whether to perform the backup procedure or the restoration procedure. Therefore, how to write the first code in the temporary storage unit 14 when the system needs to be backed up, and how to write the second code in the temporary storage unit 14 when the system needs to be restored, are issues worth noting. Taking an example of actual operation, the user can manually decide when a system backup or system restore is needed. At this time, the user can run the setting program in the operating system, and the setting program writes the first in the temporary storage unit 14 One code or second code. It’s worth mentioning that running the configuration program in the operating system does not mean that the operating system directly performs backup or restore, but to facilitate the user to schedule the backup or restore process through the operating system. The input and output system executes backup procedures or restore procedures.

於一個例子中,具自動維護功能的電腦設備1還可以包含功能鍵18,功能鍵18可以讓使用者直接地、手動地進行控制。例如,功能鍵18可以具有專門用來要求備份的按鈕以及專門用來要求還原的按鈕。當使用者希望具自動維護功能的電腦設備1進行備份時,可以按下功能鍵18中對應的按鈕,使得暫存單元14中設定有第一編碼。反之,當使用者希望具自動維護功能的電腦設備1進行還原時,可以按下功能鍵18中對應的按鈕,使得暫存單元14中設定有第二編碼。當然,本實施例並不限制功能鍵18對應的功能,以及使用者操控功能鍵18的目的。例如功能鍵18可能可以提供使用者下達更多不同的指令,也有可能功能鍵18僅提供使用者進行備份或僅提供使用者進行還原。In one example, the computer device 1 with automatic maintenance function may also include function keys 18, which can be directly and manually controlled by the user. For example, the function key 18 may have a button dedicated to requesting backup and a button dedicated to requesting restoration. When the user wants to back up the computer device 1 with automatic maintenance function, he can press the corresponding button in the function key 18 so that the first code is set in the temporary storage unit 14. Conversely, when the user wants to restore the computer device 1 with the automatic maintenance function, he can press the corresponding button in the function key 18 so that the second code is set in the temporary storage unit 14. Of course, this embodiment does not limit the functions corresponding to the function keys 18 and the purpose of the user to manipulate the function keys 18. For example, the function key 18 may provide the user to issue more different commands, or it may only provide the user for backup or only for the user to restore.

接著,當具自動維護功能的電腦設備1再次進入開機程序時,基本輸出入系統可以檢查暫存單元14中是否有設定編碼。於一個例子中,基本輸出入系統更具有可延伸韌體介面(EFI),當基本輸出入系統判斷暫存單元14中具有第一編碼時,可延伸韌體介面可以比對第一編碼和一個預先儲存的設定資料,具以產生備份指令。實務上,所述設定資料可以由使用者自行定義,使用者可以在所述設定資料中,定義第一編碼和備份指令的對應關係。於某些例子中,使用者也可以定義第一編碼和其他指令的對應關係,本實施例在此不加以限制。當然,本實施例在此不限定具自動維護功能的電腦設備1如何再次進入開機程序,例如當功能鍵18被按下後,可以伴隨觸發重開機的指令,或者等待使用者再次手動開機。Then, when the computer device 1 with the automatic maintenance function enters the startup procedure again, the basic I/O system can check whether there is a setting code in the temporary storage unit 14. In one example, the basic I/O system further has an Extensible Firmware Interface (EFI). When the basic I/O system determines that the temporary storage unit 14 has the first code, the extensible firmware interface can compare the first code with an Pre-stored configuration data can be used to generate backup commands. In practice, the setting data can be defined by the user, and the user can define the corresponding relationship between the first code and the backup instruction in the setting data. In some examples, the user can also define the corresponding relationship between the first code and other commands, which is not limited in this embodiment. Of course, this embodiment does not limit how the computer device 1 with automatic maintenance function enters the booting procedure again. For example, when the function key 18 is pressed, it can be accompanied by an instruction to trigger a reboot or wait for the user to manually boot it again.

換句話說,基本輸出入系統可以依據暫存單元14中的編碼,產生對應的指令。以上述的例子來說,當暫存單元14中具有第一編碼時,基本輸出入系統可以啟動備份程序,以控制第一儲存模組10儲存備份資料。另一方面,當基本輸出入系統判斷暫存單元14中具有第二編碼時,基本輸出入系統同樣可以藉由可延伸韌體介面產生還原指令。接著,基本輸出入系統可以啟動還原程序,並利用儲存在第二儲存模組12中的資料還原系統。如前所述,第一儲存模組10與第二儲存模組12實務上可以指同一個硬碟的相同磁區,從而於備份程序中儲存最新的備份資料可以直接用於還原程序。In other words, the basic I/O system can generate corresponding instructions according to the code in the temporary storage unit 14. Taking the above example, when the temporary storage unit 14 has the first code, the basic I/O system can start the backup procedure to control the first storage module 10 to store the backup data. On the other hand, when the basic I/O system determines that there is a second code in the temporary storage unit 14, the basic I/O system can also generate a restore command through the extendable firmware interface. Then, the basic I/O system can start the restoration process and use the data stored in the second storage module 12 to restore the system. As mentioned above, the first storage module 10 and the second storage module 12 can actually refer to the same sector of the same hard disk, so that the latest backup data stored in the backup process can be directly used for the restore process.

以實際的例子來說,備份指令和還原指令可以由可延伸韌體介面傳輸給第一儲存模組10與第二儲存模組12。以第一儲存模組10與第二儲存模組12為同一個磁區為例,備份指令會提供給硬碟中與系統核心(kernel)有關的磁區,以驅動硬碟將作業系統所在磁區中的資料,完整搬移到另一個備份磁區中。換句話說,只要備份磁區容量足夠,備份資料可以完整備份作業系統。另一方面,還原指令也會提供給硬碟中與系統核心有關的磁區,以驅動硬碟將備份磁區中的備份資料完整覆蓋原本作業系統所在磁區。In a practical example, the backup command and the restore command can be transmitted to the first storage module 10 and the second storage module 12 through the extendable firmware interface. Taking the first storage module 10 and the second storage module 12 as the same sector as an example, the backup command will be provided to the sector related to the system kernel (kernel) in the hard disk to drive the hard disk to drive the disk where the operating system is located. The data in the zone is completely moved to another backup zone. In other words, as long as the backup volume is sufficient, the backup data can fully back up the operating system. On the other hand, the restore command will also be provided to the sector of the hard disk related to the core of the system to drive the hard disk to completely cover the backup data in the backup sector to the original sector of the operating system.

此外,除了使用者可以直接地、手動地控制何時應該備份或還原之外,具自動維護功能的電腦設備1還可以依據一些條件自動進行系統的備份或還原。於一個例子中,基本輸出入系統除了可以依據暫存單元14中的編碼進行備份或還原之外,也可以不依據暫存單元14中的編碼,週期地產生備份指令或還原指令。舉例來說,基本輸出入系統可以固定時間地替系統進行備份,基本輸出入系統可以提供設定畫面顯示定期備份相關設定的選項(例如固定的時間週期)。使用者完成設定後,基本輸出入系統可以依據使用者設定的時間,定期地送出備份指令。在此,基本輸出入系統直接給出備份指令,也可以避免系統長時間沒有進行備份造成的風險。此外,由基本輸出入系統也可以週期地將第一編碼或第二編碼儲存於暫存單元14,在下次開機程序時,基本輸出入系統便可以檢查到暫存單元14中的編碼,從而可以對應地進行備份或還原。In addition, besides the user can directly and manually control when to back up or restore, the computer device 1 with automatic maintenance function can also automatically back up or restore the system according to some conditions. In one example, the basic I/O system may not only perform backup or restore based on the code in the temporary storage unit 14, but also may not rely on the code in the temporary storage unit 14 to periodically generate backup instructions or restore instructions. For example, the basic I/O system can back up the system at a fixed time, and the basic I/O system can provide a setting screen to display options for regular backup related settings (for example, a fixed time period). After the user completes the setting, the basic I/O system can periodically send a backup command according to the time set by the user. Here, the basic I/O system directly gives the backup instruction, which can also avoid the risk caused by the system not performing backup for a long time. In addition, the basic I/O system can also periodically store the first code or the second code in the temporary storage unit 14. When the program is turned on next time, the basic I/O system can check the code in the temporary storage unit 14, so that Perform backup or restore accordingly.

於另一個例子中,作業系統可以週期地將第一編碼或第二編碼儲存於暫存單元14,在下次開機程序時,基本輸出入系統便可以檢查到暫存單元14中的編碼,從而可以對應地進行備份或還原。另外,遇到故障或者開機資料損毀,而認為有備份或還原的需要時,作業系統也可以將第一編碼或第二編碼儲存於暫存單元14。從而,在下次開機程序時,基本輸出入系統便可以檢查到暫存單元14中的編碼,從而可以對應地進行備份或還原。同樣地,由作業系統將第一編碼或第二編碼儲存於暫存單元14,不代表由作業系統直接執行備份或還原,實際上仍然是由基本輸出入系統執行備份程序或還原程序。In another example, the operating system can periodically store the first code or the second code in the temporary storage unit 14. When the program is turned on the next time, the basic I/O system can check the code in the temporary storage unit 14, so that Perform backup or restore accordingly. In addition, when there is a failure or the boot data is damaged, and it is considered that there is a need for backup or restoration, the operating system may also store the first code or the second code in the temporary storage unit 14. Therefore, when the program is started next time, the basic I/O system can check the code in the temporary storage unit 14 so that it can be backed up or restored accordingly. Similarly, storing the first code or the second code in the temporary storage unit 14 by the operating system does not mean that the operating system directly executes the backup or restore. In fact, the basic I/O system still executes the backup or restore process.

為了讓所屬技術領域具有通常知識者理解本發明的系統自動維護方法,以下配合具自動維護功能的電腦設備1說明。請一併參閱圖1與圖2,圖2係繪示依據本發明一實施例之系統自動維護方法的步驟流程圖。如圖所示,於步驟S20中,由基本輸出入系統偵測暫存單元14是否存有第一編碼或第二編碼。於步驟S22中,當暫存單元14存有第一編碼,由基本輸出入系統驅動第一儲存模組10執行備份程序。於步驟S24中,當暫存單元14存有第二編碼,由基本輸出入系統驅動第二儲存模組12執行還原程序。至於系統自動維護方法的其他步驟,已經於前述實施例完整說明,在此不予贅述。In order to allow those with ordinary knowledge in the technical field to understand the automatic maintenance method of the system of the present invention, the following description is provided with the computer device 1 with automatic maintenance function. Please refer to FIG. 1 and FIG. 2 together. FIG. 2 is a flowchart of the steps of a system automatic maintenance method according to an embodiment of the present invention. As shown in the figure, in step S20, the basic I/O system detects whether the temporary storage unit 14 contains the first code or the second code. In step S22, when the temporary storage unit 14 stores the first code, the basic I/O system 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 basic I/O system drives the second storage module 12 to execute the restoration process. As for the other steps of the system automatic maintenance method, they have been fully described in the foregoing embodiment, and will not be repeated here.

綜上所述,本發明提供的系統自動維護方法與具自動維護功能的電腦設備,可以在沒有進入作業系統的情況下,由基本輸出入系統執行系統的還原程序。此外,本發明的系統自動維護方法可以定期或依照使用者的控制,由基本輸出入系統執行系統的備份程序To sum up, the system automatic maintenance method and the computer equipment with automatic maintenance function provided by the present invention can execute the system restoration program from the basic I/O system without entering the operating system. In addition, the system automatic maintenance method of the present invention can execute the backup program of the system from the basic I/O system periodically or according to the user's control.

1:具自動維護功能的電腦設備 10:第一儲存模組 12:第二儲存模組 14:暫存單元 16:處理單元 18:功能鍵 S20~S24:步驟流程 1: Computer equipment with automatic maintenance function 10: The first storage module 12: The second storage module 14: Temporary storage unit 16: processing unit 18: Function keys S20~S24: Step flow

圖1係繪示依據本發明一實施例之具自動維護功能的電腦設備的功能方塊圖。FIG. 1 is a functional block diagram of a computer device with automatic maintenance function according to an embodiment of the present invention.

圖2係繪示依據本發明一實施例之系統自動維護方法的步驟流程圖。FIG. 2 is a flowchart of the steps of a system automatic maintenance method according to an embodiment of the present invention.

no

S20~S24:步驟流程 S20~S24: Step flow

Claims (12)

一種系統自動維護方法,用以還原或備份一作業系統,包含:由一基本輸出入系統偵測一暫存單元是否存有一第一編碼或一第二編碼;由該基本輸出入系統將該第一編碼或該第二編碼比對一設定資料,據以產生一備份指令或一還原指令;當該暫存單元存有該第一編碼,由該基本輸出入系統驅動一第一儲存模組執行一備份程序;以及當該暫存單元存有該第二編碼,由該基本輸出入系統驅動一第二儲存模組執行一還原程序;其中,該備份指令用以驅動該第一儲存模組執行該備份程序,該還原指令用以驅動該第二儲存模組執行該還原程序。 An automatic system maintenance method for restoring or backing up an operating system, including: detecting whether a temporary storage unit stores a first code or a second code by a basic I/O system; A code or the second code compares a setting data to generate a backup command or a restore command; when the temporary storage unit stores the first code, the basic I/O system drives a first storage module to execute A backup program; and when the temporary storage unit stores the second code, the basic I/O system drives a second storage module to execute a restore program; wherein the backup instruction is used to drive the first storage module to execute The backup procedure and the restore instruction are used to drive the second storage module to execute the restore procedure. 如請求項1所述之系統自動維護方法,其中該基本輸出入系統更具有一可延伸韌體介面(EFI),該可延伸韌體介面依據該第一編碼或該第二編碼比對該設定資料的結果,產生該備份指令或該還原指令。 The system automatic maintenance method according to claim 1, wherein the basic I/O system further has an extensible firmware interface (EFI), and the extensible firmware interface is set according to the first code or the second code As a result of the data, the backup command or the restore command is generated. 請求項1所述之系統自動維護方法,更包含:由該基本輸出入系統週期地產生該備份指令或該還原指令。 The automatic system maintenance method of claim 1, further comprising: periodically generating the backup instruction or the restoration instruction from the basic I/O system. 如請求項1所述之系統自動維護方法,更包含:由該基本輸出入系統週期地將該第一編碼或該第二編碼儲存於該暫存單元。 The system automatic maintenance method according to claim 1, further comprising: periodically storing the first code or the second code in the temporary storage unit by the basic I/O system. 如請求項1所述之系統自動維護方法,更包含: 由該作業系統週期地將該第一編碼或該第二編碼儲存於該暫存單元。 The automatic system maintenance method described in claim 1, further including: The operating system periodically stores the first code or the second code in the temporary storage unit. 如請求項1所述之系統自動維護方法,其中該暫存單元更受控於一外部指令,寫入該第一編碼或該第二編碼。 The system automatic maintenance method according to claim 1, wherein the temporary storage unit is further controlled by an external command to write the first code or the second code. 一種具自動維護功能的電腦設備,包含:一第一儲存模組;一第二儲存模組;一暫存單元,用以接收一第一編碼或一第二編碼;以及一處理單元,電性連接該第一儲存模組、該第二儲存模組以及該暫存單元,用以選擇性地執行一基本輸出入系統(BIOS)或一作業系統;其中,該基本輸出入系統偵測該暫存單元是否存有該第一編碼或該第二編碼,當該暫存單元存有該第一編碼,由該基本輸出入系統驅動該第一儲存模組執行一備份程序,當該暫存單元存有該第二編碼,由該基本輸出入系統驅動該第二儲存模組執行一還原程序;其中該基本輸出入系統更將該第一編碼或該第二編碼比對一設定資料,據以產生一備份指令或一還原指令,該備份指令用以驅動該第一儲存模組執行該備份程序,該還原指令用以驅動該第二儲存模組執行該還原程序。 A computer device with automatic maintenance function, comprising: a first storage module; a second storage module; a temporary storage unit for receiving a first code or a second code; and a processing unit, electrical The first storage module, the second storage module, and the temporary storage unit are connected to selectively execute a basic output/output system (BIOS) or an operating system; wherein the basic input/output system detects the temporary Whether the storage unit stores the first code or the second code, when the temporary storage unit stores the first code, the basic I/O system drives the first storage module to execute a backup program, when the temporary storage unit The second code is stored, and the basic I/O system drives the second storage module to execute a restoration process; wherein the basic I/O system compares the first code or the second code with a setting data, according to A backup instruction or a restore instruction is generated, the backup instruction is used to drive the first storage module to execute the backup procedure, and the restore instruction is used to drive the second storage module to execute the restore procedure. 如請求項7所述之具自動維護功能的電腦設備,其中該基本輸出入系統更具有一可延伸韌體介面(EFI),該可延伸韌體介面依據該第一編碼或該第二編碼比對該設定資料的結果,產生該備份指令或該還原指令。 The computer device with automatic maintenance function according to claim 7, wherein the basic I/O system further has an extensible firmware interface (EFI), and the extensible firmware interface is based on the first code or the second code ratio Based on the result of the setting data, the backup command or the restore command is generated. 如請求項7所述之具自動維護功能的電腦設備,其中該基本輸出入系統更週期地產生該備份指令或該還原指令。 The computer device with automatic maintenance function according to claim 7, wherein the basic I/O system generates the backup instruction or the restore instruction more periodically. 如請求項7所述之具自動維護功能的電腦設備,其中該基本輸出入系統週期地將該第一編碼或該第二編碼儲存於該暫存單元。 The computer device with automatic maintenance function according to claim 7, wherein the basic I/O system periodically stores the first code or the second code in the temporary storage unit. 如請求項7所述之具自動維護功能的電腦設備,其中該作業系統週期地將該第一編碼或該第二編碼儲存於該暫存單元。 The computer device with automatic maintenance function according to claim 7, wherein the operating system periodically stores the first code or the second code in the temporary storage unit. 如請求項7所述之具自動維護功能的電腦設備,更包含一功能鍵,該功能鍵被觸發時產生一外部指令,該外部指令用以設定該暫存單元,使該暫存單元選擇性地儲存該第一編碼或該第二編碼。 The computer device with automatic maintenance function as described in claim 7, further comprising a function key, when the function key is triggered, an external command is generated, and the external command is used to set the temporary storage unit and make the temporary storage unit selective Store the first code or the second code.
TW107147115A 2018-12-26 2018-12-26 Method for automatically maintaining system and computer thereof TWI707228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107147115A TWI707228B (en) 2018-12-26 2018-12-26 Method for automatically maintaining system and computer thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107147115A TWI707228B (en) 2018-12-26 2018-12-26 Method for automatically maintaining system and computer thereof

Publications (2)

Publication Number Publication Date
TW202024857A TW202024857A (en) 2020-07-01
TWI707228B true TWI707228B (en) 2020-10-11

Family

ID=73004835

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107147115A TWI707228B (en) 2018-12-26 2018-12-26 Method for automatically maintaining system and computer thereof

Country Status (1)

Country Link
TW (1) TWI707228B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200426684A (en) * 2003-05-27 2004-12-01 Mitac Int Corp Operation system execution method of hand-held electronic apparatus
TW200732924A (en) * 2006-02-24 2007-09-01 Hon Hai Prec Ind Co Ltd System and method for backuping a database
TW201248499A (en) * 2011-05-18 2012-12-01 Asustek Comp Inc Method of swapping between operating systems applied to computer system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200426684A (en) * 2003-05-27 2004-12-01 Mitac Int Corp Operation system execution method of hand-held electronic apparatus
TW200732924A (en) * 2006-02-24 2007-09-01 Hon Hai Prec Ind Co Ltd System and method for backuping a database
TW201248499A (en) * 2011-05-18 2012-12-01 Asustek Comp Inc Method of swapping between operating systems applied to computer system

Also Published As

Publication number Publication date
TW202024857A (en) 2020-07-01

Similar Documents

Publication Publication Date Title
TWI578233B (en) Unified firmware managment system, non-transitory computer-readable storage medium and method for unified firmware managment
TWI515660B (en) Firmware variable update method
US8887091B2 (en) Information processing apparatus, method, processor, and recording medium for determining whether information stored in a memory is incorrectly updated
US20160170736A1 (en) Updating firmware of a hardware component
TWI710952B (en) Firmware update method and computer system
US10191811B2 (en) Dual boot computer system
WO2007045133A1 (en) A computer system and a method which can perform integrity checking
TWI813869B (en) Data storage device and method for maintaining normal boot operation of data storage device
TWI808362B (en) Computer system and method capable of self-monitoring and restoring an operation of operating system
US20130061090A1 (en) Partial rebooting recovery apparatus and method
CN105917306A (en) System firmware configuration data
TW202131170A (en) Firmware corruption recovery
CN100483358C (en) Information processing device and control method thereof
TWI526934B (en) Method, apparatus, and computer program product for booting an information handling system
TWI707228B (en) Method for automatically maintaining system and computer thereof
CN111382009B (en) Automatic system maintenance method and computer equipment with automatic maintenance function
KR101026321B1 (en) Removable device with user interface
CN100394392C (en) Automatic starting control method and system for computer program recovery mode
KR100964636B1 (en) System controller and its driving method
JP6702080B2 (en) Information processing apparatus, information processing apparatus control method, and information processing apparatus control program
CN102063311A (en) Electronic equipment and starting method thereof
CN114356659A (en) Restarting method and apparatus, terminal device and storage medium
US20220261316A1 (en) Information processing apparatus
CN101192161B (en) Method for updating image file
TWI842443B (en) Touchpad calibration method and computer readable storage media