WO2012031567A1 - Fault tolerance method and device for file system - Google Patents

Fault tolerance method and device for file system Download PDF

Info

Publication number
WO2012031567A1
WO2012031567A1 PCT/CN2011/079533 CN2011079533W WO2012031567A1 WO 2012031567 A1 WO2012031567 A1 WO 2012031567A1 CN 2011079533 W CN2011079533 W CN 2011079533W WO 2012031567 A1 WO2012031567 A1 WO 2012031567A1
Authority
WO
WIPO (PCT)
Prior art keywords
partition table
operating system
file
fault
table information
Prior art date
Application number
PCT/CN2011/079533
Other languages
French (fr)
Chinese (zh)
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 北京中科院软件中心有限公司
Publication of WO2012031567A1 publication Critical patent/WO2012031567A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata

Definitions

  • the present invention relates to the field of computer security technologies, and in particular, to a fault tolerance method and apparatus for a file system in a computer operating system. Background technique
  • the Chinese patent application of CN1460210A proposes an apparatus and method for preventing damage of a computer operating system, and discloses the following technical contents: partitioning a hard disk, the first storage area is an invisible area that is not allowed to be accessed by a user, and the second storage area stores an operating system.
  • the first storage area is a backup of the second storage area; when the computer is started, the basic input output system (BIOS, Basic Input Output System) checks the value of the first flag, and when the first flag is set to be abnormally terminated, the copy is performed.
  • the backup file of the first storage area is to the second storage area, and the flag is reset.
  • the Chinese patent application with the publication number CN1549131A proposes a method for repairing a computer operating system, and discloses the following technical contents: Pre-prepared in the HPA (Host Protected Area) area of the hard disk All the information related to starting the computer; set the self-test module in the HPA of the hard disk, and add a command to call the self-test module in the BIOS of the computer; when the computer is booted by the hard disk, the self-test module is called by the BIOS, if If the information about starting the computer is corrupted, start the computer after repairing the damaged part.
  • HPA Home Protected Area
  • the inventors have found that the above technical solutions have the defects of: all the information related to starting the computer needs to be backed up, the repaired data is more, the repairing time is long; and the backup information is stored in the hard disk, and the startup is slow. Memory usage is low.
  • An embodiment of the present invention provides a fault tolerance method and a device for a file system, by reading a pre-stored file partition table information from a backup device and overwriting a partition table of the file system, and starting an operating system according to the covered partition table; There is less backup information and shorter repair time; and, through hardware backup information, the system can be started quickly and the memory usage is high.
  • an embodiment of the present invention provides a fault tolerance method for a file system, which is applied to a computer operating system, where the method includes:
  • the pre-stored file partition table information corresponding to the operating system is read from the backup device; the read file partition table information is overwritten by the partition table of the file system corresponding to the operating system; The partition table of the file system starts the operating system.
  • the embodiment of the invention further provides a fault-tolerant device for a file system, which is applied to a computer operating system, and the fault-tolerant device comprises:
  • a backup device configured to pre-store file partition table information corresponding to the operating system
  • a reading unit configured to read the file partition table information from the backup device when the operating system is started
  • a coverage unit configured to overwrite the read file partition table information with a partition table of a file system corresponding to the operating system
  • a booting unit configured to start the operating system according to the partition table of the file system.
  • the beneficial effects of the embodiment of the present invention are: by reading the pre-stored file partition table information from the backup device and overwriting the partition table of the file system, starting the operating system according to the covered partition table; the backup information can be made less, and the repaired The time is short; and, through the hardware backup information, the system can be started quickly and the memory usage is high.
  • Embodiment 1 is a flow chart of a fault tolerance method according to Embodiment 1 of the present invention.
  • Embodiment 2 is a flow chart of a fault tolerance method according to Embodiment 2 of the present invention.
  • Figure 4 is a block diagram showing a configuration of a fault tolerant device according to a third embodiment of the present invention.
  • Fig. 5 is a view showing the configuration of a fault tolerant device according to a fourth embodiment of the present invention. detailed description
  • An embodiment of the present invention provides a fault tolerance method for a file system, which is applied to a computer operating system. As shown in FIG. 1, the method includes:
  • Step 101 When the operating system is started, the file partition table information corresponding to the pre-stored operating system is read from the backup device.
  • Step 102 The read file partition table information is overwritten by the partition of the file system corresponding to the operating system.
  • Step 103 Start an operating system according to a partition table of the file system.
  • the backup device can be connected to the computer through an integrated driver electronics (IDE, Integrated Drive Electronics) interface or a PCI (Peripheral Component Interconnect) interface.
  • the backup device can be integrated with a computer; for example, the backup device can be an Electronic Erasable Programmable ROM (EEPR0M) integrated on a computer motherboard.
  • IDE integrated driver electronics
  • PCI Peripheral Component Interconnect
  • the backup device can be integrated with a computer; for example, the backup device can be an Electronic Erasable Programmable ROM (EEPR0M) integrated on a computer motherboard.
  • EEPR0M Electronic Erasable Programmable ROM
  • the file partition table can be used to track the state of each file segment stored in the disk space, which can be a linked list in the FAT file system, or an inode table in the EXT2/EXT3 file system, or a master in the NTFS file system. MFT, Master Fi le Table.
  • MFT Master Fi le Table
  • the backup or recovery time is short.
  • the file system can be repaired after the file system is damaged, and the operating system is implemented. Normal startup; For non-operating system related parts, it can be processed after the operating system starts.
  • the file system can be optimized, the file system damage caused by the abnormality is solved, the file system is automatically repaired, the maintenance personnel and the maintenance cost are saved, and the device failure is reduced.
  • the repair time increases the availability of the device.
  • the operating system is started by using the overwritten partition table; the backup information is less, and the repair time is short; Moreover, the hardware backup information can make the system start fast and the memory usage rate is high.
  • the embodiment of the present invention provides a fault-tolerant method for a file system, which is applied to a computer operating system.
  • the fault-tolerant method is described in detail below on the basis of the embodiment 1.
  • the same content as that of the embodiment 1 is not described herein. As shown in FIG. 2, the method includes:
  • Step 201 After installing the operating system, scan the operating system file system to obtain corresponding file partition table information.
  • the file system can be scanned by the BIOS (Basic Input Output System) command to automatically identify the file partition table and other information, and obtain the corresponding file partition table information.
  • BIOS Basic Input Output System
  • the specific implementation method can be determined according to the actual situation.
  • Step 202 Store the obtained file partition table information into the backup device.
  • the backup device can be connected to the computer via an integrated drive electronic IDE interface or a peripheral component interconnecting a standard PCI interface, or integrated with a computer via a bus.
  • an integrated drive electronic IDE interface or a peripheral component interconnecting a standard PCI interface, or integrated with a computer via a bus.
  • specific implementation methods can be determined according to actual conditions.
  • Step 203 Read the file partition table information corresponding to the pre-stored operating system from the backup device each time the operating system is started.
  • the file partition table information corresponding to the operating system may be read from the backup device by using a BIOS command, and the file partition information may be pre-stored in the backup device through step 202.
  • the file partition table information corresponding to the operating system may be read from the backup device by using a BIOS command, and the file partition information may be pre-stored in the backup device through step 202.
  • Step 204 Overwrite the read file partition table information with the partition table of the file system.
  • Step 205 Start an operating system according to a partition table of the file system.
  • the partitioning table of the file system can be used to perform system initialization and execute a booting program to start the operating system.
  • the file partition table information backed up in the backup device can be read, and the partition table of the file system is automatically covered. In this way, no matter how the file system exits in the last running state, it does not affect the normal operation of the operating system related files, thus realizing the normal repair of the file system.
  • the partition table of the file system corresponding to the operating system may be determined to be damaged.
  • the file partition table information may be backed up in the backup device in advance, as described in steps 301 and 302.
  • step 303 is executed to determine whether the partition table of the file system corresponding to the operating system is damaged. If it is determined that the partition table of the file system is damaged, step 304 is performed; otherwise, step 306 is performed. In this way, the backup device can be read only when the partition table of the file system is damaged, and the operation on the backup device is reduced.
  • the self-test module can be set, and then the self-test module is called by the BIOS to confirm whether the partition table of the file system corresponding to the operating system is damaged.
  • the self-test module can be set, and then the self-test module is called by the BIOS to confirm whether the partition table of the file system corresponding to the operating system is damaged.
  • the operating system is started by using the overwritten partition table; the backup information is less, and the repair time is short; Moreover, the hardware backup information can make the system start fast and the memory usage rate is high.
  • the embodiment of the present invention provides a fault-tolerant device for a file system, which is applied to a computer operating system.
  • the fault-tolerant device includes: a backup device 401, a reading unit 402, a covering unit 403, and a starting unit 404; ,
  • the backup device 401 is configured to pre-store file partition table information corresponding to the operating system
  • the reading unit 402 is configured to read the file partition table from the backup device 401 when the operating system is booted.
  • the overlay unit 403 is configured to overwrite the partition table of the file system corresponding to the operating system according to the read file partition table information;
  • the boot unit 404 is configured to boot the operating system using the partition table of the file system.
  • the operating system is booted by using the overwritten partition table by reading the pre-stored file partition table information from the backup device and overwriting the partition table of the file system;
  • the information is small, the repair time is short; and, by means of hardware backup information, the system can be started quickly and the memory usage rate is high.
  • the embodiment of the present invention provides a fault-tolerant device for a file system, which is applied to a computer operating system.
  • the following describes the fault-tolerant device in detail based on the embodiment 3.
  • the same content as that of the third embodiment is not described herein.
  • the fault tolerant device includes: a backup device 501, a reading unit 502, a cover unit 503, and a boot unit 504, as described in Embodiment 3.
  • the fault-tolerant device may further include: an obtaining unit 505 and a storage unit 506; wherein the obtaining unit 505 is configured to scan a file system of the operating system to obtain corresponding file partition table information after installing the operating system;
  • the storage unit 506 is for storing the file partition table information in the backup device 501.
  • the fault tolerant device may further include: a determining unit 507;
  • the determining unit 507 is configured to determine whether the partition table of the file system corresponding to the operating system is damaged; and, after the determining unit 507 confirms that the partition table of the file system has been damaged, the reading unit 502 reads the pre-stored operating system correspondingly from the backup device. File partition table information.
  • backup device 501 can be coupled to a computer via an integrated drive electronic IDE interface or peripheral component interconnect standard PCI interface.
  • backup device 501 can also be integrated with a computer via a bus.
  • the operating system is started by using the overwritten partition table; the backup information is less, and the repair time is short; Moreover, the hardware backup information can make the system start fast and the memory usage rate is high.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein may be implemented in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), programmable ROM (PROM, Programmable ROM), EEPROM (Electronic Erasable Programmable ROM), registers, hard disk , removable disk, CD_ROM, or any other form of storage medium known in the art.

