[go: up one dir, main page]

CN1297910C - Method and device for storing and recoverying computer system information - Google Patents

Method and device for storing and recoverying computer system information Download PDF

Info

Publication number
CN1297910C
CN1297910C CNB031573088A CN03157308A CN1297910C CN 1297910 C CN1297910 C CN 1297910C CN B031573088 A CNB031573088 A CN B031573088A CN 03157308 A CN03157308 A CN 03157308A CN 1297910 C CN1297910 C CN 1297910C
Authority
CN
China
Prior art keywords
computer system
system information
information
disk
computing machine
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CNB031573088A
Other languages
Chinese (zh)
Other versions
CN1598793A (en
Inventor
李勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB031573088A priority Critical patent/CN1297910C/en
Publication of CN1598793A publication Critical patent/CN1598793A/en
Application granted granted Critical
Publication of CN1297910C publication Critical patent/CN1297910C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a method for storing and restoring computer system information. The present invention acquires current computer system information in advance and stores the computer system information in a device which is used for storing and restoring the computer system information and is positioned on an independent computer. When the computer system information needs to be restored, the pre-stored computer system information is read out from the device, and the computer system information is restored to an original position of the computer. The present invention also discloses a device used for storing and restoring the computer system information, which at least comprises a memory, a controller and an interface, wherein the memory is used for storing the computer system information, the controller is used for transmitting data with the computer, the interface is used for connecting the device and the computer, and the memory, the controller and the interface are connected by data lines. The present invention can increase the security of information storage in computer systems and can reliably and rapidly restore the computer system information to the original positions of the computers.

Description

A kind of method and apparatus that is used to store and recover computer system information
Technical field
The present invention relates to the Computer Applied Technology field, be meant a kind of method and apparatus that is used to store and recover computer system information especially.
Background technology
The security of computer system information is very important for the computer user, because computer system information sustain damage, the loss that causes user's important information to read and cause is difficult to statistics, and can't the reading of important information usually makes that the computer user's is professional hard to carry on.The main cause that causes computer system information to read is not storage medium damages such as disk usually, but because virus or computer user's improper use, disk file partition information or file system key message are destroyed, be that the path of important information is destroyed in the computer system, cause the important information in the computer system to read.
Although the method for multiple recovery computer system information is arranged now, it is excellent that but the precondition that these methods can efficient operation is the computer system key message, be that disk partition table information and file system superblock information are excellent, the path of the important information of this expression for the user is not destroyed.By recovering disk partition table information and file system superblock information, just can find the path of user's important information, thereby make the user read main information quickly and easily.If the partition table information of disk or file system superblock information are destroyed, represent that then the path of the important information for the user is destroyed, the file that the user needs restoration path seriatim to be destroyed, can find important information and read out by the search work that repeats, greatly increase the workload of recovering computer system information, even possibly can't recover user's important information.
Summary of the invention
In view of this, one object of the present invention is to provide a kind of method that is used to store and recover computer system information, another object of the present invention is to provide a kind of device that is used to store and recover computer system information, this method and apparatus can improve the security of computer system information storage, and can reliably quickly computer system information be returned to the original position of computing machine.
In order to achieve the above object, the invention provides a kind of method that is used to store and recover computer system information, the method includes the steps of:
A, obtain the current computer system information in advance, and by with the controller that is independent of computing machine in control program communicate, described computer system information storer is independent of the storer of computing machine;
B, when needs recover computer system information, by with described controller in control program communicate the computer system information of reading pre-stored from described storer, and described computer system information is returned to the original position of computing machine.
Obtaining the current computer system information described in the steps A may further comprise the steps: A1, determine the number of disks that comprises in the computing machine and obtain and the disk information corresponding; A2, obtain the partition information of each disk; A3, obtain the file system superblock information of each subregion.
Described steps A 2 may further comprise the steps: A21, read the system boot code in the Main Boot Record, read the divisional type in the partition table list item then; A22, judge whether the current divisional type that reads is extended partition, if, execution in step A23, otherwise, execution in step A24; A23, find next subregion, read the divisional type in the partition table list item, return execution in step A22 then according to subregion reference position in the current partition table list item and subregion final position; The reference position of A24, record partitioning number and current subregion judges that then whether current subregion is last subregion on the disk of place, if not, execution in step A25 is if finish obtaining a disk partition information; A25, read the divisional type in the partition table residue list item, return execution in step A22 then.
Obtain the current computer system information described in the steps A and be in different time points and obtain respectively computer system information that should time point; In the steps A computer system information being stored in the storer that is independent of computing machine is will be stored in described storer corresponding to the computer system information of different time points respectively.
When obtaining the current computer system information, each time point further comprises: judge whether the current computer system information is identical with the computer system information of having stored corresponding to the last before this time point, if described current computer system information is not stored; Otherwise, described current computer system information is stored in described storer by described controller.
Described steps A further comprises: set in advance the described different time points of obtaining the current computer system information, and obtain the current computer system information when arriving each time point that sets in advance.
Described computer system information is stored in described storer with data packet format.
The recovery policy that sets in advance automatic recovery and manually recover, the step that among the step B computer system information is returned to the original position of computing machine comprises: B1, indication user select recovery policy, if selection result is automatic recovery, execution in step B2 then, if selection result is manual recovery, execution in step B3; B2, according to the computer system information of storing in the described storer, the computer system information of the last time is returned to the original position of computing machine, finish the recovery of computer system information; B3, according to computer system information of storing in the described storer and user's specified requirements computer system information is returned to the original position of computing machine.
In selection result is when recovering automatically, further comprises: judge that the disk sign that comprises in the current computer is whether consistent with the disk sign of storing in the described storer, if, execution in step B2 then; Otherwise, computer system information is not recovered; In selection result is when manually recovering, and further comprises: judge that the disk sign that comprises in the current computer is whether consistent with the disk sign of storing in the described storer, if, execution in step B3 then; Otherwise, computer system information is not recovered.
The recovery routine that is used for recovering computer system information is stored in the medium of bootable disk operating system, and described recovery routine is independent of operating system.
The present invention also provides a kind of device that is used to store and recover computer system information, and this device comprises at least: be independent of computing machine and be used for the storer of storage computation machine system information; Be independent of the controller of computing machine, this controller carries out data transmission by the control program and the computing machine of self storage; Be used for interface that described device is linked to each other with computing machine; Between storer and the controller, link to each other by data line between controller and the interface; And, computing machine by with described controller in control program communicate, computer system information is stored in described storer; Computing machine by with described controller in control program communicate the computer system information of reading pre-stored from described storer, and computer system information is returned to the original position of computing machine.
Described storer is a nonvolatile memory.
Described controller is a single-chip microcomputer.
Described interface is an external components interconnection interface, or the industrial standard architectures interface, or Low Pin Count, or USB (universal serial bus).
The present invention proposes computer system information is stored in the device that is independent of computing machine, owing to can not cause the information on this device destroyed because of misoperation of users or virus attack, have improved the reliability of the computer system information that is stored in this device greatly; And solved when causing operating system to start the problem that computer system information can't recover because of misoperation of users or virus attack.By said method and device, can realize backing up intelligently and recovering computer system information, collapse the possibility that computer system information is recovered in the back thereby improved computer system greatly, improved the storage security of computer data.
The method that is used to store and recover computer system information that proposes according to the present invention, when backup computer systems information, not only back up Main Boot Record, also back up partition information and file system superblock information, therefore, when recovering computer system information, to comprise Main Boot Record, the computer system information of partition information and file system superblock information returns to the original position of computing machine, preserved the integrality in user's important information path, the user only need find the path just to may be read into important information, thereby has significantly reduced the workload of obtaining user's important information.
Description of drawings
Fig. 1 is the structural representation of storage among the present invention and recovery computer system information device;
Fig. 2 is for storage among the present invention and recover the computer system information process flow diagram;
Fig. 3 is the Master boot sector structural representation;
Fig. 4 is a disk partition table list item structural representation;
Fig. 5 is for determining the partition information process flow diagram;
Fig. 6 is a disk system information packet structural representation.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
The present invention adopts the device storage computation machine system information that is independent of computing machine, when computer system information is lost, the computer system information of storage in this device is returned to the original position of computing machine, computer system information is recovered, thereby make the computing machine can operate as normal, make the user can obtain user's important information.The method of storage that the present invention proposes and recovery computer system information, when backup computer systems information, not only back up Main Boot Record, also back up partition information and file system superblock information, therefore, when recovering computer system information, to comprise that the computer system information of Main Boot Record, partition information and file system superblock information returns to the original position of computing machine, preserved the integrality in user's important information path, the user only need find the path just to may be read into important information, thereby has significantly reduced the workload of obtaining user's important information.
Fig. 1 is the structural representation of storage among the present invention and recovery computer system information device, as shown in Figure 1, be independent of computing machine be used to store and the device 10 that recovers computer system information mainly comprises the storer 101 that is used for the storage computation machine information and is used to finish the controller 102 of storer 101 and intercomputer data transmission.Storer 101 links to each other by data line 103 with controller 102.Controller 102 links to each other with interface 11 by data line 104, links to each other with computing machine by interface 11 then.Being used to store with the device 10 that recovers computer system information to adopt the multiple interfaces mode to link to each other with computing machine, for example, 32 Peripheral Component Interconnect (PCI, Peripheral Component Interconnection) interface, 64 pci interfaces, industrial standard architectures (ISA, Industry Standard Architecture) interface, few stitch type (LPC, Low Pin Count) interface etc.The width of data line 103,104 can be 8,16 or 32.Storer 101, controller 102, data line 103 and data line 104 can be integrated in the card, this card can be called intelligent management card 10, intelligent management card 10 carries out data transmission by interface and computing machine.After computer system information is lost, adopt the intelligent management card that is independent of computing machine can guarantee that the computer system information of storing has good reliability.
Storer 101 can adopt nonvolatile memory, and (Non-volatile RAM NVRAM), can guarantee intelligent memory card under the situation that does not have the power supply power supply, and canned data can not lost yet; Also can adopt other storeies, only need provide power supply, just can guarantee that canned data can not lost in the intelligent memory card.Controller 102 can be the single-chip microcomputer of storing control program, is used to finish the data transmission of storer 101 and intercomputer.Storer 101 comprises with the data transmission of intercomputer: will run on the computer system information that the stand-by program of computing machine sends and send storer 101 storages to; Send the computer system information of storer 101 storage in the storage mediums such as being stored in floppy disk recovery routine, recovery routine returns to these information in the computing machine.Storer 101 is not limit with the chip model of controller 102, as long as can finish data transmission, storer 101 storage computation machine system informations is got final product.
Stand-by program is corresponding with operating system, different stand-by programs are corresponding to different operating system, stand-by program is stored in the computing machine, during the computing machine operate as normal, the stand-by program of operation is sent to controller with computer system information, sends computer system information to storer by controller then and stores.Because when need recovering computer system information, the operating system of storing in the computing machine may be destroyed, so recovery routine should be independent of operating system, and recovery routine can be disc operating system (DOS) (DOS) program.After computer system information is destroyed, after use is equipped with the medium guiding DOS of DOS boot, move the recovery routine of storing in this medium, send the computer system information of storing in the storer to recovery routine by controller, computer system information is returned to the original position of computing machine by recovery routine.The medium that the DOS boot is installed can be floppy disk, USB (universal serial bus) (USB) dish or CD etc.
After having described among the present invention storage and having recovered the device of computer system information, below storage among the present invention and the implementation procedure of recovering computer system information are described in detail.
Fig. 2 is for storage among the present invention and recover the computer system information process flow diagram, and as shown in Figure 2, the process of storage and recovery computer system information may further comprise the steps:
Step 201~step 202: stand-by program can be determined the independent disk quantity that comprises in the computer system and the relevant information of each disk by the file in the read operation system, then the canned data structure of each disk is analyzed.
Step 203~step 205: stand-by program is according to the structure information storage of each disk, determines the number of partitions that comprises in this disk, and obtains the leader record and the file system superblock information of each subregion.
Step 206~step 207: stand-by program is organized into data packet format with computer system information, by with controller in control program communicate, computer system information is stored in storer.
Step 208~step 210: recovery routine by with controller in control program communicate, read the computer system information of the data packet format of storing in the storer, split this packet then, judge the recovery policy that the user selects, if the user selects automatic recovery, execution in step 211; If the user selects manual recovery, execution in step 212.
Step 211: recovery routine returns to computer system information in the original position of computer disk.
Step 212: recovery routine returns to computer system information according to user's specified requirements the original position of computer disk.
Step 201~step 207 is the computer system information backup procedure, and step 208~step 212 is a computer system information rejuvenation.By the description of aforementioned calculation machine system information backup procedure as seen, the present invention is except backing up the Main Boot Record (MBR in the Master boot sector as prior art, MasterBoot Record), also back up partition information and file system superblock information, therefore, when recovering computer system information, not only can recover the MBR of disk, can also recover partition information and file system superblock information.In addition, the present invention not only can back up the last computer system information, can also back up the computer system information that modification is arranged recently several times, number of times can be provided with by the user, for example, the user is set to 3 times, and then stand-by program backs up the nearest computer system information that modification is arranged for 3 times, and these information are stored in storer by controller; Correspondingly, when recovering computer system information, can specify the computer system information that needs to recover which time backup by the user, for example the user selects to recover the computer system information of backup for the second time.The user also can specify the information that needs on which disk of recovery, and recovery routine only will return to the original position of this disk corresponding to the computer system information of this disk.
Be example below with the (SuSE) Linux OS, to the storage of computer system information backup procedure, computer system information and read process, computer system information rejuvenation is further described in detail.
The intelligent management cartoon is crossed 32 pci interfaces and is linked to each other with computing machine.Stand-by program corresponding to (SuSE) Linux OS is installed in computing machine, can be set to manually boot by stand-by program, think the user to start stand-by program when needing backup computer systems information.For consideration to computer system information backup validity and security, also can be set to automatic startup by stand-by program, at this moment, behind the os starting, stand-by program will start automatically, at set intervals the computer system information that obtains is analyzed, when computer system information is compared with the last time when changing, then and between the control program in the intelligent management card controller communicate, computer system information is stored in storer in the intelligent management card.Stand-by program can be stored in vicissitudinous computerized information repeatedly the storer in the intelligent management card, for example, stand-by program backs up the nearest computer system information that modification is arranged for 3 times, the computer system information of each backup carries the time marking of self, change if computer system information is current, then the stand-by program computer system information of using current backup replaces the longest computer system information storage time.
In the process of backup computer systems information, the number of disks that at first needs definite computing machine to comprise, therefore stand-by program is by reading the PROC file system in the (SuSE) Linux OS, determine the independent disk quantity that comprises in the computer system and the relevant information of each disk, comprise independent disk, the virtual disk that the inexpensive disk array is made (RAID host) etc., and producer's model of each disk, amount of capacity, disk type, as the IDE hard disk, SCSI hard disk etc., disk model or host numbering, and each disk is corresponding to the logical device title of operating system; Then the canned data structure of each disk is analyzed.The Proc file is a kind of file system in the (SuSE) Linux OS, is not stored on the disk, but virtual in internal memory.
Secondly, need to determine the number of partitions and the partition information of each disk, introduce the partition table structure of disk below earlier.
Fig. 3 is the Master boot sector structural representation, and as shown in Figure 3, Master boot sector is made up of Main Boot Record, disk partition table (DPT) and magic number three parts.Initial 512 bytes (Byte) of disk are called Main Boot Record, store system boot code in the Main Boot Record; Store the partition information of disk in the disk partition table, by the disk partition table is analyzed, information such as the number of partitions that just can determine to comprise in the disk, divisional type; Whether effectively magic number is to be used to identify Main Boot Record sign, and when magic number was 0x55AA, the expression Main Boot Record was effective.
The disk partition table of each disk has 4, so each disk can only have 4 main partitions at most.On a disk, set up if desired, then set up an extended partition earlier more than 4 subregions.An extended partition also is that 4 subregions can only be arranged at most, therefore, when needs are divided a plurality of subregion, just need divide time extended partition again on main extended partition, and then divide logical partition on inferior extended partition, and subregion is set up and divided to the recurrence that so circulates.
Fig. 4 is a disk partition table list item structural representation, as shown in Figure 4, comprises the reference position and the information such as final position, divisional type of subregion in each disk partition table list item.Divisional type is used to identify the type of subregion, for example, main partition, main extended partition, from extended partition or the like, divisional type is positioned at the 5th byte of partition table list item.
Stand-by program is by analyzing Master boot sector, just can determine the number of partitions that comprises in the disk and the relevant information of each subregion.
Fig. 5 as shown in Figure 5, determines that a partition information on the disk may further comprise the steps for determining the partition information process flow diagram:
Step 501~step 502: stand-by program reads the Master boot sector partition table, reads the divisional type of partition table list item then.
Step 503: stand-by program judges whether the divisional type that reads is extended partition, if, execution in step 504; Otherwise, execution in step 507.
Step 504~step 506: stand-by program at first finds next extended partition according to subregion reference position in the current partition table list item and subregion final position, next reads the partition table of extended partition boot sector, and read divisional type in the partition table list item of extended partition boot sector, return execution in step 503.
Step 503~step 506 has traveled through all extended partitions that comprise in the disk with recursive fashion.
Step 507: the reference position of stand-by program record partitioning quantity and this subregion.
Step 508: stand-by program judges that whether current subregion is last subregion on the disk, if then proof has traveled through all subregions that comprise in the disk with recursive fashion, and has write down the reference position of number of partitions and each subregion; Otherwise, execution in step 509.
Step 509: stand-by program reads the divisional type in the residue partition table list item, and execution in step 503 then.
By the process of above definite partition information as seen, can back up the chain structure of partition table among the present invention, promptly back up main extended partition under the primary partition table, the inferior extended partition under the main extended partition, the information such as logical partition under the inferior extended partition, promptly intactly backed up the path of each file in the computing machine.
Once more, the filesystem information that comprises in definite each subregion of needs, filesystem information mainly is a file system superblock information.File system superblock information description be stored in the key property of a file system on the subregion, comprise the important information such as size, reference position of each data block in file system type, file size, the file system.If file system superblock information is damaged,, also can increase the workload of recovering computer system information greatly even the subregion of disk is not damaged.As long as file system superblock information is excellent, just can infer the position and the content of other parts of file system by file system superblock information, therefore, among the present invention file system superblock information is also backed up.
For different file system, the concrete data structure and the organizational form of file system superblock information are all different, but the size of file system superblock information is 1024 bytes, reference position is positioned at the 1024th byte place of a subregion, therefore, only need read 2048 initial bytes of each subregion, just can obtain a subregion and be stored in the file system superblock information of this subregion.
Owing to may comprise a plurality of disks in a computing machine, therefore, for partition information and file system superblock information and disk are connected, also need to obtain logic magnetic disc device name and disk sign (GUID) information of file system superblock information correspondence.Disk GUID is used to identify disk, because disk GUID is a whole world agreement, different manufacturers distributes different several sections, therefore just can distinguish different disks by disk GUID.
Stand-by program can periodically obtain and read computer system information, and these computer system informations are stored in the intelligent management card.In actual applications, the number of times of memory cycle and the nearest computer system information of storage can be set according to actual conditions, for example, it is 10 minutes that memory cycle is set, the number of times of storing nearest computer system information is 3 times, every computer system information of stand-by program backup in 10 minutes, only when the current computer system information changes with the last computer system information that is stored in the intelligent management card memory, stand-by program just can be stored in the current computer system information in the storer of intelligent management card, is storing nearest 3 vicissitudinous computer system informations in the storer of intelligent management card.
In the process of storage computation machine system information, at first need computer system information is organized into data packet format clocklike.
Fig. 6 is a disk system information packet structural representation, as shown in Figure 6, each disk system information packet comprises the data packet length of 4 byte lengths, the packet timestamp of 4 byte lengths, the disk GUID of 8 byte lengths, the disk logical device title of 16 byte lengths, the Master boot sector information of 512 byte lengths, each partitioned file system superblock information of the extended partition boot sector information of N 512 byte lengths and M 1028 byte length, wherein, N is the quantity that comprises extended partition in the disk, and M is the quantity of include file system in the disk.Because initial 4 bytes of each file system superblock information are used for identifying this document system position of superblock in disk, be the start sector number of file system superblock in disk, therefore, the storage space of each file system superblock information is that 1024 bytes are added 4 bytes.
After stand-by program obtains the computer system information that comprises the number of partitions that comprises in number of disks, each disk and partition information and file system superblock information, need communicate with the control program in the intelligent management card controller, computer system information is stored in the storer of intelligent management card.
The intelligent management card that proposes among the present invention can adopt the mode that communicates between any generic interface card biconditional operation system, for example, adopt management interface chip (SMIC, SystemManagement Interface Chip) and operating system to communicate.In fact SMIC is not chip, but a kind of interface specification, constitute an interface by order register, status register and data register, be used to transmit data, for example, the address that order register is set is that the address of 0x3a9, status register is that the address of 0x3aa and data register is 0x3ab.When stand-by program is stored in computer system information in the storer of intelligent management card, be with a byte of a byte of computer system information send on the intelligent management card.The operating process of a byte of every transmission is as follows: stand-by program sends the order of storage data to order register, the numerical value of read status register then, when the intelligent management card was changed to off-the-shelf sign with the numerical value of status register, stand-by program sent the data of a byte to data register; The numerical value of read status register, when the intelligent management card was changed to the sign that has received with the numerical value of status register, stand-by program began to send the operating process of next byte, and so circulation is until all bytes that send computer system information.
Through above process, stored the complete computer information that to recover computer system in the intelligent management card, when computer system information is damaged, just can the computer system information of storing in the intelligent management card have been returned to computing machine by communicating by letter between control program in recovery routine and the intelligent management card controller.
After computer system information is damaged, after use is equipped with the medium guiding DOS of DOS boot, the restoring running program.When recovery routine recovers computer system information, at first need to read the computer system information of storing in the intelligent management card.Recovery routine reads to a byte of a byte computer system information from the intelligent management card.The operating process of whenever reading a byte is as follows: recovery routine sends the order of reading of data to order register, the numerical value of read status register then, when the intelligent management card is changed to off-the-shelf sign with the numerical value of status register, recovery routine reads the data of a byte from data register, then the numerical value of status register is changed to and receives, recovery routine begins to read the operating process of next byte, so circulation, all bytes until having read computer system information are stored in internal memory with the computer system information that reads then, in floppy disk or the USB dish.
Because each disk system information all is stored in the intelligent management card successively, so the disk system information that recovery routine reads remains in proper order, as long as read initial 4 bytes that packet is represented this data packet length, just can split out each packet according to the data packet length that indicates.
Recovery routine can require the user to select recovery policy, promptly manually recover still to recover automatically, if the user selects automatic recovery, then recovery routine extracts the computer system information of the last time automatically, judge then whether have in the computer system information with as the corresponding to disk GUID of front disk GUID, if then automatically disk system information is returned to corresponding disk; Otherwise, promptly do not meet the disk of disk GUID in the computer system information, think that then this disk does not exist, will not recover computer system information.If the user selects manual recovery, what recovery routine can require that the user selects need to recover is the computer system information of which time storage, and recovery routine can find the computer system information that the user specifies recovery according to the packet timestamp; What recovery routine can require also that the user selects need to recover is the disk system information of which disk, recovery routine judges whether the disk GUID of user's appointment is consistent with disk GUID in the computer system information then, if, then disk system information is returned to the relevant position of this disk, otherwise, think that this disk does not exist, will not recover computer system information.
When recovering computer system information, should at first Main Boot Record be returned to the initial 512 byte places of disk, then according to the computing machine original position of disk partition table appointment in the Master boot sector, recover other boot sectors successively, at last each file system superblock information is returned to the computing machine original sector position of appointment according to initial 4 bytes separately.
The present invention is equally applicable to comprise in the computing machine situation of a plurality of operating systems, because stand-by program is corresponding with operating system, therefore, as long as under an operating system, move stand-by program, but with regard to backup computer systems information; When recovering computer system information, computer system information can be returned to corresponding calculated machine original position.
The present invention is applicable to various disks, for example IDE hard disk, SCSI hard disk, RAID host etc.; Be applicable to various operating systems, for example Windows95, Windows98, Windows2000, Windows2003, Windows XP, Linux, DOS, UNIX etc.; Be applicable to various file system, for example the file system Ext2 of 32 file system Fat32, the Linux of 16 of Windows file system Fat, Windows and Ext3 etc.
Above-described be independent of computing machine be used to store and the device that recovers computer system information preferably is made for the pci card of similar general network interface card and so on, also can be made into a USB peripheral hardware that links to each other with computing machine by USB interface certainly.In a word, as long as can finish goal of the invention of the present invention, this device can have different shapes, and can be connected with computing machine by different interface modes.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (14)

1, a kind of method that is used to store and recover computer system information is characterized in that this method may further comprise the steps:
A, obtain the current computer system information in advance, and by with the controller that is independent of computing machine in control program communicate, described computer system information is stored in the storer that is independent of computing machine;
B, when needs recover computer system information, by with described controller in control program communicate the computer system information of reading pre-stored from described storer, and described computer system information is returned to the original position of computing machine.
2, method according to claim 1 is characterized in that, obtains the current computer system information described in the steps A and may further comprise the steps:
A1, determine the number of disks that comprises in the computing machine and obtain and the disk information corresponding;
A2, obtain the partition information of each disk;
A3, obtain the file system superblock information of each subregion.
3, method according to claim 2 is characterized in that, described steps A 2 may further comprise the steps:
A21, read the system boot code in the Main Boot Record, read the divisional type in the partition table list item then;
A22, judge whether the current divisional type that reads is extended partition, if, execution in step A23, otherwise, execution in step A24;
A23, find next subregion, read the divisional type in the partition table list item, return execution in step A22 then according to subregion reference position in the current partition table list item and subregion final position;
The reference position of A24, record partitioning number and current subregion judges that then whether current subregion is last subregion on the disk of place, if not, execution in step A25 is if finish obtaining a disk partition information;
A25, read the divisional type in the partition table residue list item, return execution in step A22 then.
4, method according to claim 1 is characterized in that, obtains the current computer system information described in the steps A and is in different time points and obtain respectively computer system information that should time point;
In the steps A computer system information being stored in the storer that is independent of computing machine is will be stored in described storer corresponding to the computer system information of different time points respectively.
5, method according to claim 4, it is characterized in that, when obtaining the current computer system information, each time point further comprises: judge whether the current computer system information is identical with the computer system information of having stored corresponding to the last before this time point, if described current computer system information is not stored; Otherwise, described current computer system information is stored in described storer by described controller.
6, method according to claim 4, it is characterized in that, described steps A further comprises: set in advance the described different time points of obtaining the current computer system information, and obtain the current computer system information when arriving each time point that sets in advance.
7, method according to claim 1 is characterized in that, described computer system information is stored in described storer with data packet format.
8, method according to claim 1 is characterized in that, the recovery policy that sets in advance automatic recovery and manually recover, and the step that among the step B computer system information is returned to the original position of computing machine comprises:
B1, indication user select recovery policy, if selection result is automatic recovery, and execution in step B2 then, if selection result is manual recovery, execution in step B3;
B2, according to the computer system information of storing in the described storer, the computer system information of the last time is returned to the original position of computing machine, finish the recovery of computer system information;
B3, according to computer system information of storing in the described storer and user's specified requirements computer system information is returned to the original position of computing machine.
9, method according to claim 8, it is characterized in that, be when recovering automatically in selection result, further comprises: judge that the disk sign that comprises in the current computer is whether consistent with the disk sign of storing in the described storer, if, execution in step B2 then; Otherwise, computer system information is not recovered;
In selection result is when manually recovering, and further comprises: judge that the disk sign that comprises in the current computer is whether consistent with the disk sign of storing in the described storer, if, execution in step B3 then; Otherwise, computer system information is not recovered.
10, method according to claim 1 is characterized in that, the recovery routine that is used for recovering computer system information is stored in the medium of bootable disk operating system, and described recovery routine is independent of operating system.
11, a kind of device that is used to store and recover computer system information is characterized in that, described device comprises at least: be independent of computing machine and be used for the storer of storage computation machine system information; Be independent of the controller of computing machine, this controller carries out data transmission by the control program and the computing machine of self storage; Be used for interface that described device is linked to each other with computing machine; Between storer and the controller, link to each other by data line between controller and the interface;
And, computing machine by with described controller in control program communicate, computer system information is stored in described storer; Computing machine by with described controller in control program communicate the computer system information of reading pre-stored from described storer, and computer system information is returned to the original position of computing machine.
12, device according to claim 11 is characterized in that, described storer is a nonvolatile memory.
13, device according to claim 11 is characterized in that, described controller is a single-chip microcomputer.
14, device according to claim 11 is characterized in that, described interface is an external components interconnection interface, or the industrial standard architectures interface, or Low Pin Count, or USB (universal serial bus).
CNB031573088A 2003-09-17 2003-09-17 Method and device for storing and recoverying computer system information Expired - Fee Related CN1297910C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031573088A CN1297910C (en) 2003-09-17 2003-09-17 Method and device for storing and recoverying computer system information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031573088A CN1297910C (en) 2003-09-17 2003-09-17 Method and device for storing and recoverying computer system information

Publications (2)

Publication Number Publication Date
CN1598793A CN1598793A (en) 2005-03-23
CN1297910C true CN1297910C (en) 2007-01-31

Family

ID=34660253

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031573088A Expired - Fee Related CN1297910C (en) 2003-09-17 2003-09-17 Method and device for storing and recoverying computer system information

Country Status (1)

Country Link
CN (1) CN1297910C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593083B (en) * 2008-05-26 2011-12-07 联想(北京)有限公司 device, computer and method for protecting and restoring computer configuration information
CN107016104A (en) * 2017-04-12 2017-08-04 广东浪潮大数据研究有限公司 A kind of method and system of all logic hard disk device names of the automatic identification in linux system
CN109542519A (en) * 2018-10-10 2019-03-29 北京凝思软件股份有限公司 A kind of automatic distributed system method for reconstructing
CN115437852B (en) * 2022-11-07 2023-02-03 四川大学 A fast blockchain system and method based on disaster recovery and file partition table

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001166959A (en) * 1999-10-28 2001-06-22 Agfa Corp Computer operating system disaster recovery system and method
US6336161B1 (en) * 1995-12-15 2002-01-01 Texas Instruments Incorporated Computer configuration system and method with state and restoration from non-volatile semiconductor memory
US6584583B2 (en) * 1997-12-31 2003-06-24 Samsung Electronics Co., Ltd. Method and apparatus for restoring data damaged by a computer virus on a magnetic information recording disk in a hard disk drive

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6336161B1 (en) * 1995-12-15 2002-01-01 Texas Instruments Incorporated Computer configuration system and method with state and restoration from non-volatile semiconductor memory
US6584583B2 (en) * 1997-12-31 2003-06-24 Samsung Electronics Co., Ltd. Method and apparatus for restoring data damaged by a computer virus on a magnetic information recording disk in a hard disk drive
JP2001166959A (en) * 1999-10-28 2001-06-22 Agfa Corp Computer operating system disaster recovery system and method

Also Published As

Publication number Publication date
CN1598793A (en) 2005-03-23

Similar Documents

Publication Publication Date Title
US11322179B2 (en) Hard disk fault handling method, array controller, and hard disk
US5930828A (en) Real-time apparatus and method for minimizing disk fragmentation in a computer system
JP5162535B2 (en) Method and memory system using memory system
US7587427B2 (en) Hierarchical storage system, and control method and program therefor
EP1739535B1 (en) File system storing transaction records in flash-like media
US7886120B1 (en) System and method for efficient backup using hashes
CN1234071C (en) Method and apparatus for reliable failover of incomplete RAID disk writes
US7146455B2 (en) System and method for optimized access to memory devices requiring block writing
US8667029B2 (en) Optimized startup verification of file system integrity
US20090106587A1 (en) Software Recovery Method for Flash Media with Defective Formatting
CA2549694A1 (en) File system having deferred verification of data integrity
WO2004079575A1 (en) Data management method for slash memory medium
US20100185589A1 (en) Disaster recovery data sync
US8166488B2 (en) Methods of directly accessing a mass storage data device
EP1103894A2 (en) Fragmented data recovery method
CN1297910C (en) Method and device for storing and recoverying computer system information
US20030037279A1 (en) HDD data backup and recovery method
EP3798852B1 (en) System controller and system garbage recovery method
CN119045753B (en) General middleware system and related methods based on ZNS SSD
CN120179447A (en) A SSD power-on method, device, computer equipment and storage medium
CN101051283A (en) Hard disk data backup system and method
US7024493B1 (en) Bootable CD for transferring files independently of computer operating systems
CN112835746A (en) A high-security file storage method based on static linked list
CN116627519A (en) Multisystem starting method of embedded equipment
CN116069266B (en) Disk Roaming Control Method, Device, Equipment, and Computer-Readable Storage Medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070131

Termination date: 20091019