A method for formatting a disk and a terminal

By pre-setting initial configuration space and custom file system partitions on the disk, the problem of not being able to save critical data when batch formatting terminals in VOI scenarios is solved, and the effect of obtaining and permanently retaining critical data during the boot phase is achieved.

CN117472272BActive Publication Date: 2026-05-12FUJIAN CENTM INFORMATION
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
FUJIAN CENTM INFORMATION
Filing Date
2023-09-12
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In VOI scenarios, when formatting terminals in batches, it is impossible to save critical data information such as IP address, subnet mask, gateway address and server address during the boot phase. This means that the data needs to be read through the file system on the next boot. Existing formatting methods require entering the operating system and cannot obtain data during the boot phase.

Method used

The system stores critical data in a pre-defined initial configuration space and saves it to memory when a formatting command is received. Before formatting, it writes critical data to memory for backup, creates a custom file system partition and configuration space, and stores critical data by address offset.

Benefits of technology

It enables the retrieval of critical data during the boot phase when formatting terminals in batches, without needing to enter the operating system, thus avoiding the loss of critical data and ensuring that the data can still be retrieved after formatting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117472272B_ABST
    Figure CN117472272B_ABST
Patent Text Reader

Abstract

The application provides a disk formatting method and terminal, wherein key data is stored in a preset initial configuration space, so that a boot program can directly find the key data in the initial configuration space and does not need to enter an operating system, thereby achieving that the key data of the terminal can be acquired in a boot stage when the terminal is formatted in batches. In addition, before the disk is formatted, the key data is written into a memory for backup, so that the key data is prevented from being lost during formatting, and the key data of the terminal is ensured to be still stored in the disk after the formatting operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of formatting technology, and more particularly to a method and terminal for formatting a disk. Background Technology

[0002] VOI is the infrastructure for centralized image storage and distributed computing. Its working mode is to store template images on the server side and run desktops on client machines. After the client machine boots up via the iPXE network, it first obtains the boot file, then connects to the iSCSI device on the server side through the bootloader, and then the server loads the operating system onto the local machine, enabling the local computer to function normally.

[0003] In the current VOI scenario, the server can perform batch operations on all terminals, such as unified image caching, batch terminal formatting, and unified power on / off. However, when batch formatting terminals, it is necessary to retain critical configuration information, such as IP (Internet Protocol Address), subnet mask, gateway address, domain name address, and server address. Since many companies and schools now use fixed IP addresses, each terminal's MAC (Media Access Control, also known as physical address) address corresponds to only one fixed IP address. Currently, cloud PC technology is based on the iPXE framework as a bootloader, so an IP address needs to be configured during the boot phase for server communication. However, fixed IP information cannot be saved during the boot phase. If the terminal needs to retrieve the previously configured IP information upon subsequent startup, the IP configuration information needs to be saved as file data and then retrieved by reading the file. However, conventional file systems, such as NTFS and FAT32, can only be loaded after entering the operating system, so data in the file system cannot be read during the boot phase.

[0004] The conventional methods for formatting a disk are: using a PE disk (a Windows PE system installed on a USB drive), booting into the PE system, and then using disk management tools to format the disk. Alternatively, using a DOS (Disk Operation System) operating system and calling the Format command to format the disk. You can also directly boot into the Windows system and use disk management tools to format the disk. After formatting the disk using any of these methods, the file system format will generally default to NTFS. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide a disk formatting method and terminal that can always preserve the key data information of the existing terminal when formatting the terminal in batches.

[0006] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:

[0007] A method for formatting a disk, comprising:

[0008] A preset initial configuration space is provided, which includes key data.

[0009] Determine if a formatting command has been received. If so, save the key data to memory and then perform the formatting.

[0010] To solve the above-mentioned technical problems, another technical solution adopted by the present invention is as follows:

[0011] A formatted disk terminal includes a memory, a processor, and a computer program stored on the memory and running on the processor. When the processor executes the computer program, it performs the following steps:

[0012] A preset initial configuration space is provided, which includes key data.

[0013] Determine if a formatting command has been received. If so, save the key data to memory and then perform the formatting.

