Memory formatting method, memory controller, and memory storage apparatus
First Claim
1. A memory formatting method for a memory storage apparatus, wherein the memory storage apparatus has a rewritable non-volatile memory module, and the rewritable non-volatile memory module has a plurality of physical blocks, the memory formatting method comprising:
- configuring a plurality of logical block addresses for mapping to a portion of the physical blocks;
generating a first file system data and a second file system data according to a size of the logical block addresses at initial partition of the logical block addresses;
storing the first file system data into at least one first physical block among the physical blocks, wherein the at least one first physical block is mapped to at least one first logical block address among the logical block addresses, wherein the first file system data is updated if data is written to the logical block addresses;
selecting at least one second physical block among the physical blocks;
storing the second file system data into the at least one second physical block;
determining whether a format command is received from a host system; and
when the format command is received from the host system, re-mapping the at least one first logical block address to the at least one second physical block,wherein before the step of re-mapping the at least one first logical block address to the at least one second physical block, the second file system data is not updated if data is written to the logical block addresses, andwherein after the step of remapping the at least one first logical block address to the at least one second physical block, the second file system data is updated if data is written to the logical block addresses.
1 Assignment
0 Petitions
Accused Products
Abstract
A memory formatting method adapted to a memory storage apparatus is provided. The memory formatting method includes configuring a plurality of logical block addresses to be mapped to a portion of a plurality of physical blocks, generating a first file system data and a second file system data according to the size of the logical block addresses, and storing the first file system data into a first physical block, and the first physical block is mapped to a first logical block address among the logical block addresses. The memory formatting method also includes selecting a second physical block among the physical blocks, storing the second file system data into the second physical block, determining whether a format command is received, and when the format command is received, re-mapping the first logical block address to the second physical block.
-
Citations
21 Claims
-
1. A memory formatting method for a memory storage apparatus, wherein the memory storage apparatus has a rewritable non-volatile memory module, and the rewritable non-volatile memory module has a plurality of physical blocks, the memory formatting method comprising:
-
configuring a plurality of logical block addresses for mapping to a portion of the physical blocks; generating a first file system data and a second file system data according to a size of the logical block addresses at initial partition of the logical block addresses; storing the first file system data into at least one first physical block among the physical blocks, wherein the at least one first physical block is mapped to at least one first logical block address among the logical block addresses, wherein the first file system data is updated if data is written to the logical block addresses; selecting at least one second physical block among the physical blocks; storing the second file system data into the at least one second physical block; determining whether a format command is received from a host system; and when the format command is received from the host system, re-mapping the at least one first logical block address to the at least one second physical block, wherein before the step of re-mapping the at least one first logical block address to the at least one second physical block, the second file system data is not updated if data is written to the logical block addresses, and wherein after the step of remapping the at least one first logical block address to the at least one second physical block, the second file system data is updated if data is written to the logical block addresses. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A memory controller for controlling a rewritable non-volatile memory module of a memory storage apparatus, wherein the rewritable non-volatile memory module has a plurality of physical blocks, the memory controller comprising:
-
a host interface, configured to couple to a host system; a memory interface, configured to couple to the rewritable non-volatile memory module; and a memory management circuit, coupled to the host interface and the memory interface, wherein the memory management circuit is configured to configure a plurality of logical block addresses for mapping to a portion of the physical blocks, wherein the memory management circuit is further configured to generate a first file system data and a second file system data according to a size of the logical block addresses at initial partition of the logical block addresses and store the first file system data into at least one first physical block among the physical blocks, wherein the at least one first physical block is mapped to at least one first logical block address among the logical block addresses, and wherein the first file system data is updated if data is written to the logical block addresses, wherein the memory management circuit is further configured to select at least one second physical block among the physical blocks and store the second file system data into the at least one second physical block, wherein the memory management circuit is further configured to determine whether a format command is received from the host system, and when the format command is received from the host system, the memory management circuit is further configured to re-map the at least one first logical block address to the at least one second physical block, wherein before the at least one first logical block address is re-mapped to the at least one second physical block, the second file system data is not updated if data is written to the logical block addresses, and wherein after the at least one first logical block address is re-mapped to the at least one second physical block, the second file system data is updated if data is written to the logical block addresses. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A memory storage apparatus, comprising:
-
a connector, configured to couple to a host system; a rewritable non-volatile memory module, having a plurality of physical blocks; and a memory controller, coupled to the connector and the rewritable non-volatile memory module, wherein the memory controller is configured to configure a plurality of logical block addresses for mapping to a portion of the physical blocks, wherein the memory controller is further configured to generate a first file system data and a second file system data according to a size of the logical block addresses at initial partition of the logical block addresses and store the first file system data into at least one first physical block among the physical blocks, wherein the at least one first physical block is mapped to at least one first logical block address among the logical block addresses, and wherein the first file system data is updated when data is written to the logical block addresses, wherein the memory controller is further configured to select at least one second physical block among the physical blocks and store the second file system data into the at least one second physical block, wherein the memory controller is further configured to determine whether a format command is received from the host system, and when the format command is received from the host system, the memory controller is further configured to re-map the at least one first logical block address to the at least one second physical block, wherein before the at least one first logical block address is re-mapped to the at least one second physical block, the second file system data is not updated when data is written to the logical block addresses, and wherein after the at least one first logical block address is re-mapped to the at least one second physical block, the second file system data is updated when data is written to the logical block addresses. - View Dependent Claims (16, 17, 18, 19, 20, 21)
-
Specification