CN100447885C - Method for handling data fault and retry in writing/reading a hard disk - Google Patents

Method for handling data fault and retry in writing/reading a hard disk Download PDF

Info

Publication number
CN100447885C
CN100447885C CNB2004100462204A CN200410046220A CN100447885C CN 100447885 C CN100447885 C CN 100447885C CN B2004100462204 A CNB2004100462204 A CN B2004100462204A CN 200410046220 A CN200410046220 A CN 200410046220A CN 100447885 C CN100447885 C CN 100447885C
Authority
CN
China
Prior art keywords
data
sector
track
retry
sectors
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.)
Expired - Fee Related
Application number
CNB2004100462204A
Other languages
Chinese (zh)
Other versions
CN1607599A (en
Inventor
戴维·M·德鲁因
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.)
Riospring Inc
Original Assignee
Riospring Inc
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
Priority claimed from US10/687,462 external-priority patent/US20040100712A1/en
Application filed by Riospring Inc filed Critical Riospring Inc
Publication of CN1607599A publication Critical patent/CN1607599A/en
Application granted granted Critical
Publication of CN100447885C publication Critical patent/CN100447885C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

One embodiment of the present invention is a method for writing data on a number of sectors of a track of a disk drive that includes: (a) sending a signal to write data on a first sector of the track; (b) receiving a write data default; (c) sending a signal to write data on another sector of the track after skipping a predetermined number of sectors; (d) waiting for the first sector to be in position again; and (e) sending a signal to retry to write data on the first sector if a predetermined number of retries to write data on the track has not been exceeded.

Description

The method of deal with data mistake and retry during the read/write hard disk
Technical field
When one or more embodiment of the present invention relates generally on hard disk read/write data, handle the method for read/write data mistake and retry.
Background technology
According to existing on hard disk, handle during read/write data the read/write data mistake and method, for example require to write data, to the write operation of 100 (100) individual continuous sectors (0 to 99), operate as follows usually.When 0 sector that has arrived a hard disk track, the data processing servo controller will make data begin to write according in the general known method of professional in this area any.Be found that (these write errors may be because following any situation if write error in data according in the general known method of professional in this area any, such as, but be not limited in: (a) Wai Bu vibrations or vibration cause read/write head to depart from orbit centre, (b) find incorrect servo sector data and (c) other), this data processing servo controller will stop write operation at once according in the general known method of professional in this area any, to avoid writing data improperly and/or to avoid influencing and be recorded in the data of closing on the data-track.When finding error in data, some data sector have perhaps write data, and some sectors also do not write data.In this case, according to former method, hard disk will continue rotation, be in write state once more in case write the found sector of error in data, and the data processing servo controller will restart data write operation (this is called as retry).When writing error in data and take place once more, this program will repeat.At last, according to the method before in this area, if not whole 100 sectors then are the rewrite operations of carrying out predetermined quantity by the writing of success.Similarly program also is applied to reading of data.
Be not difficult to find out that classic method mentioned above is poor efficiency but also consuming time not only.
In sum, need provide a kind of method that can overcome one or more known problem in the said method.
Summary of the invention
One or more embodiment of the present invention has satisfied above-mentioned one or more the known demand in this area.More definite says, one embodiment of the invention are for writing the method for data on a plurality of sectors of hard disk track, and this method comprises: (a) send a signal that writes data on first sector of track; (b) reception writes error in data; (c) behind the sector of skipping predetermined number, send a signal that on the another one sector of this track, writes data; (d) wait for that first sector is in place again; And if (e) retry writes data on this track number of times surpasses pre-determined number as yet, send one on first sector retry write the signal of data.
Description of drawings
Figure 1 shows that the process flow diagram of one or more embodiment that originally writes the data invention.
Figure 2 shows that the process flow diagram of one or more embodiment of this reading of data invention.
Figure 3 shows that one group of continuous retry simulation that on 100 (100) individual sectors, writes data, wherein in the each rotation of hard disk, 6 random data sectors among track are detected error in data: (a) use the existing method of describing in background of invention, use the method for one embodiment of the invention with (b); And
Figure 4 shows that another group writes the continuous retry simulation of data on 100 (100) individual sectors, wherein in the each rotation of hard disk, error in data is pointed out in 6 random data sectors among track: (a) use the existing method of describing in background of invention, use the method for one embodiment of the invention with (b).
Embodiment
According to one or more embodiment of the present invention, for example need on 100 (100) the individual sectors (0 to 99) of hard disk track, write the write operation of data, will carry out as described below.In case during the sector 0 of getting on the right track according to any hard disk that arrives hard disk drive in the general known method of professional in this area, the data processing servo controller will make data begin to write according in the general known method of professional in this area any.If according in the general known method of professional in this area any, writing error in data (for example is found, when data are written into or after writing), the data processing servo controller will make write operation stop according to any method in the general known method of professional in this area at once, but this only is to be detected the sector that writes error in data for those.And according to one or more embodiment of the present invention, the data processing servo controller is after finding to write the sector of error in data, and the sector of skipping predetermined quantity makes write operation begin then.For example, when predetermined quantity is 0, will in ensuing sector, begin immediately to write.In addition, Yu Ding quantity can be 1,2 or more.Next, because hard disk continues rotation, according to one or more embodiment of the present invention, the data processing servo controller makes data write operation start from the sector (this is called as retry) that has not write owing to found the write data mistake in the previous rotation.These operations will continue be carried out, until all 100 sectors by the writing of success, perhaps till the retry of predetermined quantity is performed.According to one or more embodiment of the present invention, according in the general known method of professional in this area any, the data processing servo controller will mark all sectors that write, and mark the sector that does not write owing to write error in data.
Fig. 1 illustrates the process flow diagram of one or more embodiment that originally writes the data invention.Shown in frame 990, the data processing servo controller is set: (a) " number of times of retry " (NRETRY) equals 0, (b) " in track to be written first data sector " (FSW), (c) " in track to be written number of sectors " (NUMS), (d) " next to be written sector " (NEXTS) equals FSW, (e) SEC (0) is to SEC (NUMS-1)=K1 (wherein, the sector that the value representation of K1 does not write, the sector that the value representation of K2 has write).Control forwards decision block 1000 to then.
Decision block 1000 is judged " whether the quantity of retry (NRETRY) has surpassed predetermined maximum value (RETRYMAX) ".If surpass, control is transferred to frame 1010 with the report write error, otherwise control forwards decision block 1020 to.
Decision block 1020 judges whether " sector next to be written " (NEXTS) arrives.If arrive, control forwards frame 1030 to, otherwise, wait for.
Frame 1030 is emitted in the order that write operation is carried out in a sector (being NEXTS).Control afterwards forwards decision block 1040 to.
Decision block 1040 has judged whether that write error takes place.If have, frame 1110 is transferred in control, otherwise control forwards 1050 to.
Frame 1050 subtracts the quantity of sector to be written 1 (NUMS=NUMS-1) and sets SEC (NEXTS)=K2.Control forwards decision block 1060 to then.
Has decision block 1060 judged whether that more data will write (NUMS>0?).If have, control forwards frame 1070 to, otherwise withdraws from.
At block diagram 1070, by in SEC (), search NEXTS after and also etc. the sector next to be written (searching SEC () back and forth) of what K1, with setting NEXTSnew.Control forwards frame 1080 to then.
Decision block 1080 judges whether need to do many hard disks rotations just can write more data, that is: NEXTSnew<NEXTS whether.If, control invoke block 1110, otherwise control forwards block diagram 1090 to.
Block diagram 1090 resets NEXTS, that is: NEXTS=NEXTSnew.Control forwards decision block 1020 to then.
Frame 1100 increases the number of times of retry 1 (NRETRY=NRETRY+1) and resets NEXTS (that is: NEXTS=NEXTSnew).Control forwards decision block 1000 to then.
Frame 1110 adds a predetermined number (NSKIP) with NEXTS.Control turns to frame 1070 then.
One of ordinary skill in the art will approve, one or more embodiment promptly of the present invention or can be used for the read data operation of hard disk.Under the situation of read data operation, the data processing servo controller makes data be read in the metadata cache by the sector that all should read.When reading of data, will detect the reading of data mistake, so which sector the data processing servo controller is judged in data read errors has taken place.Then, according to one or more embodiment of the present invention, in the follow-up rotation of hard disk, the data processing servo controller makes the sector that produces data read errors read (this is called retry) again.This operation will repeat, be successfully read until all sectors, or executed predetermined number of retries.According to one or more embodiment of the present invention, according in the general known method of professional in this area any, the data processing servo controller will mark all sectors of successfully reading, and the sector of mark generation data read errors.
Figure 2 shows that the process flow diagram of one or more embodiment of this reading of data invention.Shown in frame 1990, the data processing servo controller is set: (a) " number of retry " (NRETRY) equals 0, (b) " sector of first data to be read in the track " (FSR), (c) " in this track to be read number of sectors " (NUMS), (d) SEC (0) is to SEC (NUMS-1)=K1 (wherein, the sector that the value representation of K1 does not read, the sector that the value representation of K2 has read).Control forwards decision block 2000 to then.
Decision block Figure 200 0 judges that whether " sector that first is to be read " be (FSR) to arrive.If to arrive, control forwards frame 2010 to, otherwise, wait for.
Frame 2010 sends the order of reading the NUMS sector.Control forwards frame 2020 to then.
Frame 2020 receives the data read errors signal, for each receives sector settings SEC ()=K1 of data read errors, sets the number of errors that NUMDEFAULT equals to receive, and sets NUMS=NUMDEFAULT.Control forwards decision block 2030 then to.
Decision block 2030 judges whether NUMS=0 sets up.If set up, withdraw from, otherwise control will forward frame 2040 to.
Frame 2040 increases by 1 (NRETRY=NRETRY+1) with the number of times of retry.Control forwards decision block 2050 to then.
Decision block 2050 is judged " whether the quantity of retry (NRETRY) has surpassed predetermined maximum value (RETRYMAX) ".If surpass, control forwards frame 2060 to the report read error, otherwise control forwards frame 2070 to.
Frame 2070 is by the K1 among the search SEC (), with the value of decision representative (first sector to be read in the set receives the contiguous sector number of reading of data mistake) to (wherein, the quantity of this kind set is NUMGroup for FSRi, set NSECi).K1 among the SEC () established get back to K2.Control forwards frame 2080 to then.
Frame 2080 is set NUMDEFAULT=0, and the hard disk rotation in the remaining part, these set were read in circulation.The following stated is carried out in each set.Judge whether FSRi arrives.If send the order of reading the NSECi sector, otherwise wait for.Receive any data read errors signal, for establishing SEC ()=K1 in each sector that receives the data read errors signal, and the value of NUMDEFAULT is added 1.At last, set NUMS=NUMDEFAUL.Control forwards decision block 2030 to then.
Not hard to imagine, in the embodiment of above-mentioned one or more proposition, the Writing/Reading error in data that some types are arranged before attempting once more to write/read, needs the data processing servo controller to wait for the sector of skipping predetermined quantity (having rotated a whole circle such as hard disk by the time).
Fig. 3 and Figure 4 shows that one group of continuous retry simulation that writes data on 100 (100) individual sectors, wherein in the each rotation of hard disk, error in data has been pointed out to write in 6 random data sectors among track.Fig. 3 data shown in Figure 4 are that hard disk drive is placed on the common fault data that the vibration of particular type produces down, perhaps show the situation of other misdatas, for example but be not limited to non-repeat to de-orbit (" NRRO ").Figure 3 shows that a series of continuous retry simulation that writes data on 100 (100) individual sectors, wherein in the each rotation of hard disk, error in data has been pointed out in 6 random data sectors among track.100 parts of Fig. 3 are to use the result that existing method produced described in background of invention, and 200 parts of Fig. 3 correspond to the result that one embodiment of the invention produce.Shown in 100 parts of Fig. 3, the first trip of 110 parts (corresponding to the once rotation of hard disk), sector 1,27,28,13,99 and 52 have produced and have write error in data.Then, (wherein, 0 expression sector is written into, and 1 expression sector is not written into) in the hard disk rotation first time, has only sector 1 to be written into data shown in the first trip of 120 parts.Then, in second row of 110 parts (corresponding to the once rotation of hard disk), sector 6,8,51,62,73 and 99 error in data has taken place to write.Next, shown in second row of 120 parts, in the hard disk rotation second time, sector 1-5 is written into.Continue this operation, be not difficult to find out, the 100 parts explanation of Fig. 3 during writing information, uses existing method to need ten (10) inferior hard disks rotations in 100 sectors.
Shown in 200 parts of Fig. 3, in the first trip of 210 parts, sector 1,27,28,13,99 and 52 have produced and have write error in data.Then, in the first trip of 220 parts, in the hard disk rotation first time, sector 0,2-12,14-26,29-51 and 53-98 are written into data.Then, in second row of 220 parts, sector 6,8,51,62,73 and 99 error in data has taken place to write.Next, shown in second row of 220 parts, in the hard disk rotation second time, sector 1,13,27-28 and 52 is written into.Continue this operation, be not difficult to find out, the 200 parts explanation of Fig. 3 uses one embodiment of the invention during writing information, to need three (3) inferior hard disks rotations in 100 sectors.
Figure 4 shows that another group writes the continuous retry simulation of data on 100 (100) individual sectors, wherein in the each rotation of hard disk, error in data has been pointed out in 6 random data sectors among track.300 parts of Fig. 4 are to use the result that existing method produced who describes in background of invention, the result that 400 parts of Fig. 4 are to use one embodiment of the invention to produce.Obtain by being not difficult among Fig. 4, use existing method writing information in 100 sectors to need hard disk rotation (3) inferior, and use one embodiment of the invention writing information in 100 sectors only to need hard disk rotation (2) inferior.
Given detailed description and explanation although be contained in the various embodiments of aim of the present invention at this, those of skill in the art will design other various embodiments that still are contained in these aims easily.

Claims (4)

1, a kind of method that on a plurality of sectors of hard disk track, writes data, this method comprises:
Send a signal that on first sector of this track, writes data;
Receive at least one data write error;
After skipping the present count destination sector, send a signal that on the another one sector of track, writes data;
Wait for that first sector is in place again;
If when the retry number that writes data in orbit surpasses predetermined times as yet, send a signal that writes data at the first sector retry; And
Repeat above-mentioned steps until all writing data in all sectors.
2, method described in the claim 1, the sector number of wherein being scheduled to skip is 0.
3, method described in the claim 1, the sector number of wherein being scheduled to skip is 1,2 or more.
4, a kind of on a plurality of sectors of hard disk track the method for reading of data, this method comprises:
Send a signal from first sector beginning reading of data of this track;
Receive one or more data read errors;
Wait for that first sector is in place again;
If the retry number of data read does not surpass predetermined times as yet, send a signal from the sector retry reading of data that this track before can not read; And
Repeat above-mentioned steps until sense data all from all sectors.
CNB2004100462204A 2003-10-16 2004-05-31 Method for handling data fault and retry in writing/reading a hard disk Expired - Fee Related CN100447885C (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US10/687,462 2003-10-16
US10/687,462 US20040100712A1 (en) 2002-11-27 2003-10-16 Handling data fault and retry in writing/reading data to/from a disk

Publications (2)

Publication Number Publication Date
CN1607599A CN1607599A (en) 2005-04-20
CN100447885C true CN100447885C (en) 2008-12-31

Family

ID=34794546

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100462204A Expired - Fee Related CN100447885C (en) 2003-10-16 2004-05-31 Method for handling data fault and retry in writing/reading a hard disk

Country Status (1)

Country Link
CN (1) CN100447885C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5113670B2 (en) * 2007-10-05 2013-01-09 ルネサスエレクトロニクス株式会社 Recording modulation circuit, recording modulation method, optical disc apparatus, and optical disc recording method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5161136A (en) * 1988-03-14 1992-11-03 Ricoh Company, Ltd. Servo error detecting method of an optical disc system
JPH0877729A (en) * 1994-08-31 1996-03-22 Matsushita Electric Ind Co Ltd Disk reproducing device
JPH09185824A (en) * 1997-01-09 1997-07-15 Sony Corp Optical disk data recording method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5161136A (en) * 1988-03-14 1992-11-03 Ricoh Company, Ltd. Servo error detecting method of an optical disc system
JPH0877729A (en) * 1994-08-31 1996-03-22 Matsushita Electric Ind Co Ltd Disk reproducing device
JPH09185824A (en) * 1997-01-09 1997-07-15 Sony Corp Optical disk data recording method

Also Published As

Publication number Publication date
CN1607599A (en) 2005-04-20

Similar Documents

Publication Publication Date Title
CN100520947C (en) Defect management method for optical disk and optical disk device
JPS6149743B2 (en)
JPH0773602A (en) Optical disk device
US7099250B2 (en) Information recording and reproducing method and information recording and reproducing device
CN100447885C (en) Method for handling data fault and retry in writing/reading a hard disk
US6701465B1 (en) Method and apparatus for management of defect information in a disk system
US20090251817A1 (en) Data error recovery using voting on multiple retrials
US6771444B2 (en) Method and apparatus for implementing adaptive reordering of data recovery procedure steps in a disk drive
TWI354275B (en) Random access control method and optical disc
US7555598B2 (en) RAID systems and setup methods thereof that integrate several RAID 0 architectures
US6842411B2 (en) Optical disc driver and data recording method therefor
US20040100712A1 (en) Handling data fault and retry in writing/reading data to/from a disk
JP2007035190A (en) Optical disk reproducing device, data reproducing method, program, and computer readable recording medium
JP2008310752A (en) Error verification method in disk array unit, error verification program, and error verification unit
JPH024075B2 (en)
JP2595316B2 (en) Alternate assignment processing method
JP3870024B2 (en) Information recording apparatus and information recording method
JPS5940309A (en) Memory controller
JPH09161415A (en) Control method for magnetic tape apparatus
JPS59105160A (en) Floppy disk controller
US20050280914A1 (en) Retry reordering in hard disk drives
JPH11327808A (en) Retry controller for external storage device controller
JPH04285773A (en) External storage device
JPH02254679A (en) System for recording and reproducing information
JPH0384778A (en) Data check retrial system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081231