[0014] The beneficial effects of this invention are as follows: By storing key data in a preset initial configuration space, the bootloader can directly find the key data in the initial configuration space without entering the operating system, thereby enabling the acquisition of the terminal's key data during the boot phase when formatting the terminal in batches. Furthermore, before formatting the disk, the key data is first written into memory for backup to avoid data loss during formatting, ensuring that the disk still retains the terminal's key data after the formatting operation. Attached Figure Description

[0015] Figure 1 A flowchart illustrating the steps of a disk formatting method provided in an embodiment of the present invention;

[0016] Figure 2 This is a schematic diagram illustrating the relationship between a custom file system partition and a disk, provided in an embodiment of the present invention.

[0017] Figure 3 A schematic diagram of disk partition addresses provided in an embodiment of the present invention;

[0018] Figure 4 A schematic diagram of a program framework for a server and a terminal provided in an embodiment of the present invention;

[0019] Figure 5 A flowchart illustrating a disk formatting method provided in an embodiment of the present invention;

[0020] Figure 6 This is a schematic diagram of the structure of a disk formatting terminal provided in an embodiment of the present invention;

[0021] Label Explanation:

[0022] 301. Memory; 302. Processor. Detailed Implementation

[0023] To explain in detail the technical content, objectives, and effects of the present invention, the following description is provided in conjunction with the embodiments and accompanying drawings.

[0024] Please refer to Figure 1 A method for formatting a disk, comprising:

[0025] A preset initial configuration space is provided, which includes key data.

[0026] Determine if a formatting command has been received. If so, save the key data to memory and then perform the formatting.

[0027] As can be seen from the above description, the beneficial effects of this invention are as follows: By storing key data in a preset initial configuration space, the bootloader can directly find the key data in the initial configuration space without entering the operating system, thereby enabling the acquisition of the terminal's key data during the boot phase when formatting the terminal in batches. Furthermore, before formatting the disk, the key data is first written into memory for backup to avoid data loss during formatting, ensuring that the disk still retains the terminal's key data after the formatting operation.

[0028] Furthermore, the preset initial configuration space includes:

[0029] Get the newly formatted disk;

[0030] Create an initial custom file system partition on the new disk;

[0031] Create an initial configuration space in the initial custom file system partition;

[0032] Acquire key data and store the key data in the initial configuration space.

[0033] As described above, by creating an initial custom file system partition on the formatted new disk and a corresponding configuration space within that partition, and storing critical data in the configuration space, the bootloader can locate the configuration space containing the critical data through addressing after the terminal starts booting, thereby obtaining the critical data. This allows the user-defined critical data to be obtained during the boot phase.

[0034] Furthermore, the execution of formatting includes:

[0035] Obtain the disk information of the source disk, and calculate the disk space size based on the disk information;

[0036] The data in the source disk is cleared based on the disk space size and the address position offset to obtain a new disk;

[0037] Create a current custom file system partition on the new disk based on the disk information;

[0038] Create the current configuration space in the currently custom file system partition;

[0039] The key data is retrieved from the memory and stored in the current configuration space by offsetting the address location.

[0040] As described above, when a user formats a disk, critical data is first stored in memory for backup. Then, a current configuration space is created in the formatted new disk for storing critical data again later. Finally, the critical data in memory is retrieved and stored in the current configuration space. In other words, critical terminal data can be saved every time the disk is formatted, achieving one-time configuration that takes effect permanently.

[0041] Furthermore, the preset initial configuration space includes:

[0042] Get the header information of the current file system partition;

[0043] Based on the header information, determine whether the current file system partition is a custom file system partition. If so, execute the step of determining whether a formatting command has been received; otherwise, execute the step of setting the preset initial configuration space.

[0044] The custom file system partition includes the initial custom file system partition and the current custom file system partition.

[0045] As described above, the system determines whether the current file system partition is a custom file system partition to see if there is an initial configuration space or a current configuration space on the disk. If no corresponding configuration space exists, the critical data of the current terminal cannot be stored. Therefore, the system directly obtains the formatted disk and presets an initial configuration space to store the critical data of the current terminal. This allows the disk to be automatically created even if no configuration space is set, thus storing the critical data through the configuration space. This ensures that the critical data can be directly obtained from the configuration space during the boot phase when the disk is formatted again.

