Patent ID: 8631263

Claim:
An information processing apparatus, which is connectable to a first kind of storage unit or a second kind of storage unit, the number of times of power-on/off of the first kind of storage unit being recorded at a time when a head of the storage unit is retracted, the number of times of power-on/off of the second kind of storage unit being recorded at a time when the second kind of storage unit is turned off, comprising: a processing unit; a storage unit, wherein the information processing apparatus has a plurality of power modes which includes a first power mode, a second power mode, and a third power mode, wherein the processing unit and the storage unit are in a power-on state in the first power mode, the processing unit is in a power-off state and the storage unit is in the power-on state in the second power mode, and the processing unit and the storage unit are in the power-off state in the third power mode; and a determination unit configured to determine the kind of the storage unit connected to the information processing apparatus, wherein, in a case that the determination unit determines that the storage unit is the first kind of storage unit, the processing unit does not issue a head retracting command to the storage unit when the information processing apparatus shifts to the second power mode, and issues the head retracting command to the storage unit when the information processing apparatus shifts to the third power mode, and the information processing apparatus shifts to the third power mode via the first power mode when a condition for shifting to the third power mode is satisfied in the second power mode, and wherein, in a case that the determination unit determines that storage unit is the second kind of storage unit, the processing unit issues the head retracting command to the storage unit when the information processing apparatus shifts to the second power mode, and does not issues the head retracting command to the storage unit when the information processing apparatus shifts to the third power mode, and the information processing apparatus shifts to the third power mode not via the first power mode when a condition for shifting to the third power mode is satisfied in the second power mode.