Abstract

Embodiments of the present invention provide a fault tolerance method and a fault tolerance device for a file system. The method comprises: when an operating system is started, reading from a backup device pre-stored file partition table information corresponding to the operating system; overlaying the read file partition table information on a partition table of the file system; and starting the operating system according to the partition table of the file system. The present embodiments allow for minimal backup information, short repair time, quick system start-up, and a high utilization rate of internal storage.

Description

文件系统的容错方法及其装置  File system fault tolerance method and device thereof
本申请要求 2010年 9月 10日提交中国专利局、 申请号为 201010277550. X, 发明名称为 "文件系统的容错方法及其装置" 的中国专利申请的优先权, 其 全部内容通过引用结合在本申请中。 The present application claims priority to Chinese Patent Application, filed on Sep. 10, 2010, to the Chinese Patent Office, Application No. 201010277550.X, entitled "File System Fault Tolerance Method and Apparatus", the entire contents of which are incorporated herein by reference. In the application.
技术领域 Technical field
本发明涉及计算机安全技术领域, 特别涉及一种计算机操作系统中文件 系统的容错方法及其装置。 背景技术  The present invention relates to the field of computer security technologies, and in particular, to a fault tolerance method and apparatus for a file system in a computer operating system. Background technique
随着计算机技术日益广泛的应用, 包括通用计算机和嵌入式计算机在内 的计算机系统已经渗透到各个行业和领域, 给计算机系统的安全提出了更高 的要求。 在很多情况下, 由于操作系统的非法关机、 断电, 导致文件系统损 坏, 计算机不能正常启动。  With the increasing use of computer technology, computer systems, including general-purpose computers and embedded computers, have penetrated into various industries and fields, placing higher demands on the security of computer systems. In many cases, the file system is damaged due to an illegal shutdown or power failure of the operating system, and the computer cannot start normally.
目前, 针对文件系统的损坏已经提出了一些解决方案。 公开号为 At present, some solutions have been proposed for the damage of the file system. The publication number is
CN1460210A的中国专利申请提出一种防止计算机操作系统损坏的装置和方 法, 揭示了如下技术内容: 对硬盘进行分区, 第一存储区域是不允许用户访 问的不可见区域, 第二存储区域存储操作系统, 第一存储区域是第二存储区 域的备份; 在计算机启动时, 基本输入输出系统 (BIOS, Basic Input Output System) 检查第一标志的值, 在第一标志设定为非正常终止时, 复制第一存 储区域的备份文件至第二存储区域, 并重置标志。 The Chinese patent application of CN1460210A proposes an apparatus and method for preventing damage of a computer operating system, and discloses the following technical contents: partitioning a hard disk, the first storage area is an invisible area that is not allowed to be accessed by a user, and the second storage area stores an operating system. The first storage area is a backup of the second storage area; when the computer is started, the basic input output system (BIOS, Basic Input Output System) checks the value of the first flag, and when the first flag is set to be abnormally terminated, the copy is performed. The backup file of the first storage area is to the second storage area, and the flag is reset.
公开号为 CN1549131A的中国专利申请提出一种计算机操作系统的修复方 法, 揭示了如下技术内容: 预先在硬盘的 HPA (Host Protected Area) 区备 份所有与启动计算机有关的信息; 在硬盘的 HPA中设置自检模块, 并在计算机 的 BIOS中增设用以调用自检模块的命令; 计算机由硬盘引导启动时, 由 BIOS 调用自检模块, 如果与启动计算机有关的信息是否被破坏, 则对损坏部分进 行修复后启动计算机。 The Chinese patent application with the publication number CN1549131A proposes a method for repairing a computer operating system, and discloses the following technical contents: Pre-prepared in the HPA (Host Protected Area) area of the hard disk All the information related to starting the computer; set the self-test module in the HPA of the hard disk, and add a command to call the self-test module in the BIOS of the computer; when the computer is booted by the hard disk, the self-test module is called by the BIOS, if If the information about starting the computer is corrupted, start the computer after repairing the damaged part.
但是在实现本发明的过程中, 发明人发现上述技术方案的缺陷在于: 需 要备份所有与启动计算机有关的信息, 修复的数据较多, 修复的时间长; 并 且备份信息存储在硬盘, 启动慢, 内存使用率低。  However, in the process of implementing the present invention, the inventors have found that the above technical solutions have the defects of: all the information related to starting the computer needs to be backed up, the repaired data is more, the repairing time is long; and the backup information is stored in the hard disk, and the startup is slow. Memory usage is low.
发明内容 Summary of the invention
本发明实施例提供一种文件系统的容错方法及其装置, 通过从备份装置 中读取预先存储的文件分区表信息并覆盖文件系统的分区表, 根据覆盖后的 分区表启动操作系统; 可使得备份的信息少, 修复的时间短; 并且, 通过硬 件备份信息, 可使得系统启动快、 内存使用率高。  An embodiment of the present invention provides a fault tolerance method and a device for a file system, by reading a pre-stored file partition table information from a backup device and overwriting a partition table of the file system, and starting an operating system according to the covered partition table; There is less backup information and shorter repair time; and, through hardware backup information, the system can be started quickly and the memory usage is high.
为实现上述目的, 本发明实施例提供一种文件系统的容错方法, 应用于 计算机操作系统中, 所述方法包括:  To achieve the above object, an embodiment of the present invention provides a fault tolerance method for a file system, which is applied to a computer operating system, where the method includes:
在操作系统启动时, 从备份装置中读取预先存储的所述操作系统对应的 文件分区表信息; 将读取的所述文件分区表信息覆盖所述操作系统对应的文 件系统的分区表; 根据所述文件系统的分区表启动所述操作系统。  When the operating system is started, the pre-stored file partition table information corresponding to the operating system is read from the backup device; the read file partition table information is overwritten by the partition table of the file system corresponding to the operating system; The partition table of the file system starts the operating system.
本发明实施例还提供一种文件系统的容错装置, 应用于计算机操作系统 中, 所述容错装置包括:  The embodiment of the invention further provides a fault-tolerant device for a file system, which is applied to a computer operating system, and the fault-tolerant device comprises:
备份装置, 用于预先存储所述操作系统对应的文件分区表信息; 读取单元, 用于在操作系统启动时, 从所述备份装置中读取所述文件分 区表信息;  a backup device, configured to pre-store file partition table information corresponding to the operating system; and a reading unit, configured to read the file partition table information from the backup device when the operating system is started;
覆盖单元, 用于将读取的所述文件分区表信息覆盖所述操作系统对应的 文件系统的分区表; 启动单元, 用于根据所述文件系统的分区表启动所述操作系统。 a coverage unit, configured to overwrite the read file partition table information with a partition table of a file system corresponding to the operating system; And a booting unit, configured to start the operating system according to the partition table of the file system.
本发明实施例的有益效果在于, 通过从备份装置中读取预先存储的文件 分区表信息并覆盖文件系统的分区表, 根据覆盖后的分区表启动操作系统; 可使得备份的信息少, 修复的时间短; 并且, 通过硬件备份信息, 可使得系 统启动快、 内存使用率高。 附图说明  The beneficial effects of the embodiment of the present invention are: by reading the pre-stored file partition table information from the backup device and overwriting the partition table of the file system, starting the operating system according to the covered partition table; the backup information can be made less, and the repaired The time is short; and, through the hardware backup information, the system can be started quickly and the memory usage is high. DRAWINGS
此处所说明的附图用来提供对本发明的进一歩理解, 构成本申请的一部 分, 并不构成对本发明的限定。 在附图中:  The drawings described herein are provided to provide a further understanding of the invention and are in no way of limitation. In the drawing:
图 1是本发明实施例 1的容错方法的流程图;  1 is a flow chart of a fault tolerance method according to Embodiment 1 of the present invention;
图 2是本发明实施例 2的容错方法的流程图;  2 is a flow chart of a fault tolerance method according to Embodiment 2 of the present invention;
图 3是本发明实施例 2的容错方法的又一流程图;  3 is still another flowchart of the fault tolerance method of Embodiment 2 of the present invention;
图 4是本发明实施例 3的容错装置的构成图;  Figure 4 is a block diagram showing a configuration of a fault tolerant device according to a third embodiment of the present invention;
图 5是本发明实施例 4的容错装置的构成图。 具体实施方式  Fig. 5 is a view showing the configuration of a fault tolerant device according to a fourth embodiment of the present invention. detailed description
为使本发明的目的、 技术方案和优点更加清楚, 下面结合附图对本发明 的具体实施例进行详细说明。 在此, 本发明的示意性实施例及其说明用于解 释本发明, 但并不作为对本发明的限定。  In order to make the objects, technical solutions, and advantages of the present invention more comprehensible, the specific embodiments of the present invention will be described in detail below. The illustrative embodiments of the present invention and the description thereof are intended to illustrate the invention, but are not intended to limit the invention.
实施例 1  Example 1
本发明实施例提供一种文件系统的容错方法, 应用于计算机操作系统中, 如图 1所示, 所述方法包括:  An embodiment of the present invention provides a fault tolerance method for a file system, which is applied to a computer operating system. As shown in FIG. 1, the method includes:
歩骤 101, 在操作系统启动时, 从备份装置中读取预先存储的操作系统对 应的文件分区表信息;  Step 101: When the operating system is started, the file partition table information corresponding to the pre-stored operating system is read from the backup device.
歩骤 102, 将读取的文件分区表信息覆盖操作系统对应的文件系统的分区 歩骤 103, 根据文件系统的分区表启动操作系统。 Step 102: The read file partition table information is overwritten by the partition of the file system corresponding to the operating system. Step 103: Start an operating system according to a partition table of the file system.
在本实施例中,备份装置可通过集成驱动器电子(IDE, Integrated Drive Electronics ) 接口或者夕卜设咅 β件互连标准 (PCI , Peripheral Component Interconnect ) 接口与计算机连接。 或者, 备份装置也可与计算机集成; 例 如, 备份装置可为集成在计算机主板上的电可擦除可编程 ROM ( EEPR0M , Electronic Erasable Programmable R0M)。 但不限于此, 可根据实际情况确 定具体的备份方式。  In this embodiment, the backup device can be connected to the computer through an integrated driver electronics (IDE, Integrated Drive Electronics) interface or a PCI (Peripheral Component Interconnect) interface. Alternatively, the backup device can be integrated with a computer; for example, the backup device can be an Electronic Erasable Programmable ROM (EEPR0M) integrated on a computer motherboard. However, it is not limited to this, and the specific backup method can be determined according to the actual situation.
在本实施例中, 文件分区表可用来跟踪存储在磁盘空间各个文件段的状 态, 可为 FAT文件系统中的链表、 或者 EXT2/EXT3文件系统中的 inode表、 或者 NTFS文件系统中的主控文件表 (MFT, Master Fi le Table)。 但不限于此, 可 根据实际情况确定具体的文件分区表。  In this embodiment, the file partition table can be used to track the state of each file segment stored in the disk space, which can be a linked list in the FAT file system, or an inode table in the EXT2/EXT3 file system, or a master in the NTFS file system. MFT, Master Fi le Table. However, it is not limited to this, and a specific file partition table can be determined according to actual conditions.
在本实施例中, 因为一般操作系统的文件分区表比较小, 所以备份或恢 复的时间短, 通过读取预存的文件分区表, 可在文件系统损坏后对文件系统 进行修复, 实现操作系统的正常启动; 对于非操作系统的相关部分, 可在操 作系统启动之后进行处理。  In this embodiment, because the file partition table of the general operating system is relatively small, the backup or recovery time is short. By reading the pre-stored file partition table, the file system can be repaired after the file system is damaged, and the operating system is implemented. Normal startup; For non-operating system related parts, it can be processed after the operating system starts.
在本实施例中, 通过上述歩骤, 可对文件系统进行优化, 解决了因异常 原因而导致的文件系统的损坏, 实现文件系统的自动修复, 节省了维护人员 和维护成本, 降低了设备故障的修复时间, 提高了设备的可用性。  In this embodiment, through the foregoing steps, the file system can be optimized, the file system damage caused by the abnormality is solved, the file system is automatically repaired, the maintenance personnel and the maintenance cost are saved, and the device failure is reduced. The repair time increases the availability of the device.
由上述实施例可知, 通过从备份装置中读取预先存储的文件分区表信息 并覆盖文件系统的分区表, 利用覆盖后的分区表启动操作系统; 可使得备份 的信息少, 修复的时间短; 并且, 通过硬件备份信息, 可使得系统启动快、 内存使用率高。  It can be seen from the above embodiment that by reading the pre-stored file partition table information from the backup device and overwriting the partition table of the file system, the operating system is started by using the overwritten partition table; the backup information is less, and the repair time is short; Moreover, the hardware backup information can make the system start fast and the memory usage rate is high.
实施例 2  Example 2
本发明实施例提供一种文件系统的容错方法, 应用于计算机操作系统中, 以下在实施例 1的基础上对该容错方法进行详细说明, 与实施例 1相同的内容 在此不再赘述。 如图 2所示, 所述方法包括: The embodiment of the present invention provides a fault-tolerant method for a file system, which is applied to a computer operating system. The fault-tolerant method is described in detail below on the basis of the embodiment 1. The same content as that of the embodiment 1 is not described herein. As shown in FIG. 2, the method includes:
歩骤 201, 在安装操作系统之后, 对操作系统的文件系统进行扫描, 获取 对应的文件分区表信息。  Step 201: After installing the operating system, scan the operating system file system to obtain corresponding file partition table information.
在本实施例中, 在操作系统安装完成之后, 可通过基本输入输出系统 (BIOS, Basic Input Output System) 命令对文件系统进行扫描, 自动识别 文件分区表等信息, 获取对应的文件分区表信息。 但不限于此, 可根据实际 情况确定具体的实施方式。  In this embodiment, after the operating system is installed, the file system can be scanned by the BIOS (Basic Input Output System) command to automatically identify the file partition table and other information, and obtain the corresponding file partition table information. However, it is not limited to this, and the specific implementation method can be determined according to the actual situation.
歩骤 202, 将获取的文件分区表信息存储到备份装置中。  Step 202: Store the obtained file partition table information into the backup device.
在本实施例中, 备份装置可通过集成驱动器电子 IDE接口或者外设部件互 连标准 PCI接口与计算机连接, 或者通过总线与计算机集成。 但不限于此, 可 根据实际情况确定具体的实施方式。  In this embodiment, the backup device can be connected to the computer via an integrated drive electronic IDE interface or a peripheral component interconnecting a standard PCI interface, or integrated with a computer via a bus. However, it is not limited to this, and specific implementation methods can be determined according to actual conditions.
歩骤 203, 在每次操作系统启动时, 从备份装置中读取预先存储的操作系 统对应的文件分区表信息。  Step 203: Read the file partition table information corresponding to the pre-stored operating system from the backup device each time the operating system is started.
在本实施例中, 可通过 BIOS指令从备份装置中读取操作系统对应的文件 分区表信息, 该文件分区信息可通过歩骤 202预先存储到该备份装置中。 但不 限于此, 可根据实际情况确定具体的实施方式。  In this embodiment, the file partition table information corresponding to the operating system may be read from the backup device by using a BIOS command, and the file partition information may be pre-stored in the backup device through step 202. However, it is not limited to this, and specific implementation methods may be determined according to actual conditions.
歩骤 204, 将读取的文件分区表信息覆盖文件系统的分区表。  Step 204: Overwrite the read file partition table information with the partition table of the file system.
歩骤 205, 根据文件系统的分区表启动操作系统。  Step 205: Start an operating system according to a partition table of the file system.
在本实施例中, 可利用文件系统的分区表进行系统初始化、 执行引导程 序来启动操作系统。  In this embodiment, the partitioning table of the file system can be used to perform system initialization and execute a booting program to start the operating system.
在本实施例中, 通过上述歩骤, 在每次操作系统启动的过程中, 可读取 备份装置里备份的文件分区表信息, 对文件系统的分区表实现自动覆盖。 这 样, 无论文件系统在上次运行状态是怎样退出的, 都不影响操作系统相关文 件的正常运行, 从而实现了对文件系统的正常修复。  In this embodiment, through the above steps, each time the operating system is started, the file partition table information backed up in the backup device can be read, and the partition table of the file system is automatically covered. In this way, no matter how the file system exits in the last running state, it does not affect the normal operation of the operating system related files, thus realizing the normal repair of the file system.
此外, 在歩骤 203从备份装置中读取预先存储的操作系统对应的文件分区 表信息之前, 还可确定操作系统对应的文件系统的分区表是否损坏。 如图 3所示, 可预先在备份装置中备份文件分区表信息, 可如歩骤 301、 302所述。 在每次启动操作系统时, 可执行歩骤 303, 确定操作系统对应的文 件系统的分区表是否损坏; 若确定文件系统的分区表已经损坏, 则执行歩骤 304; 否则, 执行歩骤 306。 这样, 可仅在文件系统的分区表损坏时读取备份 装置, 减少对备份装置的操作。 In addition, before the file partition table information corresponding to the operating system stored in the pre-stored device is read from the backup device, the partition table of the file system corresponding to the operating system may be determined to be damaged. As shown in FIG. 3, the file partition table information may be backed up in the backup device in advance, as described in steps 301 and 302. Each time the operating system is started, step 303 is executed to determine whether the partition table of the file system corresponding to the operating system is damaged. If it is determined that the partition table of the file system is damaged, step 304 is performed; otherwise, step 306 is performed. In this way, the backup device can be read only when the partition table of the file system is damaged, and the operation on the backup device is reduced.
在本实施例中, 可通过设置自检模块, 然后通过 BIOS调用自检模块确认 操作系统对应的文件系统的分区表是否损坏。 但不限于此, 还可采用其他的 实施方案, 例如, 设置标识位等, 可根据实际情况确定具体的实施方式。  In this embodiment, the self-test module can be set, and then the self-test module is called by the BIOS to confirm whether the partition table of the file system corresponding to the operating system is damaged. However, it is not limited thereto, and other implementation manners may be used, for example, setting identifiers, etc., and specific implementation manners may be determined according to actual conditions.
由上述实施例可知, 通过从备份装置中读取预先存储的文件分区表信息 并覆盖文件系统的分区表, 利用覆盖后的分区表启动操作系统; 可使得备份 的信息少, 修复的时间短; 并且, 通过硬件备份信息, 可使得系统启动快、 内存使用率高。  It can be seen from the above embodiment that by reading the pre-stored file partition table information from the backup device and overwriting the partition table of the file system, the operating system is started by using the overwritten partition table; the backup information is less, and the repair time is short; Moreover, the hardware backup information can make the system start fast and the memory usage rate is high.
实施例 3  Example 3
本发明实施例提供一种文件系统的容错装置, 应用于计算机操作系统中, 如图 4所示, 所述容错装置包括: 备份装置 401、 读取单元 402、 覆盖单元 403 和启动单元 404; 其中,  The embodiment of the present invention provides a fault-tolerant device for a file system, which is applied to a computer operating system. As shown in FIG. 4, the fault-tolerant device includes: a backup device 401, a reading unit 402, a covering unit 403, and a starting unit 404; ,
备份装置 401用于预先存储操作系统对应的文件分区表信息;  The backup device 401 is configured to pre-store file partition table information corresponding to the operating system;
读取单元 402用于在操作系统启动时, 从备份装置 401中读取文件分区表 The reading unit 402 is configured to read the file partition table from the backup device 401 when the operating system is booted.
^ I Β自Ξ、 .; ^ I Β自Ξ, .;
覆盖单元 403用于根据读取的文件分区表信息覆盖操作系统对应的文件 系统的分区表;  The overlay unit 403 is configured to overwrite the partition table of the file system corresponding to the operating system according to the read file partition table information;
启动单元 404用于利用文件系统的分区表启动操作系统。  The boot unit 404 is configured to boot the operating system using the partition table of the file system.
本实施例的装置的各组成部分分别用于实现前述实施例的方法的各歩 骤, 由于在方法实施例中, 已经对各歩骤进行了详细说明, 在此不再赘述。  The components of the device in this embodiment are respectively used to implement the steps of the method in the foregoing embodiment. Since the steps have been described in detail in the method embodiments, details are not described herein.
由上述实施例可知, 通过从备份装置中读取预先存储的文件分区表信息 并覆盖文件系统的分区表, 利用覆盖后的分区表启动操作系统; 可使得备份 的信息少, 修复的时间短; 并且, 通过硬件备份信息, 可使得系统启动快、 内存使用率高。 It can be seen from the above embodiment that the operating system is booted by using the overwritten partition table by reading the pre-stored file partition table information from the backup device and overwriting the partition table of the file system; The information is small, the repair time is short; and, by means of hardware backup information, the system can be started quickly and the memory usage rate is high.
实施例 4  Example 4
本发明实施例提供一种文件系统的容错装置, 应用于计算机操作系统中, 以下在实施例 3的基础上对该容错装置进行详细说明, 与实施例 3相同的内容 在此不再赘述。  The embodiment of the present invention provides a fault-tolerant device for a file system, which is applied to a computer operating system. The following describes the fault-tolerant device in detail based on the embodiment 3. The same content as that of the third embodiment is not described herein.
如图 5所示, 所述容错装置包括: 备份装置 501、 读取单元 502、 覆盖单元 503和启动单元 504, 如实施例 3所述。  As shown in FIG. 5, the fault tolerant device includes: a backup device 501, a reading unit 502, a cover unit 503, and a boot unit 504, as described in Embodiment 3.
如图 5所示, 容错装置还可包括: 获取单元 505和存储单元 506; 其中, 获取单元 505用于在安装操作系统之后, 对操作系统的文件系统进行扫 描, 获取对应的文件分区表信息;  As shown in FIG. 5, the fault-tolerant device may further include: an obtaining unit 505 and a storage unit 506; wherein the obtaining unit 505 is configured to scan a file system of the operating system to obtain corresponding file partition table information after installing the operating system;
存储单元 506用于将文件分区表信息存储到备份装置 501中。  The storage unit 506 is for storing the file partition table information in the backup device 501.
如图 5所示, 容错装置还可包括: 确定单元 507;  As shown in FIG. 5, the fault tolerant device may further include: a determining unit 507;
确定单元 507用于确定操作系统对应的文件系统的分区表是否损坏; 并 且, 在确定单元 507确认文件系统的分区表已经损坏后, 读取单元 502从备份 装置中读取预先存储的操作系统对应的文件分区表信息。  The determining unit 507 is configured to determine whether the partition table of the file system corresponding to the operating system is damaged; and, after the determining unit 507 confirms that the partition table of the file system has been damaged, the reading unit 502 reads the pre-stored operating system correspondingly from the backup device. File partition table information.
在一个实施例中, 备份装置 501可通过集成驱动器电子 IDE接口或者外设 部件互连标准 PCI接口与计算机连接。  In one embodiment, backup device 501 can be coupled to a computer via an integrated drive electronic IDE interface or peripheral component interconnect standard PCI interface.
在另一个实施例中, 备份装置 501还可通过总线与计算机集成。  In another embodiment, backup device 501 can also be integrated with a computer via a bus.
本实施例的装置的各组成部分分别用于实现前述实施例的方法的各歩 骤, 由于在方法实施例中, 已经对各歩骤进行了详细说明, 在此不再赘述。  The components of the device in this embodiment are respectively used to implement the steps of the method in the foregoing embodiment. Since the steps have been described in detail in the method embodiments, details are not described herein.
由上述实施例可知, 通过从备份装置中读取预先存储的文件分区表信息 并覆盖文件系统的分区表, 利用覆盖后的分区表启动操作系统; 可使得备份 的信息少, 修复的时间短; 并且, 通过硬件备份信息, 可使得系统启动快、 内存使用率高。  It can be seen from the above embodiment that by reading the pre-stored file partition table information from the backup device and overwriting the partition table of the file system, the operating system is started by using the overwritten partition table; the backup information is less, and the repair time is short; Moreover, the hardware backup information can make the system start fast and the memory usage rate is high.
专业人员还可以进一歩意识到, 结合本文中所公开的实施例描述的各示 例的单元及算法歩骤, 能够以电子硬件、 计算机软件或者二者的结合来实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能一般性 地描述了各示例的组成及歩骤。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每个特定 的应用来使用不同方法来实现所描述的功能, 但是这种实现不应认为超出本 发明的范围。 A person skilled in the art will further appreciate that the various descriptions described in connection with the embodiments disclosed herein The unit and algorithm steps of the example can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the examples have been generally described in terms of functions in the above description. Composition and steps. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的歩骤可以用硬件、 处理 器执行的软件模块, 或者二者的结合来实施。 软件模块可以置于随机存储器 (RAM)、内存、只读存储器 (ROM)、电可编程 ROM (PROM, Programmable ROM)、 电可擦除可编程 ROM (EEPROM, Electronic Erasable Programmable ROM) 、 寄存器、 硬盘、 可移动磁盘、 CD_R0M、 或技术领域内所公知的任意其它形式 的存储介质中。  The steps of a method or algorithm described in connection with the embodiments disclosed herein may be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), programmable ROM (PROM, Programmable ROM), EEPROM (Electronic Erasable Programmable ROM), registers, hard disk , removable disk, CD_ROM, or any other form of storage medium known in the art.
以上所述的具体实施例, 对本发明的目的、技术方案和有益效果进行了进一 歩详细说明, 所应理解的是, 以上所述仅为本发明的具体实施例而已, 并不 用于限定本发明的保护范围, 凡在本发明的精神和原则之内, 所做的任何修 改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The specific embodiments of the present invention have been described in detail with reference to the preferred embodiments of the present invention. The scope of the invention, any modifications, equivalents, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims

权 利 要 求 书 Claim
1.一种文件系统的容错方法, 应用于计算机操作系统中, 其特征在于, 所述方法包括: A fault-tolerant method for a file system, which is applied to a computer operating system, the method comprising:
在操作系统启动时, 从备份装置中读取预先存储的所述操作系统对应的 文件分区表信息;  When the operating system is started, the pre-stored file partition table information corresponding to the operating system is read from the backup device;
将读取的所述文件分区表信息覆盖所述操作系统对应的文件系统的分区 表;  And reading the read file partition table information to cover a partition table of a file system corresponding to the operating system;
根据所述文件系统的分区表启动所述操作系统。  The operating system is started according to a partition table of the file system.
2.根据权利要求 1所述的容错方法, 其特征在于, 在操作系统启动之前, 所述方法还包括:  The fault-tolerant method according to claim 1, wherein before the operating system is started, the method further includes:
在安装所述操作系统之后, 对所述操作系统的文件系统进行扫描, 获取 对应的文件分区表信息;  After the operating system is installed, scanning a file system of the operating system to obtain corresponding file partition table information;
将所述文件分区表信息存储到所述备份装置中。  The file partition table information is stored in the backup device.
3.根据权利要求 1所述的容错方法, 其特征在于, 在从备份装置中读取预 先存储的所述操作系统对应的文件分区表信息之前, 所述方法还包括:  The fault-tolerant method according to claim 1, wherein before the reading of the file partition table information corresponding to the operating system stored in the backup device, the method further includes:
确定所述操作系统对应的文件系统的分区表是否损坏;  Determining whether the partition table of the file system corresponding to the operating system is damaged;
并且, 在确定所述文件系统的分区表已经损坏后, 从备份装置中读取预 先存储的所述操作系统对应的文件分区表信息。  And, after determining that the partition table of the file system has been damaged, reading the pre-stored file partition table information corresponding to the operating system from the backup device.
4.根据权利要求 1所述的容错方法, 其特征在于, 所述备份装置通过集成 驱动器电子 IDE接口或者外设部件互连标准 PCI接口与所述计算机连接。  The fault tolerance method according to claim 1, wherein the backup device is connected to the computer through an integrated driver electronic IDE interface or a peripheral component interconnect standard PCI interface.
5.根据权利要求 1所述的容错方法, 其特征在于, 所述备份装置集成在所 述计算机中。  The fault tolerance method according to claim 1, wherein the backup device is integrated in the computer.
6.—种文件系统的容错装置, 应用于计算机操作系统中, 其特征在于, 所述容错装置包括:  6. A fault-tolerant device for a file system, for use in a computer operating system, characterized in that: the fault-tolerant device comprises:
备份装置, 用于预先存储所述操作系统对应的文件分区表信息; 读取单元, 用于在操作系统启动时, 从所述备份装置中读取所述文件分 区表信息; a backup device, configured to pre-store file partition table information corresponding to the operating system; a reading unit, configured to read the file partition table information from the backup device when the operating system is started;
覆盖单元, 用于将读取的所述文件分区表信息覆盖所述操作系统对应的 文件系统的分区表;  a coverage unit, configured to overwrite the read file partition table information with a partition table of a file system corresponding to the operating system;
启动单元, 用于根据所述文件系统的分区表启动所述操作系统。  And a booting unit, configured to start the operating system according to the partition table of the file system.
7.根据权利要求 6所述的容错装置, 其特征在于, 所述容错装置还包括: 获取单元, 用于在安装所述操作系统之后, 对所述操作系统的文件系统 进行扫描, 获取对应的文件分区表信息;  The fault-tolerant device according to claim 6, wherein the fault-tolerant device further comprises: an acquiring unit, configured to scan a file system of the operating system after acquiring the operating system, to obtain a corresponding File partition table information;
存储单元, 用于将所述文件分区表信息存储到所述备份装置中。  And a storage unit, configured to store the file partition table information into the backup device.
8.根据权利要求 6所述的容错装置, 其特征在于, 所述容错装置还包括: 确定单元, 用于确定所述操作系统对应的文件系统的分区表是否损坏; 并且, 在所述确定单元确认所述文件系统的分区表已经损坏后, 所述读 取单元从所述备份装置中读取预先存储的所述操作系统对应的文件分区表信 息。  The fault-tolerant device according to claim 6, wherein the fault-tolerant device further comprises: a determining unit, configured to determine whether a partition table of a file system corresponding to the operating system is damaged; and, in the determining unit After confirming that the partition table of the file system has been damaged, the reading unit reads the pre-stored file partition table information corresponding to the operating system from the backup device.
9.根据权利要求 6所述的容错装置, 其特征在于, 所述备份装置通过集成 驱动器电子 IDE接口或者外设部件互连标准 PCI接口与所述计算机连接。  9. The fault tolerant device of claim 6, wherein the backup device is coupled to the computer via an integrated drive electronic IDE interface or a peripheral component interconnect standard PCI interface.
10.根据权利要求 6所述的容错装置, 其特征在于, 所述备份装置集成在 所述计算机中。  The fault-tolerant device according to claim 6, wherein the backup device is integrated in the computer.
PCT/CN2011/079533 2010-09-10 2011-09-09 Fault tolerance method and device for file system WO2012031567A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010277550.X 2010-09-10
CN 201010277550 CN101930384A (en) 2010-09-10 2010-09-10 Fault tolerance method and device for file system

