Embodiments of the present invention relate to an apparatus, method and
computer readable medium for recovering from a failed or aborted outgoing
data transfer operation from a host device to a peripheral storage
device. In some embodiments, before the peripheral storage device is
corrupted by the failed outgoing data transfer operation, one or more
recovery data objects are stored on the host-side. After the peripheral
storage device is corrupted by the failed data transfer, the host device
responds to a subsequent coupling with the peripheral storage device by
repairing the corrupted peripheral storage device using one or more of
the host-side stored recovery data objects. Optionally, the host device
also restores the outgoing aborted or failed data transfer operation.