CN114925030A - File system configuration method and device, computer equipment and storage medium - Google Patents

File system configuration method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114925030A
CN114925030A CN202210649216.5A CN202210649216A CN114925030A CN 114925030 A CN114925030 A CN 114925030A CN 202210649216 A CN202210649216 A CN 202210649216A CN 114925030 A CN114925030 A CN 114925030A
Authority
CN
China
Prior art keywords
file
address
partition
image file
mirror image
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.)
Pending
Application number
CN202210649216.5A
Other languages
Chinese (zh)
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.)
KINCO AUTOMATION (SHANGHAI) Ltd
Original Assignee
KINCO AUTOMATION (SHANGHAI) 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 KINCO AUTOMATION (SHANGHAI) Ltd filed Critical KINCO AUTOMATION (SHANGHAI) Ltd
Priority to CN202210649216.5A priority Critical patent/CN114925030A/en
Publication of CN114925030A publication Critical patent/CN114925030A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Abstract

The embodiment of the invention discloses a file system configuration method, a device, computer equipment and a storage medium, wherein the file system configuration method comprises the following steps: configuring a mirror image file comprising a system partition file and a system file to be burned; when the analyzed address of the mirror image file is the address of the system partition file, analyzing the mirror image file to obtain the system partition file, and storing the system partition file to the storage device; when the analyzed address of the mirror image file is the address of the system file to be burned, analyzing the mirror image file to obtain the system file to be burned, and burning the system file to be burned to the burning address of the computer equipment; and acquiring the system partition file stored in the storage device, and configuring a partition table corresponding to the system partition file. And configuring a mirror image file with a preset format according to the requirement, and analyzing the mirror image file to realize extensible burning of the file system. And the burning module does not need to be synchronously modified, so that the application flexibility of the equipment is improved.

Description

File system configuration method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of system expansion, and in particular, to a file system configuration method and apparatus, a computer device, and a storage medium.
Background
The burning is also called burning, and data is burned into a processor, a burning card and other media of the device through a burning machine and other tools. Usually, different file systems, such as EXT4 file systems, need to be burned in the development process of the device. Meanwhile, in the initial stage of device development, a partition table for partitioning a disk of a system needs to be configured, and the partition is used for storing data required by device operation.
After the file system of the device finishes burning, each partition can not be modified randomly. When the partition size of the file system needs to be modified and/or the file system needs to be increased or decreased for the device, the burning module in the device (starting loading) needs to be modified synchronously. The file system of the device cannot freely increase or decrease the number and cannot arbitrarily modify the size of the partition, so that the application flexibility of the device is low.
Disclosure of Invention
In view of the defects in the prior art, embodiments of the present application aim to provide a file system configuration method, an apparatus, a computer device, and a storage medium, so as to solve the problem of low application flexibility of a device.
In a first aspect, an embodiment of the present invention provides a file system configuration method, applied to a computer device, the method including:
configuring a mirror image file comprising a system partition file and a system file to be burned, wherein the system partition file and the system file to be burned are sequentially arranged in the mirror image file;
when the analyzed address of the mirror image file is the address of the system partition file, analyzing the mirror image file to obtain the system partition file, and storing the system partition file into a storage device, wherein the computer device is connected with the storage device;
when the analyzed address of the mirror image file is the address of the system file to be burned, analyzing the mirror image file to obtain the system file to be burned, and burning the system file to be burned to the burning address of the computer equipment;
and acquiring the system partition file stored in the storage device, and configuring a partition table corresponding to the system partition file.
With reference to the first aspect, in a first possible implementation manner, the system file to be burned includes N system image files and size information of each system image file, and when an analyzed address of the image file is an address of the system file to be burned, the image file is analyzed to obtain the system file to be burned, and the system file to be burned is burned to a burning address of the computer device, including:
when the analysis address of the mirror image file is the address of the size information of the Mth system mirror image file, analyzing the mirror image file to obtain the size information of the Mth system mirror image file, wherein M takes values from 1 to N in sequence;
when the analyzed address of the mirror image file is the address of the Mth system mirror image file, the mirror image file is analyzed to obtain the Mth system mirror image file, and the Mth system mirror image file is burnt to the burning address of the computer equipment.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the system partition file includes size information of a system partition, and when an analyzed address of the image file is an address of the mth system image file, the analyzing the image file to obtain the mth system image file, and before burning the mth system image file to the burning address of the computer device, the method further includes:
when the analysis address of the mirror image file is the address of the size information of the system partition, analyzing the mirror image file to obtain the size information of the system partition;
when the resolved address of the image file is the address of the mth system image file, resolving the image file to obtain the mth system image file, and burning the mth system image file to the burning address of the computer device, the method further includes:
inquiring the size information of the system partition to obtain the partition size of the Mth system image file;
and updating the burning address based on the partition size of the Mth system image file.
With reference to the first aspect, in a third possible implementation manner, the mirroring file further includes a mirroring end identifier, and the system partition file, the system file to be burned, and the mirroring end identifier are sequentially arranged, where the acquiring the system partition file stored in the storage device and configuring a partition table corresponding to the system partition file includes:
and when the analyzed address of the image file is the address of the image ending identifier, acquiring a system partition file stored in the storage device, and configuring a partition table corresponding to the system partition file.
With reference to the first aspect, in a fourth possible implementation manner, the parsing the image file to obtain the system partition file and storing the system partition file in a storage device when the parsed address of the image file is the address of the system partition file includes system partition information, and includes:
when the analyzed address of the image file is the address of the system partition information, analyzing the image file to obtain the system partition information, and storing the system partition information to a storage device.
With reference to the first aspect, in a fifth possible implementation manner, when the resolved address of the image file is the address of the system file to be burned, the analyzing the image file to obtain the system file to be burned, and before the burning of the system file to be burned to the burning address of the computer device, the method further includes:
and inquiring a partition table of the current operating file system to obtain an initial address of the partition of the current operating file system, and setting the initial address as a burning address.
With reference to the first aspect, in a sixth possible implementation manner, when the resolved address of the image file is the address of the system partition file, resolving the image file to obtain the system partition file, and storing the system partition file in a storage device includes:
when the analyzed address of the mirror image file is the address of the system partition file, analyzing the mirror image file to obtain the system partition file;
if the storage device comprises a partition table, storing the system partition file to the partition table of the storage device;
and if the storage equipment does not comprise a storage partition table, storing the system partition file to a reserved space of the storage equipment.
In a second aspect, the present application provides a file system configuration apparatus, applied to a computer device, the apparatus including:
the system comprises a mirror image file module, a data processing module and a data processing module, wherein the mirror image file module is used for configuring a mirror image file comprising a system partition file and a system file to be burned, and the system partition file and the system file to be burned are sequentially arranged in the mirror image file;
the partition storage module is used for analyzing the image file to obtain a system partition file and storing the system partition file to storage equipment when the analyzed address of the image file is the address of the system partition file, wherein the computer equipment is connected with the storage equipment;
the system burning module is used for analyzing the mirror image file to obtain the system file to be burnt and burning the system file to be burnt to the burning address of the computer equipment when the analyzed address of the mirror image file is the address of the system file to be burnt;
and the partition configuration module is used for acquiring the system partition file stored in the storage device and configuring a partition table corresponding to the system partition file.
In a third aspect, an embodiment of the present invention provides a computer device, including a processor and a memory, where the memory stores a program or instructions, and the program or instructions, when executed by the processor, implement the steps of the file system configuration method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the file system configuration method according to the first aspect.
The application provides a file system configuration method, which is applied to computer equipment and comprises the following steps: configuring a mirror image file comprising a system partition file and a system file to be burned; when the analyzed address of the mirror image file is the address of the system partition file, analyzing the mirror image file to obtain the system partition file, and storing the system partition file to a storage device; when the analyzed address of the mirror image file is the address of the system file to be burned, analyzing the mirror image file to obtain the system file to be burned, and burning the system file to be burned to the burning address of the computer equipment; and acquiring the system partition file stored in the storage device, and configuring a partition table corresponding to the system partition file. When the partition size of the file system needs to be modified and/or the file system needs to be increased or decreased for the equipment, the mirror image file with the preset format is configured according to the requirement, and the mirror image file is analyzed to realize extensible burning of the file system. And the burning module does not need to be synchronously modified, so that the application flexibility of the equipment is improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
FIG. 1 is a flow chart illustrating a file system configuration method according to an embodiment of the present invention;
fig. 2 shows a schematic structural diagram of a file system configuration apparatus according to 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 only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Example 1
Referring to fig. 1, fig. 1 is a flowchart illustrating a file system configuration method according to an embodiment of the present invention. The file system configuration method in fig. 1 is applied to a computer device, and the file system configuration method in fig. 1 includes the following steps:
step 101, configuring a mirror image file comprising a system partition file and a system file to be burned.
And when the partition size of the file system needs to be modified and/or the file system needs to be increased or decreased for the equipment, filling the partition information of the system to obtain a partition file of the system. Configuring a system partition file and a system file to be burned into mirror image files, wherein the system partition file and the system file to be burned are sequentially arranged in the mirror image files.
Mirroring is a form of file storage in which data on a device disk exists in the same copy file on another disk, i.e., an image file. And in the process of modifying the partition size of the file system and/or increasing or decreasing the file system for the equipment, the mirror image file is used for describing system data and partition data of the equipment, and the mirror image file can be recognized by a software program and burnt to the equipment. In this embodiment, the mirror image file sequentially includes a system partition file, a system file to be burned, and a mirror image ending identifier. And in the process of burning the mirror image file into the equipment, if the mirror image ending identifier is read, confirming that the mirror image file is burnt into the equipment, and finishing the modification of the partition size of the file system and the increase and decrease of the file system by the equipment.
And 102, when the analyzed address of the image file is the address of the system partition file, analyzing the image file to obtain the system partition file, and storing the system partition file to a storage device.
The system partition file and the system file to be burned are sequentially arranged, when the mirror image file is analyzed, the initial address of the mirror image file is the address of the system partition file, and the files included in the mirror image file are sequentially analyzed. When the analyzed address of the image file is the address of the system partition file, the image file is analyzed to obtain the system partition file, and the system partition file is stored in the storage device, wherein the computer device is connected with the storage device.
Step 103, when the analyzed address of the mirror image file is the address of the system file to be burned, analyzing the mirror image file to obtain the system file to be burned, and burning the system file to be burned to the burning address of the computer equipment.
In the mirror image file, the system partition file and the system file to be burned are separated through the identifier. In the process of analyzing the mirror image file to obtain the system partition file, if the identifier for performing the interval is read, the system partition file is determined to be obtained through analysis. And updating the resolved address of the mirror image file to the address of the system file to be burned. And when the analyzed address of the mirror image file is the address of the system file to be burned, analyzing the mirror image file to obtain the system file to be burned. And burning the system file to be burnt to the burning address of the computer equipment so as to finish the modification of the partition size of the file system and the increase and decrease of the file system. It should be understood that the burning address is the starting address of the computer during burning. And after the system file is burned to the burning address, reading the burning address to operate the system file. The burning address is set according to an actual scene, and is not limited herein.
As an example, the system file to be burned includes N system image files and size information of each system image file, and when the resolved address of the image file is the address of the system file to be burned, the image file is resolved to obtain the system file to be burned, and the system file to be burned is burned to the burning address of the computer device, the method includes:
when the analysis address of the mirror image file is the address of the size information of the Mth system mirror image file, analyzing the mirror image file to obtain the size information of the Mth system mirror image file, wherein M takes values from 1 to N in sequence;
when the analyzed address of the mirror image file is the address of the Mth system mirror image file, the mirror image file is analyzed to obtain the Mth system mirror image file, and the Mth system mirror image file is burnt to the burning address of the computer equipment.
The value of N is set according to actual requirements, and is not limited herein, and the value range of M is [0, N ] and M is sequentially valued from 1 to N. When the system of the equipment is increased or decreased, each system image file included in the image file is sequentially analyzed, and each system image file is sequentially burnt to the burning address. For example, it is assumed that the device only includes an NTFS system, and a file system of the device to be added is configured to include a root file system and a data file system, specifically, the root file system is an NTFS system, and the data file system is an EXT system. And configuring a system file to be burned comprising 2 system image files, wherein the 1 st system image file is an NTFS system file, and the 2 nd system image file is an EXT system file. And sequentially taking values of M from 1 to 2, burning the NTFS system file to the burning address when the value of M is 1, and burning the EXT system file to the burning address when the value of M is 2. And in the process of burning each system image file to the burning address in sequence, the system image files are dynamically analyzed, and the increase and decrease of the file system of the equipment are realized on the basis of not modifying the burning module.
The size information of the system image file is used for describing the size of the system image file. And when the analysis address of the mirror image file is the address of the size information of the Mth system mirror image file, analyzing the mirror image file to obtain the size information of the Mth system mirror image file. And combining the N system image files into a system file to be burnt based on the size information of each system image file.
In an optional example, the system partition file includes size information of a system partition, and when an analyzed address of the image file is an address of the mth system image file, the image file is analyzed to obtain the mth system image file, and before the mth system image file is burned to the burning address of the computer device, the method further includes:
when the analysis address of the mirror image file is the address of the size information of the system partition, analyzing the mirror image file to obtain the size information of the system partition;
when the resolved address of the image file is the address of the mth system image file, resolving the image file to obtain the mth system image file, and burning the mth system image file to the burning address of the computer device, the method further includes:
inquiring the size information of the system partition to obtain the partition size of the Mth system mirror image file;
and updating the burning address based on the partition size of the Mth system image file.
If at least two system files need to be continuously burned, when the analysis address of the mirror image file is the address of the size information of the system partition, the mirror image file is analyzed to obtain the size information of the system partition. And after the Mth system image file is burnt, inquiring the size information of the system partition to obtain the partition size of the Mth system image file. And updating the burning address based on the partition size of the Mth system image file, namely updating the next address of the ending address of the Mth system image file to be the burning address so as to realize the continuous burning of the plurality of system files.
And 104, acquiring the system partition file stored in the storage device, and configuring a partition table corresponding to the system partition file.
The partition table divides the table data into many small subsets called partitions, and if the partition table of the hard disk is abnormal, the data cannot be read and written in sequence, which results in that the burned system file cannot be operated. And after the system file to be burned is burned, reading the system partition file stored in the storage device, wherein the system partition file comprises system partition information and size information of the system partition. And configuring a partition table based on the system partition information and the size information of the system partition, thereby realizing modification of the partition size.
As an example, the obtaining of the system partition file stored in the storage device and configuring the partition table corresponding to the system partition file further includes:
and when the analyzed address of the image file is the address of the image ending identifier, acquiring a system partition file stored in the storage device, and configuring a partition table corresponding to the system partition file.
And when the resolved address of the mirror image file is the address of the mirror image ending identifier, determining that the system file to be burnt is burnt to the computer equipment, and increasing or decreasing the file system. And acquiring the system partition file stored in the storage device, and configuring a partition table corresponding to the system partition file to modify the partition size of the file system.
As an example, the system partition file includes system partition information, and when an analyzed address of the image file is an address of the system partition file, the analyzing the image file to obtain the system partition file, and storing the system partition file in a storage device includes:
when the analyzed address of the image file is the address of the system partition information, the image file is analyzed to obtain the system partition information, and the system partition information is stored in a storage device.
It should be understood that the system partition information may be a character string, which is not described herein. And when the analyzed address of the mirror image file is the address of the system partition information, analyzing the mirror image file to obtain the system partition information. And storing the system partition information into the storage device, and modifying the partitions of the device by calling the system partition information in the storage device.
As an example, when the resolved address of the image file is the address of the system file to be burned, the image file is resolved to obtain the system file to be burned, and before the system file to be burned is burned to the burning address of the computer device, the method further includes:
and inquiring a partition table of the current operating file system to obtain an initial address of the partition of the current operating file system, and setting the initial address as a burning address.
It is to be understood that the currently running file system, i.e. the file system that the device is currently running. The device configures a partition table corresponding to the currently running file system. And inquiring a partition table corresponding to the current operating file system to obtain the initial address of the partition of the current operating file system, and setting the initial address of the partition as a burning address so as to ensure that the newly burned system file can reliably operate.
As an example, when the resolved address of the image file is the address of the system partition file, resolving the image file to obtain the system partition file, and storing the system partition file in a storage device includes:
when the analyzed address of the mirror image file is the address of the system partition file, analyzing the mirror image file to obtain the system partition file;
if the storage device comprises a partition table, storing the system partition file to the partition table of the storage device;
and if the storage equipment does not comprise the storage partition table, storing the system partition file to a reserved space of the storage equipment.
The storage device may be any device for storing data information, such as an optical disc, a hard disk, a flash memory, and the like, which is not limited herein. And if the storage equipment comprises the partition table, directly storing the system partition file into the partition table of the storage equipment so as to store the partition information. Usually, the storage device is also configured with a reserved space, and if the storage device does not include the storage partition table, the system partition file is stored in the reserved space of the storage device. And the partition modification of the equipment is realized by calling the system partition information in the storage equipment.
In order to facilitate understanding of the present application, in this embodiment, an image file including a system partition file, a system file to be burned, and an image end identifier is configured, where the system partition file includes system partition information and size information of a system partition, the system file to be burned includes N system image files and size information of the N system image files, and the image end identifier may be any identifier symbol such as "#", which is not limited herein.
And arranging system partition information, system partition size information, Mth system image file size information and Mth system image file image ending identification in the image file in sequence. Specifically, when the image file is analyzed, system partition information, size information of the system partition, size information of the system image file 1 … …, the system image file N, and an image end identifier are sequentially read. It is to be understood that the image file may include information that is optionally "and"; the "identification symbol is spaced, and is not limited thereto.
And when the partition size of the file system needs to be modified and/or the file system needs to be increased or decreased for the equipment, analyzing the mirror image file. Specifically, the initial address of the image file is set as an analytic address, that is, the address of the system partition file is the current analytic address of the image file, and the image file is analyzed based on the current analytic address to obtain system partition information. The information of the system partition, the size information of the Mth system image file and the image end identification of the Mth system image file in the image file are sequentially arranged, the current analysis address is updated to the address of the size information of the system partition, and the image file is analyzed based on the current analysis address to obtain the size information of the system partition. And storing the obtained system partition information and the size information of the system partition to a storage device.
And updating the current analysis address to the address of the size information of the Mth system image file, inquiring the partition table of the current system to obtain the initial address of the partition of the current system, and setting the initial address as the burning address of the computer equipment. And analyzing the mirror image file based on the current analysis address to obtain the size information of the Mth system mirror image file. And updating the current resolved address to the address of the Mth system image file. And analyzing the mirror image file based on the current analysis address to obtain an Mth system mirror image file, and burning the Mth system mirror image file to a burning address. And obtaining the partition size information of the Mth system image file according to the size information of the system partition. And updating the burning address based on the partition size information of the Mth system image file.
And after the Mth system image file is burned to the burning address, the current analysis address is updated to be the next address of the Mth system image file. And if the next address is the address of the system image file, adding one to the value of M, and re-executing the steps of obtaining the size information of the Mth system image file and burning the Mth system image file to the burning address. And if the next address mirror image end identifier is identified, determining that the modification of the partition size of the file system is finished and/or the increase and decrease of the system file of the equipment are/is finished. And acquiring the system partition file stored in the storage device, and configuring a partition table corresponding to the system partition file.
The application provides a file system configuration method, which is applied to computer equipment and comprises the following steps: configuring a mirror image file comprising a system partition file and a system file to be burned; when the analyzed address of the mirror image file is the address of the system partition file, analyzing the mirror image file to obtain the system partition file, and storing the system partition file to a storage device; when the analyzed address of the mirror image file is the address of the system file to be burned, analyzing the mirror image file to obtain the system file to be burned, and burning the system file to be burned to the burning address of the computer equipment; and acquiring the system partition file stored in the storage device, and configuring a partition table corresponding to the system partition file. When the partition size of the file system needs to be modified and/or the file system needs to be increased or decreased for the equipment, the mirror image file with the preset format is configured according to the requirement, and the mirror image file is analyzed to realize extensible burning of the file system. And the burning module does not need to be synchronously modified, so that the application flexibility of the equipment is improved.
Example 2
Referring to fig. 2, fig. 2 is a schematic structural diagram of a file system configuration apparatus according to an embodiment of the present invention. The file system configuration apparatus 200 in fig. 2 includes:
the image file module 210 is configured to configure an image file including a system partition file and a system file to be burned, where the system partition file and the system file to be burned are sequentially arranged in the image file;
the partition storage module 220 is configured to, when the resolved address of the image file is the address of the system partition file, resolve the image file to obtain the system partition file, and store the system partition file to a storage device, where the computer device is connected to the storage device;
the system burning module 230 is configured to, when the resolved address of the image file is the address of the system file to be burned, resolve the image file to obtain the system file to be burned, and burn the system file to be burned to the burning address of the computer device;
the partition configuration module 240 is configured to obtain a system partition file stored in the storage device, and configure a partition table corresponding to the system partition file.
As an example, the system file to be burned includes N system image files and size information of each system image file, and the system burning module 230 includes:
the system size submodule is used for analyzing the mirror image file to obtain the size information of the Mth system mirror image file when the analyzed address of the mirror image file is the address of the size information of the Mth system mirror image file, wherein M takes values from 1 to N in sequence;
and the burning submodule is used for analyzing the mirror image file to obtain an Mth system mirror image file and burning the Mth system mirror image file to the burning address of the computer equipment when the analyzed address of the mirror image file is the address of the Mth system mirror image file.
In an optional example, the system partition file includes size information of the system partition, and the file system configuration apparatus 200 further includes:
a partition size obtaining module, configured to, when the analysis address of the image file is the address of the size information of the system partition, analyze the image file to obtain the size information of the system partition;
the partition query module is used for obtaining the partition size of the Mth system image file;
and the address updating module is used for updating the burning address based on the partition size of the Mth system image file.
As an example, the image file further includes an image ending identifier, and the system partition file, the system file to be burned, and the image ending identifier are sequentially arranged, and the partition configuration module 240 is further configured to, when an analyzed address of the image file is an address of the image ending identifier, obtain the system partition file stored in the storage device, and configure a partition table corresponding to the system partition file.
As an example, the system partition file includes system partition information, and the partition storage module 220 is further configured to, when an analysis address of the image file is an address of the system partition information, analyze the image file to obtain the system partition information, and store the system partition information in a storage device.
As an example, the file system configuration apparatus 200 further includes:
and the burning address setting module is used for inquiring the partition table of the current operating file system, obtaining the initial address of the partition of the current operating file system and setting the initial address as the burning address.
As an example, the partitioned storage module 220 includes:
the partition submodule is used for analyzing the image file to obtain the system partition file when the analyzed address of the image file is the address of the system partition file;
the partition table storage submodule is used for storing the system partition file into a partition table of the storage device if the storage device comprises the partition table;
and the reserved space storage submodule is used for storing the system partition file to the reserved space of the storage device if the storage device does not comprise a storage partition table.
The file system configuring apparatus 200 is configured to execute corresponding steps in the file system configuring method, and specific implementations of various functions are not described one by one here. In addition, the alternative example in embodiment 1 is also applicable to the file system configuring apparatus 200 of embodiment 2.
An embodiment of the present application further provides a computer device, which includes a processor and a memory, where the memory stores a program or instructions, and the program or instructions, when executed by the processor, implement the steps of the file system configuration method according to embodiment 1.
An embodiment of the present application further provides a computer-readable storage medium, where a program or an instruction is stored on the computer-readable storage medium, and when the program or the instruction is executed by a processor, the file system configuration method according to embodiment 1 is implemented.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the present invention or a part thereof which contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A file system configuration method applied to a computer device, the method comprising:
configuring a mirror image file comprising a system partition file and a system file to be burned, wherein the system partition file and the system file to be burned are sequentially arranged in the mirror image file;
when the analyzed address of the image file is the address of the system partition file, analyzing the image file to obtain the system partition file, and storing the system partition file to a storage device, wherein the computer device is connected with the storage device;
when the analyzed address of the mirror image file is the address of the system file to be burned, analyzing the mirror image file to obtain the system file to be burned, and burning the system file to be burned to the burning address of the computer equipment;
and acquiring the system partition file stored in the storage device, and configuring a partition table corresponding to the system partition file.
2. The file system configuration method according to claim 1, wherein the system file to be burned includes N system image files and size information of each system image file, and when the resolved address of the image file is the address of the system file to be burned, the image file is resolved to obtain the system file to be burned, and the system file to be burned is burned to the burning address of the computer device, the method includes:
when the analysis address of the mirror image file is the address of the size information of the Mth system mirror image file, analyzing the mirror image file to obtain the size information of the Mth system mirror image file, wherein M takes values from 1 to N in sequence;
when the resolved address of the mirror image file is the address of the Mth system mirror image file, resolving the mirror image file to obtain the Mth system mirror image file, and burning the Mth system mirror image file to the burning address of the computer equipment.
3. The file system configuration method according to claim 2, wherein the system partition file includes size information of a system partition, and when the resolved address of the image file is the address of the mth system image file, the image file is resolved to obtain the mth system image file, and the mth system image file is burned to the burn address of the computer device, the method further includes:
when the analysis address of the mirror image file is the address of the size information of the system partition, analyzing the mirror image file to obtain the size information of the system partition;
when the resolved address of the image file is the address of the mth system image file, resolving the image file to obtain the mth system image file, and burning the mth system image file to the burning address of the computer device, the method further includes:
inquiring the size information of the system partition to obtain the partition size of the Mth system image file;
and updating the burning address based on the partition size of the Mth system image file.
4. The method of claim 1, wherein the image file further includes an image ending identifier, and the system partition file, the system file to be burned, and the image ending identifier are sequentially arranged, and the obtaining the system partition file stored in the storage device and configuring the partition table corresponding to the system partition file includes:
and when the analysis address of the image file is the address of the image ending identifier, acquiring a system partition file stored in the storage device, and configuring a partition table corresponding to the system partition file.
5. The file system configuration method according to claim 1, wherein the system partition file includes system partition information, and when the resolved address of the image file is the address of the system partition file, resolving the image file to obtain the system partition file, and storing the system partition file in a storage device includes:
when the analyzed address of the image file is the address of the system partition information, the image file is analyzed to obtain the system partition information, and the system partition information is stored in a storage device.
6. The method as claimed in claim 1, wherein when the resolved address of the image file is the address of the system file to be burned, the image file is resolved to obtain the system file to be burned, and before the system file to be burned is burned to the burning address of the computer device, the method further comprises:
and inquiring a partition table of the current operating file system to obtain an initial address of the partition of the current operating file system, and setting the initial address as a burning address.
7. The file system configuration method according to claim 1, wherein when the resolved address of the image file is the address of the system partition file, resolving the image file to obtain the system partition file, and storing the system partition file in a storage device includes:
when the analyzed address of the mirror image file is the address of the system partition file, analyzing the mirror image file to obtain the system partition file;
if the storage device comprises a partition table, storing the system partition file to the partition table of the storage device;
and if the storage equipment does not comprise a storage partition table, storing the system partition file to a reserved space of the storage equipment.
8. A file system configuration apparatus, applied to a computer device, the apparatus comprising:
the system comprises a mirror image file module, a data storage module and a data processing module, wherein the mirror image file module is used for configuring a mirror image file comprising a system partition file and a system file to be burned, and the system partition file and the system file to be burned are sequentially arranged in the mirror image file;
the partition storage module is used for analyzing the image file to obtain a system partition file and storing the system partition file to storage equipment when the analyzed address of the image file is the address of the system partition file, wherein the computer equipment is connected with the storage equipment;
the system burning module is used for analyzing the mirror image file to obtain the system file to be burnt when the analyzed address of the mirror image file is the address of the system file to be burnt, and burning the system file to be burnt to the burning address of the computer equipment;
and the partition configuration module is used for acquiring the system partition files stored in the storage equipment and configuring a partition table corresponding to the system partition files.
9. A computer device comprising a processor and a memory, said memory having stored thereon a program or instructions which, when executed by said processor, carry out the steps of the file system configuration method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program or instructions which, when executed by a processor, carry out the steps of the file system configuration method according to any one of claims 1 to 7.
CN202210649216.5A 2022-06-09 2022-06-09 File system configuration method and device, computer equipment and storage medium Pending CN114925030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210649216.5A CN114925030A (en) 2022-06-09 2022-06-09 File system configuration method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210649216.5A CN114925030A (en) 2022-06-09 2022-06-09 File system configuration method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114925030A true CN114925030A (en) 2022-08-19

Family

ID=82813353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210649216.5A Pending CN114925030A (en) 2022-06-09 2022-06-09 File system configuration method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114925030A (en)

Similar Documents

Publication Publication Date Title
CN105760184B (en) A kind of method and apparatus of charging assembly
CN111651173B (en) Key code data burning method and device, terminal equipment and readable storage medium
CN106445476B (en) Code change information determination method and device and electronic equipment
CN106293782A (en) A kind of method for upgrading system and terminal
CN110119274A (en) A kind of method, apparatus and electric terminal, computer readable storage medium of data compilation
CN112182010B (en) Dirty page refreshing method and device, storage medium and electronic equipment
CN106294769B (en) The mthods, systems and devices of synchronous engineering data
CN110516124B (en) File analysis method and device and computer readable storage medium
CN107402753B (en) Method and device for refreshing hard disk firmware
CN114648302B (en) Data processing method and device for collaborative scenario editing
CN108733674B (en) A2L file merging method and device
CN110716739A (en) Code change information statistical method, system and readable storage medium
CN113190178B (en) Traceless data deletion method and traceless data deletion system in FAT32 file system
CN105988943B (en) A kind of method and device driving wireless adapter
CN114925030A (en) File system configuration method and device, computer equipment and storage medium
CN114611039B (en) Analysis method and device of asynchronous loading rule, storage medium and electronic equipment
CN106815282B (en) data access method and device
CN114936269A (en) Document searching platform, searching method, device, electronic equipment and storage medium
CN114764335A (en) Method, device, terminal and storage medium for generating mirror image
CN111142927B (en) Configuration file merging and splitting processing method and device
CN107943519B (en) A kind of time series data random ordering operation processing method and device
CN111736858A (en) Terminal equipment upgrading method, storage medium and terminal equipment
CN113127408A (en) Data conversion method and device
CN106777288B (en) A kind of system and method for quick fractionation virtualization disk mirroring
CN116578247B (en) Metadata-based data access method and system

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