Publications (1)

Publication Number Publication Date
WO2012031567A1 true WO2012031567A1 (en) 2012-03-15

Family

ID=43369577

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/079533 WO2012031567A1 (en) 2010-09-10 2011-09-09 Fault tolerance method and device for file system

Country Status (2)

Country Link
CN (1) CN101930384A (en)
WO (1) WO2012031567A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2983878B1 (en) 2013-04-10 2017-11-29 Dario Toncelli Apparatus for cutting slab material

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930384A (en) * 2010-09-10 2010-12-29 北京中科院软件中心有限公司 Fault tolerance method and device for file system
CN102508731B (en) * 2011-09-29 2013-06-12 中国航天科技集团公司第五研究院第五一三研究所 Fault tolerance starting method of operating system based on RS (Reed-Solomon) coding and decoding
CN106293848A (en) * 2013-03-15 2017-01-04 青岛海信移动通信技术股份有限公司 A kind of method and device of system upgrade
CN103605619B (en) * 2013-11-20 2017-09-12 邢博 A kind of credible storage method based on partition table fault tolerance
CN105095017A (en) * 2014-05-23 2015-11-25 中兴通讯股份有限公司 Partition table based hard disk repair method and apparatus
CN105787311A (en) * 2014-12-22 2016-07-20 联想(上海)信息技术有限公司 Storage device management method and device and electronic device
CN106201772A (en) * 2016-06-23 2016-12-07 浪潮(北京)电子信息产业有限公司 The backup of a kind of operating system based on data center, restoration methods and device
CN106528345B (en) * 2016-11-11 2020-03-06 郑州云海信息技术有限公司 Automatic node hard disk recovery method based on cloud platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1517888A (en) * 2003-01-15 2004-08-04 挹光科技股份有限公司 Method for protecting data of storage unit and system
CN101520830A (en) * 2009-04-08 2009-09-02 西北工业大学 Method for startup identity authentication of computer capable of protecting hard disk data
CN101930384A (en) * 2010-09-10 2010-12-29 北京中科院软件中心有限公司 Fault tolerance method and device for file system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100336036C (en) * 2003-07-18 2007-09-05 英业达股份有限公司 Multiple operating system boot loading method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1517888A (en) * 2003-01-15 2004-08-04 挹光科技股份有限公司 Method for protecting data of storage unit and system
CN101520830A (en) * 2009-04-08 2009-09-02 西北工业大学 Method for startup identity authentication of computer capable of protecting hard disk data
CN101930384A (en) * 2010-09-10 2010-12-29 北京中科院软件中心有限公司 Fault tolerance method and device for file system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2983878B1 (en) 2013-04-10 2017-11-29 Dario Toncelli Apparatus for cutting slab material

