Patent ID: 8611032

Claim:
A method of performing error correction in a shingled disk drive, comprising: writing data to a disk in a first radial direction using a head, the head moving according to a predetermined trajectory; and by a controller of the disk drive: receiving a signal indicating that the head has deviated from its predetermined trajectory while writing a current data sector to a first track of the disk; in response to the signal, determining a direction in which the head deviated from the predetermined trajectory; and when it is determined that the head deviated in the first radial direction, rewriting the current data sector to a second track located adjacent to the first track in the first radial direction; and when it is determined that the head deviated in a second radial direction substantially opposite to the first radial direction: rewriting one or more corrupted data sectors from a third track to the first track, the third track located adjacent to the first track in the second radial direction; and rewriting one or more data sectors from the first track to the second track.