A method for logically rejecting previously recorded track residue from
magnetic media is presented. A session ID unique to a given recording
session is encoded into track packet error check and error correction
codes but is not itself actually written to tape. During a data recovery
session, a reference session ID for the original recording session is
acquired by reconstructing the packet session ID from the first few track
packets and verifying that a predetermined number of consecutive track
packets have identical packet session IDs. Once the reference packet
session ID is acquired, it is preloaded into error detection and
correction hardware. When a residue track encoded with a previously
recorded session ID is recovered by the tape drive track packet detection
circuitry, it is inherently rejected because the error detection and
correction hardware detects an error and it is therefore never allowed
into the data buffer.