CN106293982A - A kind of repair the method that dish do not recognized by western number hard disk - Google Patents

A kind of repair the method that dish do not recognized by western number hard disk Download PDF

Info

Publication number
CN106293982A
CN106293982A CN201610626236.5A CN201610626236A CN106293982A CN 106293982 A CN106293982 A CN 106293982A CN 201610626236 A CN201610626236 A CN 201610626236A CN 106293982 A CN106293982 A CN 106293982A
Authority
CN
China
Prior art keywords
module
hard disk
byte
rom
uba
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.)
Granted
Application number
CN201610626236.5A
Other languages
Chinese (zh)
Other versions
CN106293982B (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.)
SICHUAN XLY INFORMATION SAFETY TECHNOLOGY Co Ltd
Original Assignee
SICHUAN XLY INFORMATION SAFETY 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 SICHUAN XLY INFORMATION SAFETY TECHNOLOGY Co Ltd filed Critical SICHUAN XLY INFORMATION SAFETY TECHNOLOGY Co Ltd
Priority to CN201610626236.5A priority Critical patent/CN106293982B/en
Publication of CN106293982A publication Critical patent/CN106293982A/en
Application granted granted Critical
Publication of CN106293982B publication Critical patent/CN106293982B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions

Abstract

The invention discloses and a kind of repair the method that dish do not recognized by western number hard disk, specifically comprise the following steps that S1: read the rom chip data volume on hard disk pcb board;S2: resolve rom chip data volume and find 0B module and extract its data volume;S3: resolve OB module, obtains module map UBA address, firmware district;S4: by UBA address location module deposit position.Beneficial effects of the present invention is as follows: can recover hard disc data in the case of not recognizing dish;It is accurately positioned firmware map position;Quickly position other firmware place physical locations by calculating, recover hard disc data success rate high, reduce the loss brought because of hard disk corruptions.

Description

