CN112905252A - Sequencing method and medium for server BIOS startup item sequence - Google Patents

Sequencing method and medium for server BIOS startup item sequence Download PDF

Info

Publication number
CN112905252A
CN112905252A CN202110190879.0A CN202110190879A CN112905252A CN 112905252 A CN112905252 A CN 112905252A CN 202110190879 A CN202110190879 A CN 202110190879A CN 112905252 A CN112905252 A CN 112905252A
Authority
CN
China
Prior art keywords
hard disk
sata hard
bios
item
startup item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110190879.0A
Other languages
Chinese (zh)
Inventor
谭钰琦
徐志远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110190879.0A priority Critical patent/CN112905252A/en
Publication of CN112905252A publication Critical patent/CN112905252A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Abstract

On one hand, the application discloses a method for sequencing the sequence of server BIOS startup items, which comprises the following steps: detecting whether the current UEFI or Legacy mode SATA hard disk boot entry is changed through the BIOS; if the SATA hard disk is changed, detecting the change type, applying different sorting strategies according to the change type, and modifying and generating a new SATA hard disk startup item mapping table; and generating BIOS starting item sequencing according to the hardware port and the SATA hard disk starting item mapping table. In another aspect, the present application discloses a storage medium storing instructions to implement the above-described method. The sequencing method for the BIOS starting item sequence of the server can automatically sequence the starting items of the newly connected SATA hard disk without manual sequencing, and improves the usability of the server; the BIOS starting item sequence can get rid of the hardware port sequence, and the usability is increased; and the existing BIOS boot entry sequence can be maintained when the boot entry sequence changes.

Description

Sequencing method and medium for server BIOS startup item sequence
Technical Field
The invention relates to the technical field of BIOS, in particular to a method and a medium for sequencing the BIOS startup item sequence of a server.
Background
The BIOS is a set of programs solidified on a ROM chip on the mainboard in the computer, which stores the most important basic input and output programs of the computer, the self-checking program after power-on and the system self-starting program, and can read and write the specific information set by the system from the CMOS. Its primary function is to provide the lowest level, most direct hardware setup and control for the computer.
With the development of server technology, the client has more and more customized requirements for the server, the server is often configured with a plurality of bootable devices, and the bootable devices are sorted in the BIOS according to the hardware port sequence, so that when a user accesses a new SATA hard disk, the BIOS boot item sequence is reordered.
Disclosure of Invention
In order to solve the above problem, in one aspect, the present application provides a method for ordering a sequence of server BIOS boot entries, including:
detecting whether the current UEFI or Legacy mode SATA hard disk boot entry is changed through the BIOS;
if the SATA hard disk is changed, detecting the change type, applying different sorting strategies according to the change type, and modifying and generating a new SATA hard disk startup item mapping table;
and generating BIOS starting item sequencing according to the hardware port and the SATA hard disk starting item mapping table.
Furthermore, the SATA hard disk boot item mapping table includes the boot item list and mapping numbers, where the mapping numbers represent the ordering of the boot items in the boot item list.
Further, the detecting, by the BIOS, whether the current UEFI or Legacy mode SATA hard disk boot entry is changed includes:
when starting, BIOS detects SATA hard disk access condition of each hardware port;
sorting the SATA disk characters of the SATA hard disk according to the sequence of hardware ports;
scanning the SATA hard disk, and storing the SATA hard disk in a starting item list when a white list starting item exists in the SATA hard disk;
and comparing the new startup item list with the stored startup item list, and judging whether the SATA hard disk startup item is changed.
Still further, the types of changes that occur include additions, removals, and replacements.
Furthermore, when the changed type is the newly added type, a newly added startup item is added, a corresponding mapping number is added in a delayed manner corresponding to the newly added startup item, and a new SATA hard disk startup item mapping table is stored.
Furthermore, when the changed type is the removal, the removed startup item and the mapping number thereof are deleted from the SATA hard disk startup item mapping table, and the mapping numbers of other mapping items subsequent to the mapping number of the removed startup item are correspondingly reduced by one, so as to store the new SATA hard disk startup item mapping table.
Furthermore, when the changed type is the replacement, the replaced startup item is deleted from the SATA hard disk startup item mapping table, the replaced startup item is added to the SATA hard disk startup item mapping table, and a new SATA hard disk startup item mapping table is stored.
Furthermore, the SATA hard disk activation item mapping table is stored in a memory in which data can still be stored after any power failure.
On the other hand, the application also provides a medium for realizing the sequencing of the server BIOS startup item sequence, at least one instruction is stored, and the instruction is executed to realize the sequencing method of the server BIOS startup item sequence.
The sequencing method and the media for the BIOS starting item sequence of the server have the following beneficial effects:
the sequencing method of the BIOS starting item sequence of the server can automatically sequence the starting items of the newly connected SATA hard disk without manual sequencing, and improves the usability of the server; the BIOS starting item sequence can get rid of the hardware port sequence, and the usability is increased; and under the newly added condition, the start item is arranged at the last of the sequencing of the BIOS start items, so that the newly added SATA hard disk has little influence on the original BIOS start item sequence, a user can easily determine the corresponding relation between the start item and the SATA hard disk, the replaced start item can be executed according to the original BIOS start item sequence under the replacement condition, and the removed start item is removed on the basis of the original BIOS start item sequence under the removal condition, therefore, the sequencing method of the server BIOS start item sequence can keep the original BIOS start item sequence.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a flow chart of a method for ordering server BIOS boot entry sequences in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart of determining whether a change has occurred in an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an embodiment of the present invention, wherein a new SATA hard disk booting item mapping table is generated by applying different sorting policies according to types of changes;
FIG. 4 is a diagram of an embodiment of the present invention in which the type of change is new;
FIG. 5 is a diagram illustrating an embodiment of the present invention in which the type of change is removed;
fig. 6 is a schematic diagram of an embodiment in which the change type is replaced in the embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention is described with reference to the accompanying drawings, wherein fig. 1 is a flowchart of a method for ordering a server BIOS boot entry sequence in an embodiment of the invention; FIG. 2 is a flow chart of determining whether a change has occurred in an embodiment of the present invention; FIG. 3 is a flowchart illustrating an embodiment of the present invention, wherein a new SATA hard disk booting item mapping table is generated by applying different sorting policies according to types of changes; FIG. 4 is a diagram of an embodiment of the present invention in which the type of change is new; FIG. 5 is a diagram illustrating an embodiment of the present invention in which the type of change is removed; fig. 6 is a schematic diagram of an embodiment in which the change type is replaced in the embodiment of the present invention.
Referring to fig. 1, the present invention provides a method for ordering the BIOS boot entry sequence of a server, comprising:
s100, detecting whether the current UEFI or Legacy mode SATA hard disk boot entry is changed through a BIOS;
referring to fig. 2, the method specifically includes: s101, when the system is started, the BIOS detects the SATA hard disk access condition of each hardware port; the BIOS sends a signal through the GPIO to detect whether an SATA hard disk is connected to a hardware port, if the SATA hard disk is connected, the information of the SATA hard disk is acquired, the information of the SATA hard disk comprises a hard disk serial number, and different SATA disk symbols are set for the SATA hard disk;
s102, sorting the SATA disk characters of the SATA hard disk according to the sequence of hardware ports;
s103, scanning the SATA hard disk, and storing the start item in a start item list when the start item in a white list is scanned in the SATA hard disk, wherein the specific start item list comprises the name of the start item and the SATA drive letter of the SATA hard disk; the white list records the permitted starting items;
and S104, comparing the new startup item list with the stored startup item list, wherein the stored startup item list is the original startup item list stored before startup, the new startup item list is the startup item list after scanning update, and determining whether the change occurs according to the comparison result. The types of changes that occur include additions, removals, and replacements.
S200, if the SATA hard disk is changed, detecting the change type, applying different sorting strategies according to the change type, and modifying and generating a new SATA hard disk startup item mapping table;
if the new startup item list is completely the same as the stored startup item list, no change occurs; if the new startup item list is contained in the stored startup item list, the changed type is removal; if the stored startup item list is contained in the new startup item list, the changed type is newly added; if the new startup item list has startup items which do not belong to the stored startup item list and the stored startup item list has an equal number of startup items which do not belong to the new startup item list and have different startup items, the type of the change is replacement.
Under the condition that a SATA hard disk is provided with a set of system, a specific mode for detecting the change type is as follows: when starting, BIOS reads the information of SATA hard disk connected with each hardware port to obtain the serial number of hard disk.
And comparing the hard disk serial number of the read new startup item list with the hard disk serial number of the stored startup item list to judge whether hard disk replacement occurs, and if so, storing the new hard disk serial number.
And comparing the hard disk serial number of the new startup item list with the hard disk serial number of the stored startup item list, wherein when the hard disk serial number of the new startup item list is increased compared with the hard disk serial number of the stored startup item list, the changed type is newly increased.
And comparing the hard disk serial number of the new startup item list with the hard disk serial number of the stored startup item list, wherein when the hard disk serial number of the new startup item list is reduced compared with the hard disk serial number of the stored startup item list, the changed type is removal.
The SATA hard disk boot item mapping table comprises the boot item list and mapping numbers, wherein the mapping numbers represent the sequencing of the boot items in the boot item list.
Referring to fig. 3 and 4 in combination, when it is detected that the type of the change is the new one, corresponding mapping numbers are sequentially added corresponding to the new startup items, and the new SATA hard disk startup item mapping table is stored in any memory in which data can still be stored after power failure, so that comparison can still be called when the SATA hard disk is started next time.
Referring to fig. 3 and 5 in combination, when it is detected that the type of the change is the removal, the memory mapping number of the removed startup item is deleted from the SATA hard disk startup item mapping table, and other mapping numbers subsequent to the mapping number of the removed startup item are correspondingly decremented by one, and a new SATA hard disk startup item mapping table is stored in any memory for storing data after power failure.
Referring to fig. 3 and fig. 6 in combination, when the changed type is the replacement, the replaced startup item is deleted from the SATA hard disk startup item mapping table, the replaced startup item is added to the SATA hard disk startup item mapping table, and the new SATA hard disk startup item mapping table is stored in any memory for storing data after power failure.
In a specific implementation, a feasible memory capable of storing data after power-off may be NVram.
S300, generating a BIOS starting item sequence according to the hardware port and the SATA hard disk starting item mapping table. And specifically, the BIOS starting items are ordered according to the sequence of the mapping numbers.
On the other hand, the application also provides a sequencing medium of the server BIOS starting item sequence, at least one instruction is stored, and the instruction is executed to realize the sequencing method of the server BIOS starting item sequence. The method can comprise the following steps: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The sequencing method of the BIOS starting item sequence of the server can automatically sequence the starting items of the newly connected SATA hard disk without manual sequencing, thereby improving the usability of the server; the BIOS starting item sequence can get rid of the hardware port sequence, and the usability is increased; and under the newly added condition, the start item is arranged at the last of the BIOS start item, so that the newly added SATA hard disk has little influence on the original BIOS start item sequence, a user can easily determine the corresponding relation between the start item and the SATA hard disk, the replaced start item can be executed according to the original BIOS start item sequence under the replacement condition, and the removed start item is removed on the basis of the original BIOS start item sequence under the removal condition, therefore, the sequencing method of the server BIOS start item sequence can keep the original BIOS start item sequence.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A method for ordering a sequence of server BIOS boot entries, comprising:
detecting whether the current UEFI or Legacy mode SATA hard disk boot entry is changed through the BIOS;
if the SATA hard disk is changed, detecting the change type, applying different sorting strategies according to the change type, and modifying and generating a new SATA hard disk startup item mapping table;
and generating BIOS starting item sequencing according to the hardware port and the SATA hard disk starting item mapping table.
2. The method of claim 1, wherein the SATA hard disk boot entry mapping table includes the boot entry list and mapping numbers, and the mapping numbers represent the ordering of boot entries in the boot entry list.
3. The method of claim 2, wherein detecting whether the current UEFI or Legacy mode SATA hard disk boot entry is changed by the BIOS comprises:
when starting, BIOS detects SATA hard disk access condition of each hardware port;
sorting the SATA disk characters of the SATA hard disk according to the sequence of hardware ports;
scanning the SATA hard disk, and storing the SATA hard disk in a starting item list when a white list starting item exists in the SATA hard disk;
and comparing the new startup item list with the stored startup item list, and judging whether the SATA hard disk startup item is changed.
4. The method of claim 3, wherein the type of change comprises an addition, a removal, and a replacement.
5. The sequencing method of BIOS startup item sequence of server according to claim 4, wherein when the changed type is said new addition, corresponding mapping numbers are added in sequence corresponding to the new startup items, and the new SATA hard disk startup item mapping table is stored.
6. The method of claim 4, wherein when the changed type is the removal, the removed startup item and its mapping number are deleted from the SATA hard disk startup item mapping table, and other mapping numbers subsequent to the mapping number of the removed startup item are correspondingly decremented by one, and a new SATA hard disk startup item mapping table is stored.
7. The sequencing method of the sequence of the server BIOS startup items according to claim 4, wherein when the changed type is the replacement, the replaced startup item is deleted from the SATA hard disk startup item mapping table, the replaced startup item is added to the SATA hard disk startup item mapping table, and the new SATA hard disk startup item mapping table is stored.
8. The method of any of claims 5-7, wherein the SATA hard disk boot entry mapping table is stored in a memory where data is saved after any power-off.
9. A medium for implementing a ranking of server BIOS startup item sequences, wherein at least one instruction is stored, execution of which implements the method of ranking of server BIOS startup item sequences of any of claims 1 to 8.
CN202110190879.0A 2021-02-20 2021-02-20 Sequencing method and medium for server BIOS startup item sequence Pending CN112905252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110190879.0A CN112905252A (en) 2021-02-20 2021-02-20 Sequencing method and medium for server BIOS startup item sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110190879.0A CN112905252A (en) 2021-02-20 2021-02-20 Sequencing method and medium for server BIOS startup item sequence

Publications (1)

Publication Number Publication Date
CN112905252A true CN112905252A (en) 2021-06-04

Family

ID=76123899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110190879.0A Pending CN112905252A (en) 2021-02-20 2021-02-20 Sequencing method and medium for server BIOS startup item sequence

Country Status (1)

Country Link
CN (1) CN112905252A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020339A (en) * 2021-11-01 2022-02-08 联想(北京)有限公司 BIOS starting method and device based on mobile disk and storage medium
CN114598755A (en) * 2022-02-23 2022-06-07 苏州浪潮智能科技有限公司 Network protocol starting sequence control method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679542A (en) * 2013-11-29 2015-06-03 英业达科技有限公司 Server staring method and computer system
US20150205676A1 (en) * 2013-09-29 2015-07-23 Huawei Technologies Co., Ltd. Server Control Method and Server Control Device
CN108287735A (en) * 2018-01-25 2018-07-17 郑州云海信息技术有限公司 A kind of method, apparatus and server obtaining UEFI OS startup items
CN109656627A (en) * 2018-12-18 2019-04-19 广东浪潮大数据研究有限公司 Starting method, activation system and the relevant apparatus of hard disk in a kind of BIOS
CN111736906A (en) * 2020-06-12 2020-10-02 苏州浪潮智能科技有限公司 BIOS-based boot entry synchronous storage method, system, terminal and storage medium
CN111984490A (en) * 2020-09-28 2020-11-24 苏州浪潮智能科技有限公司 Warning device, method, equipment and medium for illegal operating system starting item

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150205676A1 (en) * 2013-09-29 2015-07-23 Huawei Technologies Co., Ltd. Server Control Method and Server Control Device
CN104679542A (en) * 2013-11-29 2015-06-03 英业达科技有限公司 Server staring method and computer system
CN108287735A (en) * 2018-01-25 2018-07-17 郑州云海信息技术有限公司 A kind of method, apparatus and server obtaining UEFI OS startup items
CN109656627A (en) * 2018-12-18 2019-04-19 广东浪潮大数据研究有限公司 Starting method, activation system and the relevant apparatus of hard disk in a kind of BIOS
CN111736906A (en) * 2020-06-12 2020-10-02 苏州浪潮智能科技有限公司 BIOS-based boot entry synchronous storage method, system, terminal and storage medium
CN111984490A (en) * 2020-09-28 2020-11-24 苏州浪潮智能科技有限公司 Warning device, method, equipment and medium for illegal operating system starting item

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020339A (en) * 2021-11-01 2022-02-08 联想(北京)有限公司 BIOS starting method and device based on mobile disk and storage medium
CN114598755A (en) * 2022-02-23 2022-06-07 苏州浪潮智能科技有限公司 Network protocol starting sequence control method, device, equipment and storage medium
CN114598755B (en) * 2022-02-23 2023-08-11 苏州浪潮智能科技有限公司 Network protocol start sequence control method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
TW452688B (en) Method to reflect BIOS set up changes into ACPI machine language
US8751783B2 (en) Booting computing devices with EFI aware operating systems
US5748980A (en) System for configuring a computer system
US7275150B2 (en) Method and system for adding frequently selected applications to a computer startup sequence
US9558016B2 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
US5426775A (en) Method and a device for booting a computer at a programmed time
BRPI0720152A2 (en) IMPROVEMENT OF USER EXPERIENCES USING DATA USING AGGREGATED DEVICES.
CN112905252A (en) Sequencing method and medium for server BIOS startup item sequence
KR101489158B1 (en) Storage medium having master boot record, computer system comprising the same and booting method
CN108920212B (en) Linux kernel-based product starting method and system and related components
US7174446B2 (en) System and method for managing the boot sequence of an information handling system
CN108776595A (en) A kind of recognition methods, device, equipment and the medium of the video card of GPU servers
CN112579202B (en) Method, device, equipment and storage medium for editing server program of Windows system
CN113867743B (en) Network operating system loading and burning method and device, electronic equipment and storage medium
US20030233536A1 (en) Automatic selection of firmware for a computer that allows a plurality of process types
CN112667442B (en) Control method, device and equipment based on nonvolatile memory device starting system
US20070226172A1 (en) File-management apparatus, file-management method, and computer product
US7398384B2 (en) Methods and apparatus for acquiring expansion read only memory size information prior to operating system execution
US20150143093A1 (en) Plurality of interface files usable for access to bios
US8230209B1 (en) Method and apparatus for automatically providing a user the opportunity to boot from an alternate storage device where a valid operating system resides
US7246222B2 (en) Processor type determination based on reset vector characteristics
CN108920216B (en) Method, device, terminal and storage medium for closing software compatible mode
CN113849229A (en) Server starting method and device, electronic equipment and readable storage medium
CN116795494B (en) Memory protection unit information processing method, system and readable medium
JP2003114800A (en) Boot mediating program, booting method, and storage device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210604