CN109960517A - Production method, device, system and the storage medium of image file - Google Patents

Production method, device, system and the storage medium of image file Download PDF

Info

Publication number
CN109960517A
CN109960517A CN201910193354.5A CN201910193354A CN109960517A CN 109960517 A CN109960517 A CN 109960517A CN 201910193354 A CN201910193354 A CN 201910193354A CN 109960517 A CN109960517 A CN 109960517A
Authority
CN
China
Prior art keywords
image file
file
target image
target
module
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.)
Granted
Application number
CN201910193354.5A
Other languages
Chinese (zh)
Other versions
CN109960517B (en
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.)
Loongson Technology Corp Ltd
Original Assignee
Loongson Technology Corp 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 Loongson Technology Corp Ltd filed Critical Loongson Technology Corp Ltd
Priority to CN201910193354.5A priority Critical patent/CN109960517B/en
Publication of CN109960517A publication Critical patent/CN109960517A/en
Application granted granted Critical
Publication of CN109960517B publication Critical patent/CN109960517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides production method, device, system and the storage medium of a kind of image file, this method comprises: creating image file according to preset default parameters;Multidomain treat-ment is carried out to the image file, obtains target image file;The target image file is invented into winding equipment, and the target image file is loaded;By the target mirror image file mount to specified directory;(SuSE) Linux OS compact disk file system solution is depressed into the specified directory;Under the catalogue that file after (SuSE) Linux OS compact disk file system decompression is copied to the target image file with predetermined manner;The target image file is converted to the image file of preset format.The present invention can simplify the manufacturing process of image file, reduce the interactive operation of user in manufacturing process.

Description

Production method, device, system and the storage medium of image file
Technical field
The present invention relates to field of computer technology more particularly to a kind of production method of image file, device, system and deposit Storage media.
Background technique
Sparse file is an advanced feature of Linux file system, and the overburden that can be realized disk uses;For example, Virtual machine creating virtual hard disk and database snapshot.In Linux, losetup (setting winding equipment) program can be passed through Zoneless file system mirror file is loaded, or is loaded by the cooperation of kpartx (mount virtual file-system command) There is the file system mirror file of subregion.Since the production of sparse file is relatively simple, needing to make qcow2 format Image file when, can select first to make sparse file, then sparse file is converted to the image file of qcow2 format again.
Currently, the manufacturing process of image file, usually first creates image file (the one of sparse file of specified size Kind), partition table then is established for image file, image file is associated with raw device, reads file partition table rear mount The file system of system iso format is copied in image file, image file is finally converted into qcow2 lattice by image file The image file of formula.
But the production method process of this image file is cumbersome, needs the multiple manual confirmation of user, the system of image file It is relatively low to make efficiency.
Summary of the invention
The present invention provides production method, device, system and the storage medium of a kind of image file, can simplify image file Manufacturing process, reduce manufacturing process in user interactive operation.
In a first aspect, the embodiment of the present invention provides a kind of production method of image file, comprising:
According to preset default parameters, image file is created;
Multidomain treat-ment is carried out to the image file, obtains target image file;
The target image file is invented into winding equipment, and the target image file is loaded;
By the target mirror image file mount to specified directory;
(SuSE) Linux OS compact disk file system solution is depressed into the specified directory;
The file after (SuSE) Linux OS compact disk file system decompression is copied to the target mirror with predetermined manner As file catalogue under;
The target image file is converted to the image file of preset format.
In a kind of possible design, according to preset default parameters, image file is created, comprising:
Preset default parameters is transferred by creation disk file order, generates the image file of img format.
In a kind of possible design, multidomain treat-ment is carried out to the image file, obtains target image file, comprising:
Multidomain treat-ment is carried out to the image file by transferring partition functions automatically, is obtained comprising at least one main partition Target image file.
In a kind of possible design, before the target image file is converted to the image file of preset format, Further include:
In the file system of the target image file, creation regular account, regular account password and administrator's account Family password.
In a kind of possible design, before being loaded to the target image file, further includes:
Judge whether the target image file successfully invents winding equipment, if failure, the system of progress reports an error, to mention Show and carries out system failure investigation.
In a kind of possible design, in the file system of the target image file, regular account, common account are created Before family password and administrator's account password, further includes:
Enter the file system of the target image file by file system switching command, if entering failure, terminates Process.
Second aspect, the embodiment of the present invention provide a kind of producing device of image file, comprising:
Creation module, for creating image file according to preset default parameters;
Division module obtains target image file for carrying out multidomain treat-ment to the image file;
Virtual module, for the target image file to be invented winding equipment, and to the target image file into Luggage carries;
Carry module is used for the target mirror image file mount to specified directory;
Decompression module, for (SuSE) Linux OS compact disk file system solution to be depressed into the specified directory;
Module is copied, for copying the file after (SuSE) Linux OS compact disk file system decompression with predetermined manner Under shellfish to the catalogue of the target image file;
Conversion module, for the target image file to be converted to the image file of preset format.
In a kind of possible design, the creation module is specifically used for:
Preset default parameters is transferred by creation disk file order, is generated and (is also possible to it by extension name of img His type) raw format image file.
In a kind of possible design, the division module is specifically used for:
Multidomain treat-ment is carried out to the image file by transferring partition functions automatically, is obtained comprising at least one main partition Target image file.
In a kind of possible design, further includes:
Encrypting module, in the file system of the target image file, creation regular account, regular account to be close Code and administrator's account password.
In a kind of possible design, further includes:
Judgment module, for before being loaded to the target image file, judging that the target image file is It is no successfully to invent winding equipment, if failure, the system of progress report an error, system failure investigation is carried out with prompt.
In a kind of possible design, further includes:
Module is changed, in the file system of the target image file, creation regular account, regular account to be close Before code and administrator's account password, the file system of the target image file is entered by file system switching command, If entering failure, terminate process.
The third aspect, the embodiment of the present invention provide a kind of manufacturing system of image file, comprising: memory and processor, The executable instruction of the processor is stored in memory;Wherein, the processor is configured to described executable via executing The production method for instructing to execute image file described in any one of first aspect.
A kind of fourth aspect, computer readable storage medium of the embodiment of the present invention, is stored thereon with computer program, the journey The production method of image file described in any one of first aspect is realized when sequence is executed by processor.
Production method, device, system and the storage medium of image file provided by the invention, by according to preset default Parameter creates image file;Multidomain treat-ment is carried out to the image file, obtains target image file;By the target mirror image File invents winding equipment, and is loaded to the target image file;By the target mirror image file mount to specified Catalogue;(SuSE) Linux OS compact disk file system solution is depressed into the specified directory;By the (SuSE) Linux OS CD text File after part system decompression is copied to predetermined manner under the catalogue of the target image file;By the target image file Be converted to the image file of preset format.The present invention can fully automatically realize image file by running preset control instruction Production simplify the manufacturing process of image file to reduce the interactive operation of user in manufacturing process.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is application scenarios schematic diagram of the invention;
Fig. 2 is the flow chart of the production method for the image file that the embodiment of the present invention one provides;
Fig. 3 is the flow chart of the production method of image file provided by Embodiment 2 of the present invention;
Fig. 4 is the structural schematic diagram of the producing device for the image file that the embodiment of the present invention three provides;
Fig. 5 is the structural schematic diagram of the manufacturing system for the image file that the embodiment of the present invention four provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this A little process, methods, the other step or units of product or equipment inherently.
Technical solution of the present invention is described in detail with specifically embodiment below.These specific implementations below Example can be combined with each other, and the same or similar concept or process may be repeated no more in some embodiments.
Hereinafter, the part term in the application is explained, in order to those skilled in the art understand that:
1) image file, so-called image file is in fact similar with rar ZIP compressed package, it presses a series of specific files Single file is fabricated to according to certain format, to facilitate user to download and use, such as operating system, a game etc..It Most important feature is can be identified and can directly be burnt on CD by specific software.Mirror image text on ordinary meaning in fact Part can extend again, may include more information in image file.Such as system file, guidance file, subregion Table information etc., such image file can include all information of even one piece hard disk of a subregion.
2) winding equipment (Loopback Device), referring to allows user to set with a virtual block of ordinary magnetic disc file It is standby.The use of winding equipment is identical as other any block devices, and user can create file system and as general in winding equipment Logical disk equally by its carry in systems.
3) sparse file is one of file system document storage mode, as soon as when creation file, in advance It is assigned with the Coutinuous store space of file needs, most of inner spaces are not all filled by data also.Currently, most of text Part system all supports sparse file.
Fig. 1 is application scenarios schematic diagram of the invention, as shown in Figure 1, comprising: first according to preset default parameters, wound Build image file;Then multidomain treat-ment is carried out to image file;Image file is invented into winding equipment;Judging winding equipment is No virtual success, if success, is loaded image file, if failure, the system of progress report an error, to prompt the event of carry out system Barrier investigation.
After completing to the loading of image file, image file is mounted to specified directory;Decompress (SuSE) Linux OS Compact disk file system is to specified directory;File after (SuSE) Linux OS compact disk file system decompression is copied with predetermined manner To the catalogue of image file;Into target file system, it is close to create regular account, regular account password and administrator's account Code;Judge whether to enter target file system, if image file, is converted to the image file of preset format by success, if losing It loses, then terminates process.
It can simplify the manufacturing process of image file using the above method, reduce the interactive operation of user in manufacturing process, Under the premise of guaranteeing file copy integrality, the copying speed of file is effectively improved.
How to be solved with technical solution of the specifically embodiment to technical solution of the present invention and the application below above-mentioned Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
Fig. 2 is the flow chart of the production method for the image file that the embodiment of the present invention one provides, as shown in Fig. 2, this implementation Example in method may include:
S101, according to preset default parameters, create image file.
In the present embodiment, preset default parameters can be transferred by creation disk file order, generates img format Image file.Specifically, basic sparse file can be created by truncate order (creation disk file order), so Sparse file is converted to the image file of img format afterwards.
It should be noted that in order to reduce the interactive operation of user, it is related all during the creation of image file Input parameter all selects default parameters.During creation, preset default parameters is transferred by creation disk file order Basic sparse file is directly produced, the basic sparse file is then converted into image file.Wherein, sparse file does not wrap Containing user data, it is also not allocated to the disk space for storing user data.When data are written into sparse file, system Gradually disk space is distributed for it.
S102, multidomain treat-ment is carried out to image file, obtains target image file.
In the present embodiment, multidomain treat-ment can be carried out to image file by transferring partition functions automatically, obtained comprising extremely The target image file in a few main partition.Optionally, in practical applications, subregion is compactly carried out for convenience, it can be only Only make a main partition.
S103, target image file is invented to winding equipment, and target image file is loaded.
In the present embodiment, before being loaded to target image file, can also judge target image file whether at Function invents winding equipment, if failure, terminates process.
In the present embodiment, only virtually succeeds in winding equipment and then target image file is loaded, to keep away Exempt from because winding equipment virtually fail brought by unnecessary operation, improve image file production success rate.
S104, by target mirror image file mount to specified directory.
In the present embodiment, specified directory refers to user pre-set for placing the catalogue of the image file of production.
S105, (SuSE) Linux OS compact disk file system solution is depressed into specified directory.
In the present embodiment, decompression program is called, (SuSE) Linux OS compact disk file system is unziped in step S104 Specified directory.
S106, the file after (SuSE) Linux OS compact disk file system decompression is copied to target mirror image with predetermined manner Under the catalogue of file.
In the present embodiment, can using optimization after hdcopy will (SuSE) Linux OS compact disk file system decompression after File copy to the catalogue of target image file under.
Specifically, it can use the rsync mode (the mirror back-up of data tool under Linux system) after optimization will Under file copy to the catalogue of target image file after (SuSE) Linux OS compact disk file system decompression.This mode, can be with It avoids copying incomplete problem, ensures that the image file to complete is complete file.
S107, the image file that target image file is converted to preset format.
In the present embodiment, the image file of img format can be converted to the image file of qcow2 format.
It should be noted that the present embodiment can be applied in (SuSE) Linux OS platform, for rapidly carrying out mirror image The production of file.Other than (SuSE) Linux OS, the method in the present embodiment can also be in other similar operating system In, specific implementation process is similar with realization principle, and details are not described herein again.
The present embodiment, by creating image file according to preset default parameters;Multidomain treat-ment is carried out to image file, Obtain target image file;Target image file is invented into winding equipment, and target image file is loaded;By target Image file is mounted to specified directory;(SuSE) Linux OS compact disk file system solution is depressed into specified directory;Linux is operated File after system compact disk file system decompression is copied to predetermined manner under the catalogue of target image file;By target mirror image text Part is converted to the image file of preset format.In the present embodiment, system transfers preset default parameters automatically to create mirror image text Then part carries out subregion, and the carry and program of file copy of autonomous operation image file to image file according to partition command, completes The production of image file carries out manual confirmation without user in whole process, reduces the interactive operation of user in manufacturing process, letter The manufacturing process of image file is changed.
Fig. 3 is the flow chart of the production method of image file provided by Embodiment 2 of the present invention, as shown in figure 3, this implementation Example in method may include:
S201, according to preset default parameters, create image file.
S202, multidomain treat-ment is carried out to image file, obtains target image file.
S203, target image file is invented to winding equipment, and target image file is loaded.
S204, by target mirror image file mount to specified directory.
S205, (SuSE) Linux OS compact disk file system solution is depressed into specified directory.
S206, the file after (SuSE) Linux OS compact disk file system decompression is copied to target mirror image with predetermined manner Under the catalogue of file.
Step S201~step S206 specific implementation process and principle in the present embodiment, refer to Fig. 2 step S101~ The associated description of step S106, details are not described herein again.
S207, in the file system of target image file, creation regular account, regular account password and administrator Account password.
In a kind of optional embodiment, before executing step S207, file system switching command can also be passed through Into the file system of target image file, if entering failure, terminate process.
Specifically, chroot order (file system switching command) is run, enters the file system of target image file, Then in the running environment of chroot, creation regular account, regular account password and administrator's account password.Pass through wound Regular account, regular account password and administrator's account password are built, the malicious modification to image file can be prevented, is ensured The image file of production can operate normally.
S208, the image file that target image file is converted to preset format.
The specific implementation process and principle of step S208, refers to the associated description of Fig. 2 step S107 in the present embodiment, this Place repeats no more.
The present embodiment, by creating image file according to preset default parameters;Multidomain treat-ment is carried out to image file, Obtain target image file;Target image file is invented into winding equipment, and target image file is loaded;By target Image file is mounted to specified directory;(SuSE) Linux OS compact disk file system solution is depressed into specified directory;Linux is operated File after system compact disk file system decompression is copied to predetermined manner under the catalogue of target image file;By target mirror image text Part is converted to the image file of preset format.In the present embodiment, system transfers preset default parameters automatically to create mirror image text Then part carries out subregion, and the carry and program of file copy of autonomous operation image file to image file according to partition command, completes The production of image file carries out manual confirmation without user in whole process, reduces the interactive operation of user in manufacturing process, letter The manufacturing process of image file is changed.Also, when entering the file system of target image file, creation regular account, general Leading to account password and administrator's account password prevents other so as to which the operating right of ordinary user and administrator is arranged Personnel ensure that the image file of production can operate normally to the malicious modification of image file.
Fig. 4 is the structural schematic diagram of the producing device for the image file that the embodiment of the present invention three provides, as shown in figure 4, this Device in embodiment may include:
Creation module 301, for creating image file according to preset default parameters;
Division module 302 obtains target image file for carrying out multidomain treat-ment to image file;
Virtual module 303 for target image file to be invented winding equipment, and fills target image file It carries;
Carry module 304 is used for target mirror image file mount to specified directory;
Decompression module 305, for (SuSE) Linux OS compact disk file system solution to be depressed into specified directory;
Module 306 is copied, for copying the file after (SuSE) Linux OS compact disk file system decompression with predetermined manner To under the catalogue of target image file;
Conversion module 307, for target image file to be converted to the image file of preset format.
In a kind of possible design, creation module 301 is specifically used for:
Preset default parameters is transferred by creation disk file order, generates the image file of img format.
In a kind of possible design, division module 302 is specifically used for:
Multidomain treat-ment is carried out to image file by transferring partition functions automatically, obtains the mesh comprising at least one main partition Mark image file.
In a kind of possible design, further includes:
Encrypting module 308, for creating regular account, regular account password in the file system of target image file, And administrator's account password.
Judgment module 309, for judging whether target image file succeeds before being loaded to target image file Winding equipment is invented, if failure, the system of progress report an error, system failure investigation is carried out with prompt.
In a kind of possible design, further includes:
Module 310 is changed, for creating regular account, regular account password in the file system of target image file, And before administrator's account password, the file system of target image file is entered by file system switching command, if into Failure, then terminate process.
The distributor of the display memory of the present embodiment can execute the technical solution in method shown in Fig. 2, Fig. 3, tool Body realizes the associated description of process and technical principle referring to fig. 2, in method shown in Fig. 3, and details are not described herein again.
The present embodiment, by creating image file according to preset default parameters;Multidomain treat-ment is carried out to image file, Obtain target image file;Target image file is invented into winding equipment, and target image file is loaded;By target Image file is mounted to specified directory;(SuSE) Linux OS compact disk file system solution is depressed into specified directory;Linux is operated File after system compact disk file system decompression is copied to predetermined manner under the catalogue of target image file;In target mirror image text In the file system of part, creation regular account, regular account password and administrator's account password;Target image file is turned It is changed to the image file of preset format.In the present embodiment, system transfers preset default parameters to create image file, so automatically Subregion, and the carry and program of file copy of autonomous operation image file are carried out to image file according to partition command afterwards, complete mirror image The production of file carries out manual confirmation without user in whole process, reduces the interactive operation of user in manufacturing process, simplifies The manufacturing process of image file.Also, when entering the file system of target image file, regular account, common account are created Family password and administrator's account password prevent other staff so as to which the operating right of ordinary user and administrator is arranged To the malicious modification of image file, ensure that the image file of production can operate normally.
Fig. 5 is the structural schematic diagram of the manufacturing system for the image file that the embodiment of the present invention four provides, as shown in figure 5, this The manufacturing system 40 of embodiment image file may include: processor 41 and memory 42.
Memory 42, for storing computer program (application program, function as realized the production method of above-mentioned image file Can module etc.), computer instruction etc.;
Above-mentioned computer program, computer instruction etc. can be with partitioned storages in one or more memories 42.And Above-mentioned computer program, computer instruction, data etc. can be called with device 41 processed.
Processor 41, for executing the computer program of the storage of memory 42, to realize method that above-described embodiment is related to In each step.
It specifically may refer to the associated description in previous methods embodiment.
Processor 41 and memory 42 can be absolute construction, be also possible to the integrated morphology integrated.Work as processing When device 41 and memory 42 are absolute construction, memory 42, processor 41 can be of coupled connections by bus 43.
The server of the present embodiment can execute the technical solution in method shown in Fig. 2, Fig. 3, specific implementation process and Associated description of the technical principle referring to fig. 2, in method shown in Fig. 3, details are not described herein again.
The present embodiment, by creating image file according to preset default parameters;Multidomain treat-ment is carried out to image file, Obtain target image file;Target image file is invented into winding equipment, and target image file is loaded;By target Image file is mounted to specified directory;(SuSE) Linux OS compact disk file system solution is depressed into specified directory;Linux is operated File after system compact disk file system decompression is copied to predetermined manner under the catalogue of target image file;In target mirror image text In the file system of part, creation regular account, regular account password and administrator's account password;Target image file is turned It is changed to the image file of preset format.
In addition, the embodiment of the present application also provides a kind of computer readable storage medium, deposited in computer readable storage medium Computer executed instructions are contained, when at least one processor of user equipment executes the computer executed instructions, user equipment Execute above-mentioned various possible methods.
Wherein, computer-readable medium includes computer storage media and communication media, and wherein communication media includes being convenient for From a place to any medium of another place transmission computer program.Storage medium can be general or specialized computer Any usable medium that can be accessed.A kind of illustrative storage medium is coupled to processor, to enable a processor to from this Read information, and information can be written to the storage medium.Certainly, storage medium is also possible to the composition portion of processor Point.Pocessor and storage media can be located in ASIC.In addition, the ASIC can be located in user equipment.Certainly, processor and Storage medium can also be used as discrete assembly and be present in communication equipment.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (14)

1. a kind of production method of image file characterized by comprising
According to preset default parameters, image file is created;
Multidomain treat-ment is carried out to the image file, obtains target image file;
The target image file is invented into winding equipment, and the target image file is loaded;
By the target mirror image file mount to specified directory;
(SuSE) Linux OS compact disk file system solution is depressed into the specified directory;
The file after (SuSE) Linux OS compact disk file system decompression is copied to the target mirror image text with predetermined manner Under the catalogue of part;
The target image file is converted to the image file of preset format.
2. the method according to claim 1, wherein creating image file, packet according to preset default parameters It includes:
Preset default parameters is transferred by creation disk file order, generates the image file of img format.
3. obtaining target the method according to claim 1, wherein carrying out multidomain treat-ment to the image file Image file, comprising:
Multidomain treat-ment is carried out to the image file by transferring partition functions automatically, obtains the mesh comprising at least one main partition Mark image file.
4. the method according to claim 1, wherein the target image file is converted to preset format Before image file, further includes:
In the file system of the target image file, creation regular account, regular account password and administrator's account are close Code.
5. method according to any of claims 1-4, which is characterized in that filled to the target image file Before load, further includes:
Judge whether the target image file successfully invents winding equipment, if failure, the system of progress reports an error, with prompt into Row system failure investigation.
6. according to the method described in claim 4, it is characterized in that, being created in the file system of the target image file Before regular account, regular account password and administrator's account password, further includes:
Enter the file system of the target image file by file system switching command, if entering failure, terminates process.
7. a kind of producing device of image file characterized by comprising
Creation module, for creating image file according to preset default parameters;
Division module obtains target image file for carrying out multidomain treat-ment to the image file;
Virtual module for the target image file to be invented winding equipment, and fills the target image file It carries;
Carry module is used for the target mirror image file mount to specified directory;
Decompression module, for (SuSE) Linux OS compact disk file system solution to be depressed into the specified directory;
Module is copied, for copying the file after (SuSE) Linux OS compact disk file system decompression to predetermined manner Under the catalogue of the target image file;
Conversion module, for the target image file to be converted to the image file of preset format.
8. device according to claim 7, which is characterized in that the creation module is specifically used for:
Preset default parameters is transferred by creation disk file order, generates the image file of img format.
9. device according to claim 7, which is characterized in that the division module is specifically used for:
Multidomain treat-ment is carried out to the image file by transferring partition functions automatically, obtains the mesh comprising at least one main partition Mark image file.
10. device according to claim 7, which is characterized in that further include:
Encrypting module, for creating regular account, regular account password in the file system of the target image file, with And administrator's account password.
11. the device according to any one of claim 7-10, which is characterized in that further include:
Judgment module, for before being loaded to the target image file, judge the target image file whether at Function invents winding equipment, if failure, the system of progress report an error, carries out system failure investigation with prompt.
12. device according to claim 10, which is characterized in that further include:
Module is changed, for creating regular account, regular account password in the file system of the target image file, with And before administrator's account password, the file system of the target image file is entered by file system switching command, if into Enter failure, then terminates process.
13. a kind of manufacturing system of image file characterized by comprising memory and processor store in memory State the executable instruction of processor;Wherein, the processor is configured to want via executing the executable instruction and carry out perform claim The production method for seeking image file described in any one of 1-6.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The production method of image file of any of claims 1-6 is realized when execution.
CN201910193354.5A 2019-03-14 2019-03-14 Method, device and system for manufacturing mirror image file and storage medium Active CN109960517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910193354.5A CN109960517B (en) 2019-03-14 2019-03-14 Method, device and system for manufacturing mirror image file and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910193354.5A CN109960517B (en) 2019-03-14 2019-03-14 Method, device and system for manufacturing mirror image file and storage medium

Publications (2)

Publication Number Publication Date
CN109960517A true CN109960517A (en) 2019-07-02
CN109960517B CN109960517B (en) 2022-11-22

Family

ID=67024260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910193354.5A Active CN109960517B (en) 2019-03-14 2019-03-14 Method, device and system for manufacturing mirror image file and storage medium

Country Status (1)

Country Link
CN (1) CN109960517B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090439A (en) * 2019-12-13 2020-05-01 苏州浪潮智能科技有限公司 Mirror image generation method, device and equipment for Linux system of bare metal server
CN111338652A (en) * 2020-02-20 2020-06-26 苏州浪潮智能科技有限公司 Operating system mirror image manufacturing method, device, equipment and medium
CN111813422A (en) * 2020-07-16 2020-10-23 济南浪潮数据技术有限公司 Installation method, device, equipment and storage medium of operating system
CN112698834A (en) * 2020-12-31 2021-04-23 深圳创维-Rgb电子有限公司 Burning file generation method and device, burning equipment and computer storage medium
CN115344313A (en) * 2022-08-22 2022-11-15 亿咖通(湖北)技术有限公司 Android system partition mounting method, electronic device and machine-readable storage medium
CN115509563A (en) * 2022-11-15 2022-12-23 济南浪潮数据技术有限公司 Mirror image file manufacturing method, device, equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101743546A (en) * 2007-08-06 2010-06-16 国际商业机器公司 Hierarchical storage management for a file system providing snapshots
CN103530148A (en) * 2013-09-18 2014-01-22 国云科技股份有限公司 Distribution method for large-scale Linux software package
US20150339148A1 (en) * 2013-01-31 2015-11-26 Hangzhou H3C Technologies Co., Ltd. Creating virtual machines
US20160098288A1 (en) * 2014-10-06 2016-04-07 Vmware, Inc. Building virtual appliances
CN107438102A (en) * 2017-07-31 2017-12-05 国云科技股份有限公司 A kind of cloud platform mirror image manufacturing system and its method
US10037334B1 (en) * 2016-12-26 2018-07-31 Parallels International Gmbh Memory management and sharing host OS files for Virtual Machines using execution-in-place
CN108536729A (en) * 2018-02-24 2018-09-14 国家计算机网络与信息安全管理中心 Across the subregion image file synchronous method of one kind and device
CN108563454A (en) * 2018-03-30 2018-09-21 天津麒麟信息技术有限公司 A kind of operating system hard disk quick deployment method towards machine of soaring

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101743546A (en) * 2007-08-06 2010-06-16 国际商业机器公司 Hierarchical storage management for a file system providing snapshots
US20150339148A1 (en) * 2013-01-31 2015-11-26 Hangzhou H3C Technologies Co., Ltd. Creating virtual machines
CN103530148A (en) * 2013-09-18 2014-01-22 国云科技股份有限公司 Distribution method for large-scale Linux software package
US20160098288A1 (en) * 2014-10-06 2016-04-07 Vmware, Inc. Building virtual appliances
US10037334B1 (en) * 2016-12-26 2018-07-31 Parallels International Gmbh Memory management and sharing host OS files for Virtual Machines using execution-in-place
CN107438102A (en) * 2017-07-31 2017-12-05 国云科技股份有限公司 A kind of cloud platform mirror image manufacturing system and its method
CN108536729A (en) * 2018-02-24 2018-09-14 国家计算机网络与信息安全管理中心 Across the subregion image file synchronous method of one kind and device
CN108563454A (en) * 2018-03-30 2018-09-21 天津麒麟信息技术有限公司 A kind of operating system hard disk quick deployment method towards machine of soaring

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
ALEXEI KARVE等: ""Redundancy Aware Virtual Disk Mobility for Cloud Computing"", 《2013 IEEE SIXTH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING》 *
TXXM127: ""虚拟机qcow2格式文件系统制作"", 《HTTPS://BLOG.CSDN.NET/TXXM127/ARTICLE/DETAILS/25807863》 *
XIAOLIN XU等: ""Rethink the storage of virtual machine images in clouds"", 《FUTURE GENERATION COMPUTER SYSTEMS》 *
刘晨: ""基于内核函数监控的Linux系统防护方法的研究与实现"", 《中国优秀博硕士学位论文全文数据库(硕士) 信息科技辑》 *
姜毅 等: "基于开源软件的私有云计算平台构建", 《电信科学》 *
张含颖 等: "基于软件注入的按需定制虚拟机实例系统", 《计算机技术与发展》 *
徐继伟 等: ""一种基于聚类分组的虚拟机镜像去冗余方法"", 《软件学报》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090439A (en) * 2019-12-13 2020-05-01 苏州浪潮智能科技有限公司 Mirror image generation method, device and equipment for Linux system of bare metal server
CN111338652A (en) * 2020-02-20 2020-06-26 苏州浪潮智能科技有限公司 Operating system mirror image manufacturing method, device, equipment and medium
CN111338652B (en) * 2020-02-20 2022-12-23 苏州浪潮智能科技有限公司 Operating system mirror image manufacturing method, device, equipment and medium
CN111813422A (en) * 2020-07-16 2020-10-23 济南浪潮数据技术有限公司 Installation method, device, equipment and storage medium of operating system
CN112698834A (en) * 2020-12-31 2021-04-23 深圳创维-Rgb电子有限公司 Burning file generation method and device, burning equipment and computer storage medium
CN112698834B (en) * 2020-12-31 2024-08-27 深圳创维-Rgb电子有限公司 Burning file generation method and device, burning equipment and computer storage medium
CN115344313A (en) * 2022-08-22 2022-11-15 亿咖通(湖北)技术有限公司 Android system partition mounting method, electronic device and machine-readable storage medium
CN115344313B (en) * 2022-08-22 2023-08-11 亿咖通(湖北)技术有限公司 Android system partition mounting method, electronic equipment and machine-readable storage medium
CN115509563A (en) * 2022-11-15 2022-12-23 济南浪潮数据技术有限公司 Mirror image file manufacturing method, device, equipment and medium

Also Published As

Publication number Publication date
CN109960517B (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN109960517A (en) Production method, device, system and the storage medium of image file
JP4393588B2 (en) System, method, and computer-readable medium for correlating processing data and image data in a digital camera device
EP3678019B1 (en) Mirror image upgrading method and device
CN104699423B (en) The method and apparatus that drive is bound in linux system
CN102053831A (en) Linux operating system customizing method and system
CN102402446A (en) Application software installation method and application software installation device
CN104808953B (en) Control the method, device and mobile terminal of data storage
US7237005B2 (en) Job network setup method, job network execution method, job management system, management terminal and program
CN103984571A (en) Method and device for uprating operating system partition
CN103984621B (en) log separation method and system
US9411871B2 (en) Merging data volumes and derivative versions of the data volumes
CN106598653A (en) Method and device used for solving boot storm of virtual machine
JP6676791B2 (en) Information processing device
JP5828701B2 (en) Information processing apparatus, information processing method, program, and storage medium
CN116893781A (en) Data storage method, device, equipment and readable storage medium
JP5840892B2 (en) Software distribution system and software distribution program
US7330946B2 (en) Data processing system
US20210303417A1 (en) Method and system for managing backup data
JPH06282446A (en) Job schedule generating method
JP2735972B2 (en) Program loading control system
CN108062233A (en) A kind of file backing method, system, device and computer readable storage medium
JP5379618B2 (en) Computer system
JP2616425B2 (en) File allocate method
CN114500567A (en) Remote accessory multi-redundancy storage method, device, equipment and storage medium
CN103164296A (en) Method and device for processing product production data

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Applicant after: Loongson Zhongke Technology Co.,Ltd.

Address before: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Applicant before: LOONGSON TECHNOLOGY Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant