WO2019169876A1 - 创建os启动项的方法、装置、设备及可读存储介质 - Google Patents

创建os启动项的方法、装置、设备及可读存储介质 Download PDF

Info

Publication number
WO2019169876A1
WO2019169876A1 PCT/CN2018/112001 CN2018112001W WO2019169876A1 WO 2019169876 A1 WO2019169876 A1 WO 2019169876A1 CN 2018112001 W CN2018112001 W CN 2018112001W WO 2019169876 A1 WO2019169876 A1 WO 2019169876A1
Authority
WO
WIPO (PCT)
Prior art keywords
startup
path
startup path
creating
boot
Prior art date
Application number
PCT/CN2018/112001
Other languages
English (en)
French (fr)
Inventor
钱慧娟
Original Assignee
郑州云海信息技术有限公司
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 郑州云海信息技术有限公司 filed Critical 郑州云海信息技术有限公司
Publication of WO2019169876A1 publication Critical patent/WO2019169876A1/zh

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
    • G06F9/4406Loading of operating system
    • 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
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures

Definitions

  • the present application relates to the field of operating system technologies, and in particular, to a method for creating an OS startup item.
  • the application also relates to an apparatus, device, and readable storage medium for creating an OS boot entry.
  • the BIOS Basic Input Output System
  • the BIOS creates a boot path of the OS, which is used to boot the computer, as long as the boot path is used. It always exists and the computer can be started from this startup path. This boot path will still exist after the system restarts, and can boot the computer into the OS, but after booting the BIOS, the boot path will be lost, so there will be a boot path table in the BIOS that contains the standard boot path for common operating systems.
  • the BIOS will find the startup path of the OS on the computer hard disk according to the startup path table. If it exists and the startup path can be opened, a startup option is created.
  • the purpose of the present application is to provide a method for creating an OS startup item, which can reduce the probability of computer downtime; another object of the present application is to provide an apparatus, device and readable storage for creating an OS startup item including the above method. Media, which also reduces the probability of computer downtime.
  • the present application provides a method for creating an OS startup item, including:
  • the first startup path is a startup path created by the last installed operating system OS
  • the second startup path is a standard startup path of the operating system
  • the first boot path saved in the preset memory still exists after refreshing the basic input/output system BIOS.
  • the method further includes:
  • the preset memory is a non-volatile random access memory NVRAM.
  • the present application further provides an apparatus for creating an OS startup item, including:
  • a first saving unit configured to save the first startup path to the preset memory in advance;
  • the first startup path is a startup path created by the last installed operating system OS;
  • a second saving unit configured to save the second startup path to the startup path table in advance;
  • the second startup path is a standard startup path of the operating system;
  • a first acquiring unit configured to acquire a first startup path saved in the preset memory
  • a first determining unit configured to determine whether the first startup path is normal, and if yes, creating a first startup item according to the first startup path; if not, scanning the startup path table, and according to the startup path The second startup path in the table creates a second startup item;
  • the first boot path saved in the preset memory still exists after refreshing the basic input/output system BIOS.
  • the method further includes:
  • a third saving unit configured to save the third startup path to the spare memory in advance
  • a second acquiring unit configured to acquire a third startup path saved in the backup memory
  • a creating unit configured to create a third startup item according to the third startup path.
  • the preset memory is a non-volatile random access memory NVRAM.
  • the present application further provides an apparatus for creating an OS startup item, including:
  • a memory for storing a computer program
  • the processor the step of implementing the method of creating an OS startup item according to any of the above, when the computer program is executed.
  • the present application further provides a readable storage medium, where the readable storage medium stores a computer program, and when the computer program is executed by the processor, the OS is created as described in any one of the above The steps of the method that starts the item.
  • the present application provides a method, an apparatus, a device, and a readable storage medium for creating an OS startup item, including: saving a first startup path to a preset memory in advance; and the first startup path is created by the last installed operating system OS.
  • the startup path is saved in advance to the startup path table; the second startup path is a standard startup path of the operating system; the first startup path saved in the preset memory is obtained; and the first startup path is determined to be normal, and if so, And creating a first startup item according to the first startup path; if not, scanning the startup path table, and creating a second startup item according to the second startup path in the startup path table; wherein, the first startup path saved in the preset memory It still exists after refreshing the basic input and output system BIOS.
  • the preset memory since the preset memory only saves the startup path created by the last installed OS, there is only one boot path in the preset memory, and the first boot path still exists after the BIOS is refreshed, so the computer can be refreshed after the BIOS is refreshed.
  • the first startup path is directly started, and when the first startup path is abnormal, the second startup path is obtained from the startup path table. Since the second startup path is a standard startup path, after the BIOS is refreshed, the first The second boot path can also start the computer, so the application does not have an extra boot path that cannot be started, avoiding the problem that the unnecessary bootable boot path causes the computer to crash, and reduces the probability of the computer crashing.
  • FIG. 1 is a flowchart of a method for creating an OS startup item according to the present application
  • FIG. 2 is a schematic structural diagram of an apparatus for creating an OS startup item according to the present application.
  • the core of the present application is to provide a method for creating an OS startup item, which can reduce the probability of computer downtime; another core of the present application is to provide an apparatus, device and readable storage for creating an OS startup item including the above method. Media, which also reduces the probability of computer downtime.
  • FIG. 1 is a flowchart of a method for creating an OS startup item according to the present application. The method includes the following steps:
  • Step S1 Save the first startup path to the preset memory in advance; the first startup path is a startup path created by the last installed operating system OS.
  • the boot path created by the OS needs to be saved in the preset memory, and the startup path created by the OS is the first.
  • Startup path Specifically, after the BIOS installs a new OS, the OS automatically creates a boot path that belongs to itself, and then the BIOS sends the boot path to the preset memory for saving. When a new OS is installed on the computer, the OS will also create a new boot path. The BIOS will send the new boot path to the default memory for storage. This new boot path will overwrite the original boot path. Therefore, only one boot path is reserved in the preset memory, and this boot path is the boot path created by the newly installed OS.
  • Step S2 Save the second startup path to the startup path table in advance; the second startup path is a standard startup path of the operating system.
  • the startup path of the OS needs to be added to the startup path table, but in order to restart the BIOS, the computer will not be created according to the non-standard path in the startup path table.
  • the startup item so only the standard startup path needs to be saved in the startup path table, and the non-standard startup path is not saved.
  • the standard startup path of a common operating system is pre-saved to the startup path table, and common operating systems include: Windows, Linux, and the like. There is no clear sequence between step S1 and step S2, and which step can be executed first.
  • Step S3 Acquire a first startup path saved in the preset memory.
  • the first startup path saved in the preset memory is first acquired.
  • the BIOS calls the read operation instruction to read the relevant data of the first boot path from the preset memory, and then puts the data into the memory, waiting for the next processing operation.
  • Step S4 It is determined whether the first startup path is normal, and if so, the process proceeds to step S5, and if not, the process proceeds to step S6.
  • Step S5 Create a first startup item according to the first startup path.
  • Step S6 Scan the startup path table, and create a second startup item according to the second startup path in the startup path table.
  • the first boot path saved in the preset memory still exists after refreshing the basic input/output system BIOS.
  • the BIOS performs an operation according to the related data of the first startup path that has been stored in the memory, that is, the BIOS opens the first startup path, and if the first startup path can be opened, the first startup path is in a normal state.
  • the BIOS creates a first startup item according to the first startup path, and the BIOS can start the computer according to the first startup item. If the first startup path cannot be opened, the first startup path is in an abnormal state, and the computer cannot be started.
  • the BIOS searches for the second startup path in the startup path table, and obtains the second startup path in the startup path table. And creating a second startup item according to the second startup path, and the BIOS may also start the computer according to the second startup item. Since there may be multiple second startup paths in the startup path table, the startup path is created according to the priority found path. The startup item will be launched first.
  • the second startup path is a standard path
  • the problem that the computer cannot be started according to the second startup path does not occur, and the first startup path still exists after the BIOS is refreshed, so after the BIOS is refreshed, The computer can still be started by the first startup item. In this way, the problem that the computer is down due to the unnecessary unbootable startup path is avoided, and the probability of the computer being down is reduced.
  • the method further includes:
  • the BIOS may not obtain the first boot path, and thus the failure to obtain the first boot path occurs. At this time, the BIOS looks for the boot path table.
  • the second boot path when the BIOS can not find the boot path that can be opened in the boot path table, the problem of obtaining the second boot path fails, and the BIOS cannot create a corresponding boot entry to boot the computer.
  • the present application provides a backup manner. Specifically, the third startup path is saved to the backup memory in advance.
  • the third startup path is generally a startup path of some basic operating systems, for example. : The startup path of operating systems such as Windows and Linux.
  • the BIOS When the failure to obtain the second boot path occurs, the BIOS will invoke the read operation command to obtain the third boot path in the standby storage device, and then create a corresponding third boot entry according to the third boot path, and finally the BIOS passes.
  • the third startup item is used to boot the computer. In this way, the situation that the computer cannot be started because the BIOS cannot obtain the startup path is avoided, thereby further reducing the probability of the computer being down, thereby improving the startup efficiency of the computer.
  • the preset memory is a non-volatile random access memory NVRAM.
  • the preset memory is a non-volatile random access memory NVRAM
  • the NVRAM is a non-volatile random access memory, which can maintain data after power-off.
  • the NVRAM combines the high-speed and write-resistant characteristics of the DRAM.
  • the non-volatile nature of NAND flash memory which achieves ten times the performance of the fastest SSDs, provides IOPS of more than 10 million times per second, and latency is less than microseconds. It is a very fast read and write memory.
  • NVRAM is selected as the preset memory, which improves the information transmission speed and further improves the startup efficiency.
  • the design is compact and adapts to most devices, which improves the flexibility of design and installation of the device.
  • the present application provides a method for creating an OS startup item, including: saving a first startup path to a preset memory in advance; a first startup path is a startup path created by a last installed operating system OS; and a second startup path is pre-configured
  • the second startup path is the standard startup path of the operating system; the first startup path saved in the preset memory is obtained; whether the first startup path is normal, and if so, the first startup path is created.
  • a startup item if not, scanning a startup path table, and creating a second startup item according to the second startup path in the startup path table; wherein the first startup path saved in the preset memory is still after refreshing the basic input/output system BIOS presence.
  • the preset memory since the preset memory only saves the startup path created by the last installed OS, there is only one boot path in the preset memory, and the first boot path still exists after the BIOS is refreshed, so the computer can be refreshed after the BIOS is refreshed.
  • the first startup path is directly started, and when the first startup path is abnormal, the second startup path is obtained from the startup path table. Since the second startup path is a standard startup path, after the BIOS is refreshed, the first The second boot path can also start the computer, so the application does not have an extra boot path that cannot be started, avoiding the problem that the unnecessary bootable boot path causes the computer to crash, and reduces the probability of the computer crashing.
  • FIG. 2 is a schematic structural diagram of an apparatus for creating an OS startup item according to the present application.
  • the apparatus includes:
  • the first saving unit 1 is configured to save the first startup path to the preset memory in advance; the first startup path is a startup path created by the last installed operating system OS;
  • a second saving unit 2 configured to pre-scan all current second startup paths, and save the corresponding second startup path to the startup path table when the scanned second startup path is a standard startup path;
  • the first obtaining unit 3 is configured to acquire a first startup path saved in the preset memory
  • the first determining unit 4 is configured to determine whether the first startup path is normal, and if yes, create a first startup item according to the first startup path; if not, obtain a second startup path saved in the startup path table, and according to the second The startup path creates a second startup item;
  • the first boot path saved in the preset memory still exists after refreshing the basic input/output system BIOS.
  • the device when the obtaining the second startup path saved in the startup path table fails, the device further includes:
  • a third saving unit configured to save the third startup path to the spare memory in advance
  • a second acquiring unit configured to acquire a third startup path saved in the spare memory
  • the preset memory is a non-volatile random access memory NVRAM.
  • the application provides an apparatus for creating an OS startup item, including: saving a first startup path to a preset memory in advance; a first startup path is a startup path created by a last installed operating system OS; and a second startup path is pre-configured
  • the second startup path is the standard startup path of the operating system; the first startup path saved in the preset memory is obtained; whether the first startup path is normal, and if so, the first startup path is created.
  • a startup item if not, scanning a startup path table, and creating a second startup item according to the second startup path in the startup path table; wherein the first startup path saved in the preset memory is still after refreshing the basic input/output system BIOS presence.
  • the preset memory since the preset memory only saves the startup path created by the last installed OS, there is only one boot path in the preset memory, and the first boot path still exists after the BIOS is refreshed, so the computer can be refreshed after the BIOS is refreshed.
  • the first startup path is directly started, and when the first startup path is abnormal, the second startup path is obtained from the startup path table. Since the second startup path is a standard startup path, after the BIOS is refreshed, the first The second boot path can also start the computer, so the application does not have an extra boot path that cannot be started, avoiding the problem that the unnecessary bootable boot path causes the computer to crash, and reduces the probability of the computer crashing.
  • the application also provides a device for creating an OS startup item, including:
  • a memory for storing a computer program
  • a processor the method of implementing the method of creating an OS startup item according to any of the above, when executing a computer program.
  • the present application also provides a readable storage medium having a computer program stored thereon, the computer program being executed by the processor to implement the steps of the method for creating an OS startup item according to any of the above.

Landscapes

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

Abstract

一种创建OS启动项的方法、装置、设备及可读存储介质,包括:预先将第一启动路径保存至预设存储器中;预先将第二启动路径保存至启动路径表中;所述第二启动路径为操作系统的标准启动路径;获取预设存储器中保存的第一启动路径;在第一启动路径正常时依据第一启动路径创建第一启动项;不正常时,扫描所述启动路径表,并依据所述启动路径表中的第二启动路径创建第二启动项。本申请由于预设存储器只保存最后安装的OS创建的启动路径,因此本申请通过第一启动项和第二启动项都能启动计算机,避免了产生多余的无法启动的启动路径而导致计算机宕机的问题,降低了计算机宕机的概率。

Description

创建OS启动项的方法、装置、设备及可读存储介质
本申请要求于2018年03月07日提交中国专利局、申请号为201810185681.1、申请名称为“创建OS启动项的方法、装置、设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及操作系统技术领域,特别是涉及一种创建OS启动项的方法。本申请还涉及一种创建OS启动项的装置、设备及可读存储介质。
背景技术
在计算机上安装OS(Operating System,操作系统)之后,BIOS(Basic Input Output System,基本输入输出系统)会创建该OS的启动路径,该启动路径是用于引导计算机进行启动的,只要这个启动路径一直存在,计算机就可以通过该启动路径进行启动。这个启动路径在系统重启之后还会存在,可以引导计算机进入OS,但是在刷新BIOS之后,这个启动路径就会丢失,因此在BIOS中会有一个启动路径表,包含了常见操作系统的标准启动路径,在刷新BIOS后系统启动时,BIOS会根据启动路径表在计算机硬盘中查找OS的启动路径是否存在,若存在并且该启动路径可以打开,则创建启动选项。
目前除了基本的OS(例如:Windows、Linux)以外,越来越多的企业会选择自己定制OS,而由于在定制OS时有些企业没有按照标准来进行,因此在定制的OS存放启动路径的文件夹中会出现多个非标准的启动路径,而这些非标准的启动路径都会保存到启动路径表中,在刷新BIOS后系统启动时,BIOS会依据这些启动路径分别创建多个启动项,这些启动项中只有一个是用户期望的启动项,其余的属于多余的启动项,并且这些多余的启动项由于是由非标准的启动路径创建的(依据标准的启动路径创建的启动项都是可以启动计算机的),因此这些多余的启动项有时会出现无法启动计算机的情况,此时就会出现计算机宕机的问题。
因此,如何避免刷新BIOS后系统启动时产生多余的启动项而导致计算机出现宕机的问题是本领域技术人员需要解决的问题。
发明内容
本申请的目的是提供一种创建OS启动项的方法,其能够降低计算机宕机的概率;本申请的另一目的是提供一种包括上述方法的创建OS启动项的装置、设备及可读存储介质,其也能够降低计算机宕机的概率。
为解决上述技术问题,本申请提供了一种创建OS启动项的方法,包括:
预先将第一启动路径保存至预设存储器中;所述第一启动路径为最后安装的操作系统OS创建的启动路径;
预先将第二启动路径保存至启动路径表中;所述第二启动路径为操作系统的标准启动路径;
获取所述预设存储器中保存的第一启动路径;
判断所述第一启动路径是否正常,若是,则依据所述第一启动路径创建第一启动项;若否,则扫描所述启动路径表,并依据所述启动路径表中的第二启动路径创建第二启动项;
其中,所述预设存储器中保存的第一启动路径在刷新基本输入输出系统BIOS后仍然存在。
优选地,当获取所述启动路径表中保存的第二启动路径失败时,还包括:
预先将第三启动路径保存至备用存储器中;
获取所述备用存储器中保存的第三启动路径;
依据所述第三启动路径创建第三启动项。
优选地,所述预设存储器为非易失性随机访问存储器NVRAM。
为解决上述技术问题,本申请还提供了一种创建OS启动项的装置,包括:
第一保存单元,用于预先将第一启动路径保存至预设存储器中;所述第一启动路径为最后安装的操作系统OS创建的启动路径;
第二保存单元,用于预先将第二启动路径保存至启动路径表中;所述第二启动路径为操作系统的标准启动路径;
第一获取单元,用于获取所述预设存储器中保存的第一启动路径;
第一判断单元,用于判断所述第一启动路径是否正常,若是,则依据所述第一启动路径创建第一启动项;若否,则扫描所述启动路径表,并依据所述启动路径表中的第二启动路径创建第二启动项;
其中,所述预设存储器中保存的第一启动路径在刷新基本输入输出系统BIOS后仍然存在。
优选地,当获取所述启动路径表中保存的第二启动路径失败时,还包括:
第三保存单元,用于预先将第三启动路径保存至备用存储器中;
第二获取单元,用于获取所述备用存储器中保存的第三启动路径;
创建单元,用于依据所述第三启动路径创建第三启动项。
优选地,所述预设存储器为非易失性随机访问存储器NVRAM。
为解决上述技术问题,本申请还提供了一种创建OS启动项的设备,包括:
存储器,用于存储计算机程序;
处理器,用于执行所述计算机程序时实现如上述任一项所述的创建OS启动项的方法的步骤。
为解决上述技术问题,本申请还提供了一种可读存储介质,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述任一项所述的创建OS启动项的方法的步骤。
本申请提供了一种创建OS启动项的方法、装置、设备及可读存储介质,包括:预先将第一启动路径保存至预设存储器中;第一启动路径为最后安装的操作系统OS创建的启动路径;预先将第二启动路径保存至启动路径表中;第二启动路径为操作系统的标准启动路径;获取预设存储器中保存的第一启动路径;判断第一启动路径是否正常,若是,则依据第一启动路径创建第一启动项;若否,则扫描启动路径表,并依据启动路径表中的第二启动路径创建第二启动项;其中,预设存储器中保存的第一启动路径在刷新基本输入输出系统BIOS后仍然存在。本申请由于预设存储器只保存最后安装的OS创建的启动路径,因此,预设存储器中只会有一条启动路径,并且第一启动路径在刷新BIOS后依然还是存在的,因此刷新BIOS后计算机可以直接通过第一启动路径进行启动,而当第一启动路径出现异常时,则从启动路径表中获取第二启动路径,由于第二启动路径是标准的启动路径,因此在刷新BIOS后,通过第二启动路径也能启动计算机,因此本申请不会出现多余的无法启动的启动路径,避免了产生多余的无法启动的启动路径而导致计算机宕机的问题,降低了计算机宕机的概率。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请提供的一种创建OS启动项的方法的流程图;
图2为本申请提供的一种创建OS启动项的装置的结构示意图。
具体实施方式
本申请的核心是提供一种创建OS启动项的方法,其能够降低计算机宕机的概率;本申请的另一核心是提供一种包括上述方法的创建OS启动项的装置、设备及可读存储介质,其也能够降低计算机宕机的概率。
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请提供了一种创建OS启动项的方法,如图1所示,图1为本申请提供的一种创建OS启动项的方法的流程图,该方法包括以下步骤:
步骤S1:预先将第一启动路径保存至预设存储器中;第一启动路径为最后安装的操作系统OS创建的启动路径。
需要说明的是,为了在BIOS刷新以后还能保留计算机安装操作系统OS时由OS创建的启动路径,因此需要将OS创建的启动路径保存在预设存储器里,OS创建的启动路径即为第一启动路径。具体地,BIOS在安装了一个新的OS以后,该OS会自动创建一个属于自身的启动路径,然后BIOS将该启动路径发送至预设存储器里保存。当计算机安装了一个新的OS时,该OS也会创建一个新的启动路径,BIOS会将这个新的启动路径发送至预设存储器进行存储,这个新的启动路径会覆盖掉原来的启动路径,因此预设存储器中只会保留一个启动路径,并且这个启动路径为最新安装的OS创建的启动路径。
步骤S2:预先将第二启动路径保存至启动路径表中;第二启动路径为操作系统的标准启动路径。
需要说明的是,每当计算机增加一个OS,都需要将该OS的启动路径添加至启动路径表中,但是为了在刷新BIOS后,计算机在启动时不会根据启动路径表中的非标准路径创建启动项,因此需要启动路径表中只保存标准的启动路径,不保存非标准的启动路径。具体地,将常见的操作系统的标准启动路径预先保存至启动路径表,常见的操作系统包括:Windows、Linux等等。步骤S1与步骤S2之间没有明确的先后顺序,哪个步骤先执行都可以。
步骤S3:获取预设存储器中保存的第一启动路径。
需要说明的是,为了优先启动最新安装的OS,首先获取预设存储器中保存的第一启动路径。具体地,BIOS调用读操作指令从预设存储器中读取第一启动路径的相关数据,然后将这些数据放入内存中,等待下一个处理操作。
步骤S4:判断第一启动路径是否正常,若是,则进入步骤S5,若否,则进入步骤S6。
步骤S5:依据第一启动路径创建第一启动项。
步骤S6:扫描启动路径表,并依据启动路径表中的第二启动路径创建第二启动项。
其中,预设存储器中保存的第一启动路径在刷新基本输入输出系统BIOS后仍然存在。
需要说明的是,为了确保计算机能够正常启动,因此需要对预设存储器中的第一启动路径进行检测,判断该启动路径是否正常。具体地,BIOS根据已经存储在内存中的第一启动路径的相关数据进行执行操作,即BIOS打开第一启动路径,若第一启动路径可以打开,则说明第一启动路径处于正常状态,此时,BIOS依据第一启动路径创建第一启动项,BIOS根据该第一启动项就可以启动计算机了。若第一启动路径无法打开,则说明第一启动路径处于非正常状态,不能启动计算机,此时,BIOS会查找启动路径表中的第二启动路径,并且获取启动路径表中的第二启动路径,并且依据第二启动路径创建第二启动项,BIOS依据第二启动项也可以启动计算机,由于启动路径表中的第二启动路径可能会有多条,此时依据优先查找到的启动路径创建的启动项会优先启 动。
可以理解的是,由于第二启动路径都是标准路径,因此依据第二启动路径是不会出现无法启动计算机的问题的,并且第一启动路径在刷新BIOS后依然存在,所以在刷新BIOS后,计算机还是可以通过第一启动项进行启动,通过这种方式,避免了产生多余的无法启动的启动路径而导致计算机宕机的问题,降低了计算机宕机的概率。
作为优选的,当获取启动路径表中保存的第二启动路径失败时,还包括:
预先将第三启动路径保存至备用存储器中;
获取备用存储器中保存的第三启动路径;
依据第三启动路径创建第三启动项。
需要说明的是,当预设存储器出现存储第一启动路径失败时,BIOS就会获取不到第一启动路径,从而导致出现获取第一启动路径失败的情况,此时,BIOS会查找启动路径表中的第二启动路径,当BIOS在启动路径表中找不到可以打开的启动路径,此时就会出现获取第二启动路径失败的问题,从而导致BIOS不能创建相应的启动项来引导计算机启动,为了避免这个问题的出现,本申请提供了一种备份的方式来实现,具体地,预先将第三启动路径保存至备用存储器中,第三启动路径一般是一些基本操作系统的启动路径,例如:Windows、Linux等操作系统的启动路径。当出现获取第二启动路径失败的情况,此时,BIOS会调用读操作指令,获取备用存储设备中的第三启动路径,然后依据第三启动路径创建相应的第三启动项,最终BIOS会通过第三启动项来引导计算机启动。通过这种方式,避免了因为BIOS获取不到启动路径而导致无法启动计算机的情况,进一步降低了计算机出现宕机的概率,从而提高计算机的启动效率。
作为优选的,预设存储器为非易失性随机访问存储器NVRAM。
需要说明的是,预设存储器为非易失性随机访问存储器NVRAM,NVRAM是非易失性随机访问存储器,其断电以后仍能保持数据的一种存储器,NVRAM结合了DRAM高速、耐写的特性以及NAND闪存的非易失性,实现的性能是最快速的固态硬盘的十倍,提供的IOPS超过千万次每秒,延迟则低于微秒,是一款读写速度极快的存储器,选用NVRAM作为预设存储器,提 高了信息传输速度,进一步提高启动效率,并且其设计紧凑,适配于绝大多数设备,提高了设备的设计安装的灵活性。
本申请提供了一种创建OS启动项的方法,包括:预先将第一启动路径保存至预设存储器中;第一启动路径为最后安装的操作系统OS创建的启动路径;预先将第二启动路径保存至启动路径表中;第二启动路径为操作系统的标准启动路径;获取预设存储器中保存的第一启动路径;判断第一启动路径是否正常,若是,则依据第一启动路径创建第一启动项;若否,则扫描启动路径表,并依据启动路径表中的第二启动路径创建第二启动项;其中,预设存储器中保存的第一启动路径在刷新基本输入输出系统BIOS后仍然存在。本申请由于预设存储器只保存最后安装的OS创建的启动路径,因此,预设存储器中只会有一条启动路径,并且第一启动路径在刷新BIOS后依然还是存在的,因此刷新BIOS后计算机可以直接通过第一启动路径进行启动,而当第一启动路径出现异常时,则从启动路径表中获取第二启动路径,由于第二启动路径是标准的启动路径,因此在刷新BIOS后,通过第二启动路径也能启动计算机,因此本申请不会出现多余的无法启动的启动路径,避免了产生多余的无法启动的启动路径而导致计算机宕机的问题,降低了计算机宕机的概率。
本申请还提供了一种创建OS启动项的装置,如图2所示,图2为本申请提供的一种创建OS启动项的装置的结构示意图,该装置包括:
第一保存单元1,用于预先将第一启动路径保存至预设存储器中;第一启动路径为最后安装的操作系统OS创建的启动路径;
第二保存单元2,用于预先扫描当前所有的第二启动路径,当扫描到的第二启动路径为标准启动路径时,将对应的第二启动路径保存至启动路径表;
第一获取单元3,用于获取预设存储器中保存的第一启动路径;
第一判断单元4,用于判断第一启动路径是否正常,若是,则依据第一启动路径创建第一启动项;若否,则获取启动路径表中保存的第二启动路径,并依据第二启动路径创建第二启动项;
其中,预设存储器中保存的第一启动路径在刷新基本输入输出系统BIOS后仍然存在。
作为优选的,当获取启动路径表中保存的第二启动路径失败时,该装置还 包括:
第三保存单元,用于预先将第三启动路径保存至备用存储器中;
第二获取单元,用于获取备用存储器中保存的第三启动路径;
创建单元,用于依据第三启动路径创建第三启动项。
作为优选的,预设存储器为非易失性随机访问存储器NVRAM。
本申请提供了一种创建OS启动项的装置,包括:预先将第一启动路径保存至预设存储器中;第一启动路径为最后安装的操作系统OS创建的启动路径;预先将第二启动路径保存至启动路径表中;第二启动路径为操作系统的标准启动路径;获取预设存储器中保存的第一启动路径;判断第一启动路径是否正常,若是,则依据第一启动路径创建第一启动项;若否,则扫描启动路径表,并依据启动路径表中的第二启动路径创建第二启动项;其中,预设存储器中保存的第一启动路径在刷新基本输入输出系统BIOS后仍然存在。本申请由于预设存储器只保存最后安装的OS创建的启动路径,因此,预设存储器中只会有一条启动路径,并且第一启动路径在刷新BIOS后依然还是存在的,因此刷新BIOS后计算机可以直接通过第一启动路径进行启动,而当第一启动路径出现异常时,则从启动路径表中获取第二启动路径,由于第二启动路径是标准的启动路径,因此在刷新BIOS后,通过第二启动路径也能启动计算机,因此本申请不会出现多余的无法启动的启动路径,避免了产生多余的无法启动的启动路径而导致计算机宕机的问题,降低了计算机宕机的概率。
本申请还提供了一种创建OS启动项的设备,包括:
存储器,用于存储计算机程序;
处理器,用于执行计算机程序时实现如上述任一项的创建OS启动项的方法的步骤。
本申请还提供了一种可读存储介质,可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述任一项的创建OS启动项的方法的步骤。
对于本申请提供的一种创建OS启动项的设备及可读存储介质的介绍请参照上述方法实施例,本申请在此不在赘述。
以上对本申请所提供一种创建OS启动项的方法、装置、设备及可读存储介 质进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。

