CN104778106A - Restoration method of Western Digital hard disk firmware zone scratch - Google Patents
Restoration method of Western Digital hard disk firmware zone scratch Download PDFInfo
- Publication number
- CN104778106A CN104778106A CN201510214605.5A CN201510214605A CN104778106A CN 104778106 A CN104778106 A CN 104778106A CN 201510214605 A CN201510214605 A CN 201510214605A CN 104778106 A CN104778106 A CN 104778106A
- Authority
- CN
- China
- Prior art keywords
- module
- firmware
- hard disk
- bytes
- scratch
- 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.)
- Pending
Links
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses a restoration method of a Western Digital hard disk firmware zone scratch, and belongs to the technical field of data restoration. The method comprises the following steps that 001, a hard disk firmware module is read, and if the reading fails, the module is regarded to be stored in a scratch part; 002, the scratch is restored, and the firmware module is written back after the restoration is successful. The restoration method has the following beneficial effects that 1, a hard disk map module is analyzed, and the firmware module is accessed in a USB (universal serial bus) way; 2, by aiming at a logic scratch, a low-lattice operation region is used for completing the checking, and in addition, the duplex erasing problem of the data is solved; 3, by aiming at a physical scratch, the deviation of the module is completed through modifying the map of the module, and the restoration function is reached.
Description
Technical field
The invention belongs to date restoring field, be specifically related to the restorative procedure of a kind of Xi Shuo hard disk firmware district bad track.
Background technology
Firmware is exactly the software being solidificated in hard drive internal.Hard disk, as a small-sized computer, also needs to use software to carry out driving work.Again in simple terms, the cell phone software that firmware uses as everybody is the same, the physical hardware part of mobile phone also needs software to drive to use, so there is software function in every hardware item, software section is just referred to as firmware.Firmware will do a lot of work in a hard disk, such as manages the deposit position of hard disc data; Record the defective sector damaged, avoid again using these defective sectors in use; Mistake of recording disk temperature at work or appearance etc.
The hard disk having lacked firmware is just a pile machinery and electronic component.Magnetic track is divided into two parts by HD vendor, and a part is used for depositing hard disk firmware, and a part is used for depositing normal data.The magnetic track depositing hard disk firmware is the reserve area of producer, need when accessing it to use specific instruction and password, common all cannot conduct interviews to this region and manage as WINDOWS operating system etc., also have a few peoples to cry in addition and deposit the region of producer's firmware for negative rail.
The firmware program one of hard disk has two parts, and two parts is all identical, is called main firmware and time firmware.The object done like this is when main firmware occurs mistake or after losing, can enable time firmware to carry out work or reparation.The two is deposited according to the distribution of hard-disk capacity and magnetic track, generally, respectively deposits portion for 0 and 1.But if any the hard disk of two magnetic heads during work, that part of firmware being about to leave in 0 is called main firmware, if only have the hard disk of a magnetic head, that primary and secondary firmware leaves 0 sequentially in.Conveniently classify to the firmware of difference in functionality and effectively manage, different functions divides in groups again by HD vendor, and Each performs its own functions reads for high-speed data.
In the concept of firmware, magnetic track comprises group and module, and the concept of module is exactly the n-back test more specifically in group.If magnetic track is a book, that group is exactly large chapters and sections, and module is exactly each paragraph.Several modules are comprised in a group.Of paramount importance in module is exactly mapping module, and when work is carried out in hard disk energising, the corresponding running parameter in FLASH chip is loaded by mapping module.The relation of mapping module and FLASH chip just considerably module be the actuating section in WINDOWS operating system, if FLASH chip can not obtain correct contacting with mapping module after hard disk is energized, just equal to start WINDOWS system, and can not use based on the software under WINDOWS system.Mapping module have recorded the map structure that firmware is deposited, the parameter information (LBA value, sequence number) of hard disk, the magnetic track deposit position of defect record etc.These include the location of most of important module, and still some module hidden is not recorded in wherein certainly.
If this sector has scuffing or magnetic medium to weaken and cause sector to read unsuccessfully when access hard disk, be then called physical bad track; If the ECC verification of the data that sector is read is not mated also can cause reading unsuccessfully, this bad track is called logistic bad track.
Along with the progress of hard disk, firmware is stored in disk body to part from storing before on circuit boards, again to being all stored on disk body, be exactly because the firmware of hard disk is increasing, certainly, occur that the region of firmware district bad track is also increasing, in the conventional technology, there is the method for low lattice Hard Disk Repair bad track of hard disk, but for the hard disk of nonrecognition, the method just can not be successful.
Wherein, UBA (Unit Block Address, cell block addressing);
LBA (Logical Block Address, logical block addresses).
Summary of the invention
The present invention is directed to the deficiencies in the prior art, provide the restorative procedure of a kind of Xi Shuo hard disk firmware district bad track, effectively can solve Xi Shuo hard disk firmware district and occur that bad track causes hard disk normally can not read firmware, the problem that even can not normally identify.
For overcoming the above problems, the technical solution used in the present invention is as follows: the restorative procedure of a kind of Xi Shuo hard disk firmware district bad track, comprises the following steps:
001 reads hard disk firmware module, if read unsuccessfully, then thinks that this module is stored in bad track;
002 pair of bad track is repaired, and repairs write-back firmware module successfully.
As preferably,
101 pass through search 524F594C as the beginning of 01 module in firmware district, find backward rear movement 4 bytes, if be 0100, then represent and have found 01 module, the size of module is 2 bytes after byte 0100, and unit is sector;
102 resolve 01 module, and in the address that 2 effective districts of byte representation 01 module at 0x06 place start, jump to 01 data field, the sum of front 2 byte representation modules, ensuing data structure is followed successively by: the length of describing module, 1 byte; The backup number of this module, 1 byte; The numbering of this module, 2 bytes, the size of this module, 2 bytes; Unknown data district, 4 bytes; The UBA of primary module, 4 bytes; The UBA of secondary module, 4 bytes; The last data parsing modules according to the analysis mode of 01 mapping module;
103 record in 102 and read failed module information.
As preferably,
If the backup that 201 have a former dish firmware, uses it, if not, uses the firmware of firmware version number identical with faulty disk;
The firmware module used in 201 is written to the address of reading failed firmware module by 202, if write successfully, then forwards end to, otherwise forwards 203 to;
203 obtain the failed region of firmware module in firmware district of reading in 01 module, and do the operation of low lattice to this section of region;
204 writing modules again, successful then forward end to, otherwise forward 205 to;
The UBA address of failed firmware module is read in 205 amendment 01 modules.
Beneficial effect of the present invention is as follows:
1. resolve hard disk mapping module, access firmware module by UBA mode;
2., for logistic bad track, use low lattice operating area to complete to verify and solve the dual erasing problem of data;
3., for physical bad track, the skew completing module by the map of modified module reaches the function of reparation.
Accompanying drawing explanation
Fig. 1 is the main flow chart of date restoring;
Fig. 2 is that firmware detects detail flowchart;
Fig. 3 is that detail flowchart repaired by firmware.
Embodiment
For making object of the present invention, technical scheme and advantage clearly understand, to develop simultaneously embodiment referring to accompanying drawing, the present invention is described in further details.
As shown in Figure 1:
001 reads hard disk firmware module, if read unsuccessfully, then thinks that this module is stored in bad track;
002 pair of bad track is repaired, and repairs write-back firmware module successfully.
As shown in Figure 2:
101 pass through search 524F594C as the beginning of 01 module in firmware district, find backward rear movement 4 bytes, if be 0100, then represent and have found 01 module, the size of module is 2 bytes after byte " 0100 ", and unit is sector;
102 resolve 01 module, and in the address that 2 effective districts of byte representation 01 module at 0x06 place start, jump to 01 data field, the sum of front 2 byte representation modules, ensuing data structure is followed successively by: the length of describing module, 1 byte; The backup number of this module, 1 byte; The numbering of this module, 2 bytes, the size of this module, 2 bytes; Unknown data district, 4 bytes; The UBA of primary module, 4 bytes; The UBA of secondary module, 4 bytes; The last data parsing modules according to the analysis mode of 01 mapping module;
103 record in 102 and read failed module information.
103 record reading failed module in 102, and this module is just on bad track.
As shown in Figure 3:
If the backup that 201 have a former dish firmware, uses it, if not, uses the firmware of firmware version number identical with faulty disk;
The firmware module used in 201 is written to the address of reading failed firmware module by 202, if write successfully, then forwards end to, otherwise forwards 203 to;
203 obtain the failed region of firmware module in firmware district of reading in 01 module, and do the operation of low lattice to this section of region;
204 writing modules again, successful then forward end to, otherwise forward 205 to;
The UBA address of failed firmware module is read in 205 amendment 01 modules.
Those of ordinary skill in the art will appreciate that, embodiment described here is to help reader understanding's implementation method of the present invention, should be understood to that protection scope of the present invention is not limited to so special statement and embodiment.Those of ordinary skill in the art can make various other various concrete distortion and combination of not departing from essence of the present invention according to these technology enlightenment disclosed by the invention, and these distortion and combination are still in protection scope of the present invention.
Claims (3)
1. the restorative procedure of a Zhong Xishuo hard disk firmware district bad track, is characterized in that, comprise the following steps:
001 reads hard disk firmware module, if read unsuccessfully, then thinks that this module is stored in bad track;
002 pair of bad track is repaired, and repairs write-back firmware module successfully.
2. method according to claim 1, is characterized in that, 001 concrete grammar is as follows:
101 pass through search 524F594C as the beginning of 01 module in firmware district, find backward rear movement 4 bytes, if be 0100, then represent and have found 01 module, the size of module is 2 bytes after byte 0100, and unit is sector;
102 resolve 01 module, and in the address that 2 effective districts of byte representation 01 module at 0x06 place start, jump to 01 data field, the sum of front 2 byte representation modules, ensuing data structure is followed successively by: the length of describing module, 1 byte; The backup number of this module, 1 byte; The numbering of this module, 2 bytes, the size of this module, 2 bytes; Unknown data district, 4 bytes; The UBA of primary module, 4 bytes; The UBA of secondary module, 4 bytes; The last data parsing modules according to the analysis mode of 01 mapping module;
103 record in 102 and read failed module information.
3. method according to claim 2, is characterized in that, 002 concrete grammar is as follows:
If the backup that 201 have a former dish firmware, uses it, if not, uses the firmware of firmware version number identical with faulty disk;
The firmware module used in 201 is written to the address of reading failed firmware module by 202, if write successfully, then forwards end to, otherwise forwards 203 to;
203 obtain the failed region of firmware module in firmware district of reading in 01 module, and do the operation of low lattice to this section of region;
204 writing modules again, successful then forward end to, otherwise forward 205 to;
The UBA address of failed firmware module is read in 205 amendment 01 modules.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510214605.5A CN104778106A (en) | 2015-04-30 | 2015-04-30 | Restoration method of Western Digital hard disk firmware zone scratch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510214605.5A CN104778106A (en) | 2015-04-30 | 2015-04-30 | Restoration method of Western Digital hard disk firmware zone scratch |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104778106A true CN104778106A (en) | 2015-07-15 |
Family
ID=53619587
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510214605.5A Pending CN104778106A (en) | 2015-04-30 | 2015-04-30 | Restoration method of Western Digital hard disk firmware zone scratch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104778106A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106293982A (en) * | 2016-08-02 | 2017-01-04 | 四川效率源信息安全技术股份有限公司 | A kind of repair the method that dish do not recognized by western number hard disk |
CN106648989A (en) * | 2016-12-28 | 2017-05-10 | 四川秘无痕信息安全技术有限责任公司 | Repairing method for Western Digital hard disk stalling fault |
CN106648948A (en) * | 2016-12-28 | 2017-05-10 | 四川秘无痕信息安全技术有限责任公司 | Restorative method aiming at damages of western digital hard disk number 11 module |
CN109656747A (en) * | 2018-11-30 | 2019-04-19 | 四川巧夺天工信息安全智能设备有限公司 | A method of carving the data adaptation module of multiple western number hard disk |
CN109684124A (en) * | 2018-12-25 | 2019-04-26 | 四川效率源信息安全技术股份有限公司 | A method of repairing western number hard disk firmware Read fault |
CN109710192A (en) * | 2018-12-27 | 2019-05-03 | 公安部物证鉴定中心 | A kind of western number hard disk has used the data method for deleting in firmware area |
CN111785304A (en) * | 2020-06-23 | 2020-10-16 | 厦门市美亚柏科信息股份有限公司 | Seagate hard disk inner ring scratch data recovery method |
CN116664116A (en) * | 2023-07-25 | 2023-08-29 | 江苏华存电子科技有限公司 | Recovery detection method and system for returned firmware |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722429A (en) * | 2011-12-31 | 2012-10-10 | 江门市未来之星网络科技有限公司 | Processing system of hard disk maintenance equipment |
CN103729275A (en) * | 2014-01-21 | 2014-04-16 | 北京众诚天合系统集成科技有限公司 | Hard disk firmware repairing system and hard disk firmware repairing method |
CN104423890A (en) * | 2013-08-27 | 2015-03-18 | 鸿富锦精密电子(天津)有限公司 | Solid state disk |
-
2015
- 2015-04-30 CN CN201510214605.5A patent/CN104778106A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722429A (en) * | 2011-12-31 | 2012-10-10 | 江门市未来之星网络科技有限公司 | Processing system of hard disk maintenance equipment |
CN104423890A (en) * | 2013-08-27 | 2015-03-18 | 鸿富锦精密电子(天津)有限公司 | Solid state disk |
CN103729275A (en) * | 2014-01-21 | 2014-04-16 | 北京众诚天合系统集成科技有限公司 | Hard disk firmware repairing system and hard disk firmware repairing method |
Non-Patent Citations (1)
Title |
---|
黄健: "《硬盘维修深度实战(固件级)》", 31 August 2008 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106293982B (en) * | 2016-08-02 | 2019-08-06 | 四川效率源信息安全技术股份有限公司 | A method of it repairing western number hard disk and does not recognize disk |
CN106293982A (en) * | 2016-08-02 | 2017-01-04 | 四川效率源信息安全技术股份有限公司 | A kind of repair the method that dish do not recognized by western number hard disk |
CN106648989A (en) * | 2016-12-28 | 2017-05-10 | 四川秘无痕信息安全技术有限责任公司 | Repairing method for Western Digital hard disk stalling fault |
CN106648948A (en) * | 2016-12-28 | 2017-05-10 | 四川秘无痕信息安全技术有限责任公司 | Restorative method aiming at damages of western digital hard disk number 11 module |
CN106648989B (en) * | 2016-12-28 | 2020-05-15 | 四川秘无痕科技有限责任公司 | Repair method for western digital hard disk stalling fault |
CN106648948B (en) * | 2016-12-28 | 2020-04-03 | 四川秘无痕科技有限责任公司 | Method for repairing damage of Western digital hard disk No. 11 module |
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 |
CN109684124A (en) * | 2018-12-25 | 2019-04-26 | 四川效率源信息安全技术股份有限公司 | A method of repairing western number hard disk firmware Read fault |
CN109710192A (en) * | 2018-12-27 | 2019-05-03 | 公安部物证鉴定中心 | A kind of western number hard disk has used the data method for deleting in firmware area |
CN109710192B (en) * | 2018-12-27 | 2022-04-05 | 公安部物证鉴定中心 | Data erasing method for firmware area used by Western digital hard disk |
CN111785304A (en) * | 2020-06-23 | 2020-10-16 | 厦门市美亚柏科信息股份有限公司 | Seagate hard disk inner ring scratch data recovery method |
CN116664116A (en) * | 2023-07-25 | 2023-08-29 | 江苏华存电子科技有限公司 | Recovery detection method and system for returned firmware |
CN116664116B (en) * | 2023-07-25 | 2023-11-14 | 江苏华存电子科技有限公司 | Recovery detection method and system for returned firmware |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104778106A (en) | Restoration method of Western Digital hard disk firmware zone scratch | |
US8578242B1 (en) | Data storage device employing seed array for data path protection | |
CN101916173B (en) | RAID (Redundant Array of Independent Disks) based data reading and writing method and system thereof | |
CN102184129B (en) | Fault tolerance method and device for disk arrays | |
US20140068208A1 (en) | Separately stored redundancy | |
CN104156174A (en) | Strip based solid-state drive RAID (redundant array of independent disks) realizing method and device | |
CN101840360A (en) | Rapid reconstruction method and device of RAID (Redundant Array of Independent Disk) system | |
TW201303588A (en) | Block management method, memory controller and memory stoarge apparatus | |
CN105354099A (en) | Western digital hard disk repair method | |
US20130166991A1 (en) | Non-Volatile Semiconductor Memory Device Using Mats with Error Detection and Correction and Methods of Managing the Same | |
CN102981969A (en) | Method for deleting repeated data and solid hard disc thereof | |
WO2017143843A1 (en) | Metadata recovery method and device | |
US8938641B2 (en) | Method and apparatus for synchronizing storage volumes | |
US20090164869A1 (en) | Memory architecture and configuration method thereof | |
CN107728943B (en) | Method for delaying generation of check optical disc and corresponding data recovery method | |
CN103279402A (en) | Data restoration method based on multilayer cell solid state hard disc and solid state hard disc | |
TW201329701A (en) | Automatic remapping in redundant array of independent disks and related raid | |
CN104035886A (en) | Magnetic disk remapping method, magnetic disk remapping device and electronic equipment | |
US10528348B2 (en) | Data management method for storage media | |
CN103902232A (en) | Data write-in method and device | |
CN105702273A (en) | Method for repairing front-good and back-bad fault of Hitachi hard disk | |
US8832358B2 (en) | Data writing method, memory controller and memory storage apparatus | |
US10867633B1 (en) | Reduced adjacent track erasure from write retry | |
US10642816B2 (en) | Protection sector and database used to validate version information of user data | |
US9262264B2 (en) | Error correction code seeding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150715 |