1320173 九、發明說明: 【發明所屬之技術領域】 本發明係關於一種硬碟回復方法,特別是關於一種在通 用可延伸式韌體介面/可延伸式韌體介面之架構下的硬碟 回復方法。 【先前技術】 個人電腦通常具有一硬碟,用來存放作業系統程式、其 籲他應用軟體程式及資料等。一個硬碟可分割為數個不同大 小的邏輯分割區,使用者初次使用一硬碟時,首先會將硬 碟做分割設定,每個分割區在運作上即如同一個獨立的磁 碟機。 個人電腦又具有一較低階的韌體,一般熟知為基本輸出 /入系統(即 BIOS,Basic Input/Output System),儲存 在唯讀記憶體(ROM)中。電腦之電源開啟後時,會先執行 基本輸出/入系統以進行初值設定及開機自我測試(即 # POST’ P〇wer-on Self Test)。接著讀取硬碟的主開機記 錄,執行啟動載入程式,並參照硬碟分割表找到作業系統 存放的位置,而將作業系統載入到主記憶體,完成開機之 程序。 由於傳統的基本輸入/輸出系統(Legacy BI0S)發展已 到達極限,英特爾公司(Inte 1 Corporat ion)已發展出一 種可延伸式韌體介面(即EFI,Extensible Firmware Interface)規格,可免除基本輸入/輸出系統的先天限 制。此種可延伸式韌體介面容許使用標準的程式語言工具 326傳利說明書(補件)\95-05\TF954510 5 1320173 :入新το件’具有更佳的擴充性,並且其係以。語今編 #:舊=容易維護、閱讀。目前,可延伸式切體介面。可支 =!系統,在現有的基本輸入/輸出系統上執行,並 適备接管一些控制。據估計,此種可延伸式拿刃體介面未來 將可能會完全取代基本輸入/輸出系統。然而,英特爾公 习所發展的可延伸式物體介面僅能使用於特定的咖,有 鑑於此,由英特爾公司與多家製造cpu的公司共同發展出 一通用可延伸式韌體介面(即UEFI,Universal1320173 IX. Description of the Invention: [Technical Field] The present invention relates to a hard disk recovery method, and more particularly to a hard disk recovery method under the framework of a universal extendable firmware interface/extensible firmware interface . [Prior Art] A personal computer usually has a hard disk for storing an operating system program, which calls for application software programs and materials. A hard disk can be divided into logical partitions of different sizes. When a user first uses a hard disk, the hard disk is first divided and set, and each partition is operated like a separate disk drive. The personal computer has a lower-order firmware, which is generally known as a BIOS (Basic Input/Output System) and is stored in a read-only memory (ROM). When the power of the computer is turned on, the basic output/input system is executed first for initial setting and self-test (ie # POST' P〇wer-on Self Test). Then read the main boot record of the hard disk, execute the boot loader, and find the location where the operating system is stored by referring to the hard disk partition table, and load the operating system into the main memory to complete the boot process. Since the development of traditional basic input/output systems (Legacy BI0S) has reached its limit, Intel Corporation (Inte 1 Corporation) has developed an Extensible Firmware Interface (EFI) specification that eliminates basic input/ The innate limits of the output system. This extensible firmware interface allows for the use of standard programming language tools. 326 The instruction manual (supplement)\95-05\TF954510 5 1320173: The new το piece has better scalability and its system.语今编#: Old = easy to maintain, read. Currently, the extended cut interface is available. The system can be implemented on existing basic input/output systems and is suitable for taking over some controls. It is estimated that this extendable blade interface will likely completely replace the basic input/output system in the future. However, Intel's development of the extensible object interface can only be used for specific coffee, in view of this, Intel and a number of companies manufacturing cpu jointly developed a universal extendable firmware interface (UEFI, Universal
Exbsibie Firmware Interface)之規格,以適用於各種 不同公司所製造的CPU。 -當受到病毒(Virus)或人為因素等之影響時,使得硬碟 中之主開機記錄、作業系統、檔案或資料被破壞,特別是 =分割表内的資料被破壞。如此,將使得硬碟内存放的 身料不能被使用,而導致無法正常開機。 為了使硬碟之主開機記錄、作業系統、檔案或資料被破 壞之後此夠被回復,習知技術係預先將硬碟的資料備份儲 存,通常存放於光碟片或網路伺服器。例如使用如 Symantec公司所提供之N〇rt〇n Gh〇st之應用程式,以對 硬碟的一個磁碟分割區或整個磁碟產生映像檔(Image Fi le) ’此映像檔可以作為回復硬碟之用。但此 方法的缺點是當磁碟資料受損而無法開機時,仍然需要其 他媒體(如磁片或光碟片)開機以進入作業系統才能夠使 用。如果將備份的磁碟資料放在網路伺服器供人下載時, 也容易因此等資料在網路伺服器上遭人竄改,有可能惡意 32轉利說明書(補件)\95-05\TF954510 1320173 .放入病毒程式,而產生更多的問題。 【發明内容】 本發明,目的在於提供—種在通用可延伸式款體介面/ °延伸式fe;體介面之架構下的硬碟回復方法,該方法使用 在不同於傳統的基本輸入/輸出系統的系統架構,在電腦 〇法正常開機的情況下’可讓使用者在電腦的開機程序中 八要按下相對應的按鍵或選單即可進入硬碟回復程序,而 鲁無需藉助其他媒體開機以進入作業系統來進行硬 程序。 ” -本發明在於提供一種在通用可延伸式韌體介面/可延伸 式韌體介面之架構下的硬碟回復方法,該方法執行於一電 腦的開機階段,在通用可延伸式韌體介面/可延伸式韌體 ;丨面之架構下的硬碟回復方法包含下列步驟:首先,判斷 是否要設定系統參數;其次,當要設定系統參數時,執行 驅動程式以連結網路及載入系統安全相關模組;接著,顯 籲不設定系統參數之晝面;以及,選擇回復該硬碟之選項, 以執行回復硬碟驅動程式,並由該硬碟所備份的資料進行 回復程序。 【實施方式】 以下參照附圖說明本發明之一較佳實施例。 圖1為本發明在通用可延伸式韌體介面/可延伸式韌體 介面之架構下的硬碟回復的流程圖。在圖丨中,當無法由 硬碟開機時’在通用可延伸式韌體介面/可延伸式韌體介 面之架構下的硬碟回復方法係執行於一電腦的開機階 326傳利說明書(補件)\95-05\TF954510 7 1320173 •奴入在電腦開啟電源(p〇wer 〇n)後,執行通用可延伸式韌 體介面/可延伸式韌體介面之驅動程式(Driver)。首先, 斷更碟疋否可正常操作(步驟Sg),例如讀取硬碟内開 機用的資料等。當硬碟可正常操作時,則判斷是否有按下 回復更碟之熱鍵(Hot Key)(如F1鍵或Del鍵)(步驟 〇 )亦即判斷等待按下熱鍵的時間是否結束。 當,有按下回復硬碟之熱鍵(即等待按下熱鍵的時間結 1 si:會則等待使用者是否決定要設定電腦系統參數(步驟 )’亦即判斷等待設定電腦系統參數的時間是否結束。 ^硬碟回復的程序可選擇性地加人電腦系統參 一:各序令。,當不要設定電腦系統參數(即等待設 疋電腦系統參數的時間結束) ’。 程戽Γ牛挪只】轨仃電恥的一般開機 孝序(乂驟S12),例如·· CPU會從儲存 =可延伸式㈣面/可延伸式_介 驅動程式來進行自我钏叫用私山 買取所而要的 作,之德“世 輸介面搜尋、設定等工 :之碟或光碟片等儲存裝置載入作業系統並操 門腦系統參數(即等待設定電腦系統參數的時 間未結束)時,則執行設定電腦系統參數 二 螢幕上顯示出現設定電腦系 :, 於所要設定的電腦系統之參數;_=:::'步驟_’對 CPU執行速度、系統時匕3服糸統本身(如 光碟、網路等),以及使用者及周邊|置(如硬碟、 功能)。 使用者可以自定的設定(如硬碟回復 326\專利說明書(補件)\95_〇5\7p95451〇 8 1320173 ,者’啟動網路連結介面錢結外部網路,依照該 =所設^的’由網路下載所要的資料,以及依照通用可 延伸式fc;體介面/可延伸式_介面所規定之程序载 ,安全相_組(步驟S18)。#硬碟不可正㈣作或者有 ,下回极硬碟之熱鍵時,則執行步驟S18。接著,顯示回 设硬碟的主畫面(步驟S19),在其主晝面選擇回復硬碟之 =員以執订回復硬碟之驅動程式,並由硬碟所備份的資 料進行回復程序(步驟湖。硬碟所備份的#料可以存放 ^硬Ί碟片、或者是由網路飼服器下載以執行回復程 在對硬碟進行回復程序之後,由使用者選擇重新開機 或者關機(步驟S22)。 /發明的優點係於使用在不同於傳統的基本輸入/輸出 .糸統的系統架構,在電腦無法正常開機的情況下,可讓使 .用者在電腦的開機程序中只要按下相對應的按鍵或選單 即可進人硬碟回復程序,而無需藉助其他媒體開機以進入 鲁作業系統來進行硬碟回復程序。 Λ、、:本發月已參照較佳具體例及舉例性附圖敘述如 上准其應不被視為係限制性者。熟悉本技藝者對其形態 及/、體例之内谷做各種修改、省略及變化,均不離開本發 明之範圍。 【圖式簡單說明】 圖1為本發明在通用可延伸式勒體介面/可延伸式勃體 介面之架構下的硬碟回復的流程圖。 326V專利說明書(補件)\95-05\TF954510 9Exbsibie Firmware Interface) specifications for CPUs manufactured by various companies. - When affected by viruses or human factors, the main boot record, operating system, file or data on the hard disk is destroyed, especially the data in the split table is destroyed. As a result, the body stored in the hard disk cannot be used, and the power cannot be turned on normally. In order to make the main drive record of the hard disk, the operating system, the file or the data is destroyed, the conventional technology pre-stores the data of the hard disk, usually stored on the optical disk or the network server. For example, use an application such as N〇rt〇n Gh〇st provided by Symantec to generate an image file (Image Fi le) on a disk partition of the hard disk or the entire disk. For disc use. However, the disadvantage of this method is that when the disk data is damaged and cannot be turned on, other media (such as a magnetic disk or a CD) need to be turned on to enter the operating system to be used. If the backed up disk data is placed on the web server for downloading, it is also easy for the data to be tampered with on the web server. It is possible to maliciously transfer the 32 instructions (supplement)\95-05\TF954510 1320173 . Put a virus program and generate more problems. SUMMARY OF THE INVENTION The present invention is directed to providing a hard disk recovery method under the framework of a universal extendable body interface/° extension type body interface, which is used in a basic input/output system different from the conventional one. The system architecture, in the case that the computer can be turned on normally, allows the user to enter the hard disk reply program by pressing the corresponding button or menu in the booting process of the computer, and Lu does not need to boot with other media. Enter the operating system to perform hard programs. The present invention provides a hard disk recovery method under the framework of a universal extendable firmware interface/extensible firmware interface, which is implemented in a booting stage of a computer, in a universal extendable firmware interface/ Extensible firmware; the hard disk recovery method under the structure of the face includes the following steps: First, determine whether to set system parameters; secondly, when setting system parameters, execute the driver to link the network and load the system security The relevant module; then, the display does not set the system parameters; and, the option to reply to the hard disk is selected to execute the reply to the hard disk driver, and the data backed up by the hard disk is used to reply to the program. BRIEF DESCRIPTION OF THE DRAWINGS A preferred embodiment of the present invention will be described with reference to the accompanying drawings in which: Figure 1 is a flow chart of a hard disk recovery in the architecture of a universal extendable firmware interface/extensible firmware interface of the present invention. When it is not possible to boot from a hard disk, the hard disk recovery method under the architecture of the universal extendable firmware interface/extensible firmware interface is implemented in a computer booting stage 326. Manual (supplement)\95-05\TF954510 7 1320173 • After the computer is powered on (p〇wer 〇n), execute the driver of the universal extendable firmware interface/extensible firmware interface (Driver) First of all, whether the device can be operated normally (step Sg), for example, reading the data for booting in the hard disk, etc. When the hard disk can be operated normally, it is judged whether there is a hot key for pressing the reply disk (Hot). Key) (such as the F1 key or the Del key) (step 〇) also judges whether the waiting time for pressing the hot key is over. When there is a hot key for pressing the reply hard disk (that is, waiting for the time of pressing the hot key) 1 si : Will wait for the user to decide whether to set the computer system parameters (step)', that is, judge whether the time to wait for setting the computer system parameters is over. ^The program of hard disk reply can be selectively added to the computer system: each order When you do not set the computer system parameters (that is, the time to wait for the setting of the computer system parameters) '. Cheng Hao Niu only only] the general startup filial order of the track shame (step S12), for example · CPU will Storage = extendable (four) face / extendable _ drive To make self-squeaking and use the private mountain to buy what you want, the virtue of "the world of interface search, setting, etc.: the storage device such as the disc or the disc is loaded into the operating system and the brain system parameters (ie waiting for setting the computer) When the time of the system parameter is not over, execute the setting computer system parameter. The screen displays the setting computer system: the parameter of the computer system to be set; _=::: 'Step _' executes the speed on the CPU, the system Time 匕 3 service system itself (such as CD, network, etc.), as well as users and peripherals (such as hard disk, function). Users can customize settings (such as hard disk response 326\patent manual (supplement) ) \95_〇5\7p95451〇8 1320173 , 'start the network connection interface money knot external network, according to the = set ^ 'download the required information from the network, and in accordance with the universal extendable fc; body The program specified by the interface/extensible_interface, the security phase_group (step S18). #硬碟不正(四)作或有,下回极硬碟的热键, then step S18 is performed. Then, the main screen of the hard disk is displayed (step S19), and the driver who responds to the hard disk is selected on the main page to perform the reply to the hard disk drive, and the data backed up by the hard disk is used to reply the program (step Lake. The material that is backed up by the hard disk can be stored as a hard disk, or downloaded by the network feeder to perform a reply process. After the process of replying to the hard disk, the user selects to reboot or shut down (step S22). The advantage of the invention is that it is used in a system architecture different from the traditional basic input/output system. In the case that the computer cannot be turned on normally, the user can press the phase in the booting process of the computer. The corresponding button or menu can enter the hard disk recovery program without booting with other media to enter the Lu operating system for the hard disk recovery process. Λ, ,: This month has referenced the preferred specific examples and exemplary drawings. It is to be understood that the above description is not to be construed as limiting the invention, and various modifications, omissions and changes may be made without departing from the scope of the invention. 1 is a flow chart of the hard disk recovery under the framework of the universal extendable interface/extensible body interface of the present invention. 326V patent specification (supplement)\95-05\TF954510 9