Summary of the invention
It is hard to solve solid-state in the prior art this application provides a kind of method of automatic installation Windows operating systemThe ineffective technical problem of looping test.
In order to solve the above-mentioned technical problem, the embodiment of the present application discloses following technical solution:
The embodiment of the present application discloses a kind of method of automatic installation Windows operating system, and this method is surveyed applied to SSDExamination, the SSD are connect with mainboard, and the mainboard is connect by network with server, configured with multiple and different in the serverThe Windows operating system installation file and device driver software compressed package of version, which comprises
Step S01: entering the zoned format of the SSD, activates subregion, and first subregion is set as main partition, instituteStating main partition is system boot partition;
Step S02: the mainboard obtains the Windows operating system installation file by HTTP mode, will be describedKernel file in Windows operating system installation file is applied to the main partition, guides for the main partition add-on systemFile;
Step S03: the mainboard obtains the device driver software compressed package by HTTP mode, decompresses the equipment and drivesSoftware Compression packet is moved to the main partition specified path, adds unattended file;
Step S04: restarting the mainboard, operates system according to the Windows of SSD described in the System guides file startSystem;
Step S05: according to the motherboard type, the unattended file adds corresponding device drives;
Step S06: according to the motherboard type, the unattended file adds test software according to testing requirement;
Step S07: according to the unattended file, the mainboard configures add-on system user.
Preferably, in the method for above-mentioned automatic installation Windows operating system, after the step S07, the sideMethod further include:
Step S08: testing the SSD under the system user, obtains a test result;
Step S09: deleting the System guides file, restarts the mainboard, and return step S02 is successively obtained and repeatedly surveyedTest result, the multiple test result respectively correspond the Windows operating system of multiple and different versions.
Preferably, in the method for above-mentioned automatic installation Windows operating system, before the step S01, the sideMethod further include:
The mainboard is switched on, in the BIOS setting of the mainboard, enables built-in network interface card netboot;
The mainboard loads PE mirror image by network interface card network boot, runs booting designated program into PE mirror image.
Preferably, in the method for above-mentioned automatic installation Windows operating system, the mainboard is switched on, comprising: describedMainboard receives server Wake On Lan order by network, and the Wake On Lan order controls the mainboard booting.
Preferably, in the method for above-mentioned automatic installation Windows operating system, in the BIOS setting of the mainboard,Enable built-in network interface card netboot, comprising: the BIOS setting option of the mainboard is LAN Option ROM Enable or BootOn Lan Enable。
Preferably, in the method for above-mentioned automatic installation Windows operating system, in the step S02, the mainboard is logicalIt crosses after the Windows operating system installation file that HTTP mode obtains same version, further includes:
The Windows operating system installation file that will acquire is mounted to virtual partition;
The mainboard is answered Windows operating system kernel file of the carry in the virtual partition using DISM orderUse main partition.
Preferably, in the method for above-mentioned automatic installation Windows operating system, in the step S03, the mainboard is logicalIt crosses after HTTP mode obtains the device driver software compressed package, further includes: the device driver software pressure that will acquireContracting packet is mounted to virtual partition.
Preferably, in the method for above-mentioned automatic installation Windows operating system, in the device driver software compressed packageIt include: the corresponding distinct device drive software of the mainboard of a variety of different models.
Preferably, in the method for above-mentioned automatic installation Windows operating system, after the step S05, the methodFurther include: the extra file of the device driver software compressed package decompression is deleted in cleaning, and the extra file includes: driving compressionPacket decompressing files, and driving installation pilot process file.
Preferably, in the method for above-mentioned automatic installation Windows operating system, in the step S06, the mainboard according toCorresponding test software is added according to testing requirement, the test software includes: to grind test software or open source test software, institute certainlyStating from test software is ground includes: to be tested for the property automatically, suspend mode test and power failure test software.
Compared with prior art, the application has the beneficial effect that
This application provides a kind of method of automatic installation Windows operating system, this method is tested applied to SSD, instituteSSD to be stated to connect with mainboard, the mainboard is connect by network with server, configured with multiple and different versions in the serverWindows operating system installation file and device driver software compressed package, in the method: entering the subregion lattice of the SSDFormula activates subregion, and first subregion is set as main partition, and main partition is system boot partition, and the mainboard passes throughHTTP mode obtains the Windows operating system installation file, by the kernel in the Windows operating system installation fileFile is applied to the main partition, guides file for the main partition add-on system.Equally, described set is obtained by HTTP modeStandby drive software compressed package decompresses the device driver software compressed package to the main partition specified path, adds unattendedFile.The mainboard installs Windows operating system by System guides file automatically, according to motherboard type, the unmanned valueIt keeps file and adds corresponding device drives, and add corresponding test software according to testing requirement, finally, according to described unattendedFile, the mainboard configure add-on system user, the corresponding testing requirement of the SSD can be completed in the system user.ThisThe method for applying providing realizes automation Windows operation installation and device driver software installation, in SSD test process, contractingShort test period promotes testing efficiency, saves human cost.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, notThe application can be limited.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application realityThe attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementationExample is only some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, the common skill in this fieldThe application protection all should belong in art personnel every other embodiment obtained without making creative workRange.
System compatibility test, upper and lower electrical testing, suspend mode test, readwrite tests and performance test etc. are carried out to SSDWhen, it needs to cover a variety of Windows operating systems and largely tests hosted environment.It is usually all to build test host ring manuallyBorder, the installation process of a variety of Windows operating systems and device driver software, content is cumbersome, and test volume is huge, and process is dull,Staff inevitably has the operating system of omission or the type of drive software, so that the test of solid state hard disk in testWhole Microsoft's Windows operating system and drive software can not be covered.In addition, frequent system installation, difference test masterMachine needs to download and installs corresponding drive software, needs to put into the limited situation of a large amount of manpower, especially human inputTest period is long, and testing efficiency is low.Therefore, Windows operating system and driving can be installed automatically by needing to design one kindThe method of software.
Automatically the method that Windows operating system is installed in the application is tested applied to SSD, SSD connection and mainboard, mainboardConnect with server by network, the interior Windows operating system installation file for being configured with multiple and different versions of server withAnd device driver software compressed package.It should be noted that this method is suitable for the test of a SSD or multiple SSD, when to multipleWhen SSD is tested simultaneously, multiple SSD can be correspondingly connected with to the mainboard of multiple and different models, the mainboard of multiple and different models is equalIt is connect by network with server.Referring to Fig. 1, for a kind of automatic installation Windows operation provided in an embodiment of the present inventionThe flow diagram of the method for system.In conjunction with Fig. 1, method includes the following steps:
Step S01: entering the zoned format of the SSD, activates subregion, and first subregion is set as main partition, instituteStating main partition is system boot partition;
In the method for automatic installation Windows operating system provided in an embodiment of the present invention, before step S01, also wrapIt includes: mainboard is switched on, in the BIOS setting of mainboard, enable built-in network interface card netboot.Mainboard passes through network interface card netboot journeySequence loads PE mirror image, runs booting designated program into PE mirror image.
Mainboard receives the Wake On Lan order of server by network in the application, and Wake On Lan order is a kind ofPower management function then allows equipment to wake up operating system from standby or suspend mode if there is network activity.SSDThe mainboard connected passes through cable and is connected to server, and server sends Wake On Lan life to each mainboard by networkIt enables, controls the mainboard booting of multiple and different models.
After mainboard booting, in the BIOS setting of mainboard, by LAN Option ROM Enable or Boot OnThe setting of Lan Enable enables built-in network interface card netboot, and then opens mainboard and support PEX function.PEX is open source software,Using PEX be in order to load special PE environment by netboot, into PE environment after booting in automatic running PE specify journeySequence.Under the guidance of booting designated program, into the zoned format of SSD, subregion is activated, and first subregion in SSD is setFor main partition, which is system boot partition.
Step S02: the mainboard obtains the Windows operating system installation file by HTTP mode, will be describedKernel file in Windows operating system installation file is applied to the main partition, guides for the main partition add-on systemFile;
HTTP, hypertext transfer protocol is a design to make client and server go on smoothly the agreement of communication.HTTP is worked between clients and servers with " request-reply agreement ".In the application, mainboard is obtained by HTTP modeWindows operating system installation file in server is taken, and then realizes the purpose of automatic installation Windows operating system.
In order to advanced optimize above scheme, after mainboard obtains Windows operating system installation file, will acquireTo Windows operating system installation file be mounted to virtual partition.In view of being installed to master again after being fully downloaded to main partitionIf subregion, the time of consuming is longer.If carrying out virtual carry, i.e., the Windows operating system installation file that will getBe mounted to virtual partition, then can download Windows operating system mirror image in real time and carry out installation process simultaneously, speed faster,More save the set-up time.
Loading, unloading, configuration can be pacified by DISM order and update the function and journey in Windows operating system PE environmentSequence packet, each mainboard use Windows operating system kernel file of the DISM order by carry in virtual partition, i.e.,Install.wim is applied to main partition.Each mainboard is drawn using BCDBOOT and BOOTSECT order to main partition add-on systemFile is led, which can guide the starting of Windows operating system in SSD.
Step S03: the mainboard obtains the device driver software compressed package by HTTP mode, decompresses the equipment and drivesSoftware Compression packet is moved to the main partition specified path, adds unattended file;
Equally, mainboard obtains device driver software compressed package by HTTP mode, so realize device driver software fromDynamic installation.After getting device driver software compressed package, the device driver software compressed package that will acquire is mounted to mainboardVirtual partition, configured with the device driver software for meeting various types of PC mainboards in device driver software compressed package, it is a variety of notMainboard with model can therefrom get corresponding device driver software.
Step S04: restarting the mainboard, operates system according to the Windows of SSD described in the System guides file startSystem;
Restart multiple mainboards, under the guidance of System guides file, the Windows operating system in SSD is started.
Step S05: according to the motherboard type, the unattended file adds corresponding device drives;
Further, after step S05, the method for Windows operating system is installed automatically in the application further include: cleaningThe extra file of sweep equipment drive software compressed package decompression, extra file include: driving compressed package decompressing files, and driving peaceFill pilot process file.After the mainboard of multiple and different models installs corresponding device drives, sweep equipment is cleared up automaticallyThe extra file of drive software compressed package decompression, discharges the memory space of SSD.
Step S06: according to the motherboard type, the unattended file is tested soft accordingly according to testing requirement additionPart;
Step S07: according to the unattended file, the mainboard configures add-on system user.
After step S07, the application further include: step S08: testing the SSD under the system user,Obtain a test result;Step S09: deleting the System guides file, restarts the mainboard, and return step S02 is successively obtainedMultiple test result is obtained, the multiple test result respectively corresponds the Windows operating system of multiple and different versions.
Draw according to the motherboard type in the corresponding program of unattended file in the preparation stage of Windows operating systemLead it is lower add corresponding device drives automatically, then according to testing requirement, add corresponding test software, test hereinSoftware can add from test software or open source test software is ground according to the actual conditions of operator, grind test software packet certainlyIt includes: being tested for the property automatically, suspend mode test and power failure test software, finally, according to the guidance of unattended file, mainboard is matchedAdd-on system user is set, SSD is tested under this system user, obtains a test result, completes a wheel test.
For example, when multiple SSD carry out installation test simultaneously, multiple SSD are connected respectively multiple and different modelsMainboard.First round test is carried out under windows7 operating system, that is to say, that the mainboard one of multiple and different models is openedBeginning is to obtain configured windows7 operating system in server, and after the completion of above-mentioned steps, SSD installs windows7 behaviourMake system, and carries out a series of test.After the completion of test, each mainboard sends the flag bit of a test completion to serverEnd.Server receives after the flag bit that test is completed, so that it may which deletion system guides file, and windows7 is operated and isSystem changes windows8 operating system into, then restarts the mainboard of multiple and different models, each mainboard obtains again and installs serverIn configured windows8 operating system, complete the test of next round.
To sum up, in automatic installation Windows operating system provided in an embodiment of the present invention, the mainboard of multiple and different models is equalThe Windows operating system installation file of configured same version in server is obtained by HTTP mode, it is identical,The device driver software compressed package configured in server is obtained by HTTP mode.Mainboard is installed automatically by System guides fileWindows operating system, for the mainboard of different model according to unattended file, automatic add corresponds to device drives, multiple and differentThe mainboard of model adds corresponding test software according to testing requirement, finally, SSD to be tested is operated in same WindowsIn the case where system and different driving software, first round test is completed, a test result is obtained.Next, first deletingSystem guides file in SSD, restarts each mainboard, and each mainboard weighs after restarting due to losing System guides fileNew installation system, and then each mainboard continues to obtain the Windows operating systems of other versions and is installed, and completes otherTest under Windows operating system and different driving software.The constantly circulation above process, until completing multiple and different versionsWindows operating system and different driving software under test.In the application, various types of PC are covered to the greatest extentMainboard is realized under the Windows operating system and different device driver softwares of different editions, is tested SSD, is surveyedTest result is more comprehensive, in addition, method provided by the present application, realizes automation Windows operation installation and device driver softwareInstallation shortens test period in SSD test process, promotes testing efficiency, saves human cost.
Since embodiment of above is that reference combination is illustrated on other modes, have between different embodimentsThere is identical part, identical, similar part may refer to each other between each embodiment in this specification.Herein no longer in detailIt illustrates.
It should be noted that in the present specification, the relational terms of such as " first " and " second " or the like are used merely toIt distinguishes one entity or operation from another entity or operation, and not necessarily requires or imply these entities or operationBetween there are any this actual relationship or sequences.Moreover, the terms "include", "comprise" or its any other variant are intended toCover non-exclusive inclusion, so that the circuit structure, article or the equipment that include a series of elements not only include thoseElement, but also including other elements that are not explicitly listed, or further include for this circuit structure, article or equipmentIntrinsic element.In the absence of more restrictions, the element for thering is sentence "including a ..." to limit, it is not excluded thatThere is also other identical elements in circuit structure, article or equipment including the element.
Those skilled in the art will readily occur to its of the application after considering specification and practicing the disclosure invented hereHis embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes orPerson's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the applicationOr conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are wanted by rightThe content asked is pointed out.
Above-described the application embodiment does not constitute the restriction to the application protection scope.