CN105094999A - Method for clearing nonresident defect list of Seagate hard disk - Google Patents

Method for clearing nonresident defect list of Seagate hard disk Download PDF

Info

Publication number
CN105094999A
CN105094999A CN201510468991.0A CN201510468991A CN105094999A CN 105094999 A CN105094999 A CN 105094999A CN 201510468991 A CN201510468991 A CN 201510468991A CN 105094999 A CN105094999 A CN 105094999A
Authority
CN
China
Prior art keywords
nonresident
level
hard disk
list
resident
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
CN201510468991.0A
Other languages
Chinese (zh)
Other versions
CN105094999B (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 SALVATIONDATA INFORMATION SAFETY TECHNOLOGY Co Ltd
Original Assignee
SICHUAN SALVATIONDATA 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 SALVATIONDATA INFORMATION SAFETY TECHNOLOGY Co Ltd filed Critical SICHUAN SALVATIONDATA INFORMATION SAFETY TECHNOLOGY Co Ltd
Priority to CN201510468991.0A priority Critical patent/CN105094999B/en
Publication of CN105094999A publication Critical patent/CN105094999A/en
Application granted granted Critical
Publication of CN105094999B publication Critical patent/CN105094999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention discloses a method for clearing a nonresident defect list of a Seagate hard disk. The method comprises the steps that 1, the hard disk is connected to enter an instruction mode and enter a T-level mode; 2, whether a nonresident G list defect exists or not is checked, if yes, the third step is executed, otherwise the step is finished; 3, whether the hard disk supports acquisition of the nonresident G list or not is judged, if yes, the fourth step is executed, otherwise the fifth step is executed; 4, the address and size of the nonresident G list are obtained through a T-level mode, and the sixth step is executed; 5, the address and size of the nonresident G list are obtained through an A-level mode, and the sixth step is executed; 6, the total number of items of the nonresident G list is acquired; 7, the number of the items is cleared. The method for clearing the nonresident defect list of the Seagate hard disk has the advantages that nonresident G list information can be acquired by using two different modes of the T-level mode and an A-level mode, the address and the size of the nonresident G list are found accurately, and the purpose of directly clearing the nonresident defect list is achieved by directly clearing the number of the defect items of the nonresident defect list; the time is saved, the cost is reduced, the purpose of restoring data in a fast and good mode is achieved, and the efficiency of restoring the hard disk is high.

Description

A kind of method removing the non-resident defect map of Seagate hard disk
Technical field
The present invention relates to field of information security technology, particularly a kind of method removing the non-resident defect map of Seagate hard disk.
Background technology
The front good rear bad fault of Seagate hard disk always is a difficult problem of data industry, and the probability that this fault occurs is very high, and is difficult to repair.The reason gone wrong be disk occur capacity be 0 and BUSY after, compiler must be rebuild to deal with problems, but cause the compiler rebuild not mate with original section because defect map itself exists fault, cause sector scanning before data field to read normal, reading all cannot be scanned in the sector of rear section.
Core ensures that compiler and original section match, and defect map full scale clearance must be rebuild compiler again.But currently available technology is removed slowly, and need each strip defect all will read one by one, time repair time is long.
Summary of the invention
The present invention is directed to the defect of prior art, provide a kind of method removing the non-resident defect map of Seagate hard disk, effectively can solve above-mentioned prior art Problems existing.
In order to realize above goal of the invention, the technical scheme that the present invention takes is as follows:
Remove a method for the non-resident defect map of Seagate hard disk, comprise the following steps:
S1: connect hard disk entry instruction pattern, enter T level pattern, and check whether in T level pattern, if T level then performs S2, otherwise terminates;
S2: check under T level pattern and whether also have non-resident property G to show defect, if there is execution S3, otherwise to terminate;
S3: judge under T level pattern whether this dish supports that obtaining non-resident property G shows, if support, the instruction of choice for use T level should obtain non-resident property G and show, execution S4.Otherwise use the instruction of A level to obtain non-resident property G to show to perform S5;
S4:T level mode: obtain non-resident property G table address and size under T level pattern, performs S6;
S5:A level mode: the address looking for non-resident property G to show under A level pattern and size, in cache contents and the appointment size of 1 grade of pattern acquiring non-resident property G table, performs S6;
S6: obtain total entry number that non-resident property G shows;
S7: remove entry number.
Compared with prior art the invention has the advantages that: T level and A level two kinds of different modes can be used to obtain non-resident property G and show information, the address that accurate discovery non-resident property G shows and size, the defect entries number directly removing non-resident defect map reaches the object directly removing non-resident defect list; Save time cost, and faster and better reaching recovers data object, and reparation hard disk efficiency is high.
Embodiment
For making object of the present invention, technical scheme and advantage clearly understand, by the following examples, the present invention is described in further details.
Remove a method for the non-resident defect map of Seagate hard disk, comprise the following steps:
S1: connect hard disk entry instruction pattern, enter T level pattern, and check whether in T level pattern, if T level then performs S2, otherwise terminates;
Call function:
UART0_Sendchar (0x1A); // entry instruction pattern
IRQ_READ_UART0 (); // read data to buffer
CheckT (); // detect whether buffer data are T>
S2: check under T level pattern and whether also have non-resident property G to show defect, if there is execution S3, otherwise to terminate;
Call function:
UART0_SendBuf("V40");
S3: judge under T level pattern whether this dish supports that obtaining non-resident property G shows, if support, the instruction of choice for use T level should obtain non-resident property G and show, execution S4.Otherwise use the instruction of A level to obtain non-resident property G to show to perform S5;
Call function:
S4:T level mode: obtain non-resident property G table address and size under T level pattern, performs S6;
Call function:
UART0_Sendchar(0x1A);
UART0_SendBuf("r35,3,0");
S5:A level mode: the address looking for non-resident property G to show under A level pattern and size, in cache contents and the appointment size of 1 grade of pattern acquiring non-resident property G table, performs S6.
Call function:
UART0_SendBuf("/A");
UART0_SendBuf (" R (non-resident property G table address), 100,20 ");
UART0_SendBuf("/1");
UART0_SendBuf (" D buffer address,, 800,1 ")
S6: obtain total entry number that non-resident property G shows, obtains the cache contents that S5 obtains, and extracts the byte content of Offest0x00 ~ 0x03 in cache contents;
S7: remove entry number, null value is write in the address of entry sum and cover.
The above-mentioned function called is by following codes implement:
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 (1)

1. remove a method for the non-resident defect map of Seagate hard disk, it is characterized in that comprising the following steps:
S1: connect hard disk entry instruction pattern, enter T level pattern, and check whether in T level pattern, if T level then performs S2, otherwise terminates;
S2: check under T level pattern and whether also have non-resident property G to show defect, if there is execution S3, otherwise to terminate;
S3: judge under T level pattern whether this dish supports that obtaining non-resident property G shows, if support, the instruction of choice for use T level should obtain non-resident property G and show, execution S4.Otherwise use the instruction of A level to obtain non-resident property G to show to perform S5;
S4:T level mode: obtain non-resident property G table address and size under T level pattern, performs S6;
S5:A level mode: the address looking for non-resident property G to show under A level pattern and size, in cache contents and the appointment size of 1 grade of pattern acquiring non-resident property G table, performs S6;
S6: obtain total entry number that non-resident property G shows;
S7: remove entry number.
CN201510468991.0A 2015-08-03 2015-08-03 A kind of method for removing the non-resident defect table of Seagate hard disk Active CN105094999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510468991.0A CN105094999B (en) 2015-08-03 2015-08-03 A kind of method for removing the non-resident defect table of Seagate hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510468991.0A CN105094999B (en) 2015-08-03 2015-08-03 A kind of method for removing the non-resident defect table of Seagate hard disk

Publications (2)

Publication Number Publication Date
CN105094999A true CN105094999A (en) 2015-11-25
CN105094999B CN105094999B (en) 2018-05-04

Family

ID=54575504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510468991.0A Active CN105094999B (en) 2015-08-03 2015-08-03 A kind of method for removing the non-resident defect table of Seagate hard disk

Country Status (1)

Country Link
CN (1) CN105094999B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589665A (en) * 2015-12-31 2016-05-18 四川秘无痕信息安全技术有限责任公司 Method for carrying out defect isolation during connection of defect hard disk and PC (Personal Computer) side
CN109445974A (en) * 2018-10-10 2019-03-08 南宁磁动电子科技有限公司 A kind of Seagate Hard Disk Repair method
CN110188003A (en) * 2019-05-31 2019-08-30 四川效率源信息安全技术股份有限公司 A kind of data reconstruction method for after loss defect entries in hard disk

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955417A (en) * 2014-04-02 2014-07-30 江门市未来之星网络科技有限公司 Computer hard disc data detecting equipment and method
CN104407974A (en) * 2014-11-29 2015-03-11 蔡杨毅 Data recovery and firmware handling device of Seagate and application method
CN104407953A (en) * 2014-11-19 2015-03-11 江门市未来之星网络科技有限公司 Fault detecting equipment and fault detecting method for 2.5-cun Seagate hard disk
CN104778107A (en) * 2015-04-30 2015-07-15 四川效率源信息安全技术有限责任公司 Restoration method of Seagate hard disk firmware fault of busy state

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955417A (en) * 2014-04-02 2014-07-30 江门市未来之星网络科技有限公司 Computer hard disc data detecting equipment and method
CN104407953A (en) * 2014-11-19 2015-03-11 江门市未来之星网络科技有限公司 Fault detecting equipment and fault detecting method for 2.5-cun Seagate hard disk
CN104407974A (en) * 2014-11-29 2015-03-11 蔡杨毅 Data recovery and firmware handling device of Seagate and application method
CN104778107A (en) * 2015-04-30 2015-07-15 四川效率源信息安全技术有限责任公司 Restoration method of Seagate hard disk firmware fault of busy state

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WUGONGCAI: "希捷硬盘常见内部指令大全(2.0版)", 《HTTPS://WENKU.BAIDU.COM/VIEW/1398EA32EE06EFF9AEF80766.HTML》 *
金字塔078: "效率源希捷(Seagate)硬盘指令分析之一(T级常见指令分析)", 《HTTPS://WENKU.BAIDU.COM/VIEW/63E884ECF8C75FBFC77DB2F2.HTML?RE=VIEW》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589665A (en) * 2015-12-31 2016-05-18 四川秘无痕信息安全技术有限责任公司 Method for carrying out defect isolation during connection of defect hard disk and PC (Personal Computer) side
CN105589665B (en) * 2015-12-31 2018-07-06 四川秘无痕信息安全技术有限责任公司 A kind of method for carrying out defect isolation during defect hard disk connection PC ends
CN109445974A (en) * 2018-10-10 2019-03-08 南宁磁动电子科技有限公司 A kind of Seagate Hard Disk Repair method
CN110188003A (en) * 2019-05-31 2019-08-30 四川效率源信息安全技术股份有限公司 A kind of data reconstruction method for after loss defect entries in hard disk
CN110188003B (en) * 2019-05-31 2023-01-10 四川效率源信息安全技术股份有限公司 Data recovery method for lost defect entries in hard disk

Also Published As

Publication number Publication date
CN105094999B (en) 2018-05-04

Similar Documents

Publication Publication Date Title
KR101456757B1 (en) Method and Apparatus for recovering deleted data for SQLite database
CN105094999A (en) Method for clearing nonresident defect list of Seagate hard disk
CN103777971A (en) Electronic device, method for updating firmware, and recording medium capable of being read by computer
CN106294222A (en) A kind of method and device determining PCIE device and slot corresponding relation
CN101794261B (en) Mapping table data recovery method and device
CN106372115A (en) Data reading/writing method and system, and database system
CN102929795A (en) NandFlash bad block management method
CN106325845B (en) Before a kind of reparation hard disk sector it is good after bad method
CN102226893A (en) FAT (file allocation table) file system repairing method in embedded system
CN104598328A (en) File system repair method, device and system
CN106648948A (en) Restorative method aiming at damages of western digital hard disk number 11 module
CN102314490B (en) Method and device for recovering Linux FAT (File Allocation Table) file system
CN101799820B (en) Flash memory, file system mounted method and device, data management method and device
CN103605600B (en) A kind of method and system of mobile terminal storage card memory element read-write number of times record
CN105260130A (en) Read-write method for Seagate hard disk system file
CN103440181A (en) Method and system for modifying files
CN102737171B (en) Method and device for storing virus file and storage equipment
CN103324445B (en) Method and system, USB storage device that USB storage device is run
CN105630622A (en) Method for repairing hard disk ROM (Read Only Memory) through Boot Code
CN107481764B (en) 3D Nand Flash scanning detection method and system
CN102411696A (en) Method for performing mass production copy on external storage device
CN204463134U (en) SATA hard disc Write-protect system
CN102760212A (en) Virtual desktop malicious code detecting method based on storage mirroring cloning mechanism
CN103235747B (en) The restoration methods of metadata and system
CN102223445A (en) Method and system for positioning crash problem of mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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. 183

Applicant after: SICHUAN XLY INFORMATION SAFETY TECHNOLOGY CO., LTD.

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

Applicant before: Sichuan SalvationData Information Safety Technology Co., Ltd.

CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Liang Xiaoning

Inventor after: Dong Chao

Inventor after: Yang Xianmin

Inventor after: Zhang Jiaqiang

Inventor before: Liang Xiaoning

Inventor before: Yang Xianmin

Inventor before: Zhang Jiaqiang

Inventor before: Dong Chao

GR01 Patent grant
GR01 Patent grant