CN105786633A - Western digital hard disk firmware area virtualization method - Google Patents

Western digital hard disk firmware area virtualization method Download PDF

Info

Publication number
CN105786633A
CN105786633A CN201610107453.3A CN201610107453A CN105786633A CN 105786633 A CN105786633 A CN 105786633A CN 201610107453 A CN201610107453 A CN 201610107453A CN 105786633 A CN105786633 A CN 105786633A
Authority
CN
China
Prior art keywords
hard disk
firmware
disk
value
breakdown
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
CN201610107453.3A
Other languages
Chinese (zh)
Other versions
CN105786633B (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 CN201610107453.3A priority Critical patent/CN105786633B/en
Publication of CN105786633A publication Critical patent/CN105786633A/en
Application granted granted Critical
Publication of CN105786633B publication Critical patent/CN105786633B/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/0706Error 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 the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0712Error 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 the processing taking place on a specific hardware platform or in a specific software environment in a virtual computing platform, e.g. logically partitioned systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a western digital hard disk firmware area virtualization method.The method comprises the following steps of 1, creating a backup database system; 2, initializing a hard disk which breaks down; 3, loading hard disk resources; 4, judging whether necessary firmware resources of the hard disk can be read or not, if yes, implementing step 5, and if no, implementing step 6; 5, loading the firmware resources of the hard disk to a hard disk work buffer area, if data can be read normally, ending the process, and if loading fails, implementing step 6; 6, obtaining exact information of the hard disk; 7, according to the exact information of the hard disk, searching for firmware resources matched with the breakdown disk in the backup database system; 8, installing the firmware resources found in step 7 into a memory, and establishing real linkage with the breakdown hard disk, so that the purpose that the breakdown disk runs normally is achieved.The western digital hard disk firmware area virtualization method has the advantages that according to main firmware modules matched with the breakdown disk in the backup database system, the running environment of a normal hard disk is virtualized, and data of the breakdown disk can be read without disassembling or replacing hard disk components.

Description

A kind of Xi Shuo hard disk firmware district virtual method
Technical field
The present invention relates to field of information security technology, particularly to a kind of Xi Shuo hard disk firmware district virtual method.
Background technology
Along with the arrival in " big data " epoch, " data " this abstract thing, become more and more concrete in our life.Big from the energy, economy, communication, little of individual privacy, Company File.Many important data messages, all can be stored in storage medium.Certainly, in the market, the main mode storing data is exactly mechanical hard disk.Due to mechanical hard disk structure, use the impact of time, the multiple factor of components aging, it is possible to can cause that damaging occurs in mechanical hard disk, the problem such as operating system None-identified hard disk.
Currently available technology solves the method for this technology be adopt directly change circuit board or rom chip mode to process this problem, but directly change circuit board or rom chip easily caused by striking dish and the problem such as not adaptive, reparation hard disk success rate is low.
Summary of the invention
The present invention is directed to the defect of prior art, it is provided that a kind of Xi Shuo hard disk firmware district virtual method, can effectively solve the problem that above-mentioned prior art Problems existing.
A kind of Xi Shuo hard disk firmware district virtual method, comprises the following steps:
S1: create backup database system, system loads the properly functioning required necessary firmware of western number hard disk;
S2: initialization failure hard disk;
S3: load hard disk resources;
S4: judge whether successfully read the necessary firmware resource required for hard disk, if can normally read, then forward S5 to;If can not all obtain successfully, then forward S6 to;
S5: the hard disk firmware resource that will obtain, is fully loaded to hard disk operational relief area, sets up the properly functioning required memory environment of hard disk, if hard disk energy normal read data, terminates, if inter access loads unsuccessfully, then forward S6 to;
S6: obtain hard disk specifying information, including hard disk model, firmware version number and SPT value;
S7: according to hard disk specifying information, look for the firmware resource mated with faulty disk in backup database system;
S8: the firmware resource found by S7 is encased in internal memory, and there is intact portion firmware with hard disk and set up real links, reach the purpose that faulty disk is properly functioning.
As preferably, described S3 concretely comprises the following steps:
S301: obtain hard disc magnetic head message bit pattern, it is thus achieved that magnetic head number;
S302: use 0 Main firmware reading No. 0 magnetic head correspondence firmware district, fetching portion firmware or all obtain failure, then perform S303;Obtain and successfully then pass directly to S4;
S303: use 1 Main firmware reading No. 1 magnetic head correspondence firmware district.
As preferably, described S6 concretely comprises the following steps:
S601: obtain hard disk model by hard disk label;
S602: obtaining 4F module in hard disk ROM, module head bias 0x10 to 0x17 obtains hard disk firmware version number;
S603: by obtaining 0B and 20B module in hard disk ROM, obtain the original position of header address allocation information table in module by formula " Value [0x06]+Value [Value [0x06]+6] * Value [Value [0x06]+7] ";
The original position of header address allocation information table offsets 18 bytes backward, and taking 4 bytes is hard disk firmware section length;
S604: obtaining in hard disk RAM, deviation post 0x240x25, length is the track number in the firmware district of 2 bytes simultaneously;
S605: calculate SPT value, SPT=firmware section length/track number by formula.
Compared with prior art it is an advantage of the current invention that: can according to the Main firmware module mating faulty disk in backup database system, fictionalize the running environment of normal hard disk, reach the data of read failure dish, the efficiency repairing hard disk of raising and success rate when replacing hard disk devices need not be disassembled.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearly understand, by the following examples, the present invention is described in further details.
A kind of Xi Shuo hard disk firmware district virtual method, comprises the following steps:
S1: create backup database system, system loads the properly functioning required necessary firmware of western number hard disk;
S2: initialization failure hard disk;
S3: load hard disk resources;
S4: judge whether successfully read the necessary firmware resource required for hard disk, if can normally read, then forward S5 to;If can not all obtain successfully, then forward S6 to;
S5: the hard disk firmware resource that will obtain, is fully loaded to hard disk operational relief area, sets up the properly functioning required memory environment of hard disk, if hard disk energy normal read data, terminates, if inter access loads unsuccessfully, then forward S6 to;
S6: obtain hard disk specifying information, including hard disk model, firmware version number and SPT value;
S7: according to hard disk specifying information, look for the firmware resource mated with faulty disk in backup database system;
S8: the firmware resource found by S7 is encased in internal memory, and there is intact portion firmware with hard disk and set up real links, reach the purpose that faulty disk is properly functioning.
Described S3 concretely comprises the following steps:
S301: obtain hard disc magnetic head message bit pattern, it is thus achieved that magnetic head number;
S302: use 0 Main firmware reading No. 0 magnetic head correspondence firmware district, fetching portion firmware or all obtain failure, then perform S303;Obtain and successfully then pass directly to S4;
S303: use 1 Main firmware reading No. 1 magnetic head correspondence firmware district.
Described S6 concretely comprises the following steps:
S601: obtain hard disk model by hard disk label;
S602: obtaining 4F module in hard disk ROM, module head bias 0x10 to 0x17 obtains hard disk firmware version number;
S603: by obtaining 0B and 20B module in hard disk ROM, obtain the original position of header address allocation information table in module by formula " Value [0x06]+Value [Value [0x06]+6] * Value [Value [0x06]+7] ";
The original position of header address allocation information table offsets 18 bytes backward, and taking 4 bytes is hard disk firmware section length;
S604: obtaining in hard disk RAM, deviation post 0x240x25, length is the track number in the firmware district of 2 bytes simultaneously;
S605: calculate SPT value, SPT=firmware section length/track number by formula.
Those of ordinary skill in the art is it will be appreciated that embodiment described here is to aid in the implementation of the reader understanding present invention, it should be understood that protection scope of the present invention is not limited to such special statement and embodiment.Those of ordinary skill in the art can make various other various concrete deformation and combination without departing from essence of the present invention according to these technology disclosed by the invention enlightenment, and these deformation and combination remain in protection scope of the present invention.

Claims (3)

1. a Zhong Xishuo hard disk firmware district virtual method, comprises the following steps:
S1: create backup database system, system loads the properly functioning required necessary firmware of western number hard disk;
S2: initialization failure hard disk;
S3: load hard disk resources;
S4: judge whether successfully read the necessary firmware resource required for hard disk, if can normally read, then forward S5 to;If can not all obtain successfully, then forward S6 to;
S5: the hard disk firmware resource that will obtain, is fully loaded to hard disk operational relief area, sets up the properly functioning required memory environment of hard disk, if hard disk energy normal read data, terminates, if inter access loads unsuccessfully, then forward S6 to;
S6: obtain hard disk specifying information, including hard disk model, firmware version number and SPT value;
S7: according to hard disk specifying information, look for the firmware resource mated with faulty disk in backup database system;
S8: the firmware resource found by S7 is encased in internal memory, and there is intact portion firmware with hard disk and set up real links, reach the purpose that faulty disk is properly functioning.
2. a kind of method recovering mobile phone audio files according to claim 1, it is characterised in that described S3 concretely comprises the following steps:
S301: obtain hard disc magnetic head message bit pattern, it is thus achieved that magnetic head number;
S302: use 0 Main firmware reading No. 0 magnetic head correspondence firmware district, fetching portion firmware or all obtain failure, then perform S303;Obtain and successfully then pass directly to S4;
S303: use 1 Main firmware reading No. 1 magnetic head correspondence firmware district.
3. a kind of method recovering mobile phone audio files according to claim 2, it is characterised in that described S6 concretely comprises the following steps:
S601: obtain hard disk model by hard disk label;
S602: obtaining 4F module in hard disk ROM, module head bias 0x10 to 0x17 obtains hard disk firmware version number;
S603: by obtaining 0B and 20B module in hard disk ROM, obtain the original position of header address allocation information table in module by formula " Value [0x06]+Value [Value [0x06]+6] * Value [Value [0x06]+7] ";
The original position of header address allocation information table offsets 18 bytes backward, and taking 4 bytes is hard disk firmware section length;
S604: obtaining in hard disk RAM, deviation post 0x240x25, length is the track number in the firmware district of 2 bytes simultaneously;
S605: calculate SPT value, SPT=firmware section length/track number by formula.
CN201610107453.3A 2016-02-26 2016-02-26 A kind of Xi Shuo hard disk firmware area virtual method Active CN105786633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610107453.3A CN105786633B (en) 2016-02-26 2016-02-26 A kind of Xi Shuo hard disk firmware area virtual method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610107453.3A CN105786633B (en) 2016-02-26 2016-02-26 A kind of Xi Shuo hard disk firmware area virtual method

Publications (2)

Publication Number Publication Date
CN105786633A true CN105786633A (en) 2016-07-20
CN105786633B CN105786633B (en) 2019-01-25

Family

ID=56402780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610107453.3A Active CN105786633B (en) 2016-02-26 2016-02-26 A kind of Xi Shuo hard disk firmware area virtual method

Country Status (1)

Country Link
CN (1) CN105786633B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227502A (en) * 2016-07-21 2016-12-14 浪潮电子信息产业股份有限公司 A kind of method and device obtaining hard disk firmware version
CN106648999A (en) * 2016-12-28 2017-05-10 四川秘无痕信息安全技术有限责任公司 Method for restoring damaged firmware module in A working area of Hitachi hardware
CN106776144A (en) * 2016-12-28 2017-05-31 四川秘无痕信息安全技术有限责任公司 The restorative procedure that a kind of hard disk is closed after firmware is accessed
CN108804248A (en) * 2017-04-28 2018-11-13 南京壹进制信息技术股份有限公司 A kind of automatic Verification method of volume real-time guard data
CN110502386A (en) * 2019-08-30 2019-11-26 西安易朴通讯技术有限公司 The on-line fault diagnosis method and apparatus of hard disk
CN111008378A (en) * 2019-11-29 2020-04-14 四川效率源信息安全技术股份有限公司 Method for cleaning malicious codes in Seagate hard disk firmware area
CN111124758A (en) * 2019-12-26 2020-05-08 厦门市美亚柏科信息股份有限公司 Data recovery method for failed hard disk
CN111785305A (en) * 2020-06-23 2020-10-16 厦门市美亚柏科信息股份有限公司 Seagate hard disk outer edge scratch data recovery method
WO2022027936A1 (en) * 2020-08-07 2022-02-10 苏州浪潮智能科技有限公司 Method, apparatus, and device for erasing solid state disk, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080141235A1 (en) * 2006-12-12 2008-06-12 Russell Woodbury System and Method for Transparent Hard Disk Drive Update
CN104714869A (en) * 2015-03-31 2015-06-17 四川效率源信息安全技术有限责任公司 Method for repairing Western Digital hard disk unable to access data
CN104794018A (en) * 2015-04-30 2015-07-22 四川效率源信息安全技术有限责任公司 Data recovery method against identification failure due to Seagate hard disk firmware fault

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080141235A1 (en) * 2006-12-12 2008-06-12 Russell Woodbury System and Method for Transparent Hard Disk Drive Update
CN104714869A (en) * 2015-03-31 2015-06-17 四川效率源信息安全技术有限责任公司 Method for repairing Western Digital hard disk unable to access data
CN104794018A (en) * 2015-04-30 2015-07-22 四川效率源信息安全技术有限责任公司 Data recovery method against identification failure due to Seagate hard disk firmware fault

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
效率源总部: "效率源西数专修7.0.5使用说明书2013.7修订版", 《HTTPS://WENKU.BAIDU.COM/VIEW/78988528B7360B4C2E3F64A1.HTML》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227502A (en) * 2016-07-21 2016-12-14 浪潮电子信息产业股份有限公司 A kind of method and device obtaining hard disk firmware version
CN106776144B (en) * 2016-12-28 2020-08-04 四川秘无痕科技有限责任公司 Method for repairing hard disk after firmware access is closed
CN106648999A (en) * 2016-12-28 2017-05-10 四川秘无痕信息安全技术有限责任公司 Method for restoring damaged firmware module in A working area of Hitachi hardware
CN106776144A (en) * 2016-12-28 2017-05-31 四川秘无痕信息安全技术有限责任公司 The restorative procedure that a kind of hard disk is closed after firmware is accessed
CN106648999B (en) * 2016-12-28 2019-10-29 四川秘无痕科技有限责任公司 The restorative procedure of firmware module damage in a kind of workspace Hitachi's hard disk A
CN108804248A (en) * 2017-04-28 2018-11-13 南京壹进制信息技术股份有限公司 A kind of automatic Verification method of volume real-time guard data
CN110502386A (en) * 2019-08-30 2019-11-26 西安易朴通讯技术有限公司 The on-line fault diagnosis method and apparatus of hard disk
CN110502386B (en) * 2019-08-30 2023-08-22 西安易朴通讯技术有限公司 Method and device for diagnosing faults of hard disk on line
CN111008378A (en) * 2019-11-29 2020-04-14 四川效率源信息安全技术股份有限公司 Method for cleaning malicious codes in Seagate hard disk firmware area
CN111124758A (en) * 2019-12-26 2020-05-08 厦门市美亚柏科信息股份有限公司 Data recovery method for failed hard disk
CN111785305A (en) * 2020-06-23 2020-10-16 厦门市美亚柏科信息股份有限公司 Seagate hard disk outer edge scratch data recovery method
CN111785305B (en) * 2020-06-23 2021-06-22 厦门市美亚柏科信息股份有限公司 Seagate hard disk outer edge scratch data recovery method
WO2022027936A1 (en) * 2020-08-07 2022-02-10 苏州浪潮智能科技有限公司 Method, apparatus, and device for erasing solid state disk, and storage medium
US11880222B2 (en) 2020-08-07 2024-01-23 Inspur Suzhou Intelligent Technology Co., Ltd. Method, apparatus, and device for erasing solid state disk, and storage medium

Also Published As

Publication number Publication date
CN105786633B (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN105786633A (en) Western digital hard disk firmware area virtualization method
CN104714869B (en) A kind of method repaired western number hard disk and can not access data
CN102308285B (en) Memory bug application of application program
CN103902399B (en) Software system repair processing method and software system repair processing device
CN104811645A (en) Embedded video-recording data storage method
CN104123208B (en) The restorative procedure of a kind of system exception, device and mobile terminal
CN102609332A (en) Power failure protection method for intelligent IC (integrated circuit) card data
CN106155596A (en) Method for writing data and device
US20120063602A1 (en) Method and apparatus for maintaining key information area in file system
CN105280239A (en) Method and device for dynamically realizing ECC check codes of solid state drives
CN107918568A (en) method for preventing L inux system from failing in restarting
US8423776B2 (en) Storage systems and data storage method
CN102096613B (en) Method and device for generating snapshot
US20130151886A1 (en) Computing device and method for switching physical links of a sas expander of the computing device
CN104636082A (en) Disk array RAID control method and device
CN105224416A (en) Restorative procedure and related electronic device
CN101464814A (en) Embedded system and its implementing method, and embedded equipment
CN103108070B (en) Telephone book backup system and method thereof
CN103019773A (en) System update power failure protection method and system, and mobile terminal
CN105100901A (en) Virtual storage card configuration method and system
CN109325373B (en) Metadata storage method, device and equipment and readable storage medium
CN110798730A (en) MP4 file recording and repairing method
CN105260137A (en) Method and device for realizing access of HBA (Host Bus Adapter) card to SATA (Serial ATA) disk in SAS (Serial Attached Scsi) storage system
CN104809037B (en) Quick start method and device of the eMMC based on special page
CN104778107A (en) Restoration method of Seagate hard disk firmware fault of busy state

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