Background technology
Single computer equipment can external a lot of storage facilitiess, as floppy disk, USB flash disk, CD, hard disk or network interface card etc., and respectively this storage facilities all can be used as starting outfit, to guide this computer equipment to be written into operating system by the start-up routine that is stored in this storage facilities respectively.And the possible external polytype starting outfit simultaneously of single computer equipment, the complementary metal oxide semiconductor (CMOS) random access memory of computer equipment (Complementary Metal-OxideSemiconductor Random Access Memory then, CMOS RAM) in the corresponding relevant information that stores boot sequence (boot order) about dissimilar starting outfits, to avoid system to be written into operating system from a plurality of starting outfits simultaneously, cause the disorderly situation of system's operation to take place.
Yet, when the user wants to check the current boot sequence relevant information of respectively this starting outfit of this computer equipment, must be when this computer equipment have just started, pin del key (at desktop computer equipment) or F2 key (at notebook computer equipment), to enter CMOS interface (Award BIOS CMOS setup Utility interface) is set, then, by the directionkeys on the keyboard choose senior BIOS function setting (Advanced BIOS Features) and click enter key (enter) determined after, the subordinate's dialog box of being allowed for access, therefrom obtain current boot sequence relevant information about starting outfit, afterwards, if want to reenter the operating system of this computer equipment, then need cooperate each respective keys of keyboard to withdraw from this CMOS is provided with the interface and restarts this computer equipment again, the side is entered operating system, and this computer equipment is used in normal operation.
Obviously, carry out boot sequence by the aforesaid operations mode and check operation, step is very loaded down with trivial details, and, the user must pin del key or F2 key in the moment of starting shooting, if time of button prolongs after a little, for example computer equipment has begun to be written into operating system, just begin to pin del key or F2 key, then how button all can't make this computer equipment enter CMOS again is provided with the interface, in addition, CMOS is provided with and stores many other important system configuration parameters in the interface, do not note slightly, very easily maloperation and the setting of other parameters of change system, and then influence the normal operation of system.
In view of above content, be necessary to provide a kind of read method of boot sequence of launch computer equipment, avoiding disadvantages of the prior art, so provide be convenient to operate and the tool higher-security read the mode of checking, real in desiring most ardently the technical matters of solution at present.
Summary of the invention
In view of the shortcoming of above-mentioned prior art, fundamental purpose of the present invention is to provide a kind of read method of boot sequence of the launch computer equipment of being convenient to operate.
Another object of the present invention is to provide a kind of read method of boot sequence of launch computer equipment of tool higher-security.
For reaching above-mentioned purpose and other purposes, the invention provides a kind of read method of boot sequence of launch computer equipment, be applied to have in the computer of a plurality of launch computer equipment, the read method of this launch computer equipment order may further comprise the steps: BIOS (basicinput/output system) storer is set in this computer; In this computer internal memory is set, this internal memory has fixing address space; Start this computer, and execution startup self-detection program (Power On Self Test, POST); In this fixing address space, set up BIOS by this BIOS storer acquiescence and start specification catalogue (BIOS Boot Specification Table is hereinafter to be referred as the BBS catalogue), to write down the default start sequence code of described launch computer equipment; In this startup self-detection program process, produce the actual boot sequence code of these launch computer equipment of expression; After should actual boot sequence code being appended to this BIOS and starting specification catalogue; And read the actual boot sequence code in this internal memory and the corresponding relation of described starting outfit, to show actual boot sequence information.
Wherein, this reads actual boot sequence code in this internal memory and the step of described starting outfit corresponding relation further may further comprise the steps: the related information file is provided, it comprises a plurality of starting outfit codes, a plurality of starting outfits, and the corresponding relation of this starting outfit code, starting outfit respectively; Show this actual boot sequence code, this actual boot sequence code comprises respectively this starting outfit name code that lays respectively at a plurality of fixed positions; And read this related information file, according to the sortord of described starting outfit name code in actual boot sequence code, obtain the pairing actual boot sequence information of this actual boot sequence code.
On concrete enforcement, this related information file is the related information table, and these starting outfit codes comprise the classification information and the name information of this launch computer equipment, and described name information is showed by above-mentioned starting outfit name code.
On concrete enforcement, this launch computer equipment is one of them of floppy drive, CD player, Winchester disk drive, network card, USB storage device.The sortord of described starting outfit name code in actual boot sequence code is that the startup sequencing according to described starting outfit is stored in this fixing address space successively.And this computer equipment further has complementary metal oxide semiconductor (CMOS) random access memory (Complementary Metal-Oxide SemiconductorRandom Access Memory, CMOS RAM), the default start sequence of described launch computer equipment is corresponding to the numerical value (CMOS value) that leaves in this complementary metal oxide semiconductor (CMOS) random access memory.This BIOS starts the search operation of specification catalogue to be carried out by the operation function menu that this operating system provides, preferably, the operation function menu that this operating system provides is shown by display interface, and should fixing address space was program segment working time (Runtime Segment).
Than prior art, the read method of the boot sequence of launch computer equipment of the present invention mainly is the fixing address space of internal memory definition in this computer, and in the startup self-detection program process, this BIOS storer will be set up BIOS and start the specification catalogue to write down the default start sequence code of described starting outfit in the fixing address space of this internal memory.Then, in this self check process, produce actual boot sequence code and actual boot sequence code is appended to after the BBS catalogue.At last, read the actual boot sequence code in this internal memory and the corresponding relation of described starting outfit, to show actual boot sequence information.Run under the operating system environment at this computer for follow-up, read actual boot sequence information according to the ordering of this related information table.And it is very convenient in operation, and because of not relating to other system configuration parameter of this computer by fixing address space, therefore, the setting of other configuration parameters in the change system can not take place because of searching boot sequence information, and then influencing the situation of the normal operation of system, security is high.
Embodiment
Below by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the content that this instructions disclosed.
See also Fig. 1, show the operating process synoptic diagram of read method of the boot sequence of launch computer equipment of the present invention.As shown in the figure, the read method of the boot sequence of launch computer equipment of the present invention is applied to have in the computer of a plurality of launch computer equipment, and BIOS storer, internal memory and complementary metal oxide semiconductor (CMOS) random access memory (Complementary Metal-Oxide Semiconductor Random Access Memory, CMOS RAM) (not shown) be set respectively in this computer.
This BIOS storer for can wipe programmable read-only memory (ErasableProgrammable Read Only Memory, EPROM).Store the default start sequence code of these equipment in this complementary metal oxide semiconductor (CMOS) in regular turn, to know the default start sequence information of these equipment by these default start sequence codes.Preferably, these default start sequence codes comprise the classification information and the name information of this equipment, and mutually corresponding with numerical value (CMOS value) in leaving this complementary metal oxide semiconductor (CMOS) random access memory in.
Hold above-mentionedly, the present invention is the fixing address space of definition in this internal memory also, and this address space is program segment working time (Runtime Segment).
As shown in Figure 1, at first carry out step S10, in step S10, BIOS (basic input/output system) storer is set in this computer, then, proceed to step S20.
In step S20, in this computer, internal memory is set, this internal memory has fixing address space, then, proceeds to step S30.
In step S30, start this computer, and execution startup self-detection program, this startup self-detection program is carried out by the Basic Input or Output System (BIOS) (BIOS) that is arranged at this computer, carrying out the startup self-detection operation by BIOS is technology well known to those of ordinary skill in the art, is not described in detail in this.And start specification catalogue (BIOS Boot Specification Table, BBS Table) by setting up BIOS in the fixing address space of this BIOS storer in this internal memory, to write down the default start sequence code of described equipment.In the boot sequence of acquiescence, be that different starting outfits are divided into different big classifications, and USB flash disk is positioned at the first place, be CD player, hard disk, network interface card then, and sorted as classification greatly with different network interface cards.In this step, this BIOS starts the search operation of specification catalogue to be carried out by the operation function menu that this operating system provides, and preferably, the operation function menu that this operating system provides is shown by display interface.Then proceed to step S40.
In step S40, in this startup self-detection program process, produce the actual boot sequence code of these starting outfits of expression, then proceed to step S50.
In step S50, described actual boot sequence code is appended in this fixing address space, and be positioned at after this BIOS startup specification catalogue.In this step, this default start sequence code and should be hexadecimal character by actual boot sequence code.In addition, should be program segment working time (Runtime Segment) by fixing address space, but not as limit, such as this address space is a relatively-stationary address in this storer, so that follow-up running at this computer carried out the corresponding operation of searching under the operating system environment, all do not break away from application category of the present invention.Moreover respectively this starting outfit classification information, name information are stored in this fixing address space with character format in regular turn according to the acquiescence of its correspondence, actual boot sequence code, with acquiescence (or actual) the boot sequence information of representing these starting outfits.For example, promptly according to default start sequence or actual boot sequence, with respectively this starting outfit classification information, name information are stored in this fixing address space by starting sequencing successively with character format, but not as limit, in other embodiments, also can provide other sortords to be stored.Then proceed to step S60.
In step S60, read the actual boot sequence code in this internal memory and the corresponding relation of described starting outfit, obtain actual boot sequence information and shown.In step S60, further comprise: the related information file at first is provided, and it comprises a plurality of starting outfit codes, a plurality of starting outfits, and the corresponding relation of this starting outfit code, starting outfit respectively; These starting outfit codes are represented the classification information and the name information of described starting outfit, and described name information is represented by many starting outfits name code; Preferably, this related information file is the related information table.Subsequently, show this actual boot sequence code, this actual boot sequence code comprises respectively this starting outfit name code that lays respectively at a plurality of fixed positions; Starting outfit name code in this related information file and this actual starting outfit name code are same code, promptly, can learn the represented starting outfit name information of this actual starting outfit name code in this actual boot sequence code by this related information file.At last, read this related information file,, obtain the pairing actual boot sequence information of this actual boot sequence code according to the sortord of described starting outfit name code in actual boot sequence code; Preferably, the sortord of described starting outfit name code in actual boot sequence code is that startup sequencing by described starting outfit is stored in this fixing address space successively.
But, be the fixing address space stored information content of the read method of clearer understanding by launch computer of the present invention order at this internal memory, below be example to have 3 starting outfits in this computer, respectively the title of this starting outfit is respectively hard disk, network interface card 0 and network interface card 1; Correspondingly, respectively this starting outfit information is respectively " SATA:PM-FUJITSUMHV2060BS ", " Network:MBA v11.0.12slot 0300 " and " Network:MBAv11.0.12slot 0200 "; Wherein, SATA, Network are classification information, and remainder is a name information.
Hold above-mentionedly, the assumed by default boot sequence is followed successively by hard disk, network interface card 0 and network interface card 1, and when carrying out startup self-detection, this default start sequence, is stored in this BIOS successively and starts in specification catalogue as hexadecimal character according to code form.By this related information file, can learn this hard disk, network interface card 0 and the network interface card 1 starting outfit code separately and the corresponding relation of starting outfit information; Further can learn this hard disk, network interface card 0 and the network interface card 1 starting outfit name code separately and the corresponding relation of starting outfit title.Promptly, the coded representation (MBA v11.0.12slot 0300) that the coded representation that ranks first in this default start sequence (PM-FUJITSU MHV2060BS) is hard disk, come second is network interface card 1, is network interface card 2 and rank the 3rd coded representation (MBAv11.0.12slot 0200).
Hold above-mentioned, and open in the order actual, respectively the boot sequence of this starting outfit for example is followed successively by network interface card 0, network interface card 1 and hard disk, then should actual boot sequence according to code form, be similarly hexadecimal character, be stored in successively in this internal memory, and be positioned at after this BIOS startup specification catalogue, simultaneously, by this related information table, can read the actual boot sequence code in this internal memory and the corresponding relation of described starting outfit.For example, the decimal code that ranks first in this default start sequence is expressed as hard disk, can learn by this related information table, it is identical to rank the code that ranks first in the 3rd hexadecimal code and this default start sequence in this actual boot sequence, promptly representative is same starting outfit, also is expressed as this hard disk; And, can learn that this hard disk ranks the 3rd in actual boot sequence by the position of this code in this actual start-up code order.So, just, can learn by the actual boot sequence information that produces in this startup self-detection process (being followed successively by network interface card 0, network interface card 1 and hard disk).
In the present embodiment, the initial information form (initial position) of actual boot sequence code is in this internal memory: preceding 12 bytes (00-0Bh) are big classification boot sequence, only account for wherein one (1 byte) as USB flash disk, CD-ROM drive and hard disk in like manner also only account for (1 byte) wherein, and each network interface card is to take one (1 byte) separately.Back to back 4 byte are little classification successively, promptly different USB flash disks, different CD-ROM drives, and the boot sequence of different hard disk, and their default sequence to be them appear at this BIOS starts in specification catalogue order.
Therefore, the user only needs to run under the operating system environment at this computer equipment, can hunt out by the operation function menu and to be arranged in this BIOS that above-mentioned internal memory has fixed address and to start specification catalogue, and be reference value, and then obtain the actual starting outfit information of the actual boot sequence information of expression starting outfit with the acquiescence starting outfit information of the expression starting outfit default start sequence information of starting outfit in this computer.
In sum, the read method of the boot sequence of launch computer equipment of the present invention mainly is the address space that the at first definition of the internal memory in this computer is fixed, and in the startup self-detection program process, in the fixing address space of this internal memory, set up BIOS by this BIOS storer and start the specification catalogue to write down the default start sequence code of described starting outfit.Then in this self check process, produce actual boot sequence code and actual boot sequence code is appended to after the BBS catalogue.At last, read the actual boot sequence code in this internal memory and the corresponding relation of described starting outfit, and show actual boot sequence information.And under the follow-up environment that runs on operating system at this computer, then know actual boot sequence information according to this related information table.Thus, to avoid in the prior art, must get hold of the time, to enter CMOS the interface is set at computer equipment start transient operation keyboard, and need to cooperate the use of directionkeys, just obtained launch computer device start order relevant information, operation is very complicated, and because of storing other many important system configuration parameters in the CMOS interface simultaneously, does not note slightly, very easily maloperation and the setting of other parameters of change system, and then influence the drawbacks such as normal operation of system.
The foregoing description is illustrative principle of the present invention and effect thereof only, but not is used to limit the present invention.Any those skilled in the art all can be under spirit of the present invention and category, and the foregoing description is modified and changed.Therefore, the scope of the present invention should be listed as claim.