CN105786633B - A kind of Xi Shuo hard disk firmware area virtual method - Google Patents
A kind of Xi Shuo hard disk firmware area virtual method Download PDFInfo
- Publication number
- CN105786633B CN105786633B CN201610107453.3A CN201610107453A CN105786633B CN 105786633 B CN105786633 B CN 105786633B CN 201610107453 A CN201610107453 A CN 201610107453A CN 105786633 B CN105786633 B CN 105786633B
- Authority
- CN
- China
- Prior art keywords
- hard disk
- firmware
- disk
- value
- faulty
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0706—Error 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/0712—Error 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract 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 kind of Xi Shuo hard disk firmware area virtual methods, comprising the following steps: S1: creation backup database system;S2: initialization failure hard disk;S3: load hard disk resources;S4: judging whether that hard disk necessity firmware resource can be read, if can if go to S5;If cannot if go to S6;S5: being loaded into hard disk operational buffer area for hard disk firmware resource, terminate if energy normal read data, if load failure, goes to S6;S6: hard disk specifying information is obtained;S7: it according to hard disk specifying information, is looked in backup database system and the matched firmware resource of faulty disk;S8: the firmware resource that S7 is found is encased in memory, and establishes real links with faulty hard disk, achievees the purpose that faulty disk operates normally.Beneficial effects of the present invention are as follows: according to the Main firmware module for matching faulty disk in backup database system, fictionalizing the running environment of normal hard disk, reach the data of the read failure disk in the case where not disassembling replacement hard disk devices.
Description
Technical field
The present invention relates to field of information security technology, in particular to a kind of Xi Shuo hard disk firmware area virtual method.
Background technique
With the arrival in " big data " epoch, " data " this abstract thing becomes increasingly in our life
Specifically.It is small to arrive individual privacy, Company File greatly from the energy, economy, communication.Many important data informations can be all stored in
In storage media.Certainly, currently on the market, the main mode of storing data is exactly mechanical hard disk.Due to the construction of mechanical hard disk,
Using time, the influence of components aging Multiple factors, it may result in mechanical hard disk and damage, operating system can not identify firmly
The problems such as disk.
The method that this technology is solved in currently available technology is by the way of directly replacement circuit board or rom chip
This problem is handled, but directly changes circuit board or rom chip easily causes the problems such as striking disk and not being adapted to, repairs hard disk
Success rate is low.
Summary of the invention
The present invention in view of the drawbacks of the prior art, provides a kind of Xi Shuo hard disk firmware area virtual method, can effectively solve
Certainly the above-mentioned problems of the prior art.
A kind of Xi Shuo hard disk firmware area virtual method, comprising the following steps:
S1: creation backup database system, system are packed into necessary firmware needed for western number hard disk operates normally;
S2: initialization failure hard disk;
S3: load hard disk resources;
S4: necessity firmware resource required for hard disk can successfully be read by judging whether goes to if can normally read
S5;If success cannot be obtained all, S6 is gone to;
S5: the hard disk firmware resource that will acquire is fully loaded to hard disk operational buffer area, establishes needed for hard disk normal operation
Memory environment, terminate if hard disk energy normal read data, if inter access load failure, go to S6;
S6: hard disk specifying information, including hard disk model, firmware version number and SPT value, S6 specific steps are obtained are as follows:
S601: hard disk model is obtained by hard disk label;
S602: obtaining 4F module in hard disk ROM, and module head bias 0x10 to 0x17 obtains hard disk firmware version number;
S603: by obtaining 0B and 20B module in hard disk ROM, pass through formula " Value [0x06]+Value [Value
[0x06]+6] * Value [Value [0x06]+7] " obtain the initial position of header address allocation information table in module;
The initial position of header address allocation information table deviates 18 bytes backward, and taking 4 bytes is the hard disk firmware head of district
Degree;
S604: while obtaining in hard disk RAM, deviation post 0x24 0x25, length is the track number in the firmware area of 2 bytes;
S605: SPT value, SPT=firmware section length/track number are calculated by formula;
S7: it according to hard disk specifying information, is looked in backup database system and the matched firmware resource of faulty disk;
S8: the firmware resource that S7 is found is encased in memory, and is had existed intact portion firmware with hard disk and established
Real links achieve the purpose that faulty disk operates normally.
Preferably, the S3 specific steps are as follows:
S301: obtaining hard disc magnetic head message bit pattern, obtains magnetic head number;
S302: the Main firmware that No. 0 magnetic head corresponds to firmware area, fetching portion firmware or all acquisition are read using 0
Failure, then execute S303;It obtains and successfully then passes directly to S4;
S303: the Main firmware that No. 1 magnetic head corresponds to firmware area is read using 1.
Compared with prior art the present invention has the advantages that can according in backup database system match faulty disk it is main
Firmware module fictionalizes the running environment of normal hard disk, reaches and does not read event in the case where needing dismantling replacement hard disk devices
Hinder the data of disk, the efficiency and success rate of the reparation hard disk of raising.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, by the following examples, to the present invention do into
One step is described in detail.
A kind of Xi Shuo hard disk firmware area virtual method, comprising the following steps:
S1: creation backup database system, system are packed into necessary firmware needed for western number hard disk operates normally;
S2: initialization failure hard disk;
S3: load hard disk resources;
S4: necessity firmware resource required for hard disk can successfully be read by judging whether goes to if can normally read
S5;If success cannot be obtained all, S6 is gone to;
S5: the hard disk firmware resource that will acquire is fully loaded to hard disk operational buffer area, establishes needed for hard disk normal operation
Memory environment, terminate if hard disk energy normal read data, if inter access load failure, go to S6;
S6: hard disk specifying information, including hard disk model, firmware version number and SPT value are obtained;
S7: it according to hard disk specifying information, is looked in backup database system and the matched firmware resource of faulty disk;
S8: the firmware resource that S7 is found is encased in memory, and is had existed intact portion firmware with hard disk and established
Real links achieve the purpose that faulty disk operates normally.
The S3 specific steps are as follows:
S301: obtaining hard disc magnetic head message bit pattern, obtains magnetic head number;
S302: the Main firmware that No. 0 magnetic head corresponds to firmware area, fetching portion firmware or all acquisition are read using 0
Failure, then execute S303;It obtains and successfully then passes directly to S4;
S303: the Main firmware that No. 1 magnetic head corresponds to firmware area is read using 1.
The S6 specific steps are as follows:
S601: hard disk model is obtained by hard disk label;
S602: obtaining 4F module in hard disk ROM, and module head bias 0x10 to 0x17 obtains hard disk firmware version number;
S603: by obtaining 0B and 20B module in hard disk ROM, pass through formula " Value [0x06]+Value [Value
[0x06]+6] * Value [Value [0x06]+7] " obtain the initial position of header address allocation information table in module;
The initial position of header address allocation information table deviates 18 bytes backward, and taking 4 bytes is the hard disk firmware head of district
Degree;
S604: while obtaining in hard disk RAM, deviation post 0x24 0x25, length is the track number in the firmware area of 2 bytes;
S605: SPT value, SPT=firmware section length/track number are calculated by formula.
Those of ordinary skill in the art will understand that the embodiments described herein, which is to help reader, understands this hair
Bright implementation method, it should be understood that protection scope of the present invention is not limited to such specific embodiments and embodiments.Ability
The those of ordinary skill in domain disclosed the technical disclosures can make its various for not departing from essence of the invention according to the present invention
Its various specific variations and combinations, these variations and combinations are still within the scope of the present invention.
Claims (2)
1. a kind of Xi Shuo hard disk firmware area virtual method, comprising the following steps:
S1: creation backup database system, system are packed into necessary firmware needed for western number hard disk operates normally;
S2: initialization failure hard disk;
S3: load hard disk resources;
S4: necessity firmware resource required for hard disk can successfully be read by, which judging whether, goes to S5 if can normally read;Such as
Fruit cannot all obtain success, then go to S6;
S5: the hard disk firmware resource that will acquire is fully loaded to hard disk operational buffer area, establishes interior needed for hard disk operates normally
Dis environment terminates if hard disk energy normal read data, if inter access load failure, goes to S6;
S6: hard disk specifying information, including hard disk model, firmware version number and SPT value, S6 specific steps are obtained are as follows:
S601: hard disk model is obtained by hard disk label;
S602: obtaining 4F module in hard disk ROM, and module head bias 0x10 to 0x17 obtains hard disk firmware version number;
S603: by obtain hard disk ROM in 0B and 20B module, by formula " Value [0x06]+Value [Value [0x06]+
6] * Value [Value [0x06]+7] " obtains the initial position of header address allocation information table in module;
The initial position of header address allocation information table deviates 18 bytes backward, and taking 4 bytes is hard disk firmware section length;
S604: while obtaining in hard disk RAM, deviation post 0x24 0x25, length is the track number in the firmware area of 2 bytes;
S605: SPT value, SPT=firmware section length/track number are calculated by formula;
S7: it according to hard disk specifying information, is looked in backup database system and the matched firmware resource of faulty disk;
S8: the firmware resource that S7 is found is encased in memory, and is had existed intact portion firmware with hard disk and established really
Link achievees the purpose that faulty disk operates normally.
2. a kind of Xi Shuo hard disk firmware area according to claim 1 virtual method, it is characterised in that the S3 specific steps
Are as follows:
S301: obtaining hard disc magnetic head message bit pattern, obtains magnetic head number;
S302: reading the Main firmware that No. 0 magnetic head corresponds to firmware area using 0, and fetching portion firmware or all acquisition fail,
Then execute S303;It obtains and successfully then passes directly to S4;
S303: the Main firmware that No. 1 magnetic head corresponds to firmware area is read using 1.
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 CN105786633A (en) | 2016-07-20 |
CN105786633B true 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) |
Families Citing this family (9)
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 |
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 |
CN108804248B (en) * | 2017-04-28 | 2021-07-06 | 南京壹进制信息科技有限公司 | Automatic verification method for real-time protection data of volume |
CN110502386B (en) * | 2019-08-30 | 2023-08-22 | 西安易朴通讯技术有限公司 | Method and device for diagnosing faults of hard disk on line |
CN111008378B (en) * | 2019-11-29 | 2023-08-01 | 四川效率源信息安全技术股份有限公司 | Method for cleaning malicious codes in hard disk firmware area |
CN111124758A (en) * | 2019-12-26 | 2020-05-08 | 厦门市美亚柏科信息股份有限公司 | Data recovery method for failed hard disk |
CN111785305B (en) * | 2020-06-23 | 2021-06-22 | 厦门市美亚柏科信息股份有限公司 | Seagate hard disk outer edge scratch data recovery method |
CN111736780B (en) | 2020-08-07 | 2021-02-02 | 苏州浪潮智能科技有限公司 | Solid state disk erasing method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8271968B2 (en) * | 2006-12-12 | 2012-09-18 | Dell Products L.P. | System and method for transparent hard disk drive update |
-
2016
- 2016-02-26 CN CN201610107453.3A patent/CN105786633B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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)
Title |
---|
效率源西数专修7.0.5使用说明书2013.7修订版;效率源总部;《https://wenku.baidu.com/view/78988528b7360b4c2e3f64a1.html》;20131231;第2.5节、第3.2-3.5节 |
Also Published As
Publication number | Publication date |
---|---|
CN105786633A (en) | 2016-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105786633B (en) | A kind of Xi Shuo hard disk firmware area virtual method | |
CN102799394B (en) | Method and device for realizing heartbeat services of high-availability clusters | |
WO2018161760A8 (en) | Blockchain data storage system and method | |
CN104714869B (en) | A kind of method repaired western number hard disk and can not access data | |
WO2010002561A3 (en) | Method and apparatus for repairing high capacity/high bandwidth memory devices | |
WO2007005696A3 (en) | Hardware oriented target-side native command queuing tag management | |
US20160125363A1 (en) | Attendance system and method | |
CN104063447A (en) | Monitoring video file restoring method | |
CN102135925B (en) | Method and device for detecting error check and correcting memory | |
US20180240371A1 (en) | Electronic tamper detection device | |
CN104394009A (en) | Fault information processing method and device | |
US11386240B2 (en) | Data transmission system and method in physical network separation environment | |
US8423776B2 (en) | Storage systems and data storage method | |
US20120206981A1 (en) | Method and device for writing data | |
CN102750202A (en) | Data protection method and device | |
CN107402843A (en) | Restoration methods, device and the equipment of database corruption | |
CN102185710A (en) | Method and system for managing veneer log | |
CN106708445A (en) | Link selection method and device | |
US9229817B2 (en) | Control method of data storage system for restarting expander | |
CN103902232A (en) | Data write-in method and device | |
CN102750342A (en) | Method for maintaining data consistency for cluster file system | |
CN103197981B (en) | Storage space method for early warning and system | |
CN103049221A (en) | Method and device for processing disk array cache memory flash | |
CN106502929A (en) | A kind of target device, a kind of processing method and processing device of internal storage data | |
CN103310848A (en) | Method and apparatus using memory |
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 |