CN107391304B - Method for obtaining available NV-RAM of Hitachi hard disk - Google Patents

Method for obtaining available NV-RAM of Hitachi hard disk Download PDF

Info

Publication number
CN107391304B
CN107391304B CN201710617635.XA CN201710617635A CN107391304B CN 107391304 B CN107391304 B CN 107391304B CN 201710617635 A CN201710617635 A CN 201710617635A CN 107391304 B CN107391304 B CN 107391304B
Authority
CN
China
Prior art keywords
ram
hard disk
original
backup
data
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.)
Active
Application number
CN201710617635.XA
Other languages
Chinese (zh)
Other versions
CN107391304A (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.)
Xly Salvationdata Technology Inc
Original Assignee
Sichuan Miwu Traceless Science And 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 Miwu Traceless Science And Technology Co ltd filed Critical Sichuan Miwu Traceless Science And Technology Co ltd
Priority to CN201710617635.XA priority Critical patent/CN107391304B/en
Publication of CN107391304A publication Critical patent/CN107391304A/en
Application granted granted Critical
Publication of CN107391304B publication Critical patent/CN107391304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a method for acquiring available NV-RAM of a Hitachi hard disk, which is characterized by comprising the following steps of S1, connecting the hard disk to a computer and acquiring a handle of the hard disk; s2, sending an instruction to the hard disk to acquire an original NV-RAM in the ROM of the hard disk; s3, searching fixed features in the original NV-RAM; s4, searching and matching the fixed characteristic in the effective searching address range of the firmware area; s5, judging whether the matching is successful, if so, executing the step S6, otherwise, executing the step S4; s6, extracting continuous 1024 bytes of data including the fixed features in the firmware area; s7, comparing the backup NV-RAM with the original NV-RAM by taking the data of the original NV-RAM as a standard, searching and modifying the data which is different from the original NV-RAM in the backup NV-RAM, and saving the modified backup NV-RAM as an available NV-RAM; and S8, writing the modified backup NV-RAM back to a failed hard disk and verifying that the failed hard disk can be identified and read.

Description

