In a particular embodiment, a controller is disclosed that is adapted to
control read/write access to a storage media. The controller includes
data corruption detection logic to reconstruct a logical block address
(LBA) lookup table from metadata stored at the storage media upon restart
and re-initialization after a power loss event. The controller further
includes duplicate conflict resolution logic to identify a valid data
block from multiple data blocks that refer to a single LBA. The duplicate
conflict resolution logic counts a first number of valid physical pages
and a second number of different sectors in each of the multiple data
blocks. The duplicate conflict resolution logic selects the valid data
block from the multiple data blocks based on at least one of the first
and second numbers.