[go: up one dir, main page]

CN106897063B - A method and system for permanently adding OS startup items to BIOS based on EFI - Google Patents

A method and system for permanently adding OS startup items to BIOS based on EFI Download PDF

Info

Publication number
CN106897063B
CN106897063B CN201710096964.4A CN201710096964A CN106897063B CN 106897063 B CN106897063 B CN 106897063B CN 201710096964 A CN201710096964 A CN 201710096964A CN 106897063 B CN106897063 B CN 106897063B
Authority
CN
China
Prior art keywords
client
startup item
shell
startup
efi
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.)
Active
Application number
CN201710096964.4A
Other languages
Chinese (zh)
Other versions
CN106897063A (en
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.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201710096964.4A priority Critical patent/CN106897063B/en
Publication of CN106897063A publication Critical patent/CN106897063A/en
Application granted granted Critical
Publication of CN106897063B publication Critical patent/CN106897063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06F9/4406Loading of operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method and a system for permanently adding an OS starting item into a BIOS based on EFI, wherein the addition of the OS starting item into the BIOS is realized by taking an EFI Shell environment as a carrier and adding the assistance of a Shell. The scheme of the invention can conveniently, efficiently and accurately permanently add the OS starting item into the BIOS, and the OS starting item can not be lost after the BIOS is restarted.

Description

一种基于EFI将OS启动项永久添加至BIOS中的方法及系统A method and system for permanently adding OS startup items to BIOS based on EFI

技术领域technical field

本发明涉及计算机领域,具体涉及一种基于EFI将OS启动项永久添加至BIOS中的方法及系统。The invention relates to the field of computers, in particular to a method and a system for permanently adding an OS startup item to a BIOS based on EFI.

背景技术Background technique

随着IT技术领域的不断发展,互联网+概念的提出,在信息产业迅速发展,激烈竞争的时代,软件与IT服务的重要性日益提高,方案提供与IT服务能力成为IT企业的发展趋势。软硬件综合发展,注重方案的提供能力,逐步向IT服务转型是浪潮发展策略之一,为行业用户提供量身定做服务。当前客户多种多样,主要涉及互联网、金融、政府、军工等,客户使用的OS也呈现多样化,目前有的客户使用标准Redhat OS,有的客户使用CentOS,有的客户使用自己开发的OS,OS安装模式又分Legacy和UEFI,当客户业务出现变更需更换主板时,就有可能出现找不到OS启动项,无法正常进入OS的问题,虽然此问题可以通过发布BIOS解决,但是经过售后,研发开发,测试验证、发布等一系列流程,到达客户手中最快也要一个周,极大的影响客户的使用。With the continuous development of the IT technology field and the introduction of the concept of Internet +, in the era of rapid development of the information industry and fierce competition, the importance of software and IT services is increasing day by day, and solution provision and IT service capabilities have become the development trend of IT enterprises. Comprehensive development of software and hardware, focusing on the ability to provide solutions, and gradually transforming to IT services are one of Inspur's development strategies, providing tailor-made services for industry users. There are currently a variety of customers, mainly involving the Internet, finance, government, military industry, etc. The OS used by customers is also diversified. At present, some customers use the standard Redhat OS, some customers use CentOS, and some customers use their own developed OS. The OS installation mode is divided into Legacy and UEFI. When the customer's business changes and the motherboard needs to be replaced, there may be a problem that the OS startup item cannot be found, and the OS cannot be entered normally. Although this problem can be solved by releasing the BIOS, after sales, A series of processes such as R&D and development, testing and verification, and release can take as little as one week to reach the customer, which greatly affects the customer's use.

因此一种基于EFI将OS启动项永久添加至BIOS中的方法是有必要的。Therefore, a method to permanently add OS boot items to BIOS based on EFI is necessary.

发明内容SUMMARY OF THE INVENTION

为解决上述技术问题,本发明的技术方案如下:For solving the above-mentioned technical problems, the technical scheme of the present invention is as follows:

本发明提供一种基于EFI将OS启动项永久添加至BIOS中的方法,包括以下步骤:The present invention provides a method for permanently adding OS startup items to BIOS based on EFI, comprising the following steps:

SS1:客户机采集自身的启动项信息并保存;SS1: The client collects its own startup item information and saves it;

SS2:客户机上报自身的启动项信息至管理级服务器;SS2: The client reports its own startup item information to the management-level server;

SS3:管理级服务器将客户机更换主板前及更换主板后分别上报的客户机启动项信息进行比较,产生客户机因更换主板导致的缺失启动项;SS3: The management-level server compares the client startup item information reported by the client before the motherboard is replaced and after the motherboard is replaced, and generates the missing startup item caused by the replacement of the motherboard on the client;

SS4:将U盘插到客户机的USB接口,启动项注入器根据管理级服务器产生的缺失启动项自动将缺失启动项添加至客户机的BIOS中。SS4: Insert the U disk into the USB interface of the client, and the boot item injector automatically adds the missing boot items to the BIOS of the client according to the missing boot items generated by the management-level server.

进一步的,步骤SS4具体为:Further, step SS4 is specifically:

SS4-1:将Shell.efi文件存储至U盘根目录,并将U盘插到客户机的USB接口;SS4-1: Store the Shell.efi file to the root directory of the U disk, and insert the U disk into the USB port of the client computer;

SS4-2:客户机开机,在Post阶段,触发系统进入启动项选择,选择UEFI:Built-inEFI Shell;SS4-2: When the client computer is turned on, in the Post stage, the system is triggered to enter the startup item selection, and select UEFI: Built-inEFI Shell;

SS4-3:进入UEFI:Built-in EFI Shell;SS4-3: Enter UEFI: Built-in EFI Shell;

SS4-4:在UEFI Shell下执行shell>map-r命令,确认出U盘设备属于fs1,并在fs1:下执行Shell.efi创建完整的Shell环境;SS4-4: Execute the shell>map-r command under UEFI Shell to confirm that the U disk device belongs to fs1, and execute Shell.efi under fs1: to create a complete shell environment;

SS4-5:在完整的Shell环境下,执行shell>map-r命令,确认出HDD设备属于fs1,并在fs1:下执行bcfgboot add 0grub.efi″A″添加OS启动项到BIOS中,其中A代表缺失启动项。SS4-5: In the complete shell environment, execute the shell>map-r command to confirm that the HDD device belongs to fs1, and execute bcfgboot add 0grub.efi"A" under fs1: to add the OS boot item to the BIOS, where A Represents a missing startup item.

进一步的,步骤SS1具体为:客户机启动时采集自身的启动项信息并保存。Further, step SS1 is specifically as follows: when the client starts up, collects its own startup item information and saves it.

进一步的,步骤SS2具体为:客户机在接收到来自管理级服务器的监控命令后,将当前系统的启动项信息发送至管理级服务器。Further, step SS2 is specifically as follows: after receiving the monitoring command from the management-level server, the client sends the startup item information of the current system to the management-level server.

进一步的,步骤SS3具体为:管理级服务器将客户机更换主板前及更换主板后分别上报的客户机启动项信息进行比较,如果两次启动项信息一致则不进行后续操作,如果不一致则产生客户机因更换主板导致的缺失启动项。Further, step SS3 is specifically as follows: the management-level server compares the client startup item information reported by the client before the motherboard is replaced and after the motherboard is replaced, and if the two startup item information is consistent, no follow-up operation is performed, and if it is inconsistent, a client is generated. The boot item is missing due to the replacement of the motherboard.

进一步的,在步骤SS4之后还包括步骤SS5:Further, after step SS4, step SS5 is also included:

SS5:进客户机BIOS SETUP确认缺失启动项添加成功,并正常进入OS。SS5: Enter the client BIOS SETUP to confirm that the missing startup items are added successfully, and enter the OS normally.

进一步的,在步骤SS5之前需执行Ctrl+alt+Delete重启客户机并拔掉U盘。Further, before step SS5, execute Ctrl+alt+Delete to restart the client and unplug the U disk.

此外,本发明提供一种基于EFI将OS启动项永久添加至BIOS中的系统,包括客户机、管理级服务器、启动项注入器、U盘,其中管理级服务器、启动项注入器、U盘分别与客户机连接,管理级服务器与启动项注入器连接,客户机启动时采集自身的启动项信息并保存,客户机在接收到来自管理级服务器的监控命令后,将当前系统的启动项信息发送至管理级服务器,管理级服务器将客户机更换主板前及更换主板后分别上报的客户机启动项信息进行比较,如果两次启动项信息一致则不进行后续操作,如果不一致则产生客户机因更换主板导致的缺失启动项;将Shell.efi文件存储至U盘根目录,并将U盘插到客户机的USB接口,启动项注入器根据管理级服务器产生的缺失启动项自动将缺失启动项添加至客户机的BIOS中。In addition, the present invention provides a system for permanently adding OS startup items to BIOS based on EFI, including a client computer, a management-level server, a startup item injector, and a U disk, wherein the management-level server, the startup item injector, and the U disk are respectively Connect with the client, the management-level server is connected to the startup item injector, the client collects its own startup item information and saves it when it starts up, and after receiving the monitoring command from the management-level server, the client sends the startup item information of the current system To the management-level server, the management-level server compares the client startup item information reported by the client before the motherboard is replaced and after the motherboard is replaced. If the two startup items are consistent, no subsequent operations will be performed. Missing startup items caused by the motherboard; save the Shell.efi file to the root directory of the U disk, and insert the U disk into the USB interface of the client computer. The startup item injector automatically adds the missing startup items according to the missing startup items generated by the management server. into the client's BIOS.

进一步的,启动项注入器根据管理级服务器产生的缺失启动项自动将缺失启动项添加至客户机的BIOS中具体为:客户机开机,在Post阶段,启动项注入器触发系统进入启动项选择,选择UEFI:Built-in EFI Shell;进入UEFI:Built-in EFI Shell;在UEFI Shell下执行shell>map-r命令,确认出U盘设备属于fs1,并在fs1:下执行Shell.efi创建完整的Shell环境;在完整的Shell环境下,执行shell>map-r命令,确认出HDD设备属于fs1,并在fs1:下执行bcfgboot add 0grub.efi″A″添加OS启动项到BIOS中,其中A代表缺失启动项,启动项注入操作完成后,执行Ctrl+alt+Delete重启客户机并拔掉U盘,并进入客户机的BIOS SETUP确认缺失启动项添加成功,并正常进入OS。Further, the startup item injector automatically adds the missing startup item to the BIOS of the client according to the missing startup item generated by the management-level server. Specifically: the client is powered on, and in the Post stage, the startup item injector triggers the system to enter the startup item selection, Select UEFI: Built-in EFI Shell; enter UEFI: Built-in EFI Shell; execute the shell>map-r command under UEFI Shell, confirm that the U disk device belongs to fs1, and execute Shell.efi under fs1: to create a complete Shell environment; in a complete shell environment, execute the shell>map-r command to confirm that the HDD device belongs to fs1, and execute bcfgboot add 0grub.efi"A" under fs1: to add the OS boot item to the BIOS, where A stands for If the startup item is missing, after the startup item injection operation is complete, execute Ctrl+alt+Delete to restart the client and unplug the U disk, and enter the BIOS SETUP of the client to confirm that the missing startup item is added successfully, and enter the OS normally.

进一步的,启动项注入操作均可由启动项注入器根据采集到的客户机状态并进行按键模拟触发操作来实完成。Further, the startup item injection operation can be completed by the startup item injector according to the collected client state and performing a button simulation trigger operation.

本发明的方案可以方便、高效、精准的将OS启动项永久的添加至BIOS中,而且重启后也不会丢失,在服务器上经多次验证,结果显示该方法可行,不仅给研发减少了工作量,对服务器后期的维护工作及客户运维使用方面也提供了便捷。The solution of the present invention can conveniently, efficiently and accurately add the OS startup item to the BIOS permanently, and it will not be lost after restarting. After several verifications on the server, the results show that the method is feasible, which not only reduces the work for research and development It also provides convenience for the later maintenance of the server and the use of customer operation and maintenance.

附图说明Description of drawings

图1示出本发明基于EFI将OS启动项永久添加至BIOS中的方法流程图。FIG. 1 shows a flowchart of a method for permanently adding an OS boot item to a BIOS based on EFI in the present invention.

图2示出本发明基于EFI将OS启动项永久添加至BIOS中的系统结构框图。FIG. 2 shows a block diagram of the system structure for permanently adding an OS boot item to the BIOS based on EFI in the present invention.

具体实施方式Detailed ways

以下结合说明书附图及具体实施例进一步说明本发明的技术方案。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The technical solutions of the present invention are further described below with reference to the accompanying drawings and specific embodiments of the description. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

本方案以EFI Shell环境为载体,加上Shell.efi文件的辅助及相应的EFI shell命令来实现OS启动项添加到至BIOS中,具体实现过程如下:This solution uses the EFI Shell environment as the carrier, with the assistance of the Shell.efi file and the corresponding EFI shell commands to add the OS boot items to the BIOS. The specific implementation process is as follows:

图1为本发明一个实施例的基于EFI将OS启动项永久添加至BIOS中的方法流程图。FIG. 1 is a flowchart of a method for permanently adding an OS boot item to a BIOS based on EFI according to an embodiment of the present invention.

如图1所示,根据本发明实施例的基于EFI将OS启动项永久添加至BIOS中的方法,包括:As shown in FIG. 1, a method for permanently adding an OS boot item to a BIOS based on EFI according to an embodiment of the present invention includes:

SS1:客户机采集自身的启动项信息并保存;SS1: The client collects its own startup item information and saves it;

SS2:客户机上报自身的启动项信息至管理级服务器;SS2: The client reports its own startup item information to the management-level server;

SS3:管理级服务器将客户机更换主板前及更换主板后分别上报的客户机启动项信息进行比较,产生客户机因更换主板导致的缺失启动项;SS3: The management-level server compares the client startup item information reported by the client before the motherboard is replaced and after the motherboard is replaced, and generates the missing startup item caused by the replacement of the motherboard on the client;

SS4:并将U盘插到客户机的USB接口,启动项注入器根据管理级服务器产生的缺失启动项自动将缺失启动项添加至客户机的BIOS中。SS4: Insert the U disk into the USB interface of the client, and the startup item injector automatically adds the missing startup items to the BIOS of the client computer according to the missing startup items generated by the management-level server.

在本发明的一个实施例中,步骤SS4具体为:In an embodiment of the present invention, step SS4 is specifically:

SS4-1:将Shell.efi文件存储至U盘根目录,并将U盘插到客户机的USB接口;SS4-1: Store the Shell.efi file to the root directory of the U disk, and insert the U disk into the USB port of the client computer;

SS4-2:客户机开机,在Post阶段,触发系统进入启动项选择,选择UEFI:Built-inEFI Shell;SS4-2: When the client computer is turned on, in the Post stage, the system is triggered to enter the startup item selection, and select UEFI: Built-inEFI Shell;

SS4-3:进入UEFI:Built-in EFI Shell;SS4-3: Enter UEFI: Built-in EFI Shell;

SS4-4:在UEFI Shell下执行shell>map-r命令,确认出U盘设备属于fs1,并在fs1:下执行Shell.efi创建完整的Shell环境;SS4-4: Execute the shell>map-r command under UEFI Shell to confirm that the U disk device belongs to fs1, and execute Shell.efi under fs1: to create a complete shell environment;

SS4-5:在完整的Shell环境下,执行shell>map-r命令,确认出HDD设备属于fs1,并在fs1:下执行bcfgboot add0grub.efi″A″添加OS启动项到BIOS中,其中A代表缺失启动项。SS4-5: In a complete shell environment, execute the shell>map-r command to confirm that the HDD device belongs to fs1, and execute bcfgboot add0grub.efi "A" under fs1: to add the OS boot item to the BIOS, where A stands for Missing startup item.

在本发明的一个实施例中,步骤SS1具体为:客户机启动时采集自身的启动项信息并保存。In an embodiment of the present invention, step SS1 is specifically as follows: when the client starts up, collects its own startup item information and saves it.

在本发明的一个实施例中,步骤SS2具体为:客户机在接收到来自管理级服务器的监控命令后,将当前系统的启动项信息发送至管理级服务器。In an embodiment of the present invention, step SS2 is specifically: after the client receives the monitoring command from the management-level server, the client sends the startup item information of the current system to the management-level server.

在本发明的一个实施例中,步骤SS3具体为:管理级服务器将客户机更换主板前及更换主板后分别上报的客户机启动项信息进行比较,如果两次启动项信息一致则不进行后续操作,如果不一致则产生客户机因更换主板导致的缺失启动项。In an embodiment of the present invention, step SS3 is specifically as follows: the management-level server compares the client startup item information reported by the client before the motherboard is replaced and after the motherboard is replaced, and if the two startup item information is consistent, no subsequent operations are performed. , if it is inconsistent, the missing startup item of the client computer caused by the replacement of the motherboard will be generated.

在本发明的一个实施例中,在步骤SS4之后还包括步骤SS5:In an embodiment of the present invention, after step SS4, it further includes step SS5:

SS5:进客户机BIOS SETUP确认缺失启动项添加成功,并正常进入OS。SS5: Enter the client BIOS SETUP to confirm that the missing startup items are added successfully, and enter the OS normally.

在步骤SS5之前需执行Ctrl+alt+Delete重启客户机并拔掉U盘。Before step SS5, execute Ctrl+alt+Delete to restart the client and unplug the U disk.

图2为本发明一个实施例的基于EFI将OS启动项永久添加至BIOS中的系统结构框图。FIG. 2 is a block diagram of a system structure for permanently adding an OS boot item to a BIOS based on EFI according to an embodiment of the present invention.

如图2所示,根据本发明实施例的基于EFI将OS启动项永久添加至BIOS中的系统,用于实施上文中的基于EFI将OS启动项永久添加至BIOS中的方法,该系统包括客户机、管理级服务器、启动项注入器、U盘,其中管理级服务器、启动项注入器、U盘分别与客户机连接,管理级服务器与启动项注入器连接。As shown in FIG. 2, a system for permanently adding an OS boot item to a BIOS based on EFI according to an embodiment of the present invention is used to implement the above-mentioned method for permanently adding an OS boot item to the BIOS based on EFI. The system includes a client computer, management-level server, startup item injector, and U disk, wherein the management-level server, startup item injector, and U disk are respectively connected with the client computer, and the management-level server is connected with the startup item injector.

客户机启动时采集自身的启动项信息并保存,客户机在接收到来自管理级服务器的监控命令后,将当前系统的启动项信息发送至管理级服务器,管理级服务器将客户机更换主板前及更换主板后分别上报的客户机启动项信息进行比较,如果两次启动项信息一致则不进行后续操作,如果不一致则产生客户机因更换主板导致的缺失启动项。When the client starts up, it collects its own startup item information and saves it. After the client receives the monitoring command from the management-level server, it sends the startup item information of the current system to the management-level server. After the motherboard is replaced, the client startup item information reported respectively is compared. If the two startup item information is consistent, no follow-up operation is performed.

管理级服务器在判断客户机因更换主板导致缺失启动项时,提示管理人员需对客户机进行启动项注入。When judging that the client computer lacks the startup item due to the replacement of the motherboard, the management-level server prompts the administrator to inject the startup item into the client computer.

启动项注入器可以从管理级服务器获取客户机缺失启动项,并实时采集客户机的运行状态。The startup item injector can obtain the missing startup items of the client from the management-level server, and collect the running status of the client in real time.

将Shell.efi文件拷贝至U盘根目录,并将U盘插到客户机的USB接口;客户机开机,在Post阶段,启动项注入器触发系统进入启动项选择,选择UEFI:Built-in EFI Shell;进入UEFI:Built-in EFI Shell;在UEFI Shell下执行shell>map-r命令,确认出U盘设备属于fs1,并在fs1:下执行Shell.efi创建完整的Shell环境;在完整的Shell环境下,执行shell>map-r命令,确认出HDD设备属于fs1,并在fs1:下执行bcfg boot add 0grub.efi″A″添加OS启动项到BIOS中,其中A代表缺失启动项。Copy the Shell.efi file to the root directory of the U disk, and insert the U disk into the USB port of the client; when the client is powered on, in the Post stage, the boot item injector triggers the system to enter the boot item selection, and select UEFI: Built-in EFI Shell; Enter UEFI: Built-in EFI Shell; execute the shell>map-r command under UEFI Shell to confirm that the U disk device belongs to fs1, and execute Shell.efi under fs1: to create a complete Shell environment; in the complete Shell Under the environment, execute the shell>map-r command to confirm that the HDD device belongs to fs1, and execute bcfg boot add 0grub.efi"A" under fs1: to add the OS boot item to the BIOS, where A represents the missing boot item.

启动项注入操作完成后,执行Ctrl+alt+Delete重启客户机并拔掉U盘,并进入客户机的BIOS SETUP确认缺失启动项添加成功,并正常进入OS。After the startup item injection operation is complete, execute Ctrl+alt+Delete to restart the client computer and unplug the USB flash drive, and enter the BIOS SETUP of the client computer to confirm that the missing startup items are added successfully, and enter the OS normally.

需要注意的是,上述操作均可由启动项注入器根据采集到的客户机状态并进行按键模拟触发操作来实完成。It should be noted that the above operations can be implemented by the startup item injector according to the collected client state and performing a button simulation trigger operation.

通过上述的方案就可以方便、高效、精准的将OS启动项永久的添加至BIOS中,而且重启后也不会丢失,在服务器上经多次验证,结果显示该方法可行,不仅给研发减少了工作量,对服务器后期的维护工作及客户运维使用方面也提供了便捷。Through the above solution, the OS startup items can be added to the BIOS permanently, conveniently, efficiently and accurately, and it will not be lost after restarting. After several verifications on the server, the results show that this method is feasible, which not only reduces the research and development. It also provides convenience for the later maintenance of the server and the use of customer operation and maintenance.

尽管在装置的上下文中已描述了一些方面,但明显的是这些方面也表示对应方法的描述,其中块或设备与方法步骤或方法步骤的特征相对应。类似地,在方法步骤的上下文中所描述的各方面也表示对应的块或项目或者对应装置的特征的描述。可以通过(或使用)如微处理器、可编程计算机、或电子电路之类的硬件装置来执行方法步骤中的一些或所有。可以通过此类装置来执行最重要的方法步骤中的某一个或多个。Although some aspects have been described in the context of an apparatus, it is obvious that these aspects also represent a description of the corresponding method, wherein a block or device corresponds to a method step or a feature of a method step. Similarly, aspects described in the context of a method step also represent a description of a corresponding block or item or feature of a corresponding apparatus. Some or all of the method steps may be performed by (or using) hardware devices such as microprocessors, programmable computers, or electronic circuits. One or more of the most important method steps can be performed by such means.

所述实现可以采用硬件或采用软件或可以使用例如软盘、DVD、蓝光、CD、ROM、PROM、EPROM、EEPROM、或闪存之类的具有被存储在其上的电子可读控制信号的数字存储介质来执行,所述电子可读控制信号与可编程计算机系统配合(或能够与其配合)以使得执行相应的方法。可以提供具有电子可读控制信号的数据载体,所述电子可读控制信号能够与可编程计算机系统配合以使得执行本文所描述的方法。The implementation may be in hardware or in software or may use a digital storage medium such as a floppy disk, DVD, Blu-ray, CD, ROM, PROM, EPROM, EEPROM, or flash memory having electronically readable control signals stored thereon to perform the electronically readable control signals cooperating with (or capable of cooperating with) a programmable computer system to cause the corresponding method to be performed. A data carrier may be provided with electronically readable control signals capable of cooperating with a programmable computer system to cause the methods described herein to be carried out.

所述实现还可以采用具有程序代码的计算机程序产品的形式,当计算机程序产品在计算机上运行时,程序代码进行操作以执行该方法。可以在机器可读载体上存储程序代码。The implementation may also take the form of a computer program product having program code operative to perform the method when the computer program product is run on a computer. The program code may be stored on a machine-readable carrier.

以上所描述的仅是说明性,并且要理解的是,本文所描述的布置和细节的修改和变化对于本领域技术人员而言将是明显的。因此,意在仅由所附权利要求的范围而不是由通过以上描述和解释的方式所呈现的特定细节来限制。What has been described above is illustrative only, and it is to be understood that modifications and variations of the arrangements and details described herein will be apparent to those skilled in the art. It is, therefore, intended that the scope of the appended claims be limited only by the specific details presented by way of description and explanation above.

Claims (10)

1.一种基于EFI将OS启动项永久添加至BIOS中的方法,其特征在于包括以下步骤:1. a method for permanently adding OS boot items into BIOS based on EFI, is characterized in that comprising the following steps: SS1:客户机采集自身的启动项信息并保存;SS1: The client collects its own startup item information and saves it; SS2:客户机上报自身的启动项信息至管理级服务器;SS2: The client reports its own startup item information to the management-level server; SS3:管理级服务器将客户机更换主板前及更换主板后分别上报的客户机启动项信息进行比较,产生客户机因更换主板导致的缺失启动项;SS3: The management-level server compares the client startup item information reported by the client before the motherboard is replaced and after the motherboard is replaced, and generates the missing startup item caused by the replacement of the motherboard on the client; SS4:将U盘插到客户机的USB接口,启动项注入器根据管理级服务器产生的缺失启动项自动将缺失启动项添加至客户机的BIOS中。SS4: Insert the U disk into the USB interface of the client, and the boot item injector automatically adds the missing boot items to the BIOS of the client according to the missing boot items generated by the management-level server. 2.根据权利要求1所述的方法,其特征在于,步骤SS4包括:2. The method according to claim 1, wherein step SS4 comprises: SS4-1:将Shell.efi文件存储至U盘根目录,并将U盘插到客户机的USB接口;SS4-1: Store the Shell.efi file to the root directory of the U disk, and insert the U disk into the USB port of the client computer; SS4-2:客户机开机,在Post阶段,触发系统进入启动项选择,选择UEFI:Built-in EFIShell;SS4-2: When the client computer is turned on, in the Post stage, the system is triggered to enter the startup item selection, and select UEFI: Built-in EFIShell; SS4-3:进入UEFI:Built-in EFI Shell;SS4-3: Enter UEFI: Built-in EFI Shell; SS4-4:在UEFI Shell下执行shell>map-r命令,确认出U盘设备属于fs1,并在fs1:下执行Shell.efi创建完整的Shell环境;SS4-4: Execute the shell>map-r command under UEFI Shell to confirm that the U disk device belongs to fs1, and execute Shell.efi under fs1: to create a complete shell environment; SS4-5:在完整的Shell环境下,执行shell>map-r命令,确认出HDD设备属于fs1,并在fs1:下执行bcfg boot add 0 grub.efi″A″添加OS启动项到BIOS中,其中A代表缺失启动项。SS4-5: In the complete shell environment, execute the shell>map-r command to confirm that the HDD device belongs to fs1, and execute bcfg boot add 0 grub.efi"A" under fs1: to add the OS boot item to the BIOS, where A represents the missing initiator. 3.根据权利要求1所述的方法,其特征在于,步骤SS1具体为:客户机启动时采集自身的启动项信息并保存。3 . The method according to claim 1 , wherein the step SS1 is specifically: collecting and saving the startup item information of the client when it starts up. 4 . 4.根据权利要求1所述的方法,其特征在于,步骤SS2具体为:客户机在接收到来自管理级服务器的监控命令后,将当前系统的启动项信息发送至管理级服务器。4 . The method according to claim 1 , wherein the step SS2 is specifically: after receiving the monitoring command from the management-level server, the client sends the startup item information of the current system to the management-level server. 5 . 5.根据权利要求1所述的方法,其特征在于,步骤SS3具体为:管理级服务器将客户机更换主板前及更换主板后分别上报的客户机启动项信息进行比较,如果两次启动项信息一致则不进行后续操作,如果不一致则产生客户机因更换主板导致的缺失启动项。5. method according to claim 1, is characterized in that, step SS3 is specifically: the management level server compares the client startup item information reported respectively before the client replaces the mainboard and after replacing the mainboard, if the startup item information twice If they are consistent, no subsequent operations will be performed. If they are inconsistent, a missing startup item will be generated due to the replacement of the motherboard on the client computer. 6.根据权利要求1所述的方法,其特征在于,在步骤SS4之后还包括步骤SS5:6. method according to claim 1, is characterized in that, also comprises step SS5 after step SS4: SS5:进客户机BIOS SETUP确认缺失启动项添加成功,并正常进入OS。SS5: Enter the client BIOS SETUP to confirm that the missing startup items are added successfully, and enter the OS normally. 7.根据权利要求6所述的方法,其特征在于,在步骤SS5之前需执行Ctrl+alt+Delete重启客户机并拔掉U盘。7. The method according to claim 6, wherein before step SS5, Ctrl+alt+Delete needs to be executed to restart the client and unplug the U disk. 8.一种基于EFI将OS启动项永久添加至BIOS中的系统,其特征在于,包括客户机、管理级服务器、启动项注入器、U盘,其中管理级服务器、启动项注入器、U盘分别与客户机连接,管理级服务器与启动项注入器连接,客户机启动时采集自身的启动项信息并保存,客户机在接收到来自管理级服务器的监控命令后,将当前系统的启动项信息发送至管理级服务器,管理级服务器将客户机更换主板前及更换主板后分别上报的客户机启动项信息进行比较,如果两次启动项信息一致则不进行后续操作,如果不一致则产生客户机因更换主板导致的缺失启动项;将Shell.efi文件存储至U盘根目录,并将U盘插到客户机的USB接口,启动项注入器根据管理级服务器产生的缺失启动项自动将缺失启动项添加至客户机的BIOS中。8. a system based on EFI that OS startup item is permanently added in BIOS, it is characterized in that, comprise client computer, management level server, startup item injector, U disk, wherein management level server, startup item injector, U disk Connect to the client respectively, the management server is connected to the startup item injector, the client collects its own startup item information and saves it when it starts up. After the client receives the monitoring command from the management level server, the startup item information of the current system is It is sent to the management-level server, and the management-level server compares the client startup item information reported by the client before the motherboard is replaced and after the motherboard is replaced. If the two startup items are consistent, no subsequent operations will be performed. The missing startup items caused by the replacement of the motherboard; save the Shell.efi file to the root directory of the U disk, and insert the U disk into the USB interface of the client computer. The startup item injector automatically injects the missing startup items according to the missing startup items generated by the management server added to the client's BIOS. 9.根据权利要求8所述的系统,其特征在于,启动项注入器根据管理级服务器产生的缺失启动项自动将缺失启动项添加至客户机的BIOS中具体为:客户机开机,在Post阶段,启动项注入器触发系统进入启动项选择,选择UEFI:Built-in EFI Shell;进入UEFI:Built-inEFI Shell;在UEFI Shell下执行shell>map-r命令,确认出U盘设备属于fs1,并在fs1:下执行Shell.efi创建完整的Shell环境;在完整的Shell环境下,执行shell>map-r命令,确认出HDD设备属于fs1,并在fs1:下执行bcfg boot add 0 grub.efi″A″添加OS启动项到BIOS中,其中A代表缺失启动项,启动项注入操作完成后,执行Ctrl+alt+Delete重启客户机并拔掉U盘,并进入客户机的BIOS SETUP确认缺失启动项添加成功,并正常进入OS。9. The system according to claim 8, wherein the startup item injector automatically adds the missing startup item to the BIOS of the client according to the missing startup item generated by the management-level server, specifically: the client is powered on, and in the Post stage , the boot item injector triggers the system to enter the boot item selection, select UEFI: Built-in EFI Shell; enter UEFI: Built-in EFI Shell; execute the shell>map-r command under UEFI Shell to confirm that the U disk device belongs to fs1, and Execute Shell.efi under fs1: to create a complete shell environment; in the complete shell environment, execute the shell>map-r command to confirm that the HDD device belongs to fs1, and execute bcfg boot add 0 grub.efi" under fs1: A"Add the OS startup item to the BIOS, where A represents the missing startup item. After the startup item injection operation is completed, execute Ctrl+alt+Delete to restart the client and unplug the U disk, and enter the client's BIOS SETUP to confirm the missing startup item The addition is successful and the OS is entered normally. 10.根据权利要求9所述的系统,其特征在于,启动项注入操作均由启动项注入器根据采集到的客户机状态并进行按键模拟触发操作来完成。10 . The system according to claim 9 , wherein the startup item injection operation is completed by the startup item injector according to the collected client state and performing a key-press simulation trigger operation. 11 .
CN201710096964.4A 2017-02-22 2017-02-22 A method and system for permanently adding OS startup items to BIOS based on EFI Active CN106897063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710096964.4A CN106897063B (en) 2017-02-22 2017-02-22 A method and system for permanently adding OS startup items to BIOS based on EFI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710096964.4A CN106897063B (en) 2017-02-22 2017-02-22 A method and system for permanently adding OS startup items to BIOS based on EFI

Publications (2)

Publication Number Publication Date
CN106897063A CN106897063A (en) 2017-06-27
CN106897063B true CN106897063B (en) 2020-09-25

Family

ID=59184533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710096964.4A Active CN106897063B (en) 2017-02-22 2017-02-22 A method and system for permanently adding OS startup items to BIOS based on EFI

Country Status (1)

Country Link
CN (1) CN106897063B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287735A (en) * 2018-01-25 2018-07-17 郑州云海信息技术有限公司 A kind of method, apparatus and server obtaining UEFI OS startup items
CN109002330A (en) * 2018-07-27 2018-12-14 郑州云海信息技术有限公司 A kind of method, device and equipment identifying UEFI OS startup item
CN117632569B (en) * 2024-01-12 2024-04-12 宝德计算机系统股份有限公司 Method and device for remedying PCI equipment information loss at BMC webpage end

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7373498B2 (en) * 2003-12-23 2008-05-13 Intel Corporation Method and apparatus for updating a system configuration through an active or passive update
CN100390737C (en) * 2005-01-25 2008-05-28 英业达股份有限公司 Method for automatically updating and backing up BIOS
CN102331942A (en) * 2011-07-07 2012-01-25 曙光信息产业股份有限公司 Method for automatically upgrading BIOS (basic input/output system) and Linux core
CN102541606B (en) * 2011-12-31 2016-08-31 曙光信息产业股份有限公司 Collocation method and the device of BIOS is remotely managed based on UEFI
CN102622247B (en) * 2012-02-27 2015-09-09 北京百度网讯科技有限公司 The BIOS information configuration-system of server and method
CN104731675A (en) * 2015-03-24 2015-06-24 浪潮集团有限公司 Intelligent redundancy backup method for BIOS in server system

Also Published As

Publication number Publication date
CN106897063A (en) 2017-06-27

Similar Documents

Publication Publication Date Title
US10565077B2 (en) Using cognitive technologies to identify and resolve issues in a distributed infrastructure
CN109213667B (en) An Android system exception handling method and electronic device
CN104391765A (en) A Method for Automatically Diagnosing Server Startup Faults
US12105586B2 (en) System and methods for diagnosing and repairing a smart mobile device by disabling components
US20200349009A1 (en) Information Handling System And Method To Restore System Firmware To A Selected Restore Point
CN107870845A (en) Towards the management method and system of micro services framework applications
US9468853B2 (en) Systems and methods for executable file identity capture during indirect application launch
CN102981955A (en) Automatic continuous restarting method based on Linux system
CN106897063B (en) A method and system for permanently adding OS startup items to BIOS based on EFI
CN108510287A (en) Judgment method, electronic device and the computer readable storage medium that client pays a return visit
CN116089040A (en) Scheduling method of business process and its device, electronic equipment and storage medium
CN115827069A (en) Starting control method, system and device for server mainboard
CN111324418A (en) OpenStack-based virtual machine template generation method and device
CN114116330A (en) Server performance test method, system, terminal and storage medium
US12032462B2 (en) Preserving hardware status points in operating system environment for use in preboot diagnostics
CN109254899B (en) Server monitoring method and device
US12020039B2 (en) Compute instance warmup operations
US20200310650A1 (en) Virtual machine synchronization and recovery
CN111831300A (en) APP update method, apparatus, electronic device, and computer-readable storage medium
CN108509252B (en) Virtual machine startup device, method and host
CN110221952B (en) Service data processing method and device and service data processing system
CN115544038A (en) Log data processing method, device, storage medium and electronic equipment
CN113655846A (en) A method and system for time synchronization of an OpenPOWER server
CN101192161B (en) Method for updating image file
CN117130987B (en) A flight control management method for large-scale drone clusters

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200820

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450000 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China