589526 五、發明說明(1) 【發明所屬之技術領域】〃 本發明是有關於一種硬碟資料控制方法,且特別是有 關於一種使用在筆記型電腦之硬碟資料控制;π 【先前技術】 著系統介面的改善,筆記型電腦可在相同介 行硬碟抽換,而部分的高階筆刑 容納雙硬碟的設計。-般來說,雙廊^已处漸發展出具有 時保有兩套作業系、统,以應付不=的,計容許電腦同 狀況下,因系統重新安裝而造=1:避免在單一硬碟的 發揮雙硬碟設計之最大效含,二料抓失:然而’如何 進行有效的控制,已然成為高筌^1型電腦之硬碟資料 點之一。 勺门p自葦圯型電腦廠商的研發重 【發明内容】 t鑑於此,本發明的目的就是在提供一種硬碟 制:法’係、針對筆記型電腦之雙硬碟進行狀態設定,有1 控制硬碟身料之儲存模式,可提供大量資料儲存空間,亦 可柘加使用上之方便性、系統之穩定性及資料之安全性。 根據本發明的目的,提出一種硬碟資料控制方法, 1下列步驟:首先,設定第一硬碟及第二硬碟之資料儲存 权式,將第一硬碟標示為左硬碟、第二硬碟標示為備份硬 碟。接著,檢查主硬碟,當主硬碟損壞,自動修復主硬 第4頁 TW097艰緯創)掘 碟 並 測試主硬碟之資料 A 補主硬碟之資料。此外,定:主硬碟之資料損毀,自動修 :對出有資料既儲存於主碩二匕對主硬碟及備份硬碟,當 則進行自動備份程序。 碟中且未儲存於備份硬碟中, 根據本發明的目的, 體,用以記錄使電腦執=一種電腦可讀取之記錄媒 硬碟之筆記型電腦進行,=料控制方法,針對具有雙 序。硬碟資料控制方法句=设定、自動修復及自動備份程 碟及第二硬碟之資料列步驟:首先,設定第—硬 硬碟損壞!碟。接著,檢查主硬碟,當主 對主硬碟及備二更二動料。,外,定期比 f存於備份硬碟中,則進行自動備份程序。 為讓本發明之上述目的、特徵、和優點能更明顯 明士’下文特舉一較佳實施例,並配合所附圖式,作詳細說 【實施方式】 ,參照第1圖,繪示具有雙硬碟之筆記型電腦的示意 圖。筆記型電腦10具有第一硬碟110及第二硬碟120,其雙 硬碟的設計之應用,除了可選擇讓筆記型電腦同時保有兩 套作業系統’由企業用戶選擇所需之作業系統來使用;亦 可選擇僅採用一套作業系統,將資料與系統分別存放在第589526 V. Description of the invention (1) [Technical field to which the invention belongs] The present invention relates to a hard disk data control method, and particularly to a hard disk data control used in a notebook computer; π [prior art] With the improvement of the system interface, notebook computers can swap hard disks in the same interface, and some high-end pens can accommodate dual hard disk designs. -In general, Shuanglang ^ has been gradually developed to have two sets of operating systems and systems to cope with the non- =, and allow the computer under the same conditions to be created due to the reinstallation of the system = 1: avoiding a single hard disk The maximum effect of the dual hard disk design is lost, but the second material is lost: However, 'how to effectively control has become one of the hard disk data points of Gao ^ 1 computer. The research and development of the scoop door p is from the reed-type computer manufacturer. [Inventive Content] In view of this, the purpose of the present invention is to provide a hard disk system: law 'system, the state setting for the dual hard disk of the notebook computer, there are 1 Controlling the storage mode of the hard disk body can provide a large amount of data storage space, as well as the convenience of use, the stability of the system, and the security of the data. According to the purpose of the present invention, a hard disk data control method is proposed. 1 The following steps: First, set the data storage rights of the first hard disk and the second hard disk, and mark the first hard disk as the left hard disk and the second hard disk. The disc is labeled as a backup hard drive. Next, check the main hard disk. When the main hard disk is damaged, the main hard disk will be repaired automatically. Page 4 TW097). Dig the disk and test the data of the main hard disk. A Fill the data of the main hard disk. In addition, it is determined that the data of the main hard disk is damaged and repaired automatically: the data stored in the main hard disk and the main hard disk and the backup hard disk are automatically restored. According to the purpose of the present invention, it is used in a notebook computer to record a computer-readable recording medium hard disk according to the purpose of the present invention. sequence. Hard disk data control method sentence = Setting, automatic repair and automatic backup procedure Data row steps of the second hard disk and disk: First, set the first-hard hard disk damaged! dish. Next, check the master hard drive. When the master moves to the master hard drive and spares two spare parts. In addition, the regular backup f is stored in the backup hard disk, and the automatic backup process is performed. In order to make the above-mentioned objects, features, and advantages of the present invention more apparent, a preferred embodiment is given below, and it is described in detail in conjunction with the accompanying drawings. [Embodiment] Referring to FIG. 1, there is shown Schematic of a dual hard drive laptop. The notebook computer 10 has a first hard disk 110 and a second hard disk 120. In addition to the application of the dual hard disk design, in addition to the option of allowing the notebook computer to maintain two operating systems at the same time, it is up to the enterprise user to select the required operating system. Use; you can also choose to use only one operating system and store the data and system separately in the first
589526 五、發明說明(3) 一硬碟11 0及第二硬碟1 20中,使得當系統需重新安裝時能 避免資料流失。而本發明之硬碟資料控制方法,更可針對 筆記型電腦1 〇之第一硬碟11 〇及第二硬碟1 2 0進行狀態設 定’在同一作業系統下,讓一般使用者能善用雙硬碟設計 之優點。本發明可提供使用者多種應用方案··其一,可選 ,將雙硬碟合併為一,例如將容量3〇GB的第一硬碟結合容 里2 0GB的第二硬碟,而成為容量5〇GB的第三硬碟,使之具 有儲存大量資料之容量,以增加使用上之方便性;其二,、 擇將第一硬碟110設定為主硬碟、將第二硬碟120設 =備份硬碟,透過本發明之自動修復及自動備份程序, 可&加系統之穩定性及資料之忠 之硬磾資粗、枓 全性,以對筆記型電腦10 心更碟貝枓進行有效的控制。 .請參照第2圖,繪示依照本發明一 貧料控制方法之流程圖。本發明之月”:竭硬碟 括下列步驟:首先,於步>21Qt,_貝枓控制方法,包 式’分別將第—硬碟標示為主硬碟、n碟資^儲存模 J碟。接著’於步驟22。檢查磾,第;碟標不為備份 壞,進入步驟222,自動修復 雄二榀查出主硬碟損 繼續步驟230,測試主硬碟=碟丄*主硬碟未損壞, 毀,於步驟232自動修補主二,主硬碟之資料損 :’定期比對主硬碟及備份硬碑貝再者,力步驟240 出:資料既錯存於主硬碟中且驟24”,當比對 仃y驟244之自動備份 洁存於備份硬碟中, 間後再繼續進行比對。序,否則回到步驟240,待時 TW0975F(緯創).ptd 第6頁 589526 五、發明說明(4) 請參照第3A圖,繪示第2圖的硬碟資料控 碟設定、自動修復程序之流程圖。開始進n :是:為J-次_,若為第—次開機則進入:二’二 序。由於筆記型電腦至少包括第一硬碟, 碟汉疋红 中,偵測筆記型電腦是否容置有第二硬碟, 步驟31 2 二硬碟,則進入步驟316,將第一硬碟標示未偵測到第 在步驟312中偵測到該第二硬碟,則進:步驟硬碟。上 否合併硬碟·,當使用者選擇將第一硬碟及第二硬碟 第二硬碟時,則進入步驟31 6,將第三硬碟標八” σ 、、 碟,當使用者選擇不合併硬碟,則於步驟316分別^ 一 硬碟標示為主硬碟、第二硬碟標示為備份硬碟。a — 驟316後’則跳出硬碟設定程序,而回到開始點,-成: 驟300。在步驟300判斷非為第一次開機後, ϋ & 乂 302。 逆入步驟 在步驟30 2中,偵測是否有備份硬碟存在。去 備份硬碟,則進入步驟320,開始自動修復程序二否則』^ 入步驟304,由主硬碟啟動系統,並於步驟3〇6進行硬 面檢查,確認主硬碟之硬碟介面插好後,即結束硬資 控制方法。在自動修復程序中,首先於步驟32〇,由主硬 碟啟動系統,並於步驟322進行硬碟介面檢查,確認主硬 碟及備份硬碟之硬碟介面皆插好後,進入步驟3 2 4, 杳 主硬碟是否損壞。當系統無法完成啟動時,判斷出主双硬碟 損壞’於步驟3 2 6中進行硬碟修復,先格式化主硬,' 將備份硬碟之資料複製至主硬碟,重新回到步驟3^〇,經 TW0975F(緯創).ptd 第7頁 589526 五、發明說明(5) 過步驟3 2 2及3 2 4,而使系統完成啟動。589526 5. Description of the invention (3) One hard disk 110 and the second hard disk 120 can prevent data loss when the system needs to be reinstalled. The hard disk data control method of the present invention can also set the status of the first hard disk 11 0 and the second hard disk 120 of the notebook computer 10 under the same operating system, so that ordinary users can make good use of it. Advantages of dual hard drive design. The present invention can provide users with multiple application solutions. First, it is optional to combine dual hard disks into one. For example, a first hard disk with a capacity of 30 GB is combined with a second hard disk with a capacity of 20 GB. The 50GB third hard disk has the capacity to store a large amount of data to increase the convenience of use. Second, the first hard disk 110 is set as the main hard disk, and the second hard disk 120 is set as the hard disk. = Backup hard disk, through the automatic repair and automatic backup procedure of the present invention, it can & add system stability and data loyalty to the data, and completeness, in order to effectively improve the 10-heart disk of a notebook computer control. Please refer to FIG. 2 for a flowchart of a lean material control method according to the present invention. "Month of the invention": Exhausted hard disk includes the following steps: First, in step > 21Qt, _Beijing control method, the package type 'the first hard disk is marked as the main hard disk, n disk resources, storage disk J disk Then go to 'Step 22.' Check that the disk label is not bad for backup. Go to step 222. Automatically repair the second hard disk and detect the main hard disk damage. Continue to step 230. Test the main hard disk = disk * The main hard disk is not damaged. Destroy, in step 232, automatically repair the data of the main two, the main hard disk is damaged: 'Regularly compare the main hard disk and backup hard disk, and then step 240. The data is stored in the main hard disk by mistake and step 24. "When the automatic backup of step 244 is saved in the backup hard disk, the comparison will be continued after a while. Sequence, otherwise return to step 240, wait for TW0975F (Wistron) .ptd Page 6 589526 5. Description of the invention (4) Please refer to Figure 3A for the hard disk data control disk setting and automatic repair procedure of Figure 2 The flowchart. Start to enter n: Yes: J-times _, if it is the first time to boot then enter: 2 ’second sequence. Since the notebook computer includes at least the first hard disk, Di Hanyuhong detects whether the notebook computer has a second hard disk. Step 31 2 Two hard disks, then proceed to step 316, marking the first hard disk as unused. If the second hard disk is detected in step 312, proceed to: step hard disk. Whether to merge the hard disks. When the user chooses to place the first hard disk and the second hard disk as the second hard disk, the process proceeds to step 31 6 and the third hard disk is marked with eight "σ", "disk", when the user selects If the hard disks are not merged, in step 316, one hard disk is marked as the primary hard disk, and the second hard disk is marked as the backup hard disk. A — After step 316 ', the hard disk setting process is skipped and returns to the starting point,- Success: Step 300. After determining in step 300 that it is not the first boot, 开机 & 乂 302. Reverse the step in step 302 to detect whether a backup hard disk exists. To back up the hard disk, go to step 320 Start the automatic repair procedure. Otherwise, go to step 304, start the system from the main hard disk, and perform a hard surface check at step 306. After confirming that the hard disk interface of the main hard disk is plugged in, the hard capital control method ends. In the automatic repair process, first start the system from the main hard disk at step 32, and check the hard disk interface at step 322. After confirming that the hard disk interfaces of the main hard disk and the backup hard disk are inserted, proceed to step 3 2 4. 是否 Whether the main hard disk is damaged. When the system cannot complete the startup, judge whether The main dual hard disk is damaged. 'Fix the hard disk in step 3 2 6 and format the main hard disk first.' Copy the data of the backup hard disk to the main hard disk and return to step 3 ^ 〇. After TW0975F (Wistron ) .ptd Page 7 589526 V. Description of the invention (5) After the steps 3 2 2 and 3 2 4 are completed, the system is started.
如步驟330所示,使用者可在作業系統下 開啟主硬碟中任何-個檔案’而同時 驟332,U 該檔案是否損毀。當播案無法完成開啟時,:成 毀,進入步驟334。在步驟334中,稽 镐案知 份硬碟中與主硬碟之毀損.樓案相對應的檔;複製1 備 碟,再回到步驟330重新開啟槽案,經過步驟33 上 2開啟巧自動修復程序 '然而上 序可於每次開啟稽案時執行,測試欲開啟之樓案是否广 毁,而能夠及時自動修復。 洛相 請參照第3B圖’繪示第2圖的硬 動備份程序之流程圖。自動備份程序展:如下:在法之自 定Λ比對之前’使用者可自由設定備份週期,‘ 如5又疋母十为鐘、每三十分鐘 =:Λ備:週期定期比對主硬碟及備份硬碟,而主 杆,· #六★ ^係針對具有一特定屬性之資料來進 J 口 ·儲存時間、擋案類型、 342,當比對出右眘袓,认 不田杀人J寻於步驟 份資料",以茯矣Α ϋ(為了便於說明起見,稱其為"待備 ΐ二夫J上稍後需備份至備份硬碟中)既儲存於主 碼中且未儲存於備你^ 否有應用程式開啟。若虛’貝1進入步驟344 ’確認是 先使該應用程式進入程式開啟則進入步驟345, 步驟346,將待備份次暫狀恶。若無應用程式開啟則進行 於儲存備份時,可貝枓^主硬碟儲存備份至備份硬碟; 析待備份資料壓縮,並依序將待備份資As shown in step 330, the user can open any-files in the main hard disk under the operating system, and at the same time, step 332, whether the file is damaged. When the broadcast can not be completed and opened, it will be destroyed, and then proceed to step 334. In step 334, Jihao knows the damage on the hard disk corresponding to the main hard disk. The file corresponding to the building case; copy 1 spare disk, and then return to step 330 to reopen the slot case. 'Repair procedure' However, the above sequence can be executed every time when the audit case is opened, and it is tested whether the case to be opened is extensively destroyed and can be automatically repaired in time. Luo Xiang Please refer to FIG. 3B for a flowchart of the hard backup procedure in FIG. 2. Automatic backup program exhibition: As follows: before the self-defined Λ comparison of the law, 'users can set the backup period freely,' such as 5 and 10 times every 30 minutes =: Λ preparation: the period is regularly compared with the master Discs and backup hard disks, and the main pole, # 六 ★ ^ is for the data with a specific attribute to enter the J port. Storage time, file type, 342, when the comparison is right, you ca n’t recognize the killer J Find the information in the steps " with 茯 矣 Α ϋ (for the sake of explanation, it will be called " to be prepared, the second husband J needs to be backed up to the backup hard disk later) is stored in the master code and not Saved for you ^ No application is open. If the virtual ‘bei 1’ enters step 344 ′ and confirms that the application program is first opened, the procedure proceeds to step 345, and step 346, which is to be backed up temporarily. If no application is open, the backup can be performed when the backup is stored. ^ The main hard disk can store the backup to the backup hard disk; analyze the data to be backed up and compress the data to be backed up in sequence.
589526 五、發明說明(6) 料中之檔案、資料夾及目錄 後,於步驟347使處於暫佟、\子#伤。备儲存備份完成 態,並進入步驟348,開。=,用程式回復原始狀 自動備份,並回到步驟34〇 而完成硬碟資料之 述之自動備份程序可於每間炫扯八,月比對。因此上 #間隔一備份週期後g Ρ 而能夠定期將主硬碟之更靳次U β 士 Λ便即開始執行, 發明之自動備份程序亦可W 切 此外,本 分割區之單一硬碟,而分別眩士八W广 刀d £及延伸 延伸分割區設定為備份硬碟, 勹王更碟,將 、 P叮同樣達成同步争在 備份資料,以對硬碟資料淮耔古4认协立丨 少更新儲存 全性。 卄進仃有效的控制,確保資料之安 本發明上述實施例所揭露之硬碟資料控制 下列優點: 左具有 一、 加大儲存大量資料之容量,增加使用上之 性··透過硬碟設定程序,可選擇將雙硬碟合併為一, 運作上如同使用一個具有大儲存容量之硬碟,簡化操作複 雜度。 〃 二、 增加系統之穩定、丨生··當主硬碟損壞或資料損毀, 系統會透過自動修復程序自動修復損壞硬碟及修補槽案, 避免當機的情況發生,使系統更穩定。 三、 確保資料之安全性:透過自動備份程序即時將主 硬碟之資料備份儲存至儲存硬碟,讓備份硬碟同步更新儲 存資料,以對筆記型電腦之硬碟資料進行有效的控制,確 保資料之安全性。 TW0975F(緯創).ptd 第9頁 五、發明說明(7) 綜上所述,雖然本發明 — 然、其並非用以限定本發卜較佳貫施例揭政如上, 本發明之精神釦#网+ 任何熟習此技藝者,在不脫離 本發明之保可作各種之更動與潤飾,因此 準。平°“圍當視後附之申請專利範圍所界定者為 ⑩ in 第10頁 TW0975F(緯創).ptd 589526 圖式簡單說明 【圖式簡單說明】 第1圖繪示具有雙硬碟之筆記型電腦的示意圖。 第2圖繪示依照本發明一較佳實施例的硬碟資料控制 方法之流程圖。 第3 A圖繪示第2圖的硬碟資料控制方法之硬碟設定、 自動修復程序之流程圖。 第3B圖繪示第2圖的硬碟資料控制方法之自動備份程 序之流程圖。 圖式標號說明 10 :筆記型電腦 11 0 ··第一硬碟 120 :第二硬碟 m TW0975F(緯創).ptd 第11頁589526 V. Description of the invention (6) After the files, folders and directories in the data, in step 347, the files are placed in a temporary state and wounded. The backup storage is completed, and the process proceeds to step 348, which is on. =, Use the program to restore the original state, automatic backup, and return to step 34. The automatic backup procedure described in the hard disk data can be completed in each room. Therefore, after a backup period, g # can be periodically updated on the main hard disk, U β and Λ will be executed immediately. The invented automatic backup program can also cut the single hard disk in this partition, and Each of them is set to back up the hard disk, and the extended partition is set as the backup hard disk. The king will change the disk, and P Ding will also achieve the same synchronization to back up the data, so as to recognize the hard disk data. Less update storage integrity.卄 Improve effective control to ensure data security The hard disk data control disclosed in the above embodiments of the present invention has the following advantages: 1. It has the following features: 1. Increasing the capacity of storing a large amount of data and increasing the usability. You can choose to combine the two hard disks into one, which operates like a hard disk with a large storage capacity, simplifying the complexity of operation. 〃 2. Increase the stability and health of the system. When the main hard disk is damaged or the data is damaged, the system will automatically repair the damaged hard disk and the repair slot through the automatic repair procedure to avoid crashes and make the system more stable. III. Ensuring data security: Backup the data of the main hard disk to the storage hard disk in real time through the automatic backup process, and let the backup hard disk update the stored data synchronously, so as to effectively control the hard disk data of the notebook computer and ensure Information security. TW0975F (Wistron) .ptd Page 9 V. Description of the Invention (7) In summary, although the present invention is, of course, it is not intended to limit the preferred embodiment of the present invention, as explained above, the spirit of the present invention is deducted # 网 + Anyone skilled in this art can make various modifications and retouching without departing from the guarantee of the present invention. Ping ° "The definition of the scope of the patent application attached at the back is defined as 视 in page 10 TW0975F (Wistron) .ptd 589526 Simple illustration of the diagram [Schematic description of the diagram] Figure 1 shows a note with dual hard disk Schematic diagram of a type computer. Fig. 2 shows a flowchart of a hard disk data control method according to a preferred embodiment of the present invention. Fig. 3 A shows a hard disk setting and automatic repair of the hard disk data control method of Fig. 2. Flowchart of the program. Figure 3B shows the flowchart of the automatic backup procedure of the hard disk data control method in Figure 2. Figure labeling description 10: Notebook computer 11 0 · · First hard disk 120: Second hard disk m TW0975F (Wistron) .ptd Page 11