Claims (8)

  1. 一种创建OS启动项的方法,其特征在于,包括:
    预先将第一启动路径保存至预设存储器中;所述第一启动路径为最后安装的操作系统OS创建的启动路径;
    预先将第二启动路径保存至启动路径表中;所述第二启动路径为操作系统的标准启动路径;
    获取所述预设存储器中保存的第一启动路径;
    判断所述第一启动路径是否正常,若是,则依据所述第一启动路径创建第一启动项;若否,则扫描所述启动路径表,并依据所述启动路径表中的第二启动路径创建第二启动项;
    其中,所述预设存储器中保存的第一启动路径在刷新基本输入输出系统BIOS后仍然存在。
  2. 根据权利要求1所述的创建OS启动项的方法,其特征在于,当获取所述启动路径表中保存的第二启动路径失败时,还包括:
    预先将第三启动路径保存至备用存储器中;
    获取所述备用存储器中保存的第三启动路径;
    依据所述第三启动路径创建第三启动项。
  3. 根据权利要求1或2所述的创建OS启动项的方法,其特征在于,所述预设存储器为非易失性随机访问存储器NVRAM。
  4. 一种创建OS启动项的装置,其特征在于,包括:
    第一保存单元,用于预先将第一启动路径保存至预设存储器中;所述第一启动路径为最后安装的操作系统OS创建的启动路径;
    第二保存单元,用于预先将第二启动路径保存至启动路径表中;所述第二启动路径为操作系统的标准启动路径;
    第一获取单元,用于获取所述预设存储器中保存的第一启动路径;
    第一判断单元,用于判断所述第一启动路径是否正常,若是,则依据所述第一启动路径创建第一启动项;若否,则扫描所述启动路径表,并依据所述启动路径表中的第二启动路径创建第二启动项;
    其中,所述预设存储器中保存的第一启动路径在刷新基本输入输出系统 BIOS后仍然存在。
  5. 根据权利要求4所述的创建OS启动项的装置,其特征在于,当获取所述启动路径表中保存的第二启动路径失败时,还包括:
    第三保存单元,用于预先将第三启动路径保存至备用存储器中;
    第二获取单元,用于获取所述备用存储器中保存的第三启动路径;
    创建单元,用于依据所述第三启动路径创建第三启动项。
  6. 根据权利要求4或5所述的创建OS启动项的装置,其特征在于,所述预设存储器为非易失性随机访问存储器NVRAM。
  7. 一种创建OS启动项的设备,其特征在于,包括:
    存储器,用于存储计算机程序;
    处理器,用于执行所述计算机程序时实现如权利要求1至3任一项所述的创建OS启动项的方法的步骤。
  8. 一种可读存储介质,其特征在于,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至3任一项所述的创建OS启动项的方法的步骤。
PCT/CN2018/112001 2018-03-07 2018-10-26 创建os启动项的方法、装置、设备及可读存储介质 WO2019169876A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810185681.1A CN108319470B (zh) 2018-03-07 2018-03-07 创建os启动项的方法、装置、设备及可读存储介质
CN201810185681.1 2018-03-07

Publications (1)

Publication Number Publication Date
WO2019169876A1 true WO2019169876A1 (zh) 2019-09-12

Family

ID=62901299

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/112001 WO2019169876A1 (zh) 2018-03-07 2018-10-26 创建os启动项的方法、装置、设备及可读存储介质

Country Status (2)

Country Link
CN (1) CN108319470B (zh)
WO (1) WO2019169876A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319470B (zh) * 2018-03-07 2020-05-29 郑州云海信息技术有限公司 创建os启动项的方法、装置、设备及可读存储介质
CN109002330A (zh) * 2018-07-27 2018-12-14 郑州云海信息技术有限公司 一种识别uefi os启动项的方法、装置及设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262574A (zh) * 2011-06-20 2011-11-30 奇智软件(北京)有限公司 操作系统启动保护方法和装置
CN103870347A (zh) * 2012-12-11 2014-06-18 联想(北京)有限公司 一种系统恢复方法和装置
WO2017046630A1 (en) * 2015-09-15 2017-03-23 Telefonaktiebolaget Lm Ericsson (Publ) Runtime adjustment of configuration models for consistency preservation
CN108319470A (zh) * 2018-03-07 2018-07-24 郑州云海信息技术有限公司 创建os启动项的方法、装置、设备及可读存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833344B (zh) * 2012-09-04 2015-02-25 中国人民解放军国防科学技术大学 基于本地启动映像文件的无盘计算机启动方法
CN106776189A (zh) * 2017-01-11 2017-05-31 郑州云海信息技术有限公司 一种基于飞腾平台的自动重启测试方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262574A (zh) * 2011-06-20 2011-11-30 奇智软件(北京)有限公司 操作系统启动保护方法和装置
CN103870347A (zh) * 2012-12-11 2014-06-18 联想(北京)有限公司 一种系统恢复方法和装置
WO2017046630A1 (en) * 2015-09-15 2017-03-23 Telefonaktiebolaget Lm Ericsson (Publ) Runtime adjustment of configuration models for consistency preservation
CN108319470A (zh) * 2018-03-07 2018-07-24 郑州云海信息技术有限公司 创建os启动项的方法、装置、设备及可读存储介质

Also Published As

Publication number Publication date
CN108319470A (zh) 2018-07-24
CN108319470B (zh) 2020-05-29

Similar Documents

Publication Publication Date Title
US9760461B2 (en) Electronic device and firmware recovery program that ensure recovery of firmware
US10114655B2 (en) Rapid start up method for electronic equipment
US9600202B2 (en) Method and device for implementing memory migration
CN105917306B (zh) 用于配置系统固件配置数据的系统和方法
JP2013520744A (ja) 最小ブートイメージの生成方法及びその装置
WO2016101519A1 (zh) 一种实现操作系统重启的方法和装置
US20180143886A1 (en) Method for Rebuilding a Mapping Table of a Solid State Disk
WO2019169876A1 (zh) 创建os启动项的方法、装置、设备及可读存储介质
JP2004302991A (ja) コンピュータシステム用インターフェイスbiosのバックアップ方法
JP5166211B2 (ja) 不揮発性メモリを主記憶に用いた装置
CN108089889B (zh) Linux操作系统快速启动的实现方法
CN113127263B (zh) 一种内核崩溃恢复方法、装置、设备及存储介质
US10983818B2 (en) Method and system for preventing execution of a dirty virtual machine on an undesirable host server in a virtualization cluster environment
CN111796882A (zh) 电子设备系统处理方法、装置及电子设备
TWI518594B (zh) 計算機系統與計算機系統啓動方法
US11797292B2 (en) Information processing apparatus using swap file, control method therefor, and storage medium
WO2013136457A1 (ja) 仮想計算機システム、情報保存処理プログラム及び情報保存処理方法
US10061630B2 (en) Image forming apparatus that ensures operation while HDD is inoperative, and recording medium therefor
TW202044034A (zh) 軟體存留性關閉技術
CN110297674B (zh) 一种信息处理方法及电子设备
JP2010044503A (ja) コンピュータプログラム、および、記録媒体
JP6981098B2 (ja) 復旧制御装置、復旧制御システム、復旧制御方法、及び、復旧制御プログラム
US10387232B2 (en) Image forming apparatus, and recording medium therefor that ensure apparatus operation without separation of HDD when partially inoperable
CN116048630A (zh) 一种访问隐藏区数据的方法、电子设备及存储介质
WO2020107403A1 (zh) 一种磁盘访问控制方法及其配套装置与系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18908313

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18908313

Country of ref document: EP

Kind code of ref document: A1