TWI707228B - Method for automatically maintaining system and computer thereof - Google Patents
Method for automatically maintaining system and computer thereof Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000012423 maintenance Methods 0.000 claims description 45
- 230000001960 triggered effect Effects 0.000 claims 1
- 238000011084 recovery Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本發明係關於一種系統自動維護方法與具自動維護功能的電腦設備,特別是關於一種可以由基本輸出入系統執行的系統自動維護方法與具自動維護功能的電腦設備。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
第一儲存模組10與第二儲存模組12可以分別用於備份程序與還原程序,且第一儲存模組10與第二儲存模組12的可以是相同或不同的儲存設備。舉例來說,第一儲存模組10與第二儲存模組12可以指同一個硬碟的相同磁區,從而於備份程序中儲存最新的備份資料可以直接用於還原程序。當然,第一儲存模組10與第二儲存模組12也可以是不同的硬碟,或同一個硬碟的不同磁區。例如使用者可以交替地將系統備份於不同的硬碟中,從而使用者也可以選擇前一次的備份資料進行還原程序,本實施例在此不加以限制。The
暫存單元14可以用以接收第一編碼或第二編碼。在此,暫存單元14可以是一個暫存器,例如CMOS元件,可以寫入簡易的資料。處理單元16可以是中央運算單元(CPU)或其他有運算功能的元件,用來選擇性地執行基本輸出入系統(BIOS)或作業系統(OS)。舉例來說,在開機程序中,處理單元16可以先運行基本輸出入系統,確定正常地完成開機程序後再運行作業系統。當然,處理單元16更可以有更多的運算功能,本實施例不加以限制。實務上,基本輸出入系統被運行且在進入作業系統之前,可以由基本輸出入系統確認暫存單元14是否存有第一編碼或第二編碼。當暫存單元14存有第一編碼,由基本輸出入系統驅動第一儲存模組10執行備份程序,當暫存單元14存有第二編碼,由基本輸出入系統驅動第二儲存模組12執行還原程序。The
於一個例子中,暫存單元14中有沒有儲存第一編碼或第二編碼,是決定是否進行備份程序或還原程序的依據。因此,如何在需要進行系統備份時,在暫存單元14中寫入第一編碼,以及如何在需要進行系統還原時,在暫存單元14中寫入第二編碼,會是值得注意的議題。以實際操作的例子來說,使用者可以手動地決定何時需要進行系統備份或系統還原,此時使用者可以運行作業系統中的設定程式,由所述設定程式在暫存單元14中寫入第一編碼或第二編碼。值得一提的是,運行作業系統中的設定程式並不代表由作業系統直接執行備份或還原,而是為了讓使用者方便經由作業系統排定要備份或還原的流程,實際上仍然是由基本輸出入系統執行備份程序或還原程序。In one example, whether the first code or the second code is stored in the
於一個例子中,具自動維護功能的電腦設備1還可以包含功能鍵18,功能鍵18可以讓使用者直接地、手動地進行控制。例如,功能鍵18可以具有專門用來要求備份的按鈕以及專門用來要求還原的按鈕。當使用者希望具自動維護功能的電腦設備1進行備份時,可以按下功能鍵18中對應的按鈕,使得暫存單元14中設定有第一編碼。反之,當使用者希望具自動維護功能的電腦設備1進行還原時,可以按下功能鍵18中對應的按鈕,使得暫存單元14中設定有第二編碼。當然,本實施例並不限制功能鍵18對應的功能,以及使用者操控功能鍵18的目的。例如功能鍵18可能可以提供使用者下達更多不同的指令,也有可能功能鍵18僅提供使用者進行備份或僅提供使用者進行還原。In one example, the
接著,當具自動維護功能的電腦設備1再次進入開機程序時,基本輸出入系統可以檢查暫存單元14中是否有設定編碼。於一個例子中,基本輸出入系統更具有可延伸韌體介面(EFI),當基本輸出入系統判斷暫存單元14中具有第一編碼時,可延伸韌體介面可以比對第一編碼和一個預先儲存的設定資料,具以產生備份指令。實務上,所述設定資料可以由使用者自行定義,使用者可以在所述設定資料中,定義第一編碼和備份指令的對應關係。於某些例子中,使用者也可以定義第一編碼和其他指令的對應關係,本實施例在此不加以限制。當然,本實施例在此不限定具自動維護功能的電腦設備1如何再次進入開機程序,例如當功能鍵18被按下後,可以伴隨觸發重開機的指令,或者等待使用者再次手動開機。Then, when the
換句話說,基本輸出入系統可以依據暫存單元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
以實際的例子來說,備份指令和還原指令可以由可延伸韌體介面傳輸給第一儲存模組10與第二儲存模組12。以第一儲存模組10與第二儲存模組12為同一個磁區為例,備份指令會提供給硬碟中與系統核心(kernel)有關的磁區,以驅動硬碟將作業系統所在磁區中的資料,完整搬移到另一個備份磁區中。換句話說,只要備份磁區容量足夠,備份資料可以完整備份作業系統。另一方面,還原指令也會提供給硬碟中與系統核心有關的磁區,以驅動硬碟將備份磁區中的備份資料完整覆蓋原本作業系統所在磁區。In a practical example, the backup command and the restore command can be transmitted to the
此外,除了使用者可以直接地、手動地控制何時應該備份或還原之外,具自動維護功能的電腦設備1還可以依據一些條件自動進行系統的備份或還原。於一個例子中,基本輸出入系統除了可以依據暫存單元14中的編碼進行備份或還原之外,也可以不依據暫存單元14中的編碼,週期地產生備份指令或還原指令。舉例來說,基本輸出入系統可以固定時間地替系統進行備份,基本輸出入系統可以提供設定畫面顯示定期備份相關設定的選項(例如固定的時間週期)。使用者完成設定後,基本輸出入系統可以依據使用者設定的時間,定期地送出備份指令。在此,基本輸出入系統直接給出備份指令,也可以避免系統長時間沒有進行備份造成的風險。此外,由基本輸出入系統也可以週期地將第一編碼或第二編碼儲存於暫存單元14,在下次開機程序時,基本輸出入系統便可以檢查到暫存單元14中的編碼,從而可以對應地進行備份或還原。In addition, besides the user can directly and manually control when to back up or restore, the
於另一個例子中,作業系統可以週期地將第一編碼或第二編碼儲存於暫存單元14,在下次開機程序時,基本輸出入系統便可以檢查到暫存單元14中的編碼,從而可以對應地進行備份或還原。另外,遇到故障或者開機資料損毀,而認為有備份或還原的需要時,作業系統也可以將第一編碼或第二編碼儲存於暫存單元14。從而,在下次開機程序時,基本輸出入系統便可以檢查到暫存單元14中的編碼,從而可以對應地進行備份或還原。同樣地,由作業系統將第一編碼或第二編碼儲存於暫存單元14,不代表由作業系統直接執行備份或還原,實際上仍然是由基本輸出入系統執行備份程序或還原程序。In another example, the operating system can periodically store the first code or the second code in the
為了讓所屬技術領域具有通常知識者理解本發明的系統自動維護方法,以下配合具自動維護功能的電腦設備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
綜上所述,本發明提供的系統自動維護方法與具自動維護功能的電腦設備,可以在沒有進入作業系統的情況下,由基本輸出入系統執行系統的還原程序。此外,本發明的系統自動維護方法可以定期或依照使用者的控制,由基本輸出入系統執行系統的備份程序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)
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)
| 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 |
-
2018
- 2018-12-26 TW TW107147115A patent/TWI707228B/en active
Patent Citations (3)
| 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 |