Computer system
Abstract
A computer system is provided. The computer system includes a data storage device having a controller and a data storage unit connected to the controller, wherein the controller includes a firmware which defines a backup and recovery operation, and the data storage unit includes a first storage sector and a second storage sector. The first storage sector stores a backup file and has a resident program installed therein. The resident program is executed after the computer system is normally booted for periodically transmitting a handshake instruction to perform a handshaking with the controller. When the computer system is booted and a preset number that the controller does not receive the handshake instruction is reached within a preset time period, the firmware executes the backup and recovery operation to restore the backup file in the first storage sector through a cooperation between the first storage sector and the second storage sector.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A computer system, comprising:
a data storage device, comprising;
a controller comprising a firmware, wherein the firmware defines a backup and recovery operation; and
a data storage unit connected to the controller, comprising:
a first storage sector configured to manage a first storage space of the data storage unit and have a backup file stored therein, wherein a resident program is installed in the first storage sector, and the resident program is executed after the computer system is normally booted for periodically transmitting a handshake instruction to perform a handshaking with the controller, and wherein the first storage sector comprises a first mapping table for managing a plurality of first logical block addresses which correspond to a plurality of physical addresses of the first storage space, and the first storage sector is default for performing data writing and/or reading with a host, thereby writing data to the plurality of physical addresses of the first storage space according to the first mapping table; and
a second storage sector configured to manage a second storage space of the data storage unit, wherein the second storage sector comprises a second mapping table for managing a plurality of second logical block addresses which correspond to a plurality of physical addresses of the second storage space, and each of the plurality of second logical block addresses corresponds to a corresponding one of the plurality of first logical block addresses by having a preset shift of logical block address therebetween,
wherein when the computer system is booted and a preset number that the controller does not receive the handshake instruction transmitted by the resident program is reached within a preset time period, the firmware executes the backup and recovery operation to backup and restore the backup file in the first storage sector through a cooperation between the first storage sector and the second storage sector; and wherein the backup and recovery operation comprises steps of: performing a normal operation procedure, wherein during data writing, the second storage sector replaces the first storage sector to write data to at least one of the plurality of physical addresses of the second storage space according to the second mapping table, and during data reading, if a physical address which corresponds to one of the plurality of second logical block addresses has data stored therein, the controller reads data therefrom, and if a physical address which corresponds to one of the plurality of second logical block addresses does not have data stored therein, the controller shifts the one of the plurality of second logical block addresses corresponding thereto the preset shift of logical block address to refer back to the corresponding one of the plurality of first logical block addresses, so as to read data from a physical addresses corresponding to the corresponding one of the plurality of first logical block addresses; and performing a recovery procedure, wherein data stored in the plurality of physical addresses corresponding to the plurality of second logical block addresses are erased, and each of the plurality of second logical block addresses is shifted the preset shift of logical block address to refer back to the corresponding one of the plurality of first logical block addresses, so as to read data stored in a physical address corresponding to the corresponding one of the plurality of first logical block addresses.
2 . The computer system as claimed in claim 1 , wherein a storage capacity of the first storage space is equal to a storage capacity of the second storage space.
3 . The computer system as claimed in claim 1 , wherein the preset number is at least one.
4 . The computer system as claimed in claim 1 , wherein the preset number is a continuous accumulation number that the controller does not receive the handshake instruction transmitted by the resident program.Join the waitlist — get patent alerts
Track US2024354009A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.