Also Published As

Publication number Publication date
CN101930384A (en) 2010-12-29

Similar Documents

Publication Publication Date Title
WO2012031567A1 (en) Fault tolerance method and device for file system
US9836606B2 (en) Secure recovery apparatus and method
US6170055B1 (en) System for computer recovery using removable high capacity media
US9703635B2 (en) Method, computer program, and computer for restoring set of variables
US20080155216A1 (en) Protection and Recovery System for Automatic Disk Recovery
US8554686B2 (en) Anti-hack protection to restrict installation of operating systems and other software
JP2004038931A (en) Method for implementing backup and recovery of data in computer hard disk
CN105917306B (en) System and method for configuring system firmware configuration data
US20100037092A1 (en) System and method for backup, reboot, and recovery
US7308547B2 (en) Apparatus and method for control of write filter
US8788801B2 (en) Backup and recovery of systems by restoring a backup boot configuration data (BCD) with installation files from an operating system install disk
US11704198B2 (en) Method and apparatus for providing recovery from a computing device boot up error
US20210357298A1 (en) Recovery via backups of recovery information
WO2019144621A1 (en) Method, apparatus, and server for acquiring uefi os startup item
KR20000049321A (en) Auto-recovery system of LINUX using a flash card
EP1110146B1 (en) A method, computer, and article of manufacturing for fault tolerant booting
CN112579361B (en) Backup data reconstruction method, device, equipment and storage medium
CN108255644B (en) File system recovery method and device
CN101226494A (en) Method for backupping and recovering computer system
KR102079131B1 (en) The computer recovery system
US20110173428A1 (en) Computer system, method for booting a computer system, and method for replacing a component
US20160004607A1 (en) Information processing apparatus and information processing method
CN108509252B (en) Virtual machine starting device and method and host
WO2015043010A1 (en) Data processing method and apparatus, and electronic device
WO2018036318A1 (en) Method and device for collecting abnormality information during startup of operating system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11823090

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11823090

Country of ref document: EP

Kind code of ref document: A1