CN105094837A - Method and device for guiding computer to be started and manufacturing method of start guiding medium - Google Patents
Method and device for guiding computer to be started and manufacturing method of start guiding medium Download PDFInfo
- Publication number
- CN105094837A CN105094837A CN201510493780.2A CN201510493780A CN105094837A CN 105094837 A CN105094837 A CN 105094837A CN 201510493780 A CN201510493780 A CN 201510493780A CN 105094837 A CN105094837 A CN 105094837A
- Authority
- CN
- China
- Prior art keywords
- file system
- root file
- linux
- starting factor
- linux system
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a method and device for guiding a computer to be started and a manufacturing method of a start guiding medium. The method for guiding the computer to be started includes the steps that when the computer is started, a temporary root file system of a Linux system of the computer is mounted; a start script in the temporary root file system is called, wherein the start script is used for indicating the type of the start guiding medium currently used by the computer and a guide code corresponding to the currently-used start guiding medium; the guiding code corresponding to the currently-used start guiding medium is executed so as to search for root file system files of the Linux system; the Linux system is switched to a root file system from the temporary root file system according to the found root file system files, and then start of the computer is finished. The compatibility of the Linux system with multiple start guiding media is improved.
Description
Technical field
The present invention relates to computer realm, and more specifically, relate to the method for making of method, device and the starting factor medium that vectoring computer starts.
Background technology
The starting factor medium of different computing machine may be different, and for the computing machine that some are old, they can only adopt CD-ROM drive to guide start up system, and for some newer computing machines, disk guiding or netboot usually can be adopted to carry out start up system.In addition, under the environment that some are special, for the consideration in safety or cost, much important computing machine only allows to adopt unified netboot to carry out start up system, and does not allow to use disk guiding or CD to guide start up system.
When computing machine original system cannot normally start or other need to reinstall system, prior art makes different startup schemes for dissimilar starting factor medium to carry out start-up simulation machine.This Starting mode will make for different starting factor media the system comprising the miscellaneous editions of different start-up code, add the workload of system development and maintenance, in addition, for the occasion of some system environments the unknowns, before start up system, need to preview system environments could determine to adopt which kind of startup scheme, which adds time cost, reduce efficiency.
Summary of the invention
The method for making of a kind of method that the embodiment of the present invention provides vectoring computer to start, device and starting factor medium, to start the computing machine under multiple starting factor medium.
First aspect, a kind of method providing vectoring computer to start, comprising: when described computing machine is opened, the temporary root file system of the linux system of computing machine described in carry; Call the booting script in described temporary root file system, described booting script is used to indicate the starting factor media type of the current use of described computing machine, and the guidance code that the starting factor medium of described current use is corresponding, wherein, described booting script comprises guidance code corresponding to multiple starting factor medium; Perform the guidance code that the starting factor medium of described current use is corresponding, to search the root file system file of described linux system; According to the described root file system file found, described linux system is switched to root file system from described temporary root file system, to complete the startup of described computing machine.
In conjunction with first aspect, in a kind of implementation of first aspect, the starting factor medium of the current use of described computing machine is CD, the guidance code that the starting factor medium of the described current use of described execution is corresponding, search the root file system file of described linux system, comprising: the CD-ROM equipment on computing machine described in carry; Described root file system file is searched from the CD that described CD-ROM equipment runs.
In conjunction with any one in first aspect or above-mentioned implementation, in the another kind of implementation of first aspect, the starting factor medium of the current use of described computing machine is disk, the guidance code that the starting factor medium of the described current use of described execution is corresponding, search the root file system file of described linux system, comprising: first subregion of the disk on computing machine described in carry; Described root file system file is searched from described first subregion.
In conjunction with any one in first aspect or above-mentioned implementation, in the another kind of implementation of first aspect, the starting factor medium of the current use of described computing machine is network, the guidance code that the starting factor medium of the described current use of described execution is corresponding, search the root file system file of described linux system, comprise: according to the address of the webserver of configuration, determine the webserver storing described root file system file; Utilize network file system(NFS) NFS function, the catalogue storing described root file system file of the webserver described in carry; Described root file system file is searched under described catalogue.
In conjunction with any one in first aspect or above-mentioned implementation, in the another kind of implementation of first aspect, described linux system is target linux system, described target linux system customizes based on the release version of any one Linux, and customization procedure comprises: the temporary root file system and the root file system that obtain the linux system of described release version; In the temporary root file system of the linux system of described release version, add described booting script, obtain the temporary root file system of described target linux system; According to the root file system of the linux system of described release version, generate the root file system file of described target linux system.
Second aspect, the device providing a kind of vectoring computer to start, comprising: carry module, when described computing machine is opened, the temporary root file system of the linux system of computing machine described in carry; Determination module, for calling the booting script in described temporary root file system, described booting script is used to indicate the starting factor media type of the current use of described computing machine, and the guidance code that the starting factor medium of described current use is corresponding, wherein, described booting script comprises guidance code corresponding to multiple starting factor medium; Execution module, the guidance code that the starting factor medium for performing described current use is corresponding, to search the root file system file of described linux system; Start module, for according to the described root file system file found, described linux system is switched to root file system from described temporary root file system, to complete the startup of described computing machine.
In conjunction with second aspect, in a kind of implementation of second aspect, when the starting factor medium of described current use is for CD, described execution module is specifically for the CD-ROM equipment on computing machine described in carry; Described root file system file is searched from the CD that described CD-ROM equipment runs.
In conjunction with any one in second aspect or above-mentioned implementation, in the another kind of implementation of second aspect, when the starting factor medium of described current use is for disk, described execution module is specifically for first subregion of the disk on computing machine described in carry; Described root file system file is searched from described first subregion.
In conjunction with any one in second aspect or above-mentioned implementation, in the another kind of implementation of second aspect, when the starting factor medium of described current use is for network, described execution module specifically for: according to the address of the webserver of configuration, determine the webserver storing described root file system file; Utilize network file system(NFS) NFS function, the catalogue storing described root file system file of the webserver described in carry; Described root file system file is searched under described catalogue.
In conjunction with any one in second aspect or above-mentioned implementation, in the another kind of implementation of second aspect, described linux system is target linux system, described target linux system customizes based on the release version of any one Linux, and customization procedure comprises: the temporary root file system and the root file system that obtain the linux system of described release version; In the temporary root file system of the linux system of described release version, add described booting script, obtain the temporary root file system of described target linux system; According to the root file system of the linux system of described release version, generate the root file system file of described target linux system.
The third aspect, provides a kind of method for making of starting factor medium, comprising: the temporary root file system and the root file system that obtain the linux system of any one release version; Booting script is added in the temporary root file system of the linux system of described release version, obtain the temporary root file system of target linux system, wherein, described booting script is used to indicate target start boot media type to be produced, and the guidance code that described target start boot media is corresponding, wherein, described starting factor script comprises guidance code corresponding to multiple starting factor medium, and the guidance code of often kind of starting factor medium is used to indicate root file system ff mode corresponding to described often kind of starting factor medium; According to the root file system of the linux system of described release version, generate the root file system file of described target linux system; The temporary root file system of the root file system file of described target linux system and described target linux system is stored in described target start boot media, completes the making of described target start boot media.
The embodiment of the present invention with the addition of booting script in the temporary root file system of linux system, this booting script not only can indicate the type of boot media and the guidance code of correspondence thereof of current use, and comprise the guidance code of multiple boot media, like this, when computing machine needs different starting factor medium activated, only need the type of the boot media of the current use changed in booting script, then this linux system is stored in corresponding medium, that is, the linux system of embodiment of the present invention customization supports multiple starting factor medium, and need to customize different linux systems for different starting factor media unlike prior art, improve the compatibility of linux system to multiple starting factor medium.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in the embodiment of the present invention below, apparently, accompanying drawing described is below only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic block diagram of the method that the vectoring computer of the embodiment of the present invention starts.
Fig. 2 is the process flow diagram of the method that the vectoring computer of the embodiment of the present invention starts.
Fig. 3 is the schematic block diagram of the device that the vectoring computer of the embodiment of the present invention starts.
Fig. 4 is the schematic block diagram of the method for making of the starting factor medium of the embodiment of the present invention.
Fig. 5 is the process flow diagram of the method for making of the starting factor medium of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the indicative flowchart of the method that the vectoring computer of the embodiment of the present invention starts.The method of Fig. 1 comprises:
110, when this computing machine is opened, the temporary root file system of carry linux system;
120, the booting script in described temporary root file system is called, described booting script is used to indicate the starting factor media type of the current use of described computing machine, and the guidance code that the starting factor medium of described current use is corresponding, wherein, described booting script comprises guidance code corresponding to multiple starting factor medium.
Should be understood that the starting factor media type that first can judge the current use of computing machine after booting script starts.Specifically, after entering temporary root file system, can call by invoke code the type that booting script judges the starting factor medium of computing machine.More specifically, the starting factor media type of the current use of the following step determination computing machine can be adopted: run the type obtaining starting factor medium after booting script from/proc/cmdline file, if be cdrom, then represent that the starting factor medium of the current use of this computing machine is CD-ROM drive; If be local, represent that the starting factor medium of the current use of this computing machine is local disk; If for network, represent the current use of this computing machine starting factor medium be network.
130, the guidance code that the starting factor medium of this current use is corresponding is performed, to search the root file system file of this linux system.
Should understand, after the starting factor medium determining the current use of computing machine, the guidance code that this starting factor medium is corresponding can be performed, here guidance code can be the one section of code searching the root file system file of linux system for guidance system under this startup medium, such as, when determining the starting factor medium of current use for CD, can CD-ROM equipment on this computing machine of carry by starting factor code, and this root file system file is searched from the CD that this CD-ROM equipment runs.Such as, mount instruction can be utilized CD-ROM equipment to be mounted to/mnt catalogue, after carry success, in detection/mnt catalogue, whether there is toolsys.img file.
When the starting factor medium of current use is for disk, can first subregion of disk on this computing machine of carry, then from this first subregion, search this root file system file.Such as, can utilize mount instruction that first of the disk of computing machine subregion is mounted to/mnt catalogue here, after carry success, in detection/mnt catalogue, whether there is toolsys.img file.The disk that should be understood that here can be the local disk of computing machine also can be that moveable magnetic disc is as USB disk etc.
When the starting factor medium of current use is for network, can according to the address of the webserver of configuration, determine the webserver storing this root file system file, recycling network file system(NFS) NFS function, the catalogue storing this root file system file of this webserver of carry, finally searches this root file system file under this catalogue.Such as, the address of network startup server can be read from/proc/cmdline file, and by mount instruction, the catalogue that network startup server exports is mounted to/mnt catalogue, after carry success, detect wherein whether there is toolsys.img file.
Further, when starting factor medium is CD, disk or network, if do not find toolsys.img file, system can be pointed out and make mistakes or return.
140, according to this root file system file found, this linux system is switched to root file system from this temporary root file system, to complete the startup of this computing machine.
Should understand, after finding root file system file, a loop equipment can be found in systems in which, such as loop1, this loop1 equipment is associated with this root file system file, next by linux system from temporary root file system be switched to/dev/loop1 represented by root file system, next restart the startup work that root file system just completes computing machine.
The embodiment of the present invention with the addition of booting script in the temporary root file system of linux system, this booting script not only can indicate the type of boot media and the guidance code of correspondence thereof of current use, and comprise the guidance code of multiple boot media, like this, when computing machine needs different starting factor medium activated, only need the type of the boot media of the current use changed in booting script, then this linux system is stored in corresponding medium, that is, the linux system of embodiment of the present invention customization supports multiple starting factor medium, and need to customize different linux systems for different starting factor media unlike prior art, improve the compatibility of linux system to multiple starting factor medium.
Alternatively, as an embodiment, linux system in the method that in Fig. 1, vectoring computer starts is target linux system, this target linux system can be customized by the release version of any one Linux, and customization procedure comprises: the temporary root file system and the root file system that obtain the linux system of described release version; In the temporary root file system of the linux system of described release version, add described booting script, obtain the temporary root file system of described target linux system; According to the root file system of the linux system of described release version, generate the root file system file of described target linux system.
Should understand, here, adding booting script can be when making temporary root file system, after temporary root file system is first copied to certain temporary folder, this booting script is also copied in this temporary folder, in the temporary root file system completed, just contain booting script like this.In addition, the shell script that this booting script is called can also being added in temporary folder, like this when running temporary root file system, just can call booting script by this shell script.
Fig. 2 is the process flow diagram of the method that the vectoring computer of the embodiment of the present invention starts.As shown in Figure 2, the Booting sequence of the method is as follows:
201, start up system, runs the booting script of temporary root file system, judges the type of starting factor medium.
Specifically, after entering temporary root file system, system can call by invoke code the type that booting script judges the starting factor medium of computing machine.Such as, judge that when this booting script file is toolsys-start.sh the concrete operations of the starting factor media type of the current use of computing machine are as follows: the type obtaining starting factor medium from proc/cmdline file, if be cdrom, then represent that the starting factor medium of the current use of this computing machine is CD-ROM drive; If be local, represent that the starting factor medium of the current use of this computing machine is local disk; If be network, represent that the starting factor medium of the current use of this computing machine is network.
If 202 starting factor media are local disk or USB disk, then first subregion of carry disk one by one, searches toolsys.img file.Such as, can utilize here mount instruction first of the disk of computing machine subregion is mounted to/mnt catalogue under, detect in this catalogue whether there is toolsys.img file after carry success.
If 203 starting factor media are CD, then carry CD-ROM drive one by one, searches toolsys.img file.Such as, mount instruction can be utilized here CD-ROM equipment to be mounted to/mnt catalogue, after carry success, in detection/mnt catalogue, whether there is toolsys.img file.
If 204 starting factor media are network, then obtain network boot server IP, formulate catalogue by NFS carry, and search toolsys.img.Particularly can according to the address of the webserver of configuration, determine the webserver storing this root file system file, recycling network file system(NFS) NFS function, the catalogue storing this root file system file of this webserver of carry, finally searches toolsys.img file under this catalogue.Such as, the address of network startup server can be read from/proc/cmdline file, and by mount instruction, the catalogue that network startup server exports is mounted to/mnt catalogue, whether there is toolsys.img file in detection/mnt catalogue after carry success.
205, judge whether to have found toolsys.img file;
If 206 have found toolsys.img file, just by equipment/dev/loop1 and toolsys.img file binding, this equipment has been specified to be root file system equipment;
207, the root file system at toolsys.img file place is started.
When finding toolsys.img file, a loop equipment can be found in systems in which as/dev/loop1, then utilizing corresponding instrument such as losetup toolsys.img file and virtual unit/dev/loop1 to be bound.Sometimes also to verify that root file system is whether correct, such as, can utilize order mount-tsquashfs/dev/loop1/sysroot-oloop hanging equipment is downloaded to/sysroot catalogue under verify the whether correct of root file system.Next, the equipment can specifying new root file system is /dev/loop1, next restarts the startup that root file system just completes computing machine.
208, start-up course terminates;
If 209 do not find toolsys.img file, so system can be pointed out and makes mistakes and return.
Composition graphs 1 and Fig. 2 above, the method that the detailed vectoring computer describing the embodiment of the present invention starts, the device that the vectoring computer that hereafter composition graphs 3 describes the embodiment of the present invention in detail starts, should understand, device in Fig. 3 can realize each step of the method in Fig. 1 and Fig. 2, for avoiding repetition, no longer describe in detail herein.
Fig. 3 is the device schematic block diagram that the vectoring computer of the embodiment of the present invention starts.The device 300 of Fig. 3 comprises:
Carry module, for when this computing machine is opened, the temporary root file system of the linux system of this computing machine of carry;
Determination module, for calling the booting script in this temporary root file system, this booting script is used to indicate the starting factor media type of the current use of this computing machine, and the guidance code that the starting factor medium of this current use is corresponding, wherein, this booting script comprises guidance code corresponding to multiple starting factor medium;
Execution module, the guidance code that the starting factor medium for performing described current use is corresponding, to search the root file system file of described linux system;
Start module, for according to the described root file system file found, described linux system is switched to root file system from described temporary root file system, to complete the startup of described computing machine.
The embodiment of the present invention with the addition of booting script in the temporary root file system of linux system, this booting script not only can indicate the type of boot media and the guidance code of correspondence thereof of current use, and comprise the guidance code of multiple boot media, like this, when computing machine needs different starting factor medium activated, only need the type of the boot media of the current use changed in booting script, then this linux system is stored in corresponding medium, that is, the linux system of embodiment of the present invention customization supports multiple starting factor medium, and need to customize different linux systems for different starting factor media unlike prior art, improve the compatibility of linux system to multiple starting factor medium.
Alternatively, as an embodiment, when the starting factor medium used in this prior is for disk, this execution module is specifically for first subregion of the disk on this computing machine of carry; This root file system file is searched from this first subregion.
Alternatively, as an embodiment, when the starting factor medium used in this prior is for disk, this execution module is specifically for first subregion of the disk on this computing machine of carry; This root file system file is searched from this first subregion.
Alternatively, as an embodiment, when the starting factor medium used in this prior is for network, this execution module specifically for: according to the address of the webserver of configuration, determine the webserver storing this root file system file; Utilize network file system(NFS) NFS function, the catalogue storing this root file system file of this webserver of carry; This root file system file is searched under this catalogue.
Alternatively, as an embodiment, this linux system is target linux system, this linux system is target linux system, this target linux system customizes based on the release version of any one Linux, and customization procedure comprises: the temporary root file system and the root file system that obtain the linux system of this release version; In the temporary root file system of the linux system of this release version, add this booting script, obtain the temporary root file system of this target linux system; According to the root file system of the linux system of this release version, generate the root file system file of this target linux system.
Composition graphs 1 to Fig. 3 above, the method and apparatus that the detailed vectoring computer describing the embodiment of the present invention starts, tells about the method for making of starting factor medium below in conjunction with Fig. 4 and Fig. 5.
Fig. 4 is the schematic block diagram of the method for making of the starting factor medium of the embodiment of the present invention.The method comprises:
410, temporary root file system and the root file system of the linux system of any one release version is obtained;
420, in the temporary root file system of the linux system of this release version, booting script is added, obtain the temporary root file system of target linux system, wherein, this booting script is used to indicate target start boot media type to be produced, and the guidance code that this target start boot media is corresponding, wherein, this starting factor script comprises guidance code corresponding to multiple starting factor medium, and the guidance code of often kind of starting factor medium is used to indicate this and often plants root file system ff mode corresponding to starting factor medium;
430, according to the root file system of the linux system of this release version, the root file system file of this target linux system is generated.
When the root file system of the linux system according to this release version generates the root file system file of this target linux system, directly the root file system of the linux system of this release version can be copied the root file system file being made into target linux system, also can the root file system of the linux system of this release version be copied in certain temporary folder, and some temporary files produced when the linux system of this release version is started and the unnecessary file erase of some other generation target linux system, generate target linux system.
440, the root file system file of this target linux system and the temporary root file system of this target linux system are stored in this target start boot media, complete the making of this target start boot media.
The embodiment of the present invention with the addition of booting script in the temporary root file system of linux system, this booting script not only can indicate the type of boot media and the guidance code of correspondence thereof of current use, and comprise the guidance code of multiple boot media, like this, when computing machine needs different starting factor medium activated, only need the type of the boot media of the current use changed in booting script, then this linux system is stored in corresponding medium, that is, the linux system of embodiment of the present invention customization supports multiple starting factor medium, and need to customize different linux systems for different starting factor media unlike prior art, improve the compatibility of linux system to multiple starting factor medium.
Fig. 5 is the process flow diagram of the method for making of the starting factor medium of the embodiment of the present invention.Making programme is as follows:
501, linux system be installed and start.
Should be understood that linux system here can be original system on computing machine, also can be the linux system of any one release version reinstalled on that computer, such as, and CentOS version and Gentoo version.When installing this linux system or the software package that can also install again after installing this linux system required for some start-up simulation machines and tool software, such as, squashfs tool of compression, disc making instrument etc.
502, untie the temporary root file system of linux system, by booting script file copy in this root file system, be made into temporary root file system.
Specifically, the temporary root file system of linux system can be untied and be put in a temporary folder, then booting script file is also put in this temporary folder, next the content production in temporary folder is become a temporary root file system being used for system and starting, so just generate the temporary root file system of tool system.More specifically, can first by linux system/mnt catalogue under all the elements delete, then gzip-cdinitramfs.img|cpio-imd--quiet order is utilized to unzip to herein by the temporary root file system in linux system, again by booting script literary composition toolsys-start.sh copy to/mnt catalogue in, and the script called toolsys-start.sh file is set, the last temporary root file system being used for system startup again by find.|cpio-o-Hnewc|gzip>initramfs-tool order generation, should understand, here tool system refers to that the embodiment of the present invention is for starting the system of various startup medium.
503, by all catalogues in this linux system and file copy in temporary file directory, the compression of this temporary file directory is generated root file system file by recycling tool of compression.
Specifically, can by all catalogues in this linux system and file according to identical hierarchical structure, to copy in linux system in certain temporary file directory, such as, can utilize rsync instrument by all catalogues in this linux system and file copy to linux system /mnt catalogue in.In a replication process or the file dynamically generated when some linux systems can be started after having copied, unwanted file erase in all temporary files and some root file systems, such as, can by file catalogue, some unnecessary catalogues such as developing instrument or/tmp ,/dev ,/root ,/lost+found and file and the file erase automatically generated when system cloud gray model.Next can utilize mksquashfs instrument that the compressing file in this temporary file directory is become the image file of squashfs form, such as, compressing file in this temporary file directory can be become toolsys.img file, this completes the making of root file system file.
The generative process of the tool system of the embodiment of the present invention has been shown in 501-503 step, below after step is mainly described in Core Generator system, under how tool system being stored into different medium, to meet the needs of computer starting.
504, the tool system that CD guides is made: start-up parameter is set to optical disk start-up, root file system file and other must be burnt in CD by file.
Specifically, can utilize the instrument making Bootable CD-ROM that startup type is set to optical disk start-up, and the toolsys.img file made before and other are made Bootable CD-ROM necessary file generated iso image file, then this iso image file is burnt in CD the tool system being just made into CD and having guided; More specifically, can start in file copy required for image file to/mnt by making iso, and for transmitting in start-up parameter file, startup type parameter type is set to cdrom, then genisoimage tool making optical disk start-up image file toolsys.iso is utilized, finally recycling burning tool fires in CD by toolsys.iso file, this completes the making of the tool system that CD guides.
505, make the tool system that disk guides, start-up parameter is set to local boot, by root file system file and other necessary file copy first subregion to disk.
Specifically, genisoimage instrument can be utilized start-up code to be installed to need make boot disk local disk or USB disk on, and in grub.conf file, startup type parameter type is set to local, finally by toolsys.img file and temporary root file system initramfs-tool and other necessary file copy first subregion to local disk or USB disk, this completes the making of the tool system that disk guides.
506, the tool system of netboot is made: startup type is set to network startup, under root file system file and other necessary files being placed on the corresponding catalogue of server.Specifically, existing server can be utilized, build a network startup environment, and in start-up parameter the IP address of given server, startup type is set to network startup, under toolsys.img file being placed on the catalogue needing to be exported by NFS catalogue again, the tool system that this completes netboot starts building of environment; More specifically, if do not have tftp and nfs to serve in linux system, so can download the installation kit of tftp and nfs and install on the network startup server of specifying, after installation, tftp, nfs and dhcp configuration file being arranged.General/mnt catalogue is set to the output directory of nfs, then by under toolsys.img file copy to/mnt catalogue, following startup dhcp, nfs and tftp service, and type=netework is set in default file, IP=server ip address, wherein server ip address is the local ip address of network startup server, and the tool system that this completes netboot starts building of environment.
Should be understood that term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Should understand, in various embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computing machine (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.
Claims (11)
1. a method for vectoring computer startup, is characterized in that, comprising:
When described computing machine is opened, the temporary root file system of the linux system of computing machine described in carry;
Call the booting script in described temporary root file system, described booting script is used to indicate the starting factor media type of the current use of described computing machine, and the guidance code that the starting factor medium of described current use is corresponding, wherein, described booting script comprises guidance code corresponding to multiple starting factor medium;
Perform the guidance code that the starting factor medium of described current use is corresponding, to search the root file system file of described linux system;
According to the described root file system file found, described linux system is switched to root file system from described temporary root file system, to complete the startup of described computing machine.
2. the method for claim 1, is characterized in that, the starting factor medium of the current use of described computing machine is CD,
The guidance code that the starting factor medium of the described current use of described execution is corresponding, to search the root file system file of described linux system, comprising:
CD-ROM equipment on computing machine described in carry;
Described root file system file is searched from the CD that described CD-ROM equipment runs.
3. the method for claim 1, is characterized in that, the starting factor medium of the current use of described computing machine is disk,
The guidance code that the starting factor medium of the described current use of described execution is corresponding, to search the root file system file of described linux system, comprising:
First subregion of the disk on computing machine described in carry;
Described root file system file is searched from described first subregion.
4. the method for claim 1, is characterized in that, the starting factor medium of the current use of described computing machine is network,
The guidance code that the starting factor medium of the described current use of described execution is corresponding, to search the root file system file of described linux system, comprising:
According to the address of the webserver of configuration, determine the webserver storing described root file system file;
Utilize network file system(NFS) NFS function, the catalogue storing described root file system file of the webserver described in carry;
Described root file system file is searched under described catalogue.
5. the method according to any one of claim 1-4, is characterized in that, described linux system is target linux system, and described target linux system customizes based on the release version of any one Linux, and customization procedure comprises:
Obtain temporary root file system and the root file system of the linux system of described release version;
In the temporary root file system of the linux system of described release version, add described booting script, obtain the temporary root file system of described target linux system;
According to the root file system of the linux system of described release version, generate the root file system file of described target linux system.
6. a device for vectoring computer startup, is characterized in that, comprising:
Carry module, for when described computing machine is opened, the temporary root file system of the linux system of computing machine described in carry;
Determination module, for calling the booting script in described temporary root file system, described booting script is used to indicate the starting factor media type of the current use of described computing machine, and the guidance code that the starting factor medium of described current use is corresponding, wherein, described booting script comprises guidance code corresponding to multiple starting factor medium;
Execution module, the guidance code that the starting factor medium for performing described current use is corresponding, to search the root file system file of described linux system;
Start module, for according to the described root file system file found, described linux system is switched to root file system from described temporary root file system, to complete the startup of described computing machine.
7. device as claimed in claim 6, is characterized in that, when the starting factor medium of described current use is for CD, described execution module specifically for:
CD-ROM equipment on computing machine described in carry;
Described root file system file is searched from the CD that described CD-ROM equipment runs.
8. device as claimed in claim 6, is characterized in that, when the starting factor medium of described current use is for disk, described execution module specifically for:
First subregion of the disk on computing machine described in carry;
Described root file system file is searched from described first subregion.
9. device as claimed in claim 6, is characterized in that, when the starting factor medium of described current use is for network, described execution module specifically for:
According to the address of the webserver of configuration, determine the webserver storing described root file system file;
Utilize network file system(NFS) NFS function, the catalogue storing described root file system file of the webserver described in carry;
Described root file system file is searched under described catalogue.
10. the method according to any one of claim 6-9, is characterized in that, described linux system is target linux system, and described target linux system customizes based on the release version of any one Linux, and customization procedure comprises:
Obtain temporary root file system and the root file system of the linux system of described release version;
In the temporary root file system of the linux system of described release version, add described booting script, obtain the temporary root file system of described target linux system;
According to the root file system of the linux system of described release version, generate the root file system file of described target linux system.
The method for making of 11. 1 kinds of starting factor media, is characterized in that, comprising:
Obtain temporary root file system and the root file system of the linux system of any one release version;
Booting script is added in the temporary root file system of the linux system of described release version, obtain the temporary root file system of target linux system, wherein, described booting script is used to indicate target start boot media type to be produced, and the guidance code that described target start boot media is corresponding, wherein, described starting factor script comprises guidance code corresponding to multiple starting factor medium, and the guidance code of often kind of starting factor medium is used to indicate root file system ff mode corresponding to described often kind of starting factor medium;
According to the root file system of the linux system of described release version, generate the root file system file of described target linux system;
The temporary root file system of the root file system file of described target linux system and described target linux system is stored in described target start boot media, completes the making of described target start boot media.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510493780.2A CN105094837A (en) | 2015-08-12 | 2015-08-12 | Method and device for guiding computer to be started and manufacturing method of start guiding medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510493780.2A CN105094837A (en) | 2015-08-12 | 2015-08-12 | Method and device for guiding computer to be started and manufacturing method of start guiding medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105094837A true CN105094837A (en) | 2015-11-25 |
Family
ID=54575365
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510493780.2A Pending CN105094837A (en) | 2015-08-12 | 2015-08-12 | Method and device for guiding computer to be started and manufacturing method of start guiding medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105094837A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112416446A (en) * | 2020-11-19 | 2021-02-26 | 深圳忆联信息系统有限公司 | Linux network starting method and device based on Microsoft deployment system |
CN112579256A (en) * | 2020-12-14 | 2021-03-30 | 上海英方软件股份有限公司 | Linux migration method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101226477A (en) * | 2007-01-16 | 2008-07-23 | 北京共创开源软件有限公司 | Method for implementing Linux operating system being suitable for mobile application |
CN102902563A (en) * | 2012-09-24 | 2013-01-30 | 中标软件有限公司 | Linux operating system and method for mounting file system in starting process of Linux operating system |
CN103077043A (en) * | 2012-11-15 | 2013-05-01 | 上海爱数软件有限公司 | Method for fast starting and operating Linux |
-
2015
- 2015-08-12 CN CN201510493780.2A patent/CN105094837A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101226477A (en) * | 2007-01-16 | 2008-07-23 | 北京共创开源软件有限公司 | Method for implementing Linux operating system being suitable for mobile application |
CN102902563A (en) * | 2012-09-24 | 2013-01-30 | 中标软件有限公司 | Linux operating system and method for mounting file system in starting process of Linux operating system |
CN103077043A (en) * | 2012-11-15 | 2013-05-01 | 上海爱数软件有限公司 | Method for fast starting and operating Linux |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112416446A (en) * | 2020-11-19 | 2021-02-26 | 深圳忆联信息系统有限公司 | Linux network starting method and device based on Microsoft deployment system |
CN112416446B (en) * | 2020-11-19 | 2022-03-29 | 深圳忆联信息系统有限公司 | Linux network starting method and device based on Microsoft deployment system |
CN112579256A (en) * | 2020-12-14 | 2021-03-30 | 上海英方软件股份有限公司 | Linux migration method and device |
CN112579256B (en) * | 2020-12-14 | 2022-04-19 | 上海英方软件股份有限公司 | Linux migration method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11599348B2 (en) | Container image building using shared resources | |
CN108614701B (en) | Linux operating system customizing method and device | |
US8156485B2 (en) | Method and apparatus for creating a pluggable, prioritized configuration engine to be used for configuring a software during installation, update and new profile creation | |
US7475396B2 (en) | Method and apparatus for defining, building and deploying pluggable and independently configurable install components | |
US11016785B2 (en) | Method and system for mirror image package preparation and application operation | |
EP3518099B1 (en) | Installation of operating system | |
US6425078B1 (en) | Method for factory-installation of files and directories with long filenames while maintaining proper reference to their short filename equivalents | |
CN107885551A (en) | A kind of service arrangement method, apparatus, computer-readable recording medium and storage control | |
US7873960B2 (en) | Generic packaging tool for packaging application and component therefor to be installed on computing device | |
WO2015165111A1 (en) | Fast deployment across cloud platforms | |
CN101014034A (en) | U disk server-based cluster solving method | |
CN103324474B (en) | Based on (SuSE) Linux OS across the method for System structure ISO and module | |
CN103580908A (en) | Server configuration method and system | |
CN107329792B (en) | Docker container starting method and device | |
CN105183760A (en) | Webpage component loading method and apparatus | |
CN114721783B (en) | Resource file extraction method and device, electronic equipment and storage medium | |
US9733918B2 (en) | Using cloud patterns for installation on unmanaged physical machines and appliances | |
US20170371641A1 (en) | Multi-tenant upgrading | |
CN113467790B (en) | Software packaging method and device and readable storage medium | |
CN105320540A (en) | Batch installation method and system for Android applications | |
CN112527325B (en) | Deployment method and system applied to super fusion architecture | |
CN105094837A (en) | Method and device for guiding computer to be started and manufacturing method of start guiding medium | |
US8935659B2 (en) | Method for generating software | |
CN112685040A (en) | Method, device, equipment and storage medium for generating interface file in android system | |
CN101840337B (en) | Method for customizing reducing system applied to packet capture application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 201112 Shanghai, Minhang District, United Airlines route 1188, building second layer A-1 unit 8 Applicant after: SHANGHAI EISOO INFORMATION TECHNOLOGY CO., LTD. Address before: 201112 Shanghai, Minhang District, United Airlines route 1188, building second layer A-1 unit 8 Applicant before: Shanghai Eisoo Software Co.,Ltd. |
|
COR | Change of bibliographic data | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151125 |