CN100452218C - Hard disk data backup method - Google Patents

Hard disk data backup method Download PDF

Info

Publication number
CN100452218C
CN100452218C CNB2005100752979A CN200510075297A CN100452218C CN 100452218 C CN100452218 C CN 100452218C CN B2005100752979 A CNB2005100752979 A CN B2005100752979A CN 200510075297 A CN200510075297 A CN 200510075297A CN 100452218 C CN100452218 C CN 100452218C
Authority
CN
China
Prior art keywords
hard disk
data
backup
backup data
space
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
CNB2005100752979A
Other languages
Chinese (zh)
Other versions
CN1877727A (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.)
Giga Byte Technology Co Ltd
Original Assignee
Giga Byte Technology Co 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 Giga Byte Technology Co Ltd filed Critical Giga Byte Technology Co Ltd
Priority to CNB2005100752979A priority Critical patent/CN100452218C/en
Publication of CN1877727A publication Critical patent/CN1877727A/en
Application granted granted Critical
Publication of CN100452218C publication Critical patent/CN100452218C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The present invention discloses a method for backuping hard disk data, which is used for solving the problem that the existing backup data stored in a hard disk can possibly damaged. The present invention is characterized in that the backup data is stored in a backup area divided by the hard disk in the hard disk, and the backup area is a high-address area at the back end of the hard disk; the maximum address of the hard disk is reset according to the size of the backup area so that the maximum address is smaller than the address used by the backup area in order that the backup data in the backup can not be accessed. In this way, the integrity of the backup data can be ensured and can not be infected by viruses or damaged because of improper access; when the backup data is recovered, the backup data can be recovered to the original sector by resetting the maximum address as the actual capacity of the hard disk.

Description

Hard disk data backup method
Technical field
The present invention relates to a kind of data back up method, particularly a kind of method that data in the hard disk are backed up.
Background technology
In today of information prosperity, the utilization rate of computing machine is greatly universal, and the utilization of computing machine also transfers general masses to by enterprise.The use of computing machine is most important to be exactly the operating environment that it provides, just our so-called operating system (operation system).The most widely used operating system now, operating system as windows series, always be people's operating system of normal use, just because of this, the computer virus of attacking at windows operating system through regular meeting's discovery on the network, and, usually can undermine operating system when running into destructive strong virus; Sometimes human factor also can cause the significant data of operating system to lose, and these all can jeopardize the normal operation of operating system.
Therefore it is necessary computer data being backed up, the influence or the artificially operation improperly that like this can effectively pre-anti-virus be caused.The method of at present more existing computer data backups, a kind of hard disc data control method as No. 589526, Taiwan patent, it uses first hard disk to be denoted as Primary Hard Drive, second hard disk is denoted as the backup hard disk, and by regularly contrasting this Primary Hard Drive and this backup hard disk, remain Backup Data and be stored in this Primary Hard Drive but be not stored in this backup hard disk when contrasting, then carry out an automated back-up program, and described automated back-up program regularly contrasts this Primary Hard Drive and this backup hard disk for setting a backup cycle; And the data to be backed up that store this Primary Hard Drive of backup back up hard disk to this.
And the Taiwan data backup that No. 589526 patent provided operation, the Backup Data that the backup hard disk is stored is also dangerous, because this method still has and may suffer virus infections or artificial improper access, and destroys the initial integrality of Backup Data.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of hard disk data backup method, in the time of guaranteeing that Backup Data is stored in hard disk not by access, to keep the integrality of former Backup Data content.
In order to solve the problems of the technologies described above, the invention provides a kind of hard disk data backup method, comprising:
Choose a Backup Data, the data that store in the data sector of described Backup Data from described hard disk;
Analyze the space user mode of described hard disk;
Whether the remaining space of judging described hard disk according to analysis result can store described Backup Data;
When the remaining space of described hard disk can be stored described Backup Data, compress described Backup Data;
Divide the high address district of a backup area in described hard disk rear end;
The Backup Data that storage has been compressed is at described backup area; And
Adjust the maximum address of described hard disk, described maximum address is less than the employed lowest address of described backup area.
Adopt hard disk data backup method of the present invention, Backup Data is stored in the backup area of hard disk rear end, and by reseting the maximum address of hard disk, can allow Backup Data not in maximum address, allow the operating system can't be to the Backup Data access, reaching the integrality of Backup Data, and avoid infection virus or artificially operation improperly cause the destruction to Backup Data.
Description of drawings
Fig. 1 is the operation control flow chart of one embodiment of the invention;
Fig. 2 is the data backup operational flowchart of one embodiment of the invention;
Fig. 3 is the reduction of data operational flowchart of one embodiment of the invention; And
Fig. 4 removes the Backup Data operational flowchart for one embodiment of the invention.
Embodiment
The present invention is a kind of hard disk data backup method, can be used for backing up the data in the hard disk, and can utilize backed up data to come the initial setting of restoring operation system when damage takes place operating system.
Fig. 1 is the operation control flow chart of one embodiment of the invention, and as shown in Figure 1, it may further comprise the steps:
At first judge whether setting code (step S101) is arranged, if be judged as, then input password (step S103) by the user, whether can legal use feature operation provided by the present invention with the checking user, and further judge and import password whether correctly (step S105), if password mistake that the user inputed and reaching 3 times, then process ends.
And it is correct or when not having setting code when the input password, judge that then the hard disk support that computing machine uses still do not support hard disk reserved area (Host Protected Area, HPA) function setting (step S107), if judged result has, then provide a function choosing-item for user's selection operation (step S109), this function choosing-item can be operated (step S111), reduction of data operation (step S113) for data backup, removes Backup Data operation (step S115), setting code operation (step S117) or leave (step S119) with direct process ends.And when not supporting the function setting of hard disk reserved area for hard disk, process ends then.
Fig. 2 is the data backup operational flowchart of one embodiment of the invention, and to the feature operation of Fig. 1 data backup (step S111), its detailed step is as follows:
Utilize HPA SET MAX order that hard-disk capacity is made as actual capacity (step S201), promptly this moment, hard disk was not planned the hard disk reserved area, and promptly the space that hard disk can access is the actual capacity of hard disk; And from the data sector of hard disk, choose Backup Data (step S203) by the user, then continue to analyze the behaviour in service (step S205) of hard drive space, with the space size of cutting apart situation, cut section of learning hard disk and the size of residue free space.
Then judge whether the Backup Data (step S207) selected among enough storing step S203 according to the size of the remaining space of hard disk; If judged result is for being, compressed backup data (step S209) then; And divide a backup area (step S211) in the high address zoning of hard disk rear end; Store packed data to backup area (step S213), and the space size of this backup area needs the size greater than Backup Data or compression back Backup Data at least, wherein in the stored Backup Data of backup area, also comprise relevant control data, as the space size of Backup Data, Backup Data former sector distributing position and Backup Data the type of corresponding former sector, be stored in the backup area together; Take the space of backup area on the other hand for the minimizing Backup Data, present embodiment compressed Backup Data earlier before Backup Data is put into backup area, certainly Backup Data also can during greater than Backup Data, directly be put into backup area with Backup Data in the space of backup area size.
Judged result is not for the time among the step S207, and then the information that display space is not enough is notified the user (step S221), and process ends.
When the Backup Data that has compressed has been stored into backup area, judge whether to adjust the cut section (step S215) of hard disk, be the cut section of the space of backup area and the former division of hard disk when occurring overlapping, need readjust hard disk cut section (step S219), allow the cut section of hard disk not contain backup area; Readjust the maximum address (step S217) of hard disk at last with HPA SET MAX order according to the backup area size, and the address that the maximum address that makes hard disk uses less than backup area, guaranteeing that the data that backup area stores can not destroyed by access, and reach the effect of data backup.
Fig. 3 is the reduction of data operational flowchart of one embodiment of the invention.During the reduction of present embodiment Backup Data, utilize HPA SET MAX order that hard-disk capacity is made as actual capacity (step S301), the action releasing of access data is forbidden backup area in this action; Judge afterwards whether backup area stores Backup Data (step S303); If judged result is otherwise process ends, otherwise decompression Backup Data (step S305); Again Backup Data is reduced to the former sector (step S307) of hard disk; Then further according to the maximum address (step S309) of backup area size with HPASET MAX order adjustment hard disk, the maximum address that makes hard disk is forbidden the data access action of backup area less than the address that backup area uses.
Fig. 4 removes the Backup Data operational flowchart for one embodiment of the invention.When present embodiment removes data backup, utilize HPA SET MAX order that hard-disk capacity is made as actual capacity (step S401); Judge that backup area has or not Backup Data (step S403); Then directly remove Backup Data (step S405) if having; And to reset hard disk size with HPASET MAX order be that luv space (step S407) is to discharge hard drive space.If there is not then direct process ends.
Describe with process flow diagram although it should be noted that present embodiment, grasp processing that present technique field those skilled in the art are appreciated that present embodiment and also can scatter with the form or the various forms of the computer-readable medium storing of software program.
And when realizing present embodiment with software program, include: one first program code, can be by the maximum address of HPASET MAX order setting harddisk capacity.One second program code can be chosen a Backup Data from the stored data of hard disk.One the 3rd program code can be analyzed the user mode of hard drive space, stores Backup Data to have judged whether enough spaces.One quadruple pass preface code can be divided a backup area in the rear end of hard disk, and stores Backup Data at backup area.One the 5th program code can provide the operation of compression and decompression Backup Data.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (7)

1, a kind of hard disk data backup method may further comprise the steps:
Choose a Backup Data, the data that store in the data sector of described Backup Data from described hard disk;
Analyze the space user mode of described hard disk;
Whether the remaining space of judging described hard disk according to analysis result can store described Backup Data;
When the remaining space of described hard disk can be stored described Backup Data, compress described Backup Data;
Divide the high address district of a backup area in described hard disk rear end;
The Backup Data that storage has been compressed is at described backup area; And
Adjust the maximum address of described hard disk, described maximum address is less than the employed address of described backup area.
2, hard disk data backup method according to claim 1 is characterized in that, the step of choosing Backup Data also comprises step before:
When described hard disk was supported hard disk protection district function, the capacity of setting described hard disk was an actual capacity.
3, hard disk data backup method according to claim 1 is characterized in that, the space user mode of analyzing hard disk is to analyze the space size of cutting apart situation, cut section of described hard disk and the size of residue free space.
4, hard disk data backup method according to claim 1 is characterized in that, the size of described backup area greater than described Backup Data or compression after the size of Backup Data.
5, hard disk data backup method according to claim 1 is characterized in that, describedly judges according to analysis result whether the remaining space of described hard disk can store and also comprises step in the step of described Backup Data:
When described Backup Data size then shows information and the process ends that a space is not enough greater than the remaining space of described hard disk.
6, hard disk data backup method according to claim 1, it is characterized in that, in the described storing step, comprise that also the control data that described backup area is associated is stored into the operation of described backup area, described control data comprise the space size of described Backup Data, described Backup Data former sector distributing position and described Backup Data the type of corresponding former sector.
7, hard disk data backup method according to claim 1 is characterized in that, also comprises step between the step of the maximum address of described storing step and the described hard disk of adjustment:
When overlapping appears in the cut section of described backup area and described hard disk, adjust the cut section of described hard disk.
CNB2005100752979A 2005-06-10 2005-06-10 Hard disk data backup method Expired - Fee Related CN100452218C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100752979A CN100452218C (en) 2005-06-10 2005-06-10 Hard disk data backup method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100752979A CN100452218C (en) 2005-06-10 2005-06-10 Hard disk data backup method

Publications (2)

Publication Number Publication Date
CN1877727A CN1877727A (en) 2006-12-13
CN100452218C true CN100452218C (en) 2009-01-14

Family

ID=37510131

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100752979A Expired - Fee Related CN100452218C (en) 2005-06-10 2005-06-10 Hard disk data backup method

Country Status (1)

Country Link
CN (1) CN100452218C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8423735B2 (en) 2010-05-21 2013-04-16 International Business Machines Corporation Space reservation in a deduplication system
CN102419694A (en) * 2010-09-27 2012-04-18 智微科技股份有限公司 Method for accessing storage device and electronic system
CN103049223B (en) * 2012-12-28 2016-01-20 厦门市美亚柏科信息股份有限公司 A kind of release method of hard disc hidden area, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003248607A (en) * 2002-02-26 2003-09-05 Adc Technology Kk Backup system, program for backup, and backup method
US20040122998A1 (en) * 2002-12-20 2004-06-24 Etrunk Technologies Inc. Access control method and apparatus for a single hard disk with an automatic backup capability
JP2004213365A (en) * 2002-12-27 2004-07-29 Yec:Kk Hard disk drive unit, data recording device, backup device, restore device, backup method, and computer program executable in computer for making computer function as back up device
CN1523597A (en) * 2003-01-16 2004-08-25 Lg������ʽ���� Method for displaying information of data to be deleted in digital video recorder
CN1609986A (en) * 2004-11-17 2005-04-27 秦峰 Permanent dynamic holding technique for hard discs

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003248607A (en) * 2002-02-26 2003-09-05 Adc Technology Kk Backup system, program for backup, and backup method
US20040122998A1 (en) * 2002-12-20 2004-06-24 Etrunk Technologies Inc. Access control method and apparatus for a single hard disk with an automatic backup capability
JP2004213365A (en) * 2002-12-27 2004-07-29 Yec:Kk Hard disk drive unit, data recording device, backup device, restore device, backup method, and computer program executable in computer for making computer function as back up device
CN1523597A (en) * 2003-01-16 2004-08-25 Lg������ʽ���� Method for displaying information of data to be deleted in digital video recorder
CN1609986A (en) * 2004-11-17 2005-04-27 秦峰 Permanent dynamic holding technique for hard discs

Also Published As

Publication number Publication date
CN1877727A (en) 2006-12-13

Similar Documents

Publication Publication Date Title
EP1434135B1 (en) Method for backing up and recovering data in the hard disk of a computer
US7120832B2 (en) Storage device performance monitor
US6618794B1 (en) System for generating a point-in-time copy of data in a data storage system
US7437764B1 (en) Vulnerability assessment of disk images
KR100758292B1 (en) A method for renovating the computer operating system
US7409523B2 (en) Online storage volume shrink
TWI495997B (en) Method, device, and machine-readable medium for self-managed processing
CN103389928B (en) A kind of method of computer data backup and recovery
KR101768082B1 (en) Securing method for protecting the ransomware
US20020184559A1 (en) Backup/recovery system and methods regarding the same
CN101231604B (en) Apparatus, system, and method for volume-level restoration of cluster server data
CN108804189B (en) Cloud desktop management method and system
US20200387430A1 (en) Storage apparatus and backup method for setting peculiar event as restore point
US20030046605A1 (en) Data protection system and method regarding the same
CN109086078A (en) Android system upgrade method, device, server and mobile terminal
CN100452218C (en) Hard disk data backup method
US7577803B2 (en) Near instantaneous backup and restore of disc partitions
CN102609371B (en) System protecting method based on data security
CN108595287A (en) Data truncation method and device based on correcting and eleting codes
US20100169572A1 (en) Data storage method, apparatus and system for interrupted write recovery
KR101008939B1 (en) System for the protection of data delete base firmware and method thereof
TWI273389B (en) Data backup method for hard disk
JP2002351723A (en) Antivirus computer system
CN116662076B (en) Data protection method, device, equipment and storage medium
US20080247282A1 (en) Method of Data Protection

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: 20090114

Termination date: 20100610