CN111045696A - Method and device for automatically installing single machine operation system, computer equipment and storage medium - Google Patents

Method and device for automatically installing single machine operation system, computer equipment and storage medium Download PDF

Info

Publication number
CN111045696A
CN111045696A CN201911292412.6A CN201911292412A CN111045696A CN 111045696 A CN111045696 A CN 111045696A CN 201911292412 A CN201911292412 A CN 201911292412A CN 111045696 A CN111045696 A CN 111045696A
Authority
CN
China
Prior art keywords
partition
hard disk
operating system
unit
management
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
CN201911292412.6A
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.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Shenzhen Union Memory Information System 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 Shenzhen Union Memory Information System Co Ltd filed Critical Shenzhen Union Memory Information System Co Ltd
Priority to CN201911292412.6A priority Critical patent/CN111045696A/en
Publication of CN111045696A publication Critical patent/CN111045696A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Abstract

The invention relates to a method, a device, computer equipment and a storage medium for automatically installing a single machine operating system; the method comprises the following steps: entering a pre-installation environment through a starting disc, and acquiring a machine type; generating a partition table according to the acquired model; performing partition management on the hard disk according to the partition table; selecting a customized mirror image for the hard disk after partition management; activating the partition of the hard disk; and restarting to complete the installation of the stand-alone operating system. According to the invention, the boot disk enters the pre-installation environment to acquire the machine type, the partition table is generated according to the acquired machine type, the hard disk is subjected to partition management, the customized mirror image is selected for the hard disk, the partition of the hard disk is activated, and finally the installation of the single-machine operating system is completed by restarting, so that the manual input is not needed, the accuracy is guaranteed, and the efficiency is high.

Description

Method and device for automatically installing single machine operation system, computer equipment and storage medium
Technical Field
The present invention relates to the field of installation technology of stand-alone operating system, and is especially method, device, computer equipment and storage medium for automatically installing stand-alone operating system.
Background
When a customized system is installed on a single testing machine, different machine types are driven differently, various parameters need to be input under a command line manually for setting, errors are easy to occur, manual labor is consumed, and the efficiency is low; therefore, the demand cannot be satisfied.
Disclosure of Invention
The present invention is directed to overcoming the drawbacks of the prior art and providing a method, apparatus, computer device, and storage medium for automatically installing a stand-alone operating system.
In order to achieve the purpose, the invention adopts the following technical scheme:
the method for automatically installing the stand-alone operating system comprises the following steps:
entering a pre-installation environment through a starting disc, and acquiring a machine type;
generating a partition table according to the acquired model;
performing partition management on the hard disk according to the partition table;
selecting a customized mirror image for the hard disk after partition management;
activating the partition of the hard disk;
and restarting to complete the installation of the stand-alone operating system.
The further technical scheme is as follows: and in the step of entering a pre-installation environment and acquiring the model through the starting disc, acquiring the model through a WMI interface.
The further technical scheme is as follows: in the step of performing partition management on the hard disk according to the partition table, the hard disk is subjected to partition management through a disk partition interface, and the partition management comprises partition creation, partition deletion and partition merging and expansion.
The further technical scheme is as follows: in the step of selecting the customized mirror image for the hard disk after partition management, the customized mirror image is generated through a DISM interface, and the customized mirror image comprises a driver, software and environment settings.
An apparatus for automatically installing a stand-alone operating system, comprising: the system comprises an access acquisition unit, a generation unit, a management unit, a selection unit, an activation unit and a restart completion unit;
the access acquisition unit is used for accessing a pre-installation environment through a starting disc and acquiring a machine type;
the generating unit is used for generating a partition table according to the acquired model;
the management unit is used for carrying out partition management on the hard disk according to the partition table;
the selection unit is used for selecting a customized mirror image for the hard disk after partition management;
the activation unit is used for activating the partition of the hard disk;
and the restarting completion unit is used for restarting to complete the installation of the single-machine operating system.
The further technical scheme is as follows: and the entering acquisition unit acquires the model through a WMI interface.
The further technical scheme is as follows: in the management unit, partition management is carried out on the hard disk through a disk partition interface, and the partition management comprises partition creation, partition deletion and partition combination and expansion.
The further technical scheme is as follows: in the selection unit, a customized mirror image is generated through a DISM interface, and the customized mirror image comprises a driver, software and environment settings.
A computer device comprising a memory having a computer program stored thereon and a processor that, when executed, implements a method of automatically installing a stand-alone operating system as described above.
A storage medium storing a computer program comprising program instructions which, when executed by a processor, implement the method of automatically installing a stand-alone operating system as described above.
Compared with the prior art, the invention has the beneficial effects that: get into the preinstallation environment through the boot disk, acquire the model, generate the partition table according to the model that acquires, carry out partition management to the hard disk again, select the mirror image of customization to the hard disk, then activate the partition of hard disk, restart at last and accomplish the installation of unit operating system, do not need artifical input, guaranteed the accuracy, and efficient, can satisfy the demand better.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for automatically installing a stand-alone operating system according to an embodiment of the present invention;
FIG. 2 is a schematic block diagram of an apparatus for automatically installing a stand-alone operating system according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to the embodiment shown in fig. 1 to 3, wherein, referring to fig. 1, the invention discloses a method for automatically installing a stand-alone operating system, comprising the following steps:
s1, entering a pre-installation environment through a starting disc, and acquiring a machine type;
in S1, the boot disk enters the preinstallation environment to be a WINPE (Windows preinstallation environment), and acquires a model through a WMI interface, WMI (Windows management instrumentation), which is a common interface and object mode used in Windows to provide access to management information about an operating system, devices, applications, and services.
S2, generating a partition table according to the obtained model;
different machine types need to configure a partition table in advance according to the requirements of users, namely, several partitions are partitioned, what format each partition is, and what capacity each partition is.
S3, performing partition management on the hard disk according to the partition table;
the method comprises the following steps that a hard disk is subjected to partition management through a disk partition interface, wherein the partition management comprises partition creation, partition deletion and partition combination and expansion; in this embodiment, partition management is performed on a hard disk through a partition tool interface, and the specific steps are as follows: 1. entering a discrete environment in a command line format; 2. selecting a target disk, and clearing the previous partition file; 3. converting the target disk into GPT (GUID Partition Table Partition format); 4. formatting the full disk; 5. and setting corresponding capacity and corresponding format according to the partition table, and finally setting a disc symbol.
S4, selecting customized mirror images for the hard disks after partition management;
in this embodiment, a customized Image is generated through a dis (Deployment Image service and Management) interface, where the customized Image includes a driver, software, and environment settings.
S5, activating the partition of the hard disk;
wherein the boot partition is activated via a bcdboot (a tool used to quickly set up the boot environment on the system partition or repair the system partition) tool.
And S6, restarting the computer to complete the installation of the stand-alone operating system.
All the action operations are automated by serially connecting scripts, and finally, customized mirror images are installed by one key, so that a user can start an automated tool in the WINPE environment of a target computer without any manual participation.
According to the invention, the machine type is acquired by entering the pre-installation environment through the starting disk, the partition table is generated according to the acquired machine type, the hard disk is subjected to partition management, the customized mirror image is selected for the hard disk, the partition of the hard disk is activated, and finally the installation of the single-machine operating system is completed by restarting, so that the manual input is not needed, the accuracy is ensured, the efficiency is high, and the requirement can be better met.
Referring to fig. 2, the present invention also discloses a device for automatically installing a stand-alone operating system, comprising: the access acquiring unit 10, the generating unit 20, the managing unit 30, the selecting unit 40, the activating unit 50, and the restarting completing unit 60;
the access acquisition unit 10 is used for accessing a pre-installation environment through a starting disc and acquiring a machine type;
the generating unit 20 is configured to generate a partition table according to the acquired model;
the management unit 30 is configured to perform partition management on the hard disk according to a partition table;
the selecting unit 40 is configured to select a customized mirror image for the hard disk after partition management;
the activation unit 50 is configured to activate a partition of the hard disk;
the restart completion unit 60 is configured to restart to complete installation of the stand-alone operating system.
Wherein, the entry obtaining unit 10 obtains the model through a WMI interface.
In the management unit 30, partition management is performed on the hard disk through a disk partition interface, where the partition management includes creating a partition, deleting a partition, and merging and expanding a partition.
In the selecting unit 40, a customized image is generated through a dis interface, where the customized image includes a driver, software, and environment settings.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the apparatus for automatically installing a single-machine operating system and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
The above-described means for automatically installing a stand-alone operating system may be embodied in the form of a computer program that is executable on a computer device such as that shown in FIG. 3.
Referring to fig. 3, fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present application; the computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 3, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 comprise program instructions that, when executed, cause the processor 502 to perform a method of automatically installing a stand-alone operating system.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute a method for automatically installing the stand-alone operating system.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 3 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that, in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program comprises program instructions that, when executed by a processor, implement the method for automatically installing a stand-alone operating system as described above.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
The technical contents of the present invention are further illustrated by the examples only for the convenience of the reader, but the embodiments of the present invention are not limited thereto, and any technical extension or re-creation based on the present invention is protected by the present invention. The protection scope of the invention is subject to the claims.

Claims (10)

1. The method for automatically installing the stand-alone operating system is characterized by comprising the following steps of:
entering a pre-installation environment through a starting disc, and acquiring a machine type;
generating a partition table according to the acquired model;
performing partition management on the hard disk according to the partition table;
selecting a customized mirror image for the hard disk after partition management;
activating the partition of the hard disk;
and restarting to complete the installation of the stand-alone operating system.
2. The method for automatically installing a stand-alone operating system as claimed in claim 1, wherein the model is obtained through a WMI interface by entering a preinstalled environment through a boot disk and obtaining the model.
3. The method of claim 1, wherein in the partition management of the hard disk according to the partition table, the partition management of the hard disk is performed through a disk partition interface, and the partition management includes creating partitions, deleting partitions, and merging expanded partitions.
4. The method of claim 1, wherein the "selectively customized images for hard disk after partition management" is used to generate customized images through a DISM interface, and the customized images include drivers, software, and environment settings.
5. Apparatus for automatically installing a stand-alone operating system, comprising: the system comprises an access acquisition unit, a generation unit, a management unit, a selection unit, an activation unit and a restart completion unit;
the access acquisition unit is used for accessing a pre-installation environment through a starting disc and acquiring a machine type;
the generating unit is used for generating a partition table according to the acquired model;
the management unit is used for carrying out partition management on the hard disk according to the partition table;
the selection unit is used for selecting a customized mirror image for the hard disk after partition management;
the activation unit is used for activating the partition of the hard disk;
and the restarting completion unit is used for restarting to complete the installation of the single-machine operating system.
6. The apparatus for automatically installing a stand-alone operating system as claimed in claim 5, wherein the entry into the obtaining unit obtains the model through a WMI interface.
7. The apparatus of claim 5, wherein the management unit performs partition management on the hard disk through a disk partition interface, and the partition management includes creating partitions, deleting partitions, and merging expanded partitions.
8. The apparatus for automatically installing a stand-alone operating system as claimed in claim 5, wherein the selection unit generates a customized image through a DISM interface, the customized image including a driver, software, and environment settings.
9. A computer device comprising a memory having stored thereon a computer program and a processor that, when executed, implements the method of automatically installing a stand-alone operating system as recited in any of claims 1-4.
10. A storage medium storing a computer program comprising program instructions which, when executed by a processor, implement the method of automatically installing a stand-alone operating system as claimed in any one of claims 1 to 4.
CN201911292412.6A 2019-12-16 2019-12-16 Method and device for automatically installing single machine operation system, computer equipment and storage medium Pending CN111045696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911292412.6A CN111045696A (en) 2019-12-16 2019-12-16 Method and device for automatically installing single machine operation system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911292412.6A CN111045696A (en) 2019-12-16 2019-12-16 Method and device for automatically installing single machine operation system, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111045696A true CN111045696A (en) 2020-04-21

Family

ID=70236481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911292412.6A Pending CN111045696A (en) 2019-12-16 2019-12-16 Method and device for automatically installing single machine operation system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111045696A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949282A (en) * 2020-08-25 2020-11-17 深圳市广通软件有限公司 Operating system deployment method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026032A (en) * 2010-12-21 2011-04-20 中兴通讯股份有限公司 Set top box upgrading method and device
US9032394B1 (en) * 2010-12-16 2015-05-12 Crimson Corporation Deploying drivers for an operating system on a computing device
CN107608681A (en) * 2017-09-14 2018-01-19 紫光华山信息技术有限公司 Installation method of operating system, device and server
CN110187895A (en) * 2019-05-24 2019-08-30 深圳前海微众银行股份有限公司 Allocating operating system method, apparatus, equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9032394B1 (en) * 2010-12-16 2015-05-12 Crimson Corporation Deploying drivers for an operating system on a computing device
CN102026032A (en) * 2010-12-21 2011-04-20 中兴通讯股份有限公司 Set top box upgrading method and device
CN107608681A (en) * 2017-09-14 2018-01-19 紫光华山信息技术有限公司 Installation method of operating system, device and server
CN110187895A (en) * 2019-05-24 2019-08-30 深圳前海微众银行股份有限公司 Allocating operating system method, apparatus, equipment and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949282A (en) * 2020-08-25 2020-11-17 深圳市广通软件有限公司 Operating system deployment method and device

Similar Documents

Publication Publication Date Title
US9880836B2 (en) System and method for deploying a software program
CN105955740B (en) software management method and device
CN110673920A (en) Internationalization processing method and device, computer equipment and storage medium
CN109977099A (en) Database portion arranging method, user equipment, storage medium and device
CN114791856B (en) K8 s-based distributed training task processing method, related equipment and medium
CN113434202A (en) Starting method and device of equipment, electronic equipment and computer storage medium
CN111124508A (en) Method and device for adjusting PXE (PCI extensions for instrumentation) starting sequence of network card
CN111737227A (en) Data modification method and system
CN110750415B (en) Interface service configuration method, device, medium and computer equipment
CN115114219A (en) PCI-E topological method, device, equipment and storage medium
CN111045696A (en) Method and device for automatically installing single machine operation system, computer equipment and storage medium
US20200349009A1 (en) Information Handling System And Method To Restore System Firmware To A Selected Restore Point
CN111966376A (en) Data flashing method and related equipment
CN110989986A (en) Software template-based software generation method and device and computer equipment
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN110764864A (en) Terraform-based visual resource arrangement method
US20190114179A1 (en) Server for automatically determining whether to enable remote control function and method for automatically enabling remote control function
CN114553859A (en) BMC configuration management method and device, electronic equipment and storage medium
CN116048609A (en) Configuration file updating method, device, computer equipment and storage medium
CN110910945B (en) Method and device for testing robustness of SSD (solid State disk) signal, computer equipment and storage medium
US10061686B2 (en) Method, electronic apparatus, system, and storage medium for automated testing of application user interface
CN106598687B (en) Script preheating method and device
CN109254782B (en) Operating system installation method and device
CN108958823A (en) The method for modifying basic input output system setting value
CN113064698A (en) Method for providing product environment and corresponding device, system, equipment and medium

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