Abstract: A system and method are described for avoiding catastrophic error sequences in a media code sequence of symbols for data storage on a storage medium according to EPRML. The system and method includes modulation encoding user data which is to be stored on the storage medium using a modulation encoder. The modulation encoder outputs a channel code modulation output symbol sequence. The modulation code is defined according to a modulation criteria wherein the set of all possible modulation output symbol sequences is constrained in a manner which excludes certain excluded modulation output symbol sequences. A precoder precodes the channel code modulation output symbol sequence according to a precoding transfer function.