CN110333971B - SSD bad block table backup method and device, computer equipment and storage medium - Google Patents

SSD bad block table backup method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110333971B
CN110333971B CN201910621249.7A CN201910621249A CN110333971B CN 110333971 B CN110333971 B CN 110333971B CN 201910621249 A CN201910621249 A CN 201910621249A CN 110333971 B CN110333971 B CN 110333971B
Authority
CN
China
Prior art keywords
block
bad block
bad
super
backup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910621249.7A
Other languages
Chinese (zh)
Other versions
CN110333971A (en
Inventor
杨学森
郑春阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Shenzhen Union Memory Information System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Union Memory Information System Co Ltd filed Critical Shenzhen Union Memory Information System Co Ltd
Priority to CN201910621249.7A priority Critical patent/CN110333971B/en
Publication of CN110333971A publication Critical patent/CN110333971A/en
Application granted granted Critical
Publication of CN110333971B publication Critical patent/CN110333971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention relates to a method, a device, computer equipment and a storage medium for SSD bad block table backup, wherein the method comprises the steps of obtaining the backup of a bad block table to obtain a bad block backup table; dividing a bad block backup table to obtain a plurality of pieces of bad block information; and storing the information of the bad blocks in the appointed positions of the storage blocks. According to the invention, all the storage blocks are divided to form a plurality of super blocks, and then the whole bad block backup table is divided and then is dispersedly stored in the standby area appointed by each super block, so that even if the bad block table is damaged, the bad block backup table can be restored by traversing all the super blocks, the bad block table can be safely backed up, and the normal work of the whole SSD is ensured.

Description

SSD bad block table backup method and device, computer equipment and storage medium
Technical Field
The invention relates to a solid state disk, in particular to a method and a device for backing up a bad block table of an SSD, a computer device and a storage medium.
Background
During the card opening process of the SSD (Solid State Drive) and during normal operation, bad blocks are generated and are recorded on a table, namely a bad block table. The bad block table is used for judging whether the storage block is good, normal and can be used, and plays a vital role in normal work of the SSD, the bad block table can be stored on the Nand flash memory in real time, if the bad block table is damaged or lost due to some abnormal reasons, the good or bad of the storage block cannot be distinguished in the process that the SSD uses the storage block, and data consistency errors can be caused, so that in order to prevent the bad block table on the Nand flash memory from being damaged, the SSD generally makes one or two backups for the bad block table, and stores the bad block table in different positions of the Nand flash memory. If the original bad block table is damaged, the original bad block table can be restored through backup.
The existing backup method is to store the bad block table and the backup distribution thereof on two to three storage blocks of the Nand flash memory, and if the storage blocks recording the bad block table are damaged all by chance, the bad block table is lost.
Therefore, it is necessary to design a new method for implementing a safer backup of the bad block table.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a device for backing up a bad block table of an SSD, a computer device and a storage medium.
In order to achieve the purpose, the invention adopts the following technical scheme: the SSD bad block table backup method comprises the following steps:
obtaining a backup of the bad block table to obtain a bad block backup table;
dividing a bad block backup table to obtain a plurality of pieces of bad block information;
and storing the information of the bad blocks in the appointed positions of the storage blocks.
The further technical scheme is as follows: before the bad block backup table is divided to obtain a plurality of pieces of bad block information, the method comprises the following steps:
and performing block division on all storage blocks in the solid state disk according to a specified rule to obtain a plurality of super blocks.
The further technical scheme is as follows: the specified rule comprises a rule that a group of storage blocks which can be read and written in parallel is used as a super block.
The further technical scheme is as follows: the dividing of the bad block backup table to obtain a plurality of pieces of bad block information includes:
and dividing the bad block backup table into a plurality of bad block backup sub-tables according to the super blocks so as to obtain a plurality of pieces of bad block information.
The further technical scheme is as follows: the storing of the information of the bad blocks in the designated positions of the storage blocks comprises:
when any super block is written, obtaining bad block information corresponding to the super block;
and writing the bad block information corresponding to the super block into a spare area on a first storage page of a first storage block of the super block.
The further technical scheme is as follows: after the information of the bad blocks is stored in the designated positions of the storage blocks, the method further comprises the following steps:
judging whether the bad block table is damaged or not;
if yes, reading out corresponding bad block information from the spare area on the first storage page of the first storage block of each super block;
and splicing all the bad block information to obtain a bad block standby table.
The invention also provides a SSD bad block table backup device, which comprises:
the backup obtaining unit is used for obtaining the backup of the bad block table to obtain the bad block backup table;
the backup table dividing unit is used for dividing the bad block backup table to obtain a plurality of pieces of bad block information;
and the storage unit is used for storing the information of the bad blocks in the appointed positions of the storage blocks.
The further technical scheme is as follows: the memory cell includes:
the information acquisition subunit is used for acquiring the bad block information corresponding to the super block when any super block is written;
and the information writing subunit is used for writing the bad block information corresponding to the super block into a spare area on a first storage page of a first storage block of the super block.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the method when executing the computer program.
The invention also provides a storage medium storing a computer program which, when executed by a processor, is operable to carry out the method as described above.
Compared with the prior art, the invention has the beneficial effects that: according to the invention, all the storage blocks are divided to form a plurality of super blocks, and then the whole bad block backup table is divided and then is dispersedly stored in the standby area appointed by each super block, so that even if the bad block table is damaged, the bad block backup table can be restored by traversing all the super blocks, the bad block table can be safely backed up, and the normal work of the whole SSD is ensured.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a SSD bad block table backup method according to an embodiment of the present invention;
fig. 2 is a schematic sub-flow chart of a SSD bad block table backup method according to an embodiment of the invention;
FIG. 3 is a diagram illustrating bad block information storage according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for backing up a bad block table of an SSD according to another embodiment of the invention;
FIG. 5 is a schematic block diagram of an SSD bad block table backup device according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a storage unit of an SSD bad block table backup device according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of an SSD bad block table backup device according to another embodiment of the present invention;
FIG. 8 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic flowchart of an SSD bad block table backup method according to an embodiment of the invention. The SSD bad block table backup method is applied to equipment with a solid state disk.
Fig. 1 is a flowchart illustrating a method for backing up a bad block table of an SSD according to an embodiment of the present invention. As shown in fig. 1, the method includes the following steps S110 to S140.
S110, obtaining the backup of the bad block table to obtain the bad block backup table.
In the present embodiment, the bad block backup table is a backup table of the bad block table.
And S120, dividing all storage blocks in the solid state disk into blocks according to a specified rule to obtain a plurality of super blocks.
The specified rule includes a rule that a group of storage blocks which can be read and written in parallel is used as a super block.
The Nand flash memory is composed of a plurality of memory blocks, each memory block comprises a plurality of memory pages, each memory page is divided into a spare area and a main area, the main area stores user data, the spare area generally stores system management data of the SSD, and a bad block table can be stored in the spare area.
In this embodiment, a super block refers to a group of memory blocks that can be read and written in parallel. In the SSD, all the memory blocks may be divided into a plurality of super blocks according to the property of being concurrently readable and writable.
S130, dividing the bad block backup table to obtain a plurality of pieces of bad block information.
The bad block information refers to information of each cell divided according to a certain division rule.
Specifically, in this embodiment, the bad block backup table is divided into a plurality of bad block backup sub-tables according to the super block, so as to obtain a plurality of pieces of bad block information.
Each super block may have a bad block inside, that is, each super block has a bad block table for recording its own bad block information, which is called the bad block information of the super block, that is, the bad block table of the super block.
And S140, storing the information of the bad blocks in the appointed positions of the storage blocks.
In an embodiment, referring to fig. 2, the step S140 may include steps S141 to S142.
S141, when any super block is written, bad block information corresponding to the super block is obtained;
and S142, writing the bad block information corresponding to the super block into a spare area on a first storage page of a first storage block of the super block.
As shown in fig. 3, in the bad block backup table, the bad block table of superblock 0 is denoted as SB _ table0, which corresponds to the information in the first cell in the whole bad block backup table, and so on. When the bad block tables of all the superblocks are spliced together, the table is a complete bad block table of the SSD.
The bad block backup table is divided into bad block information of a segment of the super block. The bad block information of each super block records the bad block information inside the corresponding super block. When writing any super block is started, the corresponding bad block information is written into the spare area on the first storage page of the first storage block of the super block. In FIG. 1, SB _ table0 in the bad block backup table is stored in the spare area of the first page of the first memory block of superblock 0, and so on. The whole bad block backup table is dispersedly stored in the standby area of each group of super blocks which can be read and written in parallel, and the bad block backup table can be recovered by traversing all the super blocks under the condition that the bad block table is damaged, so that the better and safer bad block table backup is realized.
According to the SSD bad block table backup method, all the storage blocks are divided to form a plurality of super blocks, the whole bad block backup table is divided and then is dispersedly stored in the standby area appointed by each super block, even if the bad block table is damaged, the bad block standby table can be restored in a mode of traversing all the super blocks, the bad block table can be safely backed up, and the normal work of the whole SSD is ensured.
Fig. 4 is a flowchart illustrating a method for backing up a bad block table of an SSD according to another embodiment of the invention. As shown in fig. 4, the SSD bad block table backup method of the present embodiment includes steps S210 to S270. Steps S210 to S240 are similar to steps S110 to S140 in the above embodiments, and are not described herein again. The added steps S260 to S270 in the present embodiment are explained in detail below.
S250, judging whether the bad block table is damaged or not;
s260, if yes, reading out corresponding bad block information from a spare area on a first storage page of a first storage block of each super block;
s270, splicing all bad block information to obtain a bad block standby table;
if not, the process returns to the step S250.
In the process of recovering the bad block table by the SSD, if the bad block table is damaged, the backup of the bad block table needs to be recovered. The method has the advantages that internal bad block information is read from the first storage page of the first storage block of each super block by traversing all the super blocks, and then the bad block tables of all the super blocks are spliced together according to the sequence of the super blocks to form a complete bad block table, so that the operation is convenient.
Fig. 5 is a schematic block diagram of an SSD bad block table backup device 300 according to an embodiment of the present invention. As shown in fig. 5, the present invention further provides an SSD bad block table backup device 300 corresponding to the above SSD bad block table backup method. The SSD bad block table backup apparatus 300 includes a unit for executing the above-described SSD bad block table backup method, and the apparatus may be configured in a device with a solid state disk.
Specifically, referring to fig. 5, the SSD bad block table backup device 300 includes:
a backup obtaining unit 301, configured to obtain a backup of the bad block table to obtain a bad block backup table;
a backup table dividing unit 303, configured to divide the bad block backup table to obtain information of a plurality of bad blocks;
and the storage unit 304 is used for storing the information of the bad blocks in the appointed positions of the storage blocks.
In an embodiment, the apparatus further includes:
a storage block dividing unit 302, configured to perform block division on all storage blocks in the solid state disk according to a specified rule to obtain multiple super blocks
In one embodiment, as shown in fig. 6, the storage unit 304 includes an information obtaining subunit 3041 and a writing subunit 3042.
An information obtaining subunit 3041, configured to obtain, when writing any super block, bad block information corresponding to the super block;
a writing subunit 3042, configured to write the bad block information corresponding to the super block into a spare area on a first storage page of a first storage block of the super block.
Fig. 7 is a schematic block diagram of an SSD bad block table backup device 300 according to another embodiment of the invention. As shown in fig. 7, the SSD bad block table backup device 300 of this embodiment is added with a determining unit 305, a traversing unit 306 and a splicing unit 307 on the basis of the above embodiment.
A judging unit 305 for judging whether the bad block table is destroyed;
a traversal unit 306, configured to read out corresponding bad block information from a spare area on a first storage page of a first storage block of each super block if the first storage block is a spare area;
and a splicing unit 307, configured to splice all the bad block information to obtain a bad block standby table.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the SSD bad block table backup device 300 and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
The SSD bad block table backup apparatus 300 may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a device with a solid state disk.
Referring to fig. 8, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a SSD bad block table backup method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be enabled to execute a SSD bad block table backup method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration relevant to the present teachings and does not constitute a limitation on the computer device 500 to which the present teachings may be applied, and that a particular computer device 500 may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
obtaining a backup of the bad block table to obtain a bad block backup table;
dividing a bad block backup table to obtain a plurality of pieces of bad block information;
and storing the information of the bad blocks in the appointed positions of the storage blocks.
In an embodiment, before implementing the step of dividing the bad block backup table to obtain a plurality of pieces of bad block information, the processor 502 further implements the following steps:
and performing block division on all storage blocks in the solid state disk according to a specified rule to obtain a plurality of super blocks.
Wherein, the specified rule comprises a rule that a group of storage blocks which can be read and written in parallel is used as a super block.
In an embodiment, when the processor 502 implements the step of dividing the bad block backup table to obtain a plurality of pieces of bad block information, the following steps are specifically implemented:
and dividing the bad block backup table into a plurality of bad block backup sub-tables according to the super blocks so as to obtain a plurality of pieces of bad block information.
In an embodiment, when the processor 502 implements the step of storing the information of the bad blocks in the designated locations of the storage blocks, the following steps are specifically implemented:
when any super block is written, obtaining bad block information corresponding to the super block;
and writing the bad block information corresponding to the super block into a spare area on a first storage page of a first storage block of the super block.
In an embodiment, after the step of storing the bad block information in the storage blocks, the processor 502 further performs the following steps:
judging whether the bad block table is damaged or not;
if yes, reading out corresponding bad block information from the spare area on the first storage page of the first storage block of each super block;
and splicing all the bad block information to obtain a bad block standby table.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program, when executed by a processor, causes the processor to perform the steps of:
obtaining a backup of the bad block table to obtain a bad block backup table;
dividing a bad block backup table to obtain a plurality of pieces of bad block information;
and storing the information of the bad blocks in the appointed positions of the storage blocks.
In an embodiment, before the step of dividing the bad block backup table to obtain a plurality of pieces of bad block information is implemented by the processor by executing the computer program, the following steps are further implemented:
and performing block division on all storage blocks in the solid state disk according to a specified rule to obtain a plurality of super blocks.
Wherein, the specified rule comprises a rule that a group of storage blocks which can be read and written in parallel is used as a super block.
In an embodiment, when the processor executes the computer program to implement the step of dividing the bad block backup table to obtain a plurality of pieces of bad block information, the following steps are specifically implemented:
and dividing the bad block backup table into a plurality of bad block backup sub-tables according to the super blocks so as to obtain a plurality of pieces of bad block information.
In an embodiment, when the processor executes the computer program to implement the step of storing the information of the bad blocks in the designated locations of the storage blocks, the following steps are specifically implemented:
when any super block is written, obtaining bad block information corresponding to the super block;
and writing the bad block information corresponding to the super block into a spare area on a first storage page of a first storage block of the super block.
In an embodiment, after the step of storing the bad block information in the designated locations of the storage blocks is implemented by executing the computer program, the processor further implements the following steps:
judging whether the bad block table is damaged or not;
if yes, reading out corresponding bad block information from the spare area on the first storage page of the first storage block of each super block;
and splicing all the bad block information to obtain a bad block standby table.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

  1. The SSD bad block table backup method is characterized by comprising the following steps:
    obtaining a backup of the bad block table to obtain a bad block backup table;
    dividing a bad block backup table to obtain a plurality of pieces of bad block information;
    storing the information of the bad blocks in the appointed positions of the storage blocks;
    the dividing of the bad block backup table to obtain a plurality of pieces of bad block information includes:
    dividing the bad block backup table into a plurality of bad block backup sub-tables according to the super blocks to obtain a plurality of pieces of bad block information;
    the storing of the information of the bad blocks in the designated positions of the storage blocks comprises:
    when any super block is written, obtaining bad block information corresponding to the super block;
    writing the bad block information corresponding to the super block into a spare area on a first storage page of a first storage block of the super block;
    the bad block backup table is divided into bad block information of a section of super block, and the bad block information of each super block records the bad block information in the corresponding super block; when writing any super block is started, the corresponding bad block information is written into the spare area on the first storage page of the first storage block of the super block.
  2. 2. The SSD bad block table backup method of claim 1, wherein the dividing the bad block backup table to obtain the plurality of bad block information comprises:
    and performing block division on all storage blocks in the solid state disk according to a specified rule to obtain a plurality of super blocks.
  3. 3. The SSD bad block table backup method according to claim 2, wherein the specified rule comprises a rule that a group of memory blocks that can be read and written in parallel are one super block.
  4. 4. The SSD bad block table backup method according to any one of claims 1 to 3, wherein after the storing the plurality of bad block information in the designated locations of the plurality of storage blocks, further comprising:
    judging whether the bad block table is damaged or not;
    if yes, reading out corresponding bad block information from the spare area on the first storage page of the first storage block of each super block;
    and splicing all the bad block information to obtain a bad block standby table.
  5. An SSD bad block table backup apparatus, comprising:
    the backup obtaining unit is used for obtaining the backup of the bad block table to obtain the bad block backup table;
    the backup table dividing unit is used for dividing the bad block backup table to obtain a plurality of pieces of bad block information;
    the storage unit is used for storing the information of the bad blocks in the appointed positions of the storage blocks;
    further comprising: the storage block dividing unit is used for carrying out block division on all storage blocks in the solid state disk according to a specified rule so as to obtain a plurality of super blocks;
    the memory cell includes:
    the information acquisition subunit is used for acquiring the bad block information corresponding to the super block when any super block is written;
    an information writing subunit, configured to write the bad block information corresponding to the super block into a spare area on a first storage page of a first storage block of the super block;
    the bad block backup table is divided into bad block information of a section of super block, and the bad block information of each super block records the bad block information in the corresponding super block; when writing any super block is started, the corresponding bad block information is written into the spare area on the first storage page of the first storage block of the super block.
  6. 6. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method according to any of claims 1-4 when executing the computer program.
  7. 7. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 4.
CN201910621249.7A 2019-07-10 2019-07-10 SSD bad block table backup method and device, computer equipment and storage medium Active CN110333971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910621249.7A CN110333971B (en) 2019-07-10 2019-07-10 SSD bad block table backup method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910621249.7A CN110333971B (en) 2019-07-10 2019-07-10 SSD bad block table backup method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110333971A CN110333971A (en) 2019-10-15
CN110333971B true CN110333971B (en) 2021-08-17

Family

ID=68145927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910621249.7A Active CN110333971B (en) 2019-07-10 2019-07-10 SSD bad block table backup method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110333971B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110729014A (en) * 2019-10-17 2020-01-24 深圳忆联信息系统有限公司 Method and device for backing up erase count table in SSD (solid State disk) storage, computer equipment and storage medium
CN110837345A (en) * 2019-11-08 2020-02-25 杭州华澜微电子股份有限公司 Bad block table storage method and device
CN110865772A (en) * 2019-11-11 2020-03-06 深圳忆联信息系统有限公司 Method and device for protecting system data physical block erasure count value, computer equipment and storage medium
CN111026332B (en) * 2019-12-09 2024-02-13 深圳忆联信息系统有限公司 SSD bad block information protection method, SSD bad block information protection device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750213A (en) * 2012-06-18 2012-10-24 深圳市锐明视讯技术有限公司 Disc detecting and processing method and detecting and processing system
CN104750565A (en) * 2013-12-31 2015-07-01 重庆重邮信科通信技术有限公司 NAND bad block processing method and NAND flash memory device
CN104765695A (en) * 2015-04-03 2015-07-08 上海交通大学 NAND FLASH bad block management system and method
CN108804045A (en) * 2018-06-28 2018-11-13 郑州云海信息技术有限公司 A kind of bad block table method for building up and relevant apparatus
CN109918022A (en) * 2019-02-22 2019-06-21 山东华芯半导体有限公司 A kind of SSD opens card bad block table inheritance method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120102314A1 (en) * 2010-04-01 2012-04-26 Huizhou TCL Mobile Communications Co., Ltd. Smart phone system and booting method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750213A (en) * 2012-06-18 2012-10-24 深圳市锐明视讯技术有限公司 Disc detecting and processing method and detecting and processing system
CN104750565A (en) * 2013-12-31 2015-07-01 重庆重邮信科通信技术有限公司 NAND bad block processing method and NAND flash memory device
CN104765695A (en) * 2015-04-03 2015-07-08 上海交通大学 NAND FLASH bad block management system and method
CN108804045A (en) * 2018-06-28 2018-11-13 郑州云海信息技术有限公司 A kind of bad block table method for building up and relevant apparatus
CN109918022A (en) * 2019-02-22 2019-06-21 山东华芯半导体有限公司 A kind of SSD opens card bad block table inheritance method

Also Published As

Publication number Publication date
CN110333971A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN110333971B (en) SSD bad block table backup method and device, computer equipment and storage medium
CN105243109B (en) Data backup method and data processing system
CN109508148B (en) Metadata reconstruction method and device and computer readable storage medium
WO2022156369A1 (en) Storage block management information synchronous recording method and system, and terminal and storage medium
CN104866388B (en) Data processing method and device
CN111158858A (en) Cloning method and device of virtual machine and computer readable storage medium
CN110729014A (en) Method and device for backing up erase count table in SSD (solid State disk) storage, computer equipment and storage medium
CN110471625B (en) Bad block information protection method and device, computer equipment and storage medium
CN113641309A (en) Weak block identification method and device of SSD, computer equipment and storage medium
US20050262033A1 (en) Data recording apparatus, data recording method, program for implementing the method, and program recording medium
CN110865772A (en) Method and device for protecting system data physical block erasure count value, computer equipment and storage medium
CN108509154B (en) Method and device for dynamically recombining raid according to bad block distribution
CN108874318A (en) The data reconstruction method and solid state hard disk of solid state hard disk
WO2017012507A1 (en) Data recovery method and apparatus
CN111399774B (en) Data processing method and device based on snapshot under distributed storage system
CN110795155B (en) System starting method and device, electronic equipment and storage medium
CN114510375A (en) Flash chip data area dynamic sharing system and method
CN113535470A (en) Configuration backup method and device, electronic equipment and storage medium
CN110688071A (en) Data synchronization method and system for reducing data synchronization quantity
CN111857882A (en) Extensible SSD (solid State disk) firmware loading method and device, computer equipment and storage medium
CN111026332A (en) SSD bad block information protection method and device, computer equipment and storage medium
CN104572350A (en) Method and device for processing metadata
CN113031851B (en) Data snapshot method, device and equipment
CN105159804A (en) Method, device and equipment for processing data block
CN116741256A (en) Data restoration method, storage system and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant