Embodiments of the invention increase the probability of error recovery in
error recovery processing. When a reset command is received during an
error recovery procedure (ERP), a timer is started in response to the
reset command. From the time at which the reset command has been received
until the predetermined time prescribed by the timer passes, the ERP step
is continued. After the timer expires, the ERP processing stops on the
completion of an ERP step M. Additionally, a HDD returns to a host a
reset ready, which represents the completion of the reset. Since the ERP
is continued even after the reset command is received, it is possible to
increase the probability of error recovery.