Electronic apparatus equipped with HDD, control method therefor, and storage medium
AssigneeCanon Kabushiki Kaisha
InventorNobuyasu Ito
Life of this patent
Estimating the term…
Abstract
An electronic apparatus which is capable of preventing loss of data in an HDD resulting from an instantaneous power failure. The electronic apparatus is equipped with the HDD that has a nonvolatile storage area and a volatile storage area in which data is temporarily held. A control unit executes a plurality of processes including a held data writing process in which the data held in the volatile storage area is written into the nonvolatile storage area, in a predetermined order according to an off instruction by a user. In a case where a stop of the power supply to the electronic apparatus is detected, the control unit executes the plurality of processes including the held data writing process in a different order from the predetermined order.
Claims11
An electronic apparatus comprising:
- a storage that has a nonvolatile storage area and a volatile storage area in which data is temporarily held;
- and
- a controller configured to execute a program causing the electronic apparatus to:
- in a case where an off instruction by the user is received, execute a plurality of processes including a held data writing process by which the storage writes the data held in the volatile storage area into the nonvolatile storage area in a predetermined order, after executing a standby immediate process for executing a process relating to power status of the electronic apparatus;
- in a case where it is detected that a power supply to the electronic apparatus is stopped without the off instruction by the user, execute the standby immediate process after executing the plurality of processes including the held data writing process;
- and
- in a case where it is detected that the power supply to the electronic apparatus is stopped without the off instruction by the user, after completion of the held data writing process, control the storage not to write new data into the volatile storage area.
A control method for an electronic apparatus equipped with a storage that has a nonvolatile storage area and a volatile storage area in which data is temporarily held, comprising:
- in a case where an off instruction by the user is received, executing a plurality of processes including a held data writing process by which the storage writes the data held in the volatile storage area into the nonvolatile storage area in a predetermined order, after executing a standby immediate process for executing a process relating to power status of the electronic apparatus;
- in a case where it is detected that the power supply to the electronic apparatus is stopped without the off instruction by the user, executing the standby immediate process after executing the plurality of processes including the held data writing process;
- and
- in a case where it is detected that a power supply to the electronic apparatus is stopped without the off instruction by the user, after completion of the held data writing process, control the storage not to write new data into the volatile storage area.
A non-transitory computer-readable storage medium storing a program for causing a computer to execute a control method for an electronic apparatus equipped with a storage that has a nonvolatile storage area and a volatile storage area in which data is temporarily held, the control method for the electronic apparatus comprising:
- in a case where an off instruction by the user is received, executing a plurality of processes including a held data writing process by which the storage writes the data held in the volatile storage area into the nonvolatile storage area in a predetermined order, after executing a standby immediate process for executing a process relating to power status of the electronic apparatus;
- in a case where it is detected that a power supply to the electronic apparatus is stopped without the off instruction by the user, executing the standby immediate process after executing the plurality of processes including the held data writing process;
- and
- in a case where it is detected that the power supply to the electronic apparatus is stopped without the off instruction by the user, after completion of the held data writing process, controlling the storage not to write new data into the volatile storage area.
Dependencies are inferred from the claim text.