[go: up one dir, main page]

CN120469638A - A method for dynamically expanding operating system partitions - Google Patents

A method for dynamically expanding operating system partitions

Info

Publication number
CN120469638A
CN120469638A CN202510553826.9A CN202510553826A CN120469638A CN 120469638 A CN120469638 A CN 120469638A CN 202510553826 A CN202510553826 A CN 202510553826A CN 120469638 A CN120469638 A CN 120469638A
Authority
CN
China
Prior art keywords
operating system
storage device
storage
combined
capacity
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
CN202510553826.9A
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.)
Guangzhou Jinqili Information Technology Co ltd
Original Assignee
Guangzhou Jinqili Information Technology Co 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 Guangzhou Jinqili Information Technology Co ltd filed Critical Guangzhou Jinqili Information Technology Co ltd
Priority to CN202510553826.9A priority Critical patent/CN120469638A/en
Publication of CN120469638A publication Critical patent/CN120469638A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明属于数据存储技术领域,具体涉及一种操作系统分区动态扩容的方法,包括:S1.检索操作系统中存在可用的存储设备单元;S2.从检索出的可用的存储设备单元中,选择出要进行存储容量组合的多个存储设备单元,为选择出待组合的每个存储设备单元赋予组合标识信息;S3.根据选择出的多个存储设备单元的组合标识信息,将选择出待组合的多个存储设备单元一一进行标识,将标识后的存储设备单元进行组合,获得组合后的大容量存储;S4.叠加组合后的大容量存储到操作系统分区。本发明实现了对闲置的碎片化的小容量存储的二次利用;动态扩展操作系统分区,增大操作系统分区的空间容量。

The present invention belongs to the field of data storage technology, and specifically relates to a method for dynamically expanding an operating system partition, comprising: S1. retrieving available storage device units in an operating system; S2. selecting multiple storage device units to be combined for storage capacity from the retrieved available storage device units, and assigning combination identification information to each storage device unit selected for combination; S3. identifying the multiple storage device units selected for combination one by one based on the combination identification information of the multiple storage device units selected, combining the identified storage device units to obtain a combined large-capacity storage; S4. superimposing the combined large-capacity storage onto the operating system partition. The present invention achieves secondary utilization of idle, fragmented, small-capacity storage; dynamically expands the operating system partition, and increases the space capacity of the operating system partition.

Description

Method for dynamic capacity expansion of operating system partition
Technical Field
The invention belongs to the technical field of data storage, and particularly relates to a method for dynamic capacity expansion of an operating system partition.
Background
With the development of social technology, the continuous iterative increase of software functions leads to an increasing occupation of software space, such as office software familiar to the public, from hundreds of megabytes in the past ten years, to two gigabytes in the past several years, to several gigabytes at present, even to a complete functional edition, and more than ten gigabytes.
The software functions are abundant, the digital data are continuously accumulated, the requirements on the storage space are higher and higher, the purchased large-capacity storage is more and more to meet the related requirements, meanwhile, the cost is also continuously increased, the idle small-capacity storage is more and more, the storage equipment is fragmented, and finally, the storage equipment can be wasted, and particularly for large files, the storage space is limited and cannot be reused.
The large storage space requirements are convenient to replace with respect to an extended hard disk, but are complex for operating system partitions. Normally, the system software can only be normally operated when being installed under the partition of the operating system, and the only available replacement of a new large-capacity hard disk can be realized in order to ensure the normal operation of the system software (comprising the operating system) due to the limited capacity of the partition of the operating system, and the operations of reloading the system, copying data and the like are involved in the process, so that the complex and complicated workload is increased, and a great deal of time is wasted.
Disclosure of Invention
In order to solve the technical problems that the unused fragmented small-capacity storage cannot be reused, the partition capacity of an operating system is limited, and the space capacity of the partition of the operating system can be increased only by changing a large-capacity hard disk, the invention provides the following technical scheme:
A method for dynamic capacity expansion of operating system partitions, comprising:
s1, searching available storage equipment units in an operating system;
S2, selecting a plurality of storage device units to be combined in storage capacity from the retrieved available storage device units, and endowing combination identification information for each storage device unit to be combined;
S3, according to the combination identification information of the selected storage device units, the selected storage device units to be combined are identified one by one, and the identified storage device units are combined to obtain combined mass storage;
s4, the combined large capacity is stored in an operating system partition.
Further, in step S3, a plurality of storage device units to be combined are selected for identification, where the identification method is to encrypt the combined identification information of each storage device unit, and write the encrypted combined identification information into the location of the storage block 0 of the corresponding storage device unit.
Further, the combined identification information includes a time of joining the mass storage, a location in the mass storage, a host device UUID, a size of a capacity of the current storage device unit joining the mass storage.
Further, the combined identification information of each storage device unit is encrypted, wherein the encryption method is to use the hardware information of the host unit as an encryption KEY, and the combined identification information is used as the content to be encrypted for encryption.
Further, in step S3, the identified storage device units are combined, wherein the combination method uses stored linear combinations.
Further, in step S4, the combined mass storage is superimposed on the operating system partition, and the superimposing method adds the mass storage formed by combining directly in a linear combination manner to the operating system partition.
Further, in step S4, the method of stacking the combined large-capacity storage to the operating system partition, the stacking method adopts a joint file system, the operating system partition is used as a read-only basic data partition, the operating system partition is used as a lower layer, the combined large-capacity storage is used as a readable and writable layer, the large-capacity storage is used as an upper layer, and all files on the operating system partition are mapped to the large-capacity storage one by one.
Compared with the prior art, the invention has the following beneficial effects:
The invention selects a plurality of storage equipment units to be subjected to storage capacity combination operation, performs identification and combination, obtains combined mass storage, and stacks the combined mass storage to an operating system partition. And N small-capacity storage equipment units are subjected to storage space capacity accumulation, and finally a large-capacity storage is synthesized, so that the secondary utilization of the idle fragmented small-capacity storage is realized.
And associating the synthesized large-capacity storage to the operating system partition, dynamically expanding the operating system partition under the condition of not replacing a large-capacity hard disk under the limited capacity of the operating system partition, and increasing the space capacity of the operating system partition.
Drawings
FIG. 1 is a flow chart of a method for dynamic capacity expansion of an operating system partition according to the present invention.
Detailed Description
The technical solutions of the present invention will be clearly described below with reference to the accompanying drawings, and it is obvious that the described embodiments are not all embodiments of the present invention, and all other embodiments obtained by a person skilled in the art without making any inventive effort are within the scope of protection of the present invention.
Noun interpretation:
Mass storage, namely, one mass storage formed by combining N storage hard disks or U disks. For example, (a 1GU disk) + (an 8G hard disk) into (a 9G mass storage);
The storage device unit is called as a storage device unit, and N storage hard disks or U-disks combined into one large-capacity storage are n=1, 2, 3.
Example 1
As shown in FIG. 1, the present invention provides a method for dynamic capacity expansion of an operating system partition, comprising:
s1, searching available storage equipment units in an operating system;
and searching all the accessed storage device units in the operating system.
S2, selecting a storage device unit to be stored in a large capacity;
Summarizing all available storage device units in the operating system retrieved in the step S1, and then selecting a plurality of storage device units to be subjected to storage capacity combination operation;
The combination identification information is assigned to each selected storage device unit, and the combination identification information of each storage device unit is used as an identification added to a mass storage, which is one mass storage formed by combining N storage device units.
S3, carrying out identification combination on a plurality of storage device units according to the combination identification information of each storage device unit to form a large-capacity storage;
S31, performing identification operation on the storage equipment units selected in the step S2 one by one;
The identification method is that the combined identification information of each storage device unit is encrypted, and the encrypted combined identification information is written into the position of the storage block 0 of the corresponding storage device unit.
The security of the identification information is improved, and the unique device usability of the storage device unit is considered. The combination identification information of each storage device unit is encrypted, and the encryption method is adopted, wherein the hardware information of the host unit is used as an encryption KEY, the combination identification information is used as the content to be encrypted, the final encrypted content is obtained through encryption, and meanwhile, the final encrypted content is written into the position of the storage block 0 of the storage device unit. The encryption KEY mainly takes the unalterable hardware information of the host device, such as a host serial number, a CPU serial number and the like.
By encrypting the combined identification information of the storage device units, the safety of the combined identification information of each storage device unit can be protected, and the later modification behavior is prevented from trying to tamper the combined identification information of the storage device units, so that the combined identification information of the storage device units is invalid and cannot be normally used, and user data loss is caused.
The combined identification information includes the time of joining the mass storage, the location in the mass storage, the host device UUID, the size of the capacity of the current storage device unit joining the mass storage, etc.
The combination identification information comprises 'time of joining the mass storage', and the combination identification information is convenient for later investigation by considering the different time of combining different storage device units.
The combination identification information includes "a location in a mass storage" to ensure correctness of a combination sequence of storage device units, and to assign incremental unique serial numbers (simply referred to as storage device unit serial numbers) to different storage device units, and later adjust an access sequence or an access hardware location of the storage device units anyway, so long as the storage device unit serial numbers are obtained, correct combination and ordered combination can be performed by using the storage device unit serial numbers, and a final correct combination is obtained.
The combined identification information includes a 'host device UUID', which is used for considering whether the current storage device unit is effective for the current host device or not in the combining process, so as to avoid damage and loss of user data caused by different host devices connected to other combined storage device units of the host device, wherein the UUID (Universally Unique Identifier, universal unique identification code) is a 128-bit identifier, and is commonly used for identifying hardware, an operating system or a virtualized instance in the host device, so that the uniqueness in the global scope is ensured.
The combined identification information includes "the capacity of the current storage device unit added into the mass storage", which is aimed at a single storage device unit, and a user may want to not only reserve the data before the user, but also perform mass storage and combination on a part of the free storage space, and at this time, the use size of the mass storage space of the storage device unit needs to be identified, so as to promote the versatility of the storage device unit. If the later user wants to use the storage with the multiple uses for the mass storage, only the mass size information of the current storage device unit added into the mass storage needs to be updated.
S32, combining the storage equipment units subjected to the identification operation in the step S31 into a large-capacity storage;
the combination method mainly adopts stored linear combination. The stored linear combination means that after the single storage device unit space is used fully, the next storage device unit space is used, so that the effective utilization of the single unit space is improved, and meanwhile, if damage of a certain storage device unit occurs later, the loss of user data is reduced.
S4, storing the combined large capacity in an operating system partition;
The stacking method adopts the same storage device unit combination method as in the step S3, and adds the combined mass storage to the operating system partition directly in a linear combination mode.
According to the method, the storage space utilization rate of the operating system partition can be improved as much as possible, but in the using process of the later operating system, if the problem occurs that the operating system cannot be used normally, the operating system needs to be reinstalled and installed.
Through the operation, the dynamic capacity expansion operation of the operating system partition can be completed.
Example 2
On the basis of embodiment 1, unlike the embodiment, in this embodiment, the superposition method adopts a joint file system, the operating system partition is used as a read-only basic data partition (called a lower layer), the combined mass storage is used as a readable and writable layer, and all files on the operating system partition are mapped into the mass storage one by one (called an upper layer). After the mapping is completed, the operation of the lower layer files is realized by operating the upper layer files, including file reading, file adding, file modifying and file deleting.
Reading files, namely directly reading corresponding files in the upper layer if files with the same name exist in the same path directory in the upper layer, and reading files mapped to the upper layer by the lower layer if files with the same name do not exist in the same path directory in the upper layer;
the file is added and completed in the upper layer;
copying the lower layer file to the upper layer (called copy), and then modifying the upper layer file copy;
and deleting the files, namely deleting the files of the upper layer if the files of the same name exist in the same path directory in the upper layer, and hiding the corresponding files in the lower layer and making the files invisible to the user if the files of the same name exist in the same path directory in the lower layer.
The above operations are all completed in the mass storage, and the lower operating system partition data can be understood as shadow data, which are read-only data. When data is often damaged, if the data is suddenly abnormally interrupted and is not completely written or updated, the data is lost and damaged, and particularly the operating system partitions, the operating system cannot be used normally easily.
By adopting the combined file system, the partition of the operating system is used as a read-only partition, and all operations on the file system only occur in the upper-layer mass storage, so that the possibility of damaging the partition of the operating system can be reduced as much as possible, and the stability and reliability of the partition of the operating system are greatly improved.
In the method, if the problem occurs and the operation system cannot be normally used in the later operation system, the operation system can be restored to the state when being installed only by emptying the data in the combined mass storage, and the operation system cannot be reinstalled and installed any more.
Through the operation, the dynamic capacity expansion operation of the operating system partition can be completed.
The technical characteristics form the optimal embodiment of the invention, have stronger adaptability and optimal implementation effect, and can increase or decrease unnecessary technical characteristics according to actual needs so as to meet the needs of different situations.
Finally, it should be noted that the above description is only for illustrating the technical solution of the present invention, and not for limiting the scope of the present invention, and that the simple modification and equivalent substitution of the technical solution of the present invention can be made by those skilled in the art without departing from the spirit and scope of the technical solution of the present invention.

Claims (7)

1.一种操作系统分区动态扩容的方法,其特征在于,包括:1. A method for dynamically expanding an operating system partition, comprising: S1.检索操作系统中存在可用的存储设备单元;S1. Retrieve the available storage device unit in the operating system; S2.从检索出的可用的存储设备单元中,选择出要进行存储容量组合的多个存储设备单元,为选择出待组合的每个存储设备单元赋予组合标识信息;S2. From the available storage device units retrieved, select multiple storage device units to be combined for storage capacity, and assign combination identification information to each storage device unit selected for combination; S3.根据选择出的多个存储设备单元的组合标识信息,将选择出待组合的多个存储设备单元一一进行标识,将标识后的存储设备单元进行组合,获得组合后的大容量存储;S3. Based on the combination identification information of the selected multiple storage device units, the multiple storage device units to be combined are selected one by one to be identified, the storage device units are combined after identification to obtain a large-capacity storage after the combination; S4.叠加组合后的大容量存储到操作系统分区。S4. The combined large capacity is stored in the operating system partition. 2.根据权利要求1所述的操作系统分区动态扩容的方法,其特征在于,步骤S3中,将选择出待组合的多个存储设备单元一一进行标识,其中标识方法为将每个存储设备单元的组合标识信息进行加密,将加密后的组合标识信息写入对应的存储设备单元的存储区块0的位置。2. The method for dynamically expanding an operating system partition according to claim 1 is characterized in that, in step S3, multiple storage device units to be combined are selected and identified one by one, wherein the identification method is to encrypt the combination identification information of each storage device unit and write the encrypted combination identification information into the location of storage block 0 of the corresponding storage device unit. 3.根据权利要求1所述的操作系统分区动态扩容的方法,其特征在于,组合标识信息包括,加入大容量存储的时间、位于大容量存储中的位置、主机设备UUID、当前存储设备单元加入大容量存储中的容量大小。3. The method for dynamically expanding an operating system partition according to claim 1, wherein the combined identification information includes the time of adding the mass storage, the location in the mass storage, the UUID of the host device, and the capacity of the current storage device unit added to the mass storage. 4.根据权利要求2所述的操作系统分区动态扩容的方法,其特征在于,将每个存储设备单元的组合标识信息进行加密,其中加密方法为采用主机单元硬件信息作为加密KEY,以组合标识信息作为待加密内容,进行加密。4. The method for dynamically expanding an operating system partition according to claim 2 is characterized in that the combined identification information of each storage device unit is encrypted, wherein the encryption method uses the host unit hardware information as the encryption key and the combined identification information as the content to be encrypted. 5.根据权利要求1所述的操作系统分区动态扩容的方法,其特征在于,步骤S3中,将标识后的存储设备单元进行组合,其中组合方法采用存储的线性组合。5. The method for dynamically expanding an operating system partition according to claim 1, wherein in step S3, the identified storage device units are combined, wherein the combination method adopts a linear combination of storage. 6.根据权利要求1所述的操作系统分区动态扩容的方法,其特征在于,步骤S4中,叠加组合后的大容量存储到操作系统分区,叠加方法采用将组合后形成的大容量存储直接以存储的线性组合的方式,追加到操作系统分区下。6. The method for dynamically expanding an operating system partition according to claim 1 is characterized in that in step S4, the combined large-capacity storage is superimposed on the operating system partition, and the superposition method adopts the method of directly appending the large-capacity storage formed by the combination to the operating system partition in the form of a linear combination of storage. 7.根据权利要求1所述的操作系统分区动态扩容的方法,其特征在于,步骤S4中,叠加组合后的大容量存储到操作系统分区的方法,叠加方法采用联合文件系统,将操作系统分区作为只读的基础数据分区,操作系统分区作为下层;将组合后的大容量存储作为可读写层,大容量存储作为上层;将操作系统分区上所有文件一一映射到大容量存储中。7. The method for dynamically expanding an operating system partition according to claim 1 is characterized in that, in step S4, a method for superimposing the combined large-capacity storage onto the operating system partition adopts a joint file system, wherein the operating system partition is used as a read-only basic data partition, and the operating system partition is used as a lower layer; the combined large-capacity storage is used as a read-write layer, and the large-capacity storage is used as an upper layer; and all files on the operating system partition are mapped one by one to the large-capacity storage.
CN202510553826.9A 2025-04-29 2025-04-29 A method for dynamically expanding operating system partitions Pending CN120469638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510553826.9A CN120469638A (en) 2025-04-29 2025-04-29 A method for dynamically expanding operating system partitions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510553826.9A CN120469638A (en) 2025-04-29 2025-04-29 A method for dynamically expanding operating system partitions

Publications (1)

Publication Number Publication Date
CN120469638A true CN120469638A (en) 2025-08-12

Family

ID=96643084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510553826.9A Pending CN120469638A (en) 2025-04-29 2025-04-29 A method for dynamically expanding operating system partitions

Country Status (1)

Country Link
CN (1) CN120469638A (en)

Similar Documents

Publication Publication Date Title
US10977124B2 (en) Distributed storage system, data storage method, and software program
US20080101605A1 (en) Storage system provided with an encryption function
US7293145B1 (en) System and method for data transfer using a recoverable data pipe
EP1569085B1 (en) Method and apparatus for increasing data storage capacity
US6944742B1 (en) Compressed file system for non-volatile RAM
US8818950B2 (en) Method and apparatus for localized protected imaging of a file system
JP5581776B2 (en) Backup device, backup method and backup program
CN101681237A (en) Encryption device, encryption method, and encryption program
CN103049224A (en) Method, device and system for importing data into physical tape
CN111367856A (en) Data copying method and device, electronic equipment and machine-readable storage medium
JP5391705B2 (en) Storage system
WO2011120335A1 (en) Method, device and computer for data operation
WO2009031158A2 (en) Method and apparatus for network based data recovery
JP5517224B2 (en) Storage device
WO2025113477A1 (en) Data access method and apparatus
CN111913915B (en) File hiding method and device
US7437528B1 (en) Gang blocks
TW201113702A (en) Data storage device and method
CN120469638A (en) A method for dynamically expanding operating system partitions
CN114816244B (en) Data processing method for hidden partition and electronic equipment
CN114647388B (en) Distributed block storage system and management method
CN115328851A (en) A data protection method, device, equipment and medium
US20130218851A1 (en) Storage system, data management device, method and program
CN115454331A (en) Storage method and storage system for additional object
CN119166606B (en) A virtual file system and a virtual file system operation method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination