Semiconductor memory card access apparatus, a computer-readable recording medium, an initialization method, and a semiconductor memory card
First Claim
1. An access apparatus for performing file access on a semiconductor memory card that has a memory area comprising of a plurality of sectors, by managing one or more sectors as a cluster, and managing one or more clusters as a file, some consecutive sectors in the memory area forming a block, a block being a smallest unit on which data erasure can be performed, the block size being the power of 2 of the cluster size, the access apparatus comprising:
- a calculation unit operable to calculate a size of volume management information based on a number of clusters in the memory area that are to be managed, the volume management information including a master boot record, a partition table, partition boot sector information, and a file allocation table that indicates, for each file, links between clusters corresponding to the file;
a reserving unit operable to reserve (1) a first area for recording the volume management information, and (2) a second area for recording user data, the first area being formed from blocks that are each larger in size than the calculated size of the volume management information, and the second area being formed from blocks following the first area; and
a recording unit operable to record volume management information in the first area, and user data in the second area, wherein the recording unit is operable to record the master boot record and the partition table in a first sector of a first block in the first area and record the partition boot sector information, the file allocation table, and the predetermined number of reserved sectors which is used for padding of the first area, in order that a size of the first area is an integral multiple of the block size.
0 Assignments
0 Petitions
Accused Products
Abstract
A predetermined number of erasable blocks positioned at a start of a volume area in a semiconductor memory card are provided so as to include volume management information. A user area following the volume management information includes a plurality of clusters. A data length NOM of an area from a master boot record & partition table sector to a partition boot sector is determined so that the plurality of clusters in the user area are not arranged so as to straddle erasable block boundaries. Since cluster boundaries and erasable block boundaries in the user area are aligned, there is no need to perform wasteful processing in which two erasable blocks are erased to rewrite one cluster.
22 Citations
19 Claims
-
1. An access apparatus for performing file access on a semiconductor memory card that has a memory area comprising of a plurality of sectors, by managing one or more sectors as a cluster, and managing one or more clusters as a file, some consecutive sectors in the memory area forming a block, a block being a smallest unit on which data erasure can be performed, the block size being the power of 2 of the cluster size, the access apparatus comprising:
-
a calculation unit operable to calculate a size of volume management information based on a number of clusters in the memory area that are to be managed, the volume management information including a master boot record, a partition table, partition boot sector information, and a file allocation table that indicates, for each file, links between clusters corresponding to the file;
a reserving unit operable to reserve (1) a first area for recording the volume management information, and (2) a second area for recording user data, the first area being formed from blocks that are each larger in size than the calculated size of the volume management information, and the second area being formed from blocks following the first area; and
a recording unit operable to record volume management information in the first area, and user data in the second area, wherein the recording unit is operable to record the master boot record and the partition table in a first sector of a first block in the first area and record the partition boot sector information, the file allocation table, and the predetermined number of reserved sectors which is used for padding of the first area, in order that a size of the first area is an integral multiple of the block size. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A recording medium storing a program in a computer-readable format for causing a computer to perform file access on a semiconductor memory card that has a memory area comprising of a plurality of sectors, by managing one or more sectors as a cluster, and managing one or more clusters as a file, some consecutive sectors in the memory area forming a block, a block being a smallest unit on which data erasure can be performed, the block size being the power of 2 of the cluster size, the recording medium having the computer perform the following steps of:
-
calculating a size of volume management information based on a number of clusters in the memory area that are to be managed, the volume management information including a master boot record, a partition table, partition boot sector information, and a file allocation table that indicates, for each file, links between clusters corresponding to the file;
reserving (1) a first area for recording the volume management information, and (2) a second area for recording user data, the first area being formed from blocks that are each larger in size than the calculated size of the volume management information, and the second area being formed from blocks following the first area; and
recording volume management information in the first area, and user data in the second area, wherein the recording step records the master boot record and the partition table in a first sector of a first block in the first area and records the partition boot sector information, the file allocation table, and the predetermined number of reserved sectors which is used for padding of the first area, in order that a size of the first area is an integral multiple of the block size. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
-
17. An initialization method for initializing a computer to perform file access on a semiconductor memory card that has a memory area comprising of a plurality of sectors, by managing one or more sectors as a cluster, and managing one or more clusters as a file, some consecutive sectors in the memory area forming a block, a block being a smallest unit on which data erasure can be performed, the block size being the power of 2 of the cluster size, the initialization method comprising the steps of:
-
calculating a size of volume management information based on a number of clusters in the memory area that are to be managed, the volume management information including a master boot record, a partition table, partition boot sector information, and a file allocation table that indicates, for each file, links between clusters corresponding to the file;
reserving (1) a first area for recording the volume management information, and (2) a second area for recording user data, the first area being formed from blocks that are each larger in size than the calculated size of the volume management information, and the second area being formed from blocks following the first area; and
recording volume management information in the first area, and user data in the second area, wherein the recording step records the master boot record and the partition table in a first sector of a first block in the first area and records the partition boot sector information, the file allocation table, and the predetermined number of reserved sectors which is used for padding of the first area, in order that a size of the first area is an integral multiple of the block size.
-
-
18. A semiconductor memory card that has a memory area that has a memory area comprising of a plurality of sectors, by managing one or more sectors as a cluster, and managing one or more clusters as a file, some consecutive sectors in the memory area forming a block, a block being a smallest unit on which data erasure can be performed, the block size being the power of 2 of the cluster size, the semiconductor memory card comprising:
-
a first area for recording volume management information; and
a second area, being formed from sectors following the first area, for recording user data;
the volume management information including a master boot record, a partition table, partition boot sector information, and a file allocation table that indicates, for each file, links between clusters corresponding to the file, the master boot record and the partition table are recorded in a first sector of a first block in the first area; and
the partition boot sector information, the file allocation table, and the predetermined number of reserved sectors, which is used for padding of the first area, are recorded in subsequent sectors in order that a size of the first area is an integral multiple of the block size.
-
-
19. A semiconductor memory card having a memory area that includes (1) a protected area that can only be accessed by a device connected to the semiconductor card once an authenticity of the connected device has been verified, and (2) a user data area that can be accessed by the connected device regardless of whether or not the authenticity of the connected device has been verified, the protected area and the user data area including a plurality of sectors, and managing one or more sectors as a cluster, and one or more clusters as a file, some consecutive sectors forming a block, a block being a smallest unit on which data erasure can be performed, the block size being the power of 2 of the cluster size, and at least one of the protected area and the user data area including:
-
a first area for recording volume management information; and
a second area, being formed from sectors following the first area, for recording user data;
the volume management information including a master boot record, a partition table, partition boot sector information, and a file allocation table that indicates, for each file, links between clusters corresponding to the file, the master boot record and the partition table are recorded in a first sector of a first block in the first area; and
the partition boot sector information, the file allocation table, and the predetermined number of reserved sectors, which is used for padding of the first area, are recorded in subsequent sectors in order that a size of the first area is an integral multiple of the block size.
-
Specification