CN105824716A - Method for re-generating LDR file - Google Patents

Method for re-generating LDR file Download PDF

Info

Publication number
CN105824716A
CN105824716A CN201610147917.3A CN201610147917A CN105824716A CN 105824716 A CN105824716 A CN 105824716A CN 201610147917 A CN201610147917 A CN 201610147917A CN 105824716 A CN105824716 A CN 105824716A
Authority
CN
China
Prior art keywords
ldr
file
value
hard disk
backward
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
CN201610147917.3A
Other languages
Chinese (zh)
Other versions
CN105824716B (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 CN201610147917.3A priority Critical patent/CN105824716B/en
Publication of CN105824716A publication Critical patent/CN105824716A/en
Application granted granted Critical
Publication of CN105824716B publication Critical patent/CN105824716B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a method for re-generating an LDR file, and belongs to the field of hard disk data restoration. The method comprises the following steps of S1, obtaining CFW_OVL through finding a file descriptor in a volume 0; S2, judging whether POS-74 exists in a Volume 3 or not, if so, continuing the next step, and otherwise, quitting the step; S3, using the found POS-74 contents as the reference, backwards reading continuous 0x16 times, and completing the LDR composition reading; if the discontinuous condition occurs in the midway of the read 0x16 times, directly quitting the step; using the read file as the LDR composition file to be stored. The method provided by the invention has the beneficial effects that the problems that a Seagate hard disk cannot enter the T stage and cannot access data, and the LEDOx000000XX error is prompted can be restored through the regeneration of the LDR file, so that the method provided by the invention can be used for restoring the defects of the Seagate hard disk.

Description

A kind of method regenerating LDR file
Technical field
The present invention relates to hard disc data and recover field, particularly to a kind of method regenerating LDR file.
Background technology
What is LDR file: LDR file is the microcode firmware of a kind of bottom in Seagate.It is to remain uncommon The essential condition that prompt instruction mode normally works.If there is defect in microcode, the diagnostic instruction pattern of Seagate To all lose efficacy, it is impossible to perform all operations under the diagnostic mode of Seagate.
LDR file to be generated: under Seagate diagnostic instruction pattern, it is impossible to normally enter T level time Waiting, diagnostic instruction pattern cannot normally work, it is necessary to looks for the hard disk of identical firmware version number to regenerate LDR file.
Concrete need to generate LDR the most in what situations, load LDR file: can not entry instruction T level or LEDOx000000XX mistake is pointed out under diagnostic instruction pattern.
Summary of the invention
The present invention is directed to the deficiencies in the prior art, it is provided that a kind of method regenerating LDR file, permissible Solve the problem that prior art cannot regenerate LDR file.
For solving problem above, the technical solution used in the present invention is as follows: a kind of LDR file of regenerating Method, step is as follows: S1 obtains CFW_OVL by searching the filec descriptor in volume 0;S2 judges volume Whether there is POS-74 in 3, if existing, continuing next step, otherwise exiting;S3 is with the POS-74 found On the basis of content, read continuous print backward 0x16 time, then LDR composing document reads complete;If read , there is discontinuous situation, the most directly exits in take 0x16 time midway, using the file that read as LDR Composing document preserves;The file of reading is combined by S4 successively, is loaded in hard disk cache to be restored, And be compiled thinking highly of to the hard disk to be restored having loaded LDR and build.
As preferably: S1 is specific as follows:
S11 reads the first address of No. 0 module of normal hard disk of identical firmware version number, with the head of No. 0 module Address is as the initial address reading normal hard disk RAM data;
S12 reads the Buffer content of normal hard disk RAM, value L of a length of 0x1e0800;
S13 search in L volume 0 start address, 12 byte lengths of skew backward, search continuously M group filec descriptor;
S14 continues to search for the three-bit value i.e. FID value more than 0x20A after in filec descriptor;
S15 continue to search for filec descriptor front 4 consistent, value N of rear four logic increments, then take N FID;
The length that S16 continues to search for filec descriptor is consistent, and length is less than the FID of 1024 bytes, takes The entry of first FID, is CFW_OVL.
As preferably, S2 is specific as follows:
S21 takes 4 byte content X at Buffer, carries out the value of " with computing " with 0xFE000000, if Equal to 0xFC000000, and the value reading 0x16 time continuously is the same, then carry out next step, otherwise exit;
S22X offsets 0x74 backward, takes 4 bytes, then carries out AND-operation with 0x7FF, if equal to 100, Then X offsets 0x78 backward, takes 4 bytes, then carries out AND-operation with 0x7FF, if equal to 101, then Carry out next step, otherwise exit;
S23X offsets 0x88 backward, takes 4 bytes, then carries out, with 0x7FF, the value that AND-operation obtains, If Y group is to be incremented by continuously continuously, then carries out next step, otherwise exit;
S24X offsets 0xB0 backward, takes 4 bytes, then carries out, with 0x7FF, the value that AND-operation obtains, If Z group is to be incremented by continuously continuously, then judge that X, as POS-74, otherwise exits.
Beneficial effects of the present invention is as follows: regenerates LDR file and can repair Seagate hard disk and cannot be introduced into T Level, it is impossible to accessing data, the problem of prompting LEDOx000000XX mistake, therefore the method for the present invention is permissible Repair above-mentioned Seagate Hard Disk Defect.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearer, referring to embodiment, right The present invention is described in further details.
A kind of method regenerating LDR file, step is as follows:
S1 obtains CFW_OVL by searching the filec descriptor in volume 0;S2 judges whether exist in volume 3 POS-74, if existing, continuing next step, otherwise exiting;S3 on the basis of the POS-74 content found, Read continuous print backward 0x16 time, then LDR composing document reads complete;If in 0x16 time read On the way, discontinuous situation occurs, the most directly exits, carry out as LDR composing document using the file read Preserve;The file of reading is combined by S4 successively, is loaded in hard disk cache to be restored, and to having loaded LDR Hard disk to be restored be compiled thinking highly of and build.
S1 is specific as follows:
S11 reads the first address of No. 0 module of normal hard disk of identical firmware version number, with the head of No. 0 module Address is as the initial address reading normal hard disk RAM data;
S12 reads the Buffer content of normal hard disk RAM, value L of a length of 0x1e0800;
S13 search in L volume 0 start address, 12 byte lengths of skew backward, search continuously M group filec descriptor;The wherein M position integer more than or equal to 2, it is assumed that value is 5 groups here.
S14 continues to search for the three-bit value i.e. FID value more than 0x20A after in filec descriptor;Assume here There are 0x20B, 0x20C, 0x20D, 0x20E;
S15 continue to search for filec descriptor front 4 consistent, value N of rear four logic increments, then take N FID;
The length that S16 continues to search for filec descriptor is consistent, and length is less than the FID of 1024 bytes, takes The entry of first FID, is CFW_OVL.
S2 is specific as follows:
S21 takes 4 byte content X at Buffer, carries out the value of " with computing " with 0xFE000000, if Equal to 0xFC000000, and the value reading 0x16 time continuously is the same, then carry out next step, otherwise exit;
S22X offsets 0x74 backward, takes 4 bytes, then carries out AND-operation with 0x7FF, if equal to 100, Then X offsets 0x78 backward, takes 4 bytes, then carries out AND-operation with 0x7FF, if equal to 101, then Carry out next step, otherwise exit;
S23X offsets 0x88 backward, takes 4 bytes, then carries out, with 0x7FF, the value that AND-operation obtains, If Y group is to be incremented by continuously continuously, then carries out next step, otherwise exit;
S24X offsets 0xB0 backward, takes 4 bytes, then carries out, with 0x7FF, the value that AND-operation obtains, If Z group is to be incremented by continuously continuously, then judge that X, as POS-74, otherwise exits.

Claims (3)

1. the method regenerating LDR file, it is characterised in that step is as follows: S1 is by searching volume 0 In filec descriptor obtain CFW_OVL;S2 judges whether there is POS-74 in volume 3, if existing, under continuing One step, otherwise exits;S3, on the basis of the POS-74 content found, reads continuous print 0x16 time, then backward LDR composing document reads complete;If in 0x16 the midway read, discontinuous situation occurring, the most directly moving back Go out, preserve as LDR composing document using the file read;The file of reading is combined by S4 successively, It is loaded in hard disk cache to be restored, and is compiled thinking highly of to the hard disk to be restored having loaded LDR and builds.
A kind of method regenerating LDR file the most according to claim 1, it is characterised in that S1 has Body is as follows:
S11 reads the first address of No. 0 module of normal hard disk of identical firmware version number, with the first ground of No. 0 module Location is as the initial address reading normal hard disk RAM data;
S12 reads the Buffer content of normal hard disk RAM, value L of a length of 0x1e0800;
S13 search in L volume 0 start address, backward skew 12 byte lengths, search continuous print M group Filec descriptor;
S14 continues to search for the three-bit value i.e. FID value more than 0x20A after in filec descriptor;
S15 continue to search for filec descriptor front 4 consistent, value N of rear four logic increments, then take the FID of N;
The length that S16 continues to search for filec descriptor is consistent, and length is less than the FID of 1024 bytes, takes the The entry of one FID, is CFW_OVL.
A kind of method regenerating LDR file the most according to claim 2, it is characterised in that S2 has Body is as follows:
S21 takes 4 byte content X at Buffer, carries out the value of " with computing " with 0xFE000000, if being equal to 0xFC000000, and the value reading 0x16 time continuously is the same, then carry out next step, otherwise exit;
S22 X offsets 0x74 backward, takes 4 bytes, then carries out AND-operation with 0x7FF, if equal to 100, Then X offsets 0x78 backward, takes 4 bytes, then carries out AND-operation with 0x7FF, if equal to 101, then carrying out Next step, otherwise exit;
S23 X offsets 0x88 backward, takes 4 bytes, then carries out, with 0x7FF, the value that AND-operation obtains, if even Continuous Y group is to be incremented by continuously, then carry out next step, otherwise exit;
S24 X offsets 0xB0 backward, takes 4 bytes, then carries out, with 0x7FF, the value that AND-operation obtains, if even Continuous Z group is to be incremented by continuously, then judge that X, as POS-74, otherwise exits.
CN201610147917.3A 2016-03-15 2016-03-15 A method of regenerating LDR file Active CN105824716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610147917.3A CN105824716B (en) 2016-03-15 2016-03-15 A method of regenerating LDR file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610147917.3A CN105824716B (en) 2016-03-15 2016-03-15 A method of regenerating LDR file

Publications (2)

Publication Number Publication Date
CN105824716A true CN105824716A (en) 2016-08-03
CN105824716B CN105824716B (en) 2019-04-23

Family

ID=56987829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610147917.3A Active CN105824716B (en) 2016-03-15 2016-03-15 A method of regenerating LDR file

Country Status (1)

Country Link
CN (1) CN105824716B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729451A (en) * 2017-10-09 2018-02-23 四川巧夺天工信息安全智能设备有限公司 A kind of method of data in lookup EDB database source files
CN107967433A (en) * 2017-12-25 2018-04-27 四川巧夺天工信息安全智能设备有限公司 A kind of method for releasing Seagate hard disk electromechanical locks

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1805049A (en) * 2005-11-22 2006-07-19 武汉国光通信有限公司 Method of data access in nonvolatile storage in embedded system
EP2012465A1 (en) * 2007-07-02 2009-01-07 Tellabs Oy Method and devices for compressing delta log using flash transactions
CN102567141A (en) * 2011-12-13 2012-07-11 北京握奇数据***有限公司 Data item backup method and smart card

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1805049A (en) * 2005-11-22 2006-07-19 武汉国光通信有限公司 Method of data access in nonvolatile storage in embedded system
EP2012465A1 (en) * 2007-07-02 2009-01-07 Tellabs Oy Method and devices for compressing delta log using flash transactions
CN102567141A (en) * 2011-12-13 2012-07-11 北京握奇数据***有限公司 Data item backup method and smart card

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729451A (en) * 2017-10-09 2018-02-23 四川巧夺天工信息安全智能设备有限公司 A kind of method of data in lookup EDB database source files
CN107729451B (en) * 2017-10-09 2021-02-23 四川巧夺天工信息安全智能设备有限公司 Method for searching data in EDB database source file
CN107967433A (en) * 2017-12-25 2018-04-27 四川巧夺天工信息安全智能设备有限公司 A kind of method for releasing Seagate hard disk electromechanical locks

Also Published As

Publication number Publication date
CN105824716B (en) 2019-04-23

Similar Documents

Publication Publication Date Title
CN102203740B (en) Data processing method, device and system
US8707286B2 (en) Unique context-based code enhancement
US9524212B2 (en) Method, device and operating system for processing and using burn data of NAND flash
CN104991738B (en) A kind of solid-state disk and its read-write operation method
US11527301B2 (en) Method for reading and writing and memory device
CN105824716A (en) Method for re-generating LDR file
CN102073560A (en) Data backup method and device
US20150113311A1 (en) Storage control apparatus, storage apparatus, information processing system, and storage control method therefor
US20160210210A1 (en) Solid-state storage system, apparatus and method of writing data
CN106445740A (en) Control method and control system for NAND flash memory data in solid state disk
CN104133733A (en) Memory error detection method
CN104778106A (en) Restoration method of Western Digital hard disk firmware zone scratch
CN102023821A (en) Disc space management method and system
CN107291625B (en) Pointer type logical address mapping table implementation method for Nand Flash
CN106648948A (en) Restorative method aiming at damages of western digital hard disk number 11 module
CN103279402B (en) Data reconstruction method based on multilevel-cell solid state hard disc and solid state hard disc
CN110222035A (en) A kind of efficient fault-tolerance approach of database page based on exclusive or check and journal recovery
US20140317365A1 (en) Techniques for reducing power-down time in non-volatile memory devices
CN109634919A (en) A kind of file management system
NL8200913A (en) METHOD AND APPARATUS FOR CONTROLLING A COMPUTER MEMORY
CN105702273B (en) The method of bad failure after being got well before a kind of reparation Hitachi hard disk
CN102789422A (en) Data write-in method and system of solid-state disk
CN1472742A (en) Method for recording data on compact disc by good recording blocks to replace defected blocks
CN101382874B (en) Data writing method and device in RAID5 magnetic disc array
US9286936B1 (en) Zone based band mapping

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