[0046] Furthermore, the step of acquiring key data information and storing the key data information in the initial configuration space includes:

[0047] The operating system is loaded, key data is accessed through the operating system, and the key data is stored in the initial configuration space by address location offset.

[0048] As described above, when a user first customizes critical data, an initial configuration space is created and the operating system is loaded. The critical data called by the operating system is then written into the initial configuration space for storage, so that the current critical data can still be retained after the next disk formatting, thus achieving the backup of critical data.

[0049] Please refer to Figure 6 Another embodiment of the present invention provides a formatted disk terminal, including a memory, a processor, and a computer program stored on the memory and running on the processor. When the processor executes the computer program, it performs the following steps:

[0050] A preset initial configuration space is provided, which includes key data.

[0051] Determine if a formatting command has been received. If so, save the key data to memory and then perform the formatting.

[0052] As can be seen from the above description, the beneficial effects of this invention are as follows: By storing key data in a preset initial configuration space, the bootloader can directly find the key data in the initial configuration space without entering the operating system, thereby enabling the acquisition of the terminal's key data during the boot phase when formatting the terminal in batches. Furthermore, before formatting the disk, the key data is first written into memory for backup to avoid data loss during formatting, ensuring that the disk still retains the terminal's key data after the formatting operation.

[0053] Furthermore, the preset initial configuration space includes:

[0054] Get the newly formatted disk;

[0055] Create an initial custom file system partition on the new disk;

[0056] Create an initial configuration space in the initial custom file system partition;

[0057] Acquire key data and store the key data in the initial configuration space.

[0058] As described above, by creating an initial custom file system partition on the formatted new disk and a corresponding configuration space within that partition, and storing critical data in the configuration space, the bootloader can locate the configuration space containing the critical data through addressing after the terminal starts booting, thereby obtaining the critical data. This allows the user-defined critical data to be obtained during the boot phase.

[0059] Furthermore, the execution of formatting includes:

[0060] Obtain the disk information of the source disk, and calculate the disk space size based on the disk information;

[0061] The data in the source disk is cleared based on the disk space size and the address position offset to obtain a new disk;

[0062] Create a current custom file system partition on the new disk based on the disk information;

[0063] Create the current configuration space in the currently custom file system partition;

[0064] The key data is retrieved from the memory and stored in the current configuration space by offsetting the address location.

[0065] As described above, when a user formats a disk, critical data is first stored in memory for backup. Then, a current configuration space is created in the formatted new disk for storing critical data again later. Finally, the critical data in memory is retrieved and stored in the current configuration space. In other words, critical terminal data can be saved every time the disk is formatted, achieving one-time configuration that takes effect permanently.

[0066] Furthermore, the preset initial configuration space includes:

[0067] Get the header information of the current file system partition;

[0068] Based on the header information, determine whether the current file system partition is a custom file system partition. If so, execute the step of determining whether a formatting command has been received; otherwise, execute the step of setting the preset initial configuration space.

[0069] The custom file system partition includes the initial custom file system partition and the current custom file system partition.

[0070] As described above, the system determines whether the current file system partition is a custom file system partition to see if there is an initial configuration space or a current configuration space on the disk. If no corresponding configuration space exists, the critical data of the current terminal cannot be stored. Therefore, the system directly obtains the formatted disk and presets an initial configuration space to store the critical data of the current terminal. This allows the disk to be automatically created even if no configuration space is set, thus storing the critical data through the configuration space. This ensures that the critical data can be directly obtained from the configuration space during the boot phase when the disk is formatted again.

[0071] Furthermore, the step of acquiring key data information and storing the key data information in the initial configuration space includes:

[0072] The operating system is loaded, key data is accessed through the operating system, and the key data is stored in the initial configuration space by address location offset.

[0073] As described above, when a user first customizes critical data, an initial configuration space is created and the operating system is loaded. The critical data called by the operating system is then written into the initial configuration space for storage, so that the current critical data can still be retained after the next disk formatting, thus achieving the backup of critical data.

[0074] Explanation of abbreviations and technical terms involved in this invention:

[0075]

[0076]

[0077] This invention provides a formatted disk method and terminal, applicable to VOI cloud host scenarios. When performing batch formatting on all terminals, it can retain customized data and information as needed. The following specific embodiments illustrate this:

[0078] Please refer to Figures 1 to 3 Embodiment 1 of the present invention is as follows:

[0079] A method for formatting a disk, comprising:

[0080] S1. Obtain the header information of the current file system partition.

[0081] In some embodiments, the header information of the current file system partition is obtained by data addressing based on the starting address of the disk.

[0082] S2. Determine whether the current file system partition is a custom file system partition based on the header information.

[0083] If so, proceed to step S4.

[0084] Otherwise, proceed to step S3.

[0085] The custom file system partition includes an initial custom file system partition and a current custom file system partition.

[0086] In some embodiments, if the header information of the current file system partition cannot be obtained through data addressing or the obtained header information does not conform to the data format of the custom file system partition, then the current file system partition is not a custom file system partition.

[0087] In some embodiments, if the current file system partition is not a custom file system partition, a prompt message is sent to the user asking whether to format the disk. If a format command is received from the user, step S3 is executed.

[0088] In some embodiments, if the current file system partition is an initial custom file system partition and a formatting command is received, the key data in the initial configuration space is saved to memory before formatting is performed.

[0089] In some embodiments, if the current file system partition is a custom file system partition and a formatting command is received, the critical data in the current configuration space is saved to memory before formatting is performed.

[0090] S3. Preset initial configuration space, which includes key data.

[0091] Specifically, S3 includes:

[0092] S31. Obtain the formatted new disk.

[0093] S32. Create an initial custom file system partition on the new disk.

[0094] S33. Create an initial configuration space in the initial custom file system partition.

[0095] In some embodiments, such as Figure 2 As shown, while creating the configuration space in the custom file system partition, the file system header space, boot file space, file directory table, cluster allocation table, and reserved space are also created.

[0096] The file system header space stores the file system header information, defining the current file system version. The boot file space stores the corresponding boot file, which is used to boot the terminal into the system but is not limited to booting; it can also perform disk formatting. The configuration space stores custom data (critical data). The file directory table stores information about the image file, such as the image name, boot mode, and the initial cluster allocation information for the image system. The cluster allocation table records the index of the image system after it is cached on disk, in 2-byte units, where 0xffff indicates a free cluster, 0xfffe indicates the end of a cluster, and other values ​​indicate the index of the next cluster. Reserved space stores extended data for future feature expansion.

[0097] S34. Obtain key data and store the key data in the initial configuration space.

[0098] Specifically, S34 includes:

[0099] The operating system is loaded, key data is accessed through the operating system, and the key data is stored in the initial configuration space by address location offset.

[0100] In some embodiments, after a user enters the operating system, if they need to save critical data, such as the computer name, reboot restore or reboot non-restore state, they can write the critical data into the configuration space by calling an interface.

[0101] It should be noted that the specific steps of step S31 above are the same as the specific steps of steps S41-S42 below; the specific steps of steps S32-S33 above are the same as the specific steps of steps S43-S44 and step S440 below; wherein, the initial custom file system partition and the initial configuration space represent the first creation of the custom file system partition and the configuration space on the disk; the current custom file system partition and the current configuration space represent the non-first creation of the custom file system partition and the configuration space on the disk.

[0102] S4. Determine whether a formatting command has been received. If so, save the key data to memory and then perform formatting.

[0103] Specifically, in S4: performing formatting includes:

[0104] S41. Obtain the disk information of the source disk and calculate the disk space size based on the disk information;

[0105] In some embodiments, disk information is used to set the disk partitioning method of the source disk, such as partitioning by a percentage of disk size or partitioning by specifying a disk size.

[0106] S42. Based on the disk space size, the data in the source disk is cleared by address offset to obtain a new disk;

[0107] In some embodiments, step S42 specifically involves: writing a disk address to the disk address by assigning a null value to the disk according to the disk space size, clearing the data in the source disk, and obtaining a new disk.

[0108] S43. Create a current custom file system partition on the new disk according to the disk information;

[0109] In some embodiments, step S43 specifically involves: obtaining the starting address of the new disk, and offsetting the address position by adding the size of the current custom file system partition set in the disk information to the starting address, thereby dividing the current custom file system partition.

[0110] S44. Create the current configuration space in the current custom file system partition;

[0111] In some embodiments, S44 is followed by:

[0112] S440. Based on the disk information, create a cache mirror disk partition and a data disk partition on the new disk.

[0113] like Figure 3 As shown, step S440 specifically includes:

[0114] Step 1: Obtain the first and last addresses of the current custom file system partition, and offset the address position by adding the size of the cache mirror disk partition set in the disk information to the first and last address, thereby dividing the cache mirror disk partition.

[0115] Step 2: Obtain the second end address of the cache image disk partition. Determine whether there is remaining space in the new disk based on the disk space size and the second end address. If so, add the size of the remaining space to the second end address to divide the data disk partition.

[0116] Step 3: Initialize the current custom file system partition, cache image disk partition, and data disk partition respectively.

[0117] S45. Obtain the key data from the memory and store the key data in the current configuration space by offsetting the address location.

[0118] In some embodiments, the address of the configuration space is obtained by address location offset, and then the key data in memory is written to that address.

[0119] Please refer to Figures 4 to 5 Embodiment two of the present invention is as follows:

[0120] When the disk formatting method described in Embodiment 1 is applied to a real-world scenario, multiple terminals can perform batch formatting to save custom data, which can then be retrieved during the boot process.

[0121] A method for formatting a disk, comprising:

[0122] Step A1: The server has DHCP, TFTP, and iSCSI software installed and stores boot files; DHCP is used to assign IP addresses to terminals, and TFTP is used to provide a tool for terminals to download boot files, such as... Figure 4 As shown.

[0123] Step A2: Start the management platform service on the server, and customize the size of the terminal's cache image disk partition on the management platform service.

[0124] Step A3: Obtain 50 terminals to be formatted;

[0125] Step A4: The terminal requests the download of the boot file from the server via iPXE. The server returns the boot file, and the terminal starts the boot program according to the boot file.

[0126] Step A5: The terminal bootloader obtains the header information of the current file system through data addressing. Based on the header information, it determines whether the current file system partition is a custom file system partition. If not, proceed to step A6; if so, proceed to steps A11-A12. Figure 5 As shown.

[0127] Step A6: The terminal sends a prompt to the user asking whether to format the disk. If the terminal receives a formatting command from the user, it executes steps A7-A10.

[0128] Step A7: Format the disk;

[0129] Step 1: The terminal requests disk information from the server. This disk information can be configured in the server's management platform to determine the partitioning method of the source disk.

[0130] Step 2: The terminal calculates the disk space size based on the disk information;

[0131] Step 3: The terminal clears the data in the source disk by offsetting the address position according to the disk space size, thus achieving the disk formatting effect and obtaining a new disk.

[0132] Step 4: The terminal obtains the starting address of the new disk, and offsets the address position by adding the size of the custom file system partition set in the disk information to the starting address, thereby dividing the custom file system partition.

[0133] Step 5: The terminal obtains the first and last addresses of the custom file system partition, and offsets the address position by adding the size of the cache image disk partition set in the disk information to the first and last addresses, thereby dividing the cache image disk partition.

[0134] Step 6: The terminal obtains the second end address of the cache image disk partition, and determines whether there is remaining space in the new disk based on the disk space size and the second end address. If so, the data disk partition is divided by adding the size of the remaining space to the second end address.

[0135] Step 7: After the terminal performs initialization operations on the custom file system partition, cache image disk partition, and data disk partition, it completes the disk formatting.

[0136] Step A8: The terminal accesses the server's iSCSI device via the iSCSI protocol, connects to the iSCSI device, and loads the server's operating system onto the local machine.

[0137] Step A9: After the operating system is loaded locally, the local system program calls the critical data and saves the critical data to the configuration space through address location offset.

[0138] Step A10: Once all terminals have finished loading, unified management and control of all terminals can be achieved through the management platform service.

[0139] Step A11: The terminal determines whether a formatting command has been received. If so, it reads the critical data from the configuration space of the custom file system partition and saves the critical data into memory, then proceeds to step A7.

[0140] Step A12: The terminal reads critical data from memory and stores the critical data in the configuration space by offsetting the address location. The terminal then restarts automatically.

[0141] It should be noted that after step A10, when a user needs to adjust the disk size of all terminals, they can actively send a formatting command to all terminals through the management platform service, thereby executing steps A11-A12. This enables dynamic batch adjustment of the cache mirror disk size and data disk size of the terminal disks.

[0142] Please refer to Figure 6 Embodiment 3 of the present invention is as follows:

[0143] A disk formatting terminal includes a memory 301, a processor 302, and a computer program stored on the memory 301 and running on the processor 302. When the processor 302 executes the computer program, it implements the various steps of the disk formatting method described in Embodiment 1 and Embodiment 2.

[0144] In summary, the disk formatting method and terminal provided by this invention achieve custom disk formatting by defining a custom file system partition on the disk and storing corresponding data within the custom file system partition according to a custom address location. Specifically, a configuration space is created within the custom file system partition to store critical data. When the user needs to save critical data or related custom data, this data can be backed up through the configuration space. This backup method does not require the terminal to enter the operating system; the critical data can be directly located in the configuration space during the boot phase via addressing. Furthermore, since the disk formatting process requires clearing the data on the disk, the critical data originally stored in the configuration space will also be cleared. To prevent the loss of critical data during disk formatting, the critical data is first written to memory for backup before formatting the disk. After the disk is reformatted and the corresponding configuration space is created, the data in memory is written back to the configuration space. Thus, regardless of whether there is a subsequent disk formatting operation, the critical information can be completely preserved, achieving one-time configuration and permanent effect. Moreover, this disk formatting method still achieves the batch formatting functionality of traditional terminals.

[0145] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent modifications made based on the content of the present invention specification and drawings, or direct or indirect applications in related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A method for formatting a disk, characterized in that, include: A preset initial configuration space is provided, which includes key data. Determine if a formatting command has been received; if so, save the key data to memory and then perform formatting. The execution of formatting includes: Obtain the disk information of the source disk, and calculate the disk space size based on the disk information; The data in the source disk is cleared based on the disk space size and the address position offset to obtain a new disk; Create a current custom file system partition on the new disk based on the disk information; Create the current configuration space in the currently custom file system partition; The key data is retrieved from the memory and stored in the current configuration space by offsetting the address location; The preset initial configuration space includes: Get the newly formatted disk; Create an initial custom file system partition on the new disk; Create an initial configuration space in the initial custom file system partition; Acquire key data and store the key data in the initial configuration space; The preset initial configuration space includes: Get the header information of the current file system partition; Based on the header information, determine whether the current file system partition is a custom file system partition. If so, execute the step of determining whether a formatting command has been received; otherwise, execute the step of setting the preset initial configuration space. The custom file system partition includes the initial custom file system partition and the current custom file system partition.

2. The disk formatting method according to claim 1, characterized in that, The step of acquiring key data and storing the key data in the initial configuration space includes: The operating system is loaded, key data is accessed through the operating system, and the key data is stored in the initial configuration space by address location offset.

3. A disk formatting terminal, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, characterized in that, When the processor executes the computer program, it performs the following steps: A preset initial configuration space is provided, which includes key data. Determine if a formatting command has been received; if so, save the key data to memory and then perform formatting. The execution of formatting includes: Obtain the disk information of the source disk, and calculate the disk space size based on the disk information; The data in the source disk is cleared based on the disk space size and the address position offset to obtain a new disk; Create a current custom file system partition on the new disk based on the disk information; Create the current configuration space in the currently custom file system partition; The key data is retrieved from the memory and stored in the current configuration space by offsetting the address location; The preset initial configuration space includes: Get the newly formatted disk; Create an initial custom file system partition on the new disk; Create an initial configuration space in the initial custom file system partition; Acquire key data and store the key data in the initial configuration space; The preset initial configuration space includes: Get the header information of the current file system partition; Based on the header information, determine whether the current file system partition is a custom file system partition. If so, execute the step of determining whether a formatting command has been received; otherwise, execute the step of setting the preset initial configuration space. The custom file system partition includes the initial custom file system partition and the current custom file system partition.

4. A disk formatting terminal according to claim 3, characterized in that, The step of acquiring key data and storing the key data in the initial configuration space includes: The operating system is loaded, key data is accessed through the operating system, and the key data is stored in the initial configuration space by address location offset.