A kind of repair the method that dish do not recognized by western number hard disk
Technical field
The present invention relates to field of information security technology, repair, particularly to a kind of, the method that dish do not recognized by western number hard disk.
Background technology
Western number hard disk is to use one of brand producer most, widest hard disk on the market.Come from the feedback information in market Saying, the up-to-date hard disk that Xi Shuo producer produced after 2012, in use for some time it is possible that do not recognize the fault of dish.
The assembly of the most most of western number hard disk or intact.Cause this situation not recognizing dish general It is owing to western number hard disk cannot cause by access hard disk firmware;Want quickly to repair, it is necessary to read and accurately read ground, hard disk firmware district Figure, thus reach quickly to position other firmware module reparations and do not recognize the purpose of dish fault, but currently available technology is at repair process In can not quick locating module position, cause repairing hard disk overlong time.
Summary of the invention
The present invention is directed to the defect of prior art, it is provided that a kind of repair the method that dish do not recognized by western number hard disk, can be effective Solve the problem that above-mentioned prior art exists.
A kind of repair the method that dish do not recognized by western number hard disk, specifically comprise the following steps that
S1: read the rom chip data volume on hard disk pcb board;
S2: resolve rom chip data volume and find 0B module and extract its data volume;
S3: resolve OB module, obtains module map UBA address, firmware district;
S4: by UBA address location module deposit position.
As preferably, the detailed step of described S2 is as follows:
S21: the module head feature in retrieval rom chip data volume successively;
S22: after retrieving module head feature, offsets 4 bytes backward in this feature, takes 2 byte ROM module spies Levy;
S23: judge whether these module No. data are 0B module;If it is S24 is performed, if not with this position being then Initial execution S21;
S24: 2 byte after acquisition module number, sector number shared by module;
S25: obtain from module head feature until data between next module head feature, fills out 0 after data, directly To reaching the total size in sector shared by module, form complete 0B module data body.
As preferably, the detailed step of described S3 is as follows:
S31: obtaining the value of OB module head bias 0x06 position, this value represents the inclined of OB module valid data original position Move address;
S32: being offset to valid data original position later byte is the entry number of ROM module;
S33:ROM module entry number takes a byte backward, for the byte number shared by each entry of ROM module, record strip Mesh byte number;
S34: entry byte number takes a byte backward, for ROM module COPY number;
S35:COPY number takes 2 bytes backward and represents module No., records 01 module;
S36: module No. 2 bytes backward represent sector number shared by module, record sector number;
S37: sector number shared by module offsets the UBA address that 4 bytes are 01 module place backward.
As preferably, the detailed step of described S4 is as follows:
S41: obtain hard disk RAM information, offsets " 0x24 ", takes 2 byte datas, for the magnetic track sum of this hard disk;
S42: calculate header address allocation table start offset position, firmware district, execution below equation:
Shared by OB module valid data original position+ROM module entry number * entry, byte number=firmware district header address divides Join table start offset original position;
S43: be offset to firmware district header address allocation table original position and obtain firmware district magnetic head map allocation information table and account for Use total size;
S44: allocation information table takies total size and scans whole allocation table according to the map, obtains 0 UBA end position;
S45: obtain SPT value, performs formula " the magnetic track sum of SPT=0 head UBA end position/hard disk ";
S46: the UBA address extracting 01 module is converted into 10 systems;
S47: perform formula " sector number more than the value of 10 systems/SPT value=track number A ", obtain track number A and sector number;
S48: obtain 01 mapping module place magnetic track, formula is " track number A-magnetic track sum=track number B ";
S49: calculate magnetic head number, see the value of track number A, if being 0 between 0-255,256 and more than 256 then divided by 256, round numbers, described integer is track number A.
Compared with prior art it is an advantage of the current invention that: hard disc data can be recovered in the case of not recognizing dish;It is accurately positioned Firmware map position;Quickly position other firmware place physical locations by calculating, recover hard disc data success rate high, subtract Few loss brought because of hard disk corruptions.
Accompanying drawing explanation
Fig. 1 is embodiment of the present invention hard disk chip data 16 system structure chart;
Fig. 2 is the embodiment of the present invention 01 module data 16 system structure chart.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearer, by the following examples, the present invention is done into One step describes in detail.
Repair, as it is shown in figure 1, a kind of, the method that dish do not recognized by western number hard disk, specifically comprise the following steps that
S1: read the rom chip data volume on hard disk pcb board, size 256KB.
S2: resolving rom chip data volume and find 0B module and extract its data, its detailed step is as follows:
S21: the module head feature " 0x52 4F 59 4C " in retrieval rom chip data volume successively;
S22: after retrieving module head feature, offsets 4 bytes backward in this feature, then takes 2 byte datas, and these are 2 years old Byte just represents ROM module feature;
S23: judge whether these module No. data are " 0x0B 00 " (being confirmed whether as 0B module);If it is perform S24, if not then performing S21 with this position for initial;
S24: obtain the size of this module, after module No., 2 bytes represent the number of sector shared by module;
S25: from module head feature until the data to next module head feature " 0x52 4F 59 4C " all For the data zone content of OB module, take the data between two features, after data, fill out 0, until it reaches shared by module, sector is total Till size, form complete 0B module data body.
S3: resolve OB module, obtains module map UBA address, firmware district, and its detailed step is as follows:
S31: obtaining the value " 0x1E " of OB module head bias 0x06 position, this value represents OB module valid data start bit The offset address put;
S32: being offset to valid data original position later byte is the entry number of ROM module, is " 0x0A " in this example, Record this entry number;
S33:ROM module entry number takes a byte backward, for the byte number shared by each entry of ROM module, record strip Mesh byte number, this example is " 0x12 ";
S34: entry byte number takes a byte backward, for ROM module COPY number, record COPY number " 0x02 ";
S35:COPY number takes 2 bytes backward and represents module No., and logging modle number (01 module), is " 0,x01 00 " in this example;
S36: module No. 2 bytes backward represent sector number shared by module, record sector number, are " 0,x20 00 " in this example;
S37: sector number shared by module offsets the UBA address that 4 bytes are 01 module place backward, is " 0x08EF in this example 02 00”。
S4: be accurately positioned module deposit position by UBA address, its detailed step is as follows:
S41: obtain hard disk RAM information, offsets " 0x24 ", takes 2 byte datas, and the magnetic track for this hard disk is total such as Fig. 2 institute Show, this example is " 0x0001 ";
S42: calculate header address allocation table start offset position, firmware district, execution below equation:
Shared by OB module valid data original position+ROM module entry number * entry, byte number=firmware district header address divides Join table start offset original position, this example is 1E+0A*12=0xD2;
S43: be offset to " 0xD2 " (firmware district header address allocation table original position) and obtain the magnetic head map distribution of firmware district Information table takies total size, is " 0x46 " in this example;
S44: allocation information table takies total size " 0x46 " and scans whole allocation table according to the map, obtains 0 UBA stop bits Put;
" 0x46 " rear 4 byte representation firmware district magnetic head bitmaps, are " 0x02FF 0F 03 " in this example;
Firmware district magnetic head bitmap later byte is placeholder;
Placeholder offsets the UBA length that 4 byte representations 0 are actually used backward, and this example is " 0xFE FA 02 00 ";
Skew 0 UBA starting position of 4 byte representations backward, this example is " 0,x00 00 00 00 ";
Skew 1 actually used UBA length of 4 byte representations backward, this example is " 0xFE FA 02 00 ";
Skew 0 UBA end position of 4 byte representations backward, this example is " 00 2A 06 00 ";
Skew 1 actually used UBA length of 4 byte representations backward, this example is " 0xFE FA 02 00 ";
Skew 1 UBA end position of 4 byte representations backward, this example is " 0,x00 54 0C 00 ";
S45: obtain SPT value, performs formula " the magnetic track sum of SPT=0 head UBA end position/hard disk ", in this example is 0x62A00/0x100=1578;
S46: the UBA address extracting 01 module is converted into 10 systems;In this example, " 0x08EF 02 00 " is converted to 10 and enters It is made as 192264
S47: perform formula " sector number more than the value of 10 systems/SPT value=track number A ", obtain track number B and sector number, This example is 192264/1578=121 mores than 1326;
S48: obtain 01 mapping module place cylinder, formula is " track number A-magnetic track sum=track number B ", and this example is 121-256=-135;
S49: calculate magnetic head number, see the value of track number A, if being 0 between 0-255,256 and more than 256 then divided by 256, round numbers, described integer is track number A.
The CHS deposit position that i.e. can get 01 module after performing above-mentioned steps is: 0,135 negative magnetic tracks, in magnetic track partially Shifting is 1326 sectors, is gone out the position of other modules of hard disk by 01 module CHS location resolution, reads the mutual write-back of firmware the most readable Take hard disc data.
Those of ordinary skill in the art it will be appreciated that embodiment described here be to aid in reader understanding this Bright implementation, it should be understood that protection scope of the present invention is not limited to such special statement and embodiment.Ability The those of ordinary skill in territory can make various its without departing from essence of the present invention according to these technology disclosed by the invention enlightenment Its various concrete deformation and combination, these deformation and combination are the most within the scope of the present invention.

Claims (4)

1. repair the method that dish do not recognized by western number hard disk for one kind, it is characterised in that specifically comprise the following steps that
S1: read the rom chip data volume on hard disk pcb board;
S2: resolve rom chip data volume and find 0B module and extract its data volume;
S3: resolve OB module, obtains module map UBA address, firmware district;
S4: by UBA address location module deposit position.
The most according to claim 1 a kind of repair the method that dish do not recognized by western number hard disk, it is characterised in that described S2's is detailed Step is as follows:
S21: the module head feature in retrieval rom chip data volume successively;
S22: after retrieving module head feature, offsets 4 bytes backward in this feature, takes 2 byte ROM module features;
S23: judge whether these module No. data are 0B module;If it is S24 is performed, if not being then initial with this position Perform S21;
S24: 2 byte after acquisition module number, sector number shared by module;
S25: obtaining from module head feature until the data between next module head feature, filling out 0 after data, until reaching To the total size in sector shared by module, form complete 0B module data body.
The most according to claim 2 a kind of repair the method that dish do not recognized by western number hard disk, it is characterised in that described S3's is detailed Step is as follows:
S31: obtain the value of OB module head bias 0x06 position, this value represents the skew ground of OB module valid data original position Location;
S32: being offset to valid data original position later byte is the entry number of ROM module;
S33:ROM module entry number takes a byte backward, for the byte number shared by each entry of ROM module, records entry word Joint number;
S34: entry byte number takes a byte backward, for ROM module COPY number;
S35:COPY number takes 2 bytes backward and represents module No., records 01 module;
S36: module No. 2 bytes backward represent sector number shared by module, record sector number;
S37: sector number shared by module offsets the UBA address that 4 bytes are 01 module place backward.
The most according to claim 3 a kind of repair the method that dish do not recognized by western number hard disk, it is characterised in that described S4's is detailed Step is as follows:
S41: obtain hard disk RAM information, offsets " 0x24 ", takes 2 byte datas, for the magnetic track sum of this hard disk;
S42: calculate header address allocation table start offset position, firmware district, execution below equation:
Byte number=firmware district header address allocation table shared by OB module valid data original position+ROM module entry number * entry Start offset original position;
S43: be offset to firmware district header address allocation table original position and obtain firmware district magnetic head map allocation information table and take always Size;
S44: allocation information table takies total size and scans whole allocation table according to the map, obtains 0 UBA end position;
S45: obtain SPT value, performs formula " the magnetic track sum of SPT=0 head UBA end position/hard disk ";
S46: the UBA address extracting 01 module is converted into 10 systems;
S47: perform formula " sector number more than the value of 10 systems/SPT value=track number A ", obtain track number A and sector number;
S48: obtain 01 mapping module place magnetic track, formula is " track number A-magnetic track sum=track number B ";
S49: calculating magnetic head number, see the value of track number A, if being 0 between 0-255,256 and more than 256, then divided by 256, take Integer, described integer is track number A.
CN201610626236.5A 2016-08-02 2016-08-02 A method of it repairing western number hard disk and does not recognize disk Active CN106293982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610626236.5A CN106293982B (en) 2016-08-02 2016-08-02 A method of it repairing western number hard disk and does not recognize disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610626236.5A CN106293982B (en) 2016-08-02 2016-08-02 A method of it repairing western number hard disk and does not recognize disk

Publications (2)

Publication Number Publication Date
CN106293982A true CN106293982A (en) 2017-01-04
CN106293982B CN106293982B (en) 2019-08-06

Family

ID=57664116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610626236.5A Active CN106293982B (en) 2016-08-02 2016-08-02 A method of it repairing western number hard disk and does not recognize disk

Country Status (1)

Country Link
CN (1) CN106293982B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656747A (en) * 2018-11-30 2019-04-19 四川巧夺天工信息安全智能设备有限公司 A method of carving the data adaptation module of multiple western number hard disk

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7461197B2 (en) * 2005-12-19 2008-12-02 Broadcom Corporation Disk formatter and methods for use therewith
CN104778106A (en) * 2015-04-30 2015-07-15 四川效率源信息安全技术有限责任公司 Restoration method of Western Digital hard disk firmware zone scratch
CN105161138A (en) * 2015-09-30 2015-12-16 四川效率源信息安全技术股份有限公司 Repair method for situation of incapability of accessing to data block caused by error of Seagate hard disk firmware manager
CN105260130A (en) * 2015-09-18 2016-01-20 四川效率源信息安全技术股份有限公司 Read-write method for Seagate hard disk system file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7461197B2 (en) * 2005-12-19 2008-12-02 Broadcom Corporation Disk formatter and methods for use therewith
CN104778106A (en) * 2015-04-30 2015-07-15 四川效率源信息安全技术有限责任公司 Restoration method of Western Digital hard disk firmware zone scratch
CN105260130A (en) * 2015-09-18 2016-01-20 四川效率源信息安全技术股份有限公司 Read-write method for Seagate hard disk system file
CN105161138A (en) * 2015-09-30 2015-12-16 四川效率源信息安全技术股份有限公司 Repair method for situation of incapability of accessing to data block caused by error of Seagate hard disk firmware manager

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656747A (en) * 2018-11-30 2019-04-19 四川巧夺天工信息安全智能设备有限公司 A method of carving the data adaptation module of multiple western number hard disk
CN109656747B (en) * 2018-11-30 2022-03-04 四川巧夺天工信息安全智能设备有限公司 Method for carving data adaptation module of composite Western digital hard disk

Also Published As

Publication number Publication date
CN106293982B (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN105138635B (en) A method of it is compared using cryptographic Hash and carries out data increment duplication
CN103425669B (en) Number section and the coded method of ownership place and system, attribution inquiry method and system
CN104050269A (en) Log compression method and device and log decompression method and device
JP2010533322A (en) Incremental structure of the search tree including signature pointers for multimedia content identification
CN105975502A (en) Method for realizing incremental data extract based on CDC (Change Data Capture) mode
CN102929946A (en) Data synchronization method, device and system
CN104021123A (en) Method and system for data transfer
CN105138622B (en) For the insertion operation of LSM tree storage systems and reading and the merging method of load
CN106294792B (en) The method for building up of correlation inquiry system and establish system
CN106155845A (en) A kind of restructuring restoration methods based on XFS file system data
CN106293982A (en) A kind of repair the method that dish do not recognized by western number hard disk
CN108062357A (en) The deletion file access pattern method and storage medium of F2FS file system
CN106201778B (en) Information processing method and storage equipment
CN106294886A (en) A kind of method and system of full dose extracted data from HBase
CN107741947A (en) The storage of random number key based on HDFS file system and acquisition methods
CN104021217A (en) System and method for extracting fragment file and deleted file of mobile phone
CN106446133A (en) Method and device for simultaneous butt joint of two databases
CN103942122A (en) Method for recognizing AVI type block
CN109684124B (en) Method for repairing read-only fault of firmware of Western digital hard disk
CN101533675B (en) Scanning and management method for flash memory medium
CN105069821A (en) Medical image lossless compression method based on boundary extraction
CN108182459B (en) Digital display caliper data acquisition method based on continuous code scanning
CN113254443A (en) Big data partition storage device and method
CN103914481B (en) Date storage method and device
CN110569221A (en) file system management method, device, equipment and storage medium with version function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant