1237791 (〇 B3. 10. 13 07237twf3.doc/006 修正日期 93.10· 13 玖雜潑明說明 (發明說明應敘明:發明所屬之技術領域、先前技術、內容、實 施方式及圖式簡單說明) 本發明是有關於一種自動回存系統檔案之控制方 法,且特別是有關於一種自動安裝作業系統以及自動回存 系統檔案之控制方法。 電腦在現代的社會裡已是不可或缺的生活必需品之 一,因此對於常使用電腦的人,經常會面對系統毀損或是 系統需要重建的問題等。一旦電腦系統毀損或是系統需要 重建時,就必須重複安裝作業系統,建立帳號,重新設定 系統參數等這些複雜的人工步驟,一旦系統龐大,這些步 驟實在是既費時又費心力。 因此坊間便針對系統毀損或是系統需要重建的問題 推出自動回存系統檔案之軟體,例如賽門鐵克的GHOST 和更高階的備份程式ARCServerlT等,來自動回存作業系 統以及系統設定檔,省去操作以及參數設定等這些複雜的 人工步驟、 但習知之作法爲直接壓縮備份整個硬碟至不同的分 割區或不同的硬碟,需要時即直接回存到硬碟上,或者是 以人員操作的方式,先行安裝作業系統,再利用習知的程 式來回後資料。因此我們知道習知之技術上有如下之缺 點: 1.不可妥善回存於不同之分割區或硬碟,或容量大小 與先前之分割區或硬碟不一樣的分割區或硬碟; 1237791 倏 jt :替換 i37twg d&c/006 2·無法自行安裝作業系統;以及 3·並不是完全免去複雜的人工操作,回存程序無法自 動化。 有鑑於此,本發明的目的就是在提出一種自動安裝 作業系統以及自動回存系統檔案之控制方法,安裝在電腦 內相關界面,用以在電腦開機過程中,偵測是否自動安裝 一作業系統以及偵測是否自動回存一系統設定檔,以改善 習知技術不可回存於不同之分割區或硬碟,無法自行安裝 作業系統以及不是完全免去複雜的人工操作的問題。 爲達上述之目的,本發明提出一種自動安裝作業系 統以及自動回存系統檔案之控制方法,其簡述如下: 於電腦開機時,由晶片裝置執行開機動作後判斷硬 碟是否存在;當此硬碟存在時.,則掛載此硬碟後再判斷此 硬碟中是否有特殊標記的存在;當此硬碟中有此特殊標記 存在時,則進行晶片裝置標記程序;當此硬碟中沒有此特 殊標記存在時,則進行硬碟標記程序,其中此特殊標記爲 此晶片裝置在此硬碟標記之記號。若當此硬碟不存在時, 則跳離開機動作。 其中,前述之硬碟標記程序包括下列步驟: 分割硬碟並格式化硬碟’接著安裝作業系統到硬碟 中,其中此作業系統可由網路或任何儲存裝置提供。之後 再判斷此晶片裝置是否有特定檔案的存在;當此晶片裝置 有此特定檔案的存在時,則將存在晶片裝置裡的此系統設 定檔案還原存回硬碟,然後在硬碟中建立特殊標記後,重 1237791 修正日期93.10.13 ^ J :l〇7337t\Mf3:do^/b〇6 M ; - 新開機,右當此晶片裝置沒有此特定檔案存在時,則在硬 碟中建立特殊標記後,重新開機。 此外’上述之晶片裝置標記程序包括下列步驟: 於執行執行此硬碟開機動作後,判斷此電腦內是否 有此晶片裝置存在;當此電腦內有此晶片裝置的存在時, 則先掛載此晶片裝置’再判斷此晶片裝置是否有特定檔案 存在。其中,此處所指之特定檔案包含硬碟之系統設定檔。 當此晶片裝置有此特定檔案存在時,則完成開機動作,進 入登入畫面;當此晶片裝置沒有此特定檔案的存在時,則 備份此系統設定檔到晶片裝置中,再依保密情形判斷是否 解除掛載晶片裝置,接著完成開機動作,進入登入畫面。 若當此電腦內沒有此晶片裝置存在時,則完成開機動作, 進入登入晝面。 · 其中’上述之晶片裝置可定期自動更新系統設定檔 至晶片裝置上。 此外’晶片裝置會自動偵測更新的系統設定檔,以 及自動備份更新的系統設定檔至晶片裝置上。 爲讓本發明之上述和其他目的、特徵和優點,能更 加明顯易懂’下文特舉較佳實施例,並配合所附圖示,做 詳細說明如下: 圖不簡單: 第1圖繪示的是本發明方法之方塊示意圖; 胃2圖繪示的是硬碟標記程序方法之方塊示意圖;以 及 1237791 修正曰期93.10.13 07237^¾.doc/006 第3圖繪示的是晶片標記程序方法之方塊示意圖。 重要元件標號: 102〜314 :根據本發明之實施例的步驟 較佳實施例: 在此實施例中我們所要做的是備份兩顆全新的硬碟。 先將新的晶片裝置裝設在電腦IDE2的Master槽座, IDE1槽座置放新的硬碟,並將作業系統光碟放入光碟機 中,然後設定BIOS的開機順序爲先從D槽開機,然後開 機,此時的啓動程序如下: 請參照第1圖,其繪示的是本發明方法之方塊示意 圖。首先把電腦開機(步驟1〇2) ’再由放在晶片裝置的程 式開機(步驟104),晶片裝置檢查到此硬碟(步驟106)並掛 載此硬碟(步驟108),接著檢查到此硬碟並無特殊標記(步 驟110),因此進入硬碟標記程序° 請參照第2圖’其繪示的是硬碟標記程序方法之方塊 示意圖。接著分割硬碟(步驟202)並將其格式化(步驟204) 並安裝作業系統至(步驟206) ’再^僉晶片*裝胃 並無特殊檔案(步驟208),所以在硬碟中建立特殊標記(步 驟212),再重新開機(步驟214)。 此時仍然由電腦開機(步驟102)後再1轉而由晶片裝S 白勺手呈式_機(步驟104),接著晶片裝置檢查到此硬碟(步驟 1〇6)並掛載此硬碟(步驟108),再檢查到此硬碟有特殊標記 (步驟110),因此進入晶片標記程序。 請參照第3圖’其繪示的是晶片標記程序方法之方塊 1237791 ^ ^3^f3.doc/006 修正日期 93.10.13 示意圖。此時由電腦硬碟開機(步驟302),電腦硬碟開機 後立即檢查到此晶片裝置(步驟304)並掛載此晶片裝置(步 驟306),再檢查到此晶片裝置中並無特殊檔案(步驟308), 因此備份系統設定檔案至晶片裝置中(步驟312),再依照 保密情形,判斷是否需要解除掛載晶片(步驟314),接著 完成開機,進入登入畫面(步驟310)。 這時我們已經完成備份了第一顆硬碟,此時我們將 要備份第二顆硬碟,因此我們將第一顆硬碟換成第二顆硬 碟,此時的啓動程序如下: 請參照第1圖。首先把電腦開機(步驟102),再由放 在晶片裝置的程式開機(步驟104),接著晶片裝置檢查到 此硬碟(步驟106)並掛載此硬碟(步驟108),接著檢查到此 硬碟並無特殊標記(步黩110),# itίΕ進入硬碟標記程序。 . * 請參照第2圖。接著分割此硬碟(步驟202)並將其格 式化(步驟204)並安裝作業系統至硬碟中(步驟206),再檢 查到晶片裝置有特殊檔案(步驟208),因此把存在系晶片 裝置中的系統設定檔回存於硬碟中(步驟210),接著在硬 碟中建立特殊標記(步驟212),再重新開機(步驟214)。 此時仍然由電腦開機(步驟102)後再轉而由晶片裝置 的程式開機(步驟104),接著晶片裝置檢查到此硬碟(步驟 1〇6)並掛議此硬碟(步驟108),再檢查到此硬碟有特殊標記 (步驟110),因此進入晶片標記程序。 請參照第3圖。此時在電腦硬碟開機(步驟302),電 腦硬碟開機後立即檢查到此晶片裝置(步驟304)並掛載此 12377911237791 (〇B3. 10. 13 07237twf3.doc / 006 Revised date 93.10 · 13 Doubtful explanation (Invention description should state: the technical field, prior technology, content, implementation and drawings of the invention are briefly explained) The invention relates to a control method of an automatic retrieval system file, and more particularly to an automatic installation operation system and a control method of an automatic retrieval system file. Computers have become one of the essential necessities in modern society. Therefore, for people who often use computers, they often face problems such as system damage or system reconstruction. Once the computer system is damaged or the system needs reconstruction, it is necessary to repeatedly install the operating system, create an account, and reset system parameters. These complex manual steps, once the system is large, these steps are really time-consuming and labor-intensive. Therefore, in the workshop, softwares for automatically recovering system files are introduced for system damage or system reconstruction problems, such as Symantec ’s GHOST and Higher-level backup programs such as ARCServerlT to automatically restore the operating system and system Setting files, omitting the complicated manual steps such as operation and parameter setting, but the common practice is to directly compress and back up the entire hard disk to different partitions or different hard disks, and restore it directly to the hard disk when needed, or It is operated by personnel, first installing the operating system, and then using the known program to back and forth data. Therefore, we know that the known technology has the following disadvantages: 1. It cannot be properly stored in different partitions or hard disks, or A partition or hard disk with a capacity that is different from the previous partition or hard disk; 1237791 倏 jt: Replace i37twg d & c / 006 2. Cannot install the operating system by itself; and 3. Does not completely eliminate complicated manual operations In view of this, the purpose of the present invention is to propose an automatic installation operating system and a method for controlling the automatic restore system file, which are installed in the relevant interface in the computer to detect during the startup process of the computer. Whether to automatically install an operating system and detect whether to automatically restore a system configuration file to improve the conventional technology. Similarly, the partition or hard disk cannot install the operating system by itself and does not completely eliminate the complicated manual operation. In order to achieve the above-mentioned object, the present invention proposes a control method for automatically installing the operating system and automatically restoring system files. The brief description is as follows: When the computer is turned on, the chip device determines whether the hard disk exists after performing the booting action; when the hard disk exists, then mount the hard disk and then determine whether there is a special mark on the hard disk; When this special mark exists in the hard disk, the chip device labeling process is performed; when the special mark does not exist in the hard disk, the hard disk labeling process is performed, where the special mark is the chip device on the hard disk Marked mark. If this hard disk does not exist, it will skip the action. Among them, the aforementioned hard disk labeling process includes the following steps: Divide the hard disk and format the hard disk ', and then install an operating system into the hard disk, where the operating system can be provided by the network or any storage device. Then determine whether this chip device has a specific file; when the chip device has this specific file, restore the system setting file stored in the chip device back to the hard disk, and then create a special mark on the hard disk After that, the weight 1237791 was revised 93.10.13 ^ J: l07337t \ Mf3: do ^ / b〇6 M;-new boot, right when the chip device does not have this specific file, create a special mark on the hard disk After that, reboot. In addition, the above-mentioned chip device labeling program includes the following steps: After executing the hard disk booting action, determine whether the chip device exists in the computer; when the chip device exists in the computer, mount this first The chip device 'determines whether a specific file exists in the chip device. Among them, the specific file referred to here includes the system configuration file of the hard disk. When the specific device exists in the chip device, the booting operation is completed and the login screen is entered; when the specific device does not exist in the chip device, the system configuration file is backed up to the chip device, and then it is judged whether to cancel it according to the security situation Mount the chip device, and then complete the boot action to enter the login screen. If the chip device does not exist in the computer, the booting operation is completed and the login day is entered. · Among them, the above-mentioned chip device can automatically update the system configuration file to the chip device periodically. In addition, the chip device will automatically detect the updated system configuration file, and automatically back up the updated system configuration file to the chip device. In order to make the above and other objects, features, and advantages of the present invention more comprehensible, the following describes a preferred embodiment in conjunction with the accompanying drawings, and the detailed description is as follows: The figure is not simple: Figure 1 shows It is a block diagram of the method of the present invention; Figure 2 shows a block diagram of the hard disk labeling program method; and 1237791 modified date 93.10.13 07237 ^ ¾.doc / 006 Figure 3 shows a wafer labeling program method Block diagram. Key component numbers: 102 ~ 314: Steps according to an embodiment of the present invention. Preferred embodiment: In this embodiment, what we have to do is to back up two brand new hard disks. First install the new chip device in the Master slot of the IDE2 computer, and place a new hard disk in the IDE1 slot, and place the operating system CD into the optical drive. Then set the BIOS boot sequence to boot from the D slot first. Then turn on the computer, and the startup procedure at this time is as follows: Please refer to FIG. 1, which shows a block diagram of the method of the present invention. First turn on the computer (step 102). Then start the program on the chip device (step 104). The chip device detects the hard disk (step 106) and mounts the hard disk (step 108). This hard disk has no special marking (step 110), so enter the hard disk marking process. Please refer to Figure 2 ', which shows a block diagram of the hard disk marking process. Then split the hard disk (step 202) and format it (step 204) and install the operating system to (step 206) 'Re ^ 佥 chip * There are no special files in the stomach (step 208), so create special files in the hard disk Mark (step 212) and restart (step 214). At this time, the computer is still powered on (step 102), and then switched to the chip loading machine (step 104), and then the chip device checks the hard disk (step 106) and mounts the hard disk. The disk (step 108), and it is checked that the hard disk has a special mark (step 110), so it enters the wafer marking process. Please refer to Fig. 3 ', which shows a block diagram of the method of chip marking procedure 1237791 ^ ^ 3 ^ f3.doc / 006 Modified date 93.10.13. At this time, the computer hard disk is turned on (step 302). After the computer hard disk is turned on, the chip device is detected (step 304) and the chip device is mounted (step 306), and then there is no special file in the chip device ( (Step 308), so the system configuration file is backed up to the chip device (Step 312), and whether the chip needs to be unmounted is determined according to the security situation (Step 314), and then the boot is completed to enter the login screen (Step 310). At this time, we have backed up the first hard disk. At this time, we will back up the second hard disk. Therefore, we replaced the first hard disk with the second hard disk. The startup procedure at this time is as follows: Please refer to the first Illustration. First turn on the computer (step 102), and then start the program on the chip device (step 104), then the chip device checks the hard disk (step 106) and mounts the hard disk (step 108), and then checks here There is no special mark on the hard disk (step 110), # itίΕ enters the hard disk labeling process. * Please refer to Figure 2. Then divide this hard disk (step 202) and format it (step 204) and install the operating system on the hard disk (step 206), and then check that the chip device has a special file (step 208), so save the existing chip device The system configuration file in the system is stored in the hard disk (step 210), and then a special mark is created in the hard disk (step 212), and the system is restarted (step 214). At this time, the computer is still turned on (step 102) and then switched to the chip device program (step 104). Then the chip device detects the hard disk (step 106) and discusses the hard disk (step 108). It is checked that the hard disk has a special mark (step 110), so it enters a wafer marking process. Please refer to Figure 3. At this time, the computer hard disk is turned on (step 302). After the computer hard disk is turned on, the chip device is detected (step 304) and the 1237791 is mounted.
修正日期93.10.13 晶片裝置(步驟306),再檢查到此晶片裝置中有特殊植案(步 驟308),因此完成開機,進入登入畫面(步驟310)。 如此一來我們輕易的完成兩顆全新硬碟的備份工 作。 根據上述,晶片裝置係用以儲存特殊檔案或開機程式 等資料’因此如熟習此項技藝者可知,晶片裝置可以是非 揮發性的記億裝置,如唯讀記憶體(ROM)或快閃記憶體 等。 綜上所述,本發明具有如下的優點: 1·可回存於不同之分割區或硬碟,或容量大小與先前 之分割區或硬碟 不一樣的分割區或硬碟; 2 ·右分割區或硬碟沒有作業系統時,則自動安裝作業 系統; 3.回存程序完全自動化,將人爲操作降至最低程度: 以及 4·備份系統設定檔案不需要另外的儲存器即可備份, 減少備份空間的使用量。 雖然本發明已以較佳實施例揭露於上,然其並非用 以限定本發明,任何熟習此技藝者,再不脫離本發明之精 神和範圍內,當可作各種之更動與潤飾,因此本發明之保 護範圍當視後附之申請專利範圍所界定者爲準。Revise the date of 93.10.13 chip device (step 306), and then check that there is a special implant in this chip device (step 308), so complete the boot and enter the login screen (step 310). In this way, we can easily complete the backup of two new hard disks. According to the above, the chip device is used to store data such as special files or boot programs. Therefore, as those skilled in the art know, the chip device can be a non-volatile memory device such as read-only memory (ROM) or flash memory. Wait. In summary, the present invention has the following advantages: 1. It can be stored in different partitions or hard disks, or partitions or hard disks with a capacity different from that of the previous partitions or hard disks; 2. Right partition If there is no operating system on the hard disk or hard disk, the operating system will be installed automatically. 3. The recovery process is fully automated, minimizing human operation: and 4. The backup system setting files can be backed up without additional storage, reducing The amount of backup space used. Although the present invention has been disclosed above with a preferred embodiment, it is not intended to limit the present invention. Anyone skilled in the art can depart from the spirit and scope of the present invention and can make various modifications and retouches. Therefore, the present invention The scope of protection shall be determined by the scope of the attached patent application.