Unlock instant, AI-driven research and patent intelligence for your innovation.

File protection method and system based on file allocation table (FAT) file system, and memory

A file system and storage technology, applied in the storage field, can solve problems such as poor user experience, complex storage data write protection process, and low storage data security, and achieve the effect of improving security and simplifying the write protection process

Active Publication Date: 2015-04-29
ZHONGSHAN JIANGBOLONG ELECTRONICS CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide a file protection method, system and storage based on the FAT file system, aiming to solve the problems of low security of storage data, complicated process of writing protection of storage data, and poor user experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File protection method and system based on file allocation table (FAT) file system, and memory
  • File protection method and system based on file allocation table (FAT) file system, and memory
  • File protection method and system based on file allocation table (FAT) file system, and memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] In the file allocation table (FAT) file system, the logical disk of the memory is divided into five parts, followed by the master boot record area (MBR), the operating system boot record area (DBR), the file allocation table (FAT), and the file directory. Table (FDT) and data area (DATA area).

[0042]The MBR contains a series of parameters of the disk and a boot program. The main function of the disk boot program is to check whether the partition table is correct and guide the operating system on the partition with the activation flag after the system hardware completes the self-test, and give the control right to the startup program. DBR is the first sector that the operating system can directly access. It includes a boot program and a parameter record table of this partition called BPB (Bios Parameter Block). The File Allocation Table (FAT) file system is used to organize and manage files. Wherein, the FAT table records the usage of each cluster of the memory in se...

Embodiment 2

[0056] figure 2 The implementation process of the file protection method based on the FAT file system provided by the second embodiment of the present invention is shown, and the details are as follows:

[0057] In step S201, a disk formatting operation is performed on the storage.

[0058] In step S202, the file or folder requesting write protection is written into the cluster allocated for the file or folder in the memory, and the file allocation table where the entry of the last cluster storing the file or folder is located is obtained.

[0059] In step S203, the obtained entry value of the remaining entry of the sector where the file allocation table is located is set as the file end identifier, and the remaining entry corresponds to the unallocated cluster of the memory.

[0060] In step S204, obtain the file directory table where the write-protected file or folder corresponds to the directory entry, and set the content of the remaining bytes after the file or folder co...

Embodiment 3

[0070] Figure 3a , Figure 3b and Figure 3c An example of the file protection method based on the FAT file system provided by the third embodiment of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown.

[0071] Figure 3a In order to show the entry value of the corresponding entry in the FAT table of the cluster of memory occupied by the write-protected file, in the embodiment of the present invention, the files test1.doc, test2.mp3 and folder test3 are write-protected files, Use 16-bit binary numbers to represent the entry value of each entry. The Offset in the first column represents the offset relative to the starting address of the sector where the FAT table is located, and the first row represents the offset address. The intersection of the two The location is the entry value of the corresponding entry in the FAT table of the cluster occupied by the write-protected file store...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention is suitable for the technical field of storage, and provides a file protection method and a file protection system based on a file allocation table (FAT) file system, and a memory. The file protection method comprises the following steps of: performing disk formatting on the memory; writing a file or a file folder requesting for writing protection into a cluster distributed by the memory for the file or the file folder, and acquiring an FAT; setting a table value of a residual register item of a section, in which the FAT is positioned, as an end-of-file marker; acquiring a file catalog table, in which a catalog item corresponding to the file or the file folder is positioned, and setting the residual bytes of contents behind the catalog item corresponding to the file or the file folder in the section, in which the file catalog table is positioned, as ineffective character; and setting a main guide recording area of the memory, a guide recording area of an operating system, sectors corresponding to the FAT and the file catalog table and the cluster distributed by the memory for the file or the file folder requesting for writing protection as data writing protection areas. According to the method and the system, the writing protection processing flow for memory data is simplified, and the safety of the memory data is improved.

Description

technical field [0001] The invention belongs to the technical field of storage, and in particular relates to a file protection method, system and memory based on a FAT file system. Background technique [0002] Memory card is a memory device based on semiconductor flash memory, mainly including secure digital card (SD card) and smart media card (SM card), which have been widely used in portable devices, such as digital cameras, mobile phones, Personal Digital Assistant (PDA) and multimedia players, etc. [0003] At present, the protection of the data in the memory card can be realized by the write protection switch. When the write protection switch is turned off, the memory card will be protected, and only the data stored in the memory card can be read, and the data cannot be written. Operation to prevent data from being deleted or replaced by mistake, so as to protect the stored data, while most other memories cannot write-protect the data stored in the memory. Therefore, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30G06F21/60G06F21/78
Inventor 陈进光钟衍徽
Owner ZHONGSHAN JIANGBOLONG ELECTRONICS CO LTD