Method for obtaining available NV-RAM of Hitachi hard disk
Technical Field
The invention belongs to the field of data recovery, relates to hard disk data recovery, and particularly relates to a method for acquiring an available NV-RAM (nonvolatile random access memory) of a Hitachi hard disk.
Background
Hard disks play an extremely important role in devices for storing data, and data recovery becomes more important with the rapid increase of data storage amount and the increase of data importance.
For the failures of Hitachi hard disks, the firmware layer failures are common, for example, the NV-RAM of the Hitachi hard disks is damaged or lost, and the key for repairing the firmware layer failures is the acquisition and write-back of the available NV-RAM. In the prior art, because a simple and effective method for acquiring the available NV-RAM is not available, a certain module in firmware cannot be written back, so that the hard disk cannot be identified by a computer, when hard disk data cannot be accessed, a maintenance worker has to adopt methods of directly disassembling and replacing a magnetic head, and the like, so that not only are manpower and material resources consumed, but also the hard disk is frequently subjected to secondary damage due to expansion of hard disk faults caused by human factors, and even the hard disk is completely damaged, and therefore, the acquisition of the available NV-RAM is particularly important.
Disclosure of Invention
Aiming at the defects of the prior art and the problems, the invention provides a method for acquiring the available NV-RAM of the Hitachi hard disk, which is characterized in that the difference between the NV-RAM in a firmware area and the original NV-RAM data is compared, searched and modified, and the modified NV-RAM data is written back to a fault hard disk as the available NV-RAM of the Hitachi hard disk. The method has the advantages of simplicity, effectiveness and low cost, and avoids secondary damage to the hard disk caused by disassembling the hard disk and replacing the magnetic head, even completely damaging the hard disk, and the method comprises the following steps:
s1, connecting the hard disk to the computer and obtaining the handle of the hard disk;
s2, sending an instruction to the hard disk to acquire an original NV-RAM in the ROM of the hard disk;
s3, searching fixed features in the original NV-RAM;
s4, searching and matching the fixed characteristic in the effective searching address range of the firmware area;
s5: judging whether the matching is successful, if so, executing step S6, otherwise, executing step S4;
s6: extracting continuous 1024 bytes of data including the fixed features in the firmware area, wherein the continuous 1024 bytes of data are backup NV-RAM in the firmware area;
s7, comparing the backup NV-RAM with the original NV-RAM by taking the data of the original NV-RAM as a standard, searching and modifying the data which is different from the original NV-RAM in the backup NV-RAM, and saving the modified backup NV-RAM as an available NV-RAM;
and S8, writing the modified backup NV-RAM back to a failed hard disk and verifying that the failed hard disk can be identified and read.
Preferably, the fixed feature in the original NV-RAM is E2 PR.
Preferably, in the original NV-RAM and the backup NV-RAM, 4 bytes from address 0x00000000 to address 0x00000003 are the fixed features, 8 bytes from address 0x00000004 to address 0x0000000B are the firmware version number of the hard disk, and the fixed features and the firmware version number are both stored in ASCII encoding form.
Preferably, in step S7, the backup NV-RAM data is different from the original NV-RAM data by 1 byte of data in the backup NV-RAM at address 0x0000000B, where the content of address 0x0000000B is bit 8 of the firmware version number.
Compared with the prior art, the invention has the advantages of simplicity, effectiveness and low cost, and avoids secondary damage to the hard disk caused by disassembling the hard disk and replacing the magnetic head, and even completely damages to the hard disk.
Drawings
FIG. 1 is a main flow diagram of the present invention;
FIG. 2 is a data structure diagram of the original NV-RAM of the present invention;
FIG. 3 is a diagram of a data structure for backing up NV-RAM in the present invention;
Detailed Description
The invention is further illustrated with reference to the figures and examples.
As shown in fig. 1, a method for acquiring available NV-RAM of a hitachi hard disk includes the following steps:
s1, connecting the hard disk to the computer and obtaining the handle of the hard disk so that the computer can access the resource of the fault hard disk;
s2, sending an instruction to the hard disk to obtain the original NV-RAM in the ROM of the hard disk;
s3, searching a fixed characteristic E2PR in the original NV-RAM;
s4, if fixed characteristic E2PR is found in step S3, fixed characteristic E2PR is found and matched in the effective search address range 0x0001B 02B-0 x0002182E of the firmware area;
s5: judging whether the matching is successful, if so, executing step S6, otherwise, executing step S4;
s6: extracting continuous 1024 bytes of data including the fixed characteristic E2PR from the firmware area, wherein the 1024 bytes of data are backup NV-RAM in the firmware area;
s7, as shown in FIG. 2 and FIG. 3, in the original NV-RAM and the backup NV-RAM, 4 bytes from address 0x00000000 to address 0x00000003 are fixed feature E2PR, 8 bytes from address 0x00000004 to address 0x0000000B are firmware version numbers of the hard disk, and both the fixed feature E2PR and the firmware version numbers are stored in ASCII coding form;
comparing the backup NV-RAM with the original NV-RAM, as shown in fig. 2 and 3, with respect to the data of the original NV-RAM, where the backup NV-RAM data is different from the original NV-RAM data by 1 byte of data with an address of 0x0000000B in the backup NV-RAM, the address of 0x0000000B is the 8 th bit of the firmware version number, the byte of data in the backup NV-RAM is 0xC1, and the byte of data in the original NV-RAM is 0x41, modifying the byte of data in the backup NV-RAM to 0x41, and saving the modified byte of data in the backup NV-RAM as an available NV-RAM;
and S8, writing the modified backup NV-RAM back to the failed hard disk, verifying that the failed hard disk can be identified and read, and recovering data.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations are possible to those skilled in the art in light of the above teachings, and that all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.

Claims (5)

1. A method for obtaining available NV-RAM of Hitachi hard disk is characterized by comprising the following steps:
s1, connecting the hard disk to the computer and obtaining the handle of the hard disk;
s2, sending an instruction to the hard disk to acquire an original NV-RAM in the ROM of the hard disk;
s3, searching fixed features in the original NV-RAM;
s4, searching and matching the fixed characteristic in the effective searching address range of the firmware area;
s5: judging whether the matching is successful, if so, executing step S6, otherwise, executing step S4;
s6: extracting continuous 1024 bytes of data including the fixed features in the firmware area, wherein the continuous 1024 bytes of data are backup NV-RAM in the firmware area;
s7, comparing the backup NV-RAM with the original NV-RAM by taking the data of the original NV-RAM as a standard, searching and modifying the data which is different from the original NV-RAM in the backup NV-RAM, and saving the modified backup NV-RAM as an available NV-RAM;
and S8, writing the modified backup NV-RAM back to a failed hard disk and verifying that the failed hard disk can be identified and read.
2. The method of claim 1, wherein the fixed feature is E2 PR.
3. The method of claim 2, wherein 4 bytes of content from 0x00000000 to 0x00000003 in the original NV-RAM and the backup NV-RAM are the fixed features, 8 bytes of content from 0x00000004 to 0x0000000B are the firmware version number of the hard disk, and the fixed features and the firmware version number are stored in ASCII coding form.
4. The method of claim 3, wherein in step S4, the effective search address range of the firmware region is from address 0x0001B02B to address 0x 0002182E.
5. The method of claim 4, wherein the difference between the backup NV-RAM data and the original NV-RAM data in the step S7 is 1 byte of data with an address of 0x0000000B, wherein the address of 0x0000000B is the 8 th bit of the firmware version number.
CN201710617635.XA 2017-07-26 2017-07-26 Method for obtaining available NV-RAM of Hitachi hard disk Active CN107391304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710617635.XA CN107391304B (en) 2017-07-26 2017-07-26 Method for obtaining available NV-RAM of Hitachi hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710617635.XA CN107391304B (en) 2017-07-26 2017-07-26 Method for obtaining available NV-RAM of Hitachi hard disk

Publications (2)

Publication Number Publication Date
CN107391304A CN107391304A (en) 2017-11-24
CN107391304B true CN107391304B (en) 2020-06-16

Family

ID=60341507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710617635.XA Active CN107391304B (en) 2017-07-26 2017-07-26 Method for obtaining available NV-RAM of Hitachi hard disk

Country Status (1)

Country Link
CN (1) CN107391304B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443362A (en) * 2021-12-27 2022-05-06 厦门市美亚柏科信息股份有限公司 Hitachi hard disk heat exchange recovery method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101772757A (en) * 2007-08-21 2010-07-07 汤姆逊许可公司 Method and system for repairing damaged hard disk file systems
CN102165422A (en) * 2008-09-24 2011-08-24 日立系统解决方案有限公司 Firmware update device and method
CN103858107A (en) * 2011-08-16 2014-06-11 谷歌公司 Secure recovery apparatus and method
US9123422B2 (en) * 2012-07-02 2015-09-01 Super Talent Technology, Corp. Endurance and retention flash controller with programmable binary-levels-per-cell bits identifying pages or blocks as having triple, multi, or single-level flash-memory cells
CN106776144A (en) * 2016-12-28 2017-05-31 四川秘无痕信息安全技术有限责任公司 The restorative procedure that a kind of hard disk is closed after firmware is accessed

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9836234B2 (en) * 2014-06-04 2017-12-05 Pure Storage, Inc. Storage cluster

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101772757A (en) * 2007-08-21 2010-07-07 汤姆逊许可公司 Method and system for repairing damaged hard disk file systems
CN102165422A (en) * 2008-09-24 2011-08-24 日立系统解决方案有限公司 Firmware update device and method
CN103858107A (en) * 2011-08-16 2014-06-11 谷歌公司 Secure recovery apparatus and method
US9123422B2 (en) * 2012-07-02 2015-09-01 Super Talent Technology, Corp. Endurance and retention flash controller with programmable binary-levels-per-cell bits identifying pages or blocks as having triple, multi, or single-level flash-memory cells
CN106776144A (en) * 2016-12-28 2017-05-31 四川秘无痕信息安全技术有限责任公司 The restorative procedure that a kind of hard disk is closed after firmware is accessed

Also Published As

Publication number Publication date
CN107391304A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
KR101513711B1 (en) Method and System for Repairing Damaged Hard Disk File Systems
CN103186471B (en) The management method of bad block and system in storage device
US9524212B2 (en) Method, device and operating system for processing and using burn data of NAND flash
CN101344868B (en) Data backup and acquiring method and device
US20070124552A1 (en) Memory control method for restoring data in a cache memory
CN107608905B (en) Method and device for erasing Flash data
CN103092726A (en) Recovery method and recovery device of registry deleted data
US20120063602A1 (en) Method and apparatus for maintaining key information area in file system
CN106776144B (en) Method for repairing hard disk after firmware access is closed
CN107391304B (en) Method for obtaining available NV-RAM of Hitachi hard disk
CN103593301B (en) Bad block management method and system
WO2015087509A1 (en) State storage and restoration device, state storage and restoration method, and storage medium
US20070043968A1 (en) Disk array rebuild disruption resumption handling method and system
CN104978241B (en) A kind of data reconstruction method and device of COW type file systems
CN117271243A (en) Method, system, equipment and medium for testing consistency of data in backtracking area of solid state disk
TWI461904B (en) Recovery method and device for linux using fat file system
CN115309591B (en) Recovery method and related device of full flash memory system
CN106648969A (en) Method and system for inspecting damaged data in disk
CN110968446B (en) Metadata repairing method, device and system and computer readable storage medium
CN110798730A (en) MP4 file recording and repairing method
US20150161006A1 (en) Information processing apparatus and method for testing same
CN105072372B (en) FAT file system self-repairing method in DVR terminal
CN106648989B (en) Repair method for western digital hard disk stalling fault
CN110188003A (en) A kind of data reconstruction method for after loss defect entries in hard disk
CN104794027B (en) A kind of restorative procedure of parameter identification mistake

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 641000 Sichuan province Neijiang City Songshan Road No. 253

Applicant after: Sichuan Miwu Traceless Science and Technology Co.,Ltd.

Address before: 641000 Sichuan province Neijiang City Songshan Road No. 253

Applicant before: SICHUAN MWH INFORMATION SECURITY TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240529

Address after: 641100 No.1 Hanyu Avenue, Shizhong District, Neijiang City, Sichuan Province

Patentee after: XLY SALVATIONDATA TECHNOLOGY Inc.

Country or region after: China

Address before: 641000 Songshan South Road 253, Neijiang City, Sichuan Province

Patentee before: Sichuan Miwu Traceless Science and Technology Co.,Ltd.

Country or region before: China