The restorative procedure of firmware module damage in a kind of workspace Hitachi's hard disk A
Technical field
The invention belongs to data to restore field, be related to restorative procedure more particularly to the workspace Hitachi hard disk A of a kind of hard disk
The restorative procedure of middle firmware module damage.
Background technique
The booming rapid development for having driven many industries of world economy, wherein the development of hard disk industry is especially rapid, by
Initial capacity only have tens Mbytes even more than ten Mbytes of storage floppy disk by now capacity be 1TB or even several TB hard disk,
Seagate experienced huge variation and greatly be promoted.Demand meanwhile as data storage capacity becomes larger, to data storage
Become more more and more intense, meanwhile, effective recovery of data also becomes more important.
Famous brand name of the Hitachi as hard disk industry occupies it larger by outstanding quality and reliable performance
The market share.Therefore, the data recovery for studying Hitachi's hard disk is also increasingly urgent to.
The relevant technologies noun of the present invention is as follows:
The workspace A: the groundwork area of Hitachi's hard disk, the hereinafter referred to as workspace A.
The workspace B: the underwork area of Hitachi's hard disk, the hereinafter referred to as workspace B.
The workspace C: the factory work area of Hitachi's hard disk, the hereinafter referred to as workspace C.
Wherein, the workspace B is the back work area of the workspace A, internal equally with the important firmware in the workspace A;
And the workspace C is the backup of the workspace A, calibration solidification generates when being producer's production hard disk, and Hitachi's hard disk is in usually working
The firmware of the workspace C will not be accessed.
In the prior art, cause hard disk that cannot be calculated due to the firmware module of the workspace A is damaged Hitachi's hard disk
In the case that machine identifies, take directly disassembly, replacement the methods of magnetic head more, not only spend human and material resources, toward contact can because
Human factor leads to the extension of hard disk failure, brings secondary injury to hard disk, or even hard disk is caused to damage completely.
Summary of the invention
The present invention in view of the deficiencies of the prior art and the above problem, proposes firmware module in a kind of workspace Hitachi's hard disk A
The restorative procedure of damage causes hard disk cannot be by computer institute in Hitachi's hard disk due to the firmware module of the workspace A is damaged
In the case where identification, by converting the workspace of hard disk, obtain required firmware module and by offset address and offset by its
The workspace A is written, which is identified by computer, to effectively repair faulty hard disk, solves and directly tears open
The methods of unload, replace magnetic head lead to hard disk due to human factor in the operations such as the manpower and material resources expended, and disassembly, replacement therefore
The extension of barrier, the problem of bringing secondary injury to hard disk, even hard disk being caused to damage completely, the method includes following steps
It is rapid:
S1: hard disk is connected to computer;
S2: workspace conversion instruction is sent to the hard disk by the computer, the workspace of the hard disk is converted
To the workspace B or the workspace C, judge whether conversion succeeds, if it is, the S3 that gos to step, otherwise go to step S1;
S3: it determines the management address of required firmware module in work at present chorography module, records in the management address
The offset address and offset that content is included search the firmware module according to the offset address and the offset,
In, the offset address is the offset address of the negative track address relative to maximum absolute value;
S4: firmware acquisition instruction is sent to the hard disk by the computer, and the ground artwork according to step S3
Offset address described in block and the offset obtain the firmware module in work at present area and back up in the calculating
In machine;
S5: workspace conversion instruction is sent to the hard disk by the computer, the workspace of the hard disk is switched
To the workspace A, and the offset address and offset of the firmware module according to the mapping module of the workspace A, will backup in
The firmware module in the computer is written in the offset address;
S6: it will be re-powered after hard disk power-off, can verifying normally access the workspace A.
Preferably, the step S3 the following steps are included:
S301: since the initial address of the mapping module, address 0x00000010, the address are searched
Every 20 byte after 0x00000010 is a management fields, and the first byte address of every 20 byte is a firmware module
Management address, one management fields record the management information of a firmware module;
S302: it in the management information of one firmware module, reads the 7th in 20 bytes, 8,9,10 bytes
Content is offset address of one firmware module relative to the negative track address of maximum absolute value, reads 20 bytes
In the 11st, the contents of 12 bytes be offset relative to the offset address.
Compared with prior art, the beneficial effects of the present invention are: in the workspace Hitachi's hard disk A firmware module damage without
When can be identified by computer, hard disk is repaired under the premise of not dismantling hard disk, being changed without magnetic head and restores data, avoids expending people
Power material resources, solving leads to the extension of hard disk failure because of human factor in the operations such as disassembly, replacement, brings two to hard disk
Secondary the problems such as injuring, even hard disk being caused to damage completely.
Detailed description of the invention
Fig. 1 is main flow chart of the invention;
Fig. 2 is the process flow diagram of firmware module needed for searching in the present invention.
Specific embodiment
The present invention is further elaborated with reference to the accompanying drawings and examples.
The present invention is by firmware module and the method that the workspace A is written needed for obtaining, so that faulty hard disk is effectively repaired,
Realize that the data of hard disk are restored.
As shown in Figure 1, the restorative procedure that firmware module damages in a kind of workspace Hitachi's hard disk A, comprising the following steps:
S1: hard disk is connected to computer;
S2: sending workspace conversion instruction to hard disk by computer, the workspace of the hard disk is converted to the workspace B or
The workspace C, judges whether conversion succeeds, if it is, the S3 that gos to step, otherwise go to step S1;
S3: the management address of required firmware module in work at present chorography module, content in record management address are determined
The offset address and offset for being included, firmware module needed for being searched according to offset address and offset, wherein offset address is
The offset address of negative track address relative to maximum absolute value, step S3 include following steps as shown in Figure 2:
S301: since the initial address of mapping module, after lookup address 0x00000010, address 0x00000010
Every 20 byte is a management fields, and the first byte address of every 20 byte is the management address of a firmware module, a management
The management information of one firmware module of field record;
In the management information of S302: one firmware module, read the 7th in 20 bytes, 8,9, the contents of 10 bytes be one
Offset address of a firmware module relative to the negative track address of maximum absolute value reads the 11st, 12 bytes in 20 bytes
Content is the offset relative to the offset address.
S4: firmware acquisition instruction is sent to hard disk by computer, and according to offset address in mapping module in step S3
And offset come obtain the firmware module in work at present area and back up in computer;
S5: sending workspace conversion instruction to hard disk by computer, the workspace of hard disk switched to the workspace A, and
According to the offset address and offset of firmware module in the mapping module of the workspace A, firmware module of the backup in computer is write
Enter in the offset address;
S6: re-powering after hard disk is powered off, and can verifying normally access the workspace A.
It should be understood that the present invention is not limited to above-mentioned citings, it for those of ordinary skills, can basis
Above description is improved or converted, and all these modifications and variations all should belong to the protection model of appended claims of the present invention
It encloses.