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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 