CN107357400B - Method for automatically starting up hard disk with specified operating system type - Google Patents

Method for automatically starting up hard disk with specified operating system type Download PDF

Info

Publication number
CN107357400B
CN107357400B CN201610308997.6A CN201610308997A CN107357400B CN 107357400 B CN107357400 B CN 107357400B CN 201610308997 A CN201610308997 A CN 201610308997A CN 107357400 B CN107357400 B CN 107357400B
Authority
CN
China
Prior art keywords
operating system
current
hard disk
server
system type
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.)
Expired - Fee Related
Application number
CN201610308997.6A
Other languages
Chinese (zh)
Other versions
CN107357400A (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.)
Shencloud Technology Co Ltd
Shunda Computer Factory Co Ltd
Original Assignee
Shencloud Technology Co Ltd
Shunda Computer Factory 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 Shencloud Technology Co Ltd, Shunda Computer Factory Co Ltd filed Critical Shencloud Technology Co Ltd
Priority to CN201610308997.6A priority Critical patent/CN107357400B/en
Publication of CN107357400A publication Critical patent/CN107357400A/en
Application granted granted Critical
Publication of CN107357400B publication Critical patent/CN107357400B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • 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

Landscapes

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

Abstract

A method for automatically starting up a hard disk installed with a specified operating system type is suitable for a server and comprises the steps of a, establishing a menu of the operating system type which can be supported by the current server; b. when the server is in power-on self-test, a group of processing programs are registered aiming at the operating system supported by the server; c, loading a current operating system in a current hard disk when the current hard disk is started; d. obtaining the operating system string under the current operating system, and finding out the operating system type corresponding to the operating system string; e. the relevant instruction of the current operating system is triggered and executed, and a numerical value corresponding to the current operating system is sent; f. comparing the obtained numerical value of the current operating system type with a preset numerical value of the operating system type selected by the user, if the numerical value is consistent with the preset numerical value, executing the step g, and if not, executing the step h; g. displaying the hard disk containing the selected operating system type; and h, shutting down and restarting, switching to the next hard disk, and returning to the step b.

Description

Method for automatically starting up hard disk with specified operating system type
Technical Field
The invention discloses a method for automatically starting a hard disk with a specified operating system type.
Background
With the continuous and vigorous development of information technology, the demand of people for computers is continuously rising. The server is more important for some cloud system manufacturers. Generally, a server has many hard disks, and different types of OS (Operating systems) are often installed in the hard disks to meet different requirements of users. When a test developer or user needs to verify the performance of the system or the system is in a problem and needs to use a specific type of OS to find or solve the problem, the first problem the user faces is that he does not know which OS type is installed on which hard disk in the current system, for example, if the user wants to go to a hard disk installed with Windows to perform system verification, he only has to go to each HDD to check until he wants to find the hard disk installed with Windows. However, this method will waste much time for the user to stay on the machine.
In view of this, the present invention provides a method for automatically booting to a hard disk installed with a specified operating system type, which enables a user to boot to a hard disk installed with a specified operating system type without wasting time to wait for the hard disk to be booted one by one on a machine.
Disclosure of Invention
The invention mainly aims to provide a method for automatically starting up a hard disk with a specified operating system type, which can lead a user to start up the hard disk with the specified operating system type without wasting time to wait for starting up the hard disk one by one on a machine.
To achieve the above object, a method for booting a hard disk installed with a specified os type automatically is applied to a server, and includes the following steps:
a. the BMC provides a user interface to establish a group of menus of the types of the operating systems which can be supported by the current server, so that a user can select the type of the operating system which the user wants to enter;
b. when the server is started and the power-on self-test is executed, the BIOS registers a group of processing programs aiming at the operating system supported by the server, and the processing programs define a numerical value and a related instruction which correspond to a plurality of operating system types respectively;
c. when the server is started to a current hard disk to finish initialization, loading a current operating system in the current hard disk;
d. the BIOS acquires an operating system string under the current operating system from the current operating system, and finds out an operating system type corresponding to the operating system string from a corresponding table;
e. the relevant instruction corresponding to the current operating system in the processing program is triggered to be executed, and the value corresponding to the current operating system is sent to the BMC;
f. the BMC compares the obtained value of the current operating system type with a preset value of the operating system type selected by the user, if the obtained value of the current operating system type is consistent with the preset value of the operating system type selected by the user, the step g is executed, and if the obtained value of the current operating system type is not consistent with the preset value of the operating system type selected by the user, the step h is executed;
g. displaying the found hard disk containing the selected operating system type on a user interface of the BMC; and
h. and the BMC informs the BIOS of powering off and restarting, switches to the next hard disk, and then returns to the step b.
Preferably, in step b, the handler is an SMI handler.
Preferably, in step b, the processing program defines the values and the related instructions corresponding to the types of the operating systems supported by the server, respectively.
Preferably, in step d, the corresponding table is a preset os type and os string corresponding table.
Preferably, in step e, the value corresponding to the current operating system is sent to the BMC in the IPMI command format.
Preferably, in step g, the hard disk containing the selected operating system type is found and opening to the current hard disk is continued on the user interface of the BMC.
Compared with the prior art, the invention establishes a group of menus of the types of the operating systems which can be supported by the current server in the BMC user interface. The user selects the hard disk of the operating system to be entered through a menu, when the system is powered on for self-test, all the hard disks on the current system are started through the BIOS one by one, and when the started hard disks do not accord with the operating system selected by the user, the system is powered off and restarted to the next hard disk until the matched hard disk is found. The method has the advantage that the user can automatically start the system to the hard disk with the specific operating system type without wasting time to start the hard disks on the machine.
[ description of the drawings ]
FIG. 1 is a flowchart illustrating steps of a method for booting a hard disk having a specified operating system type installed therein according to the present invention.
[ detailed description ] embodiments
Referring to fig. 1, the present invention provides a method for automatically booting a hard disk installed with a specified os type, which is suitable for a server, and includes the following steps:
step 100, BMC (Baseboard Management Controller) provides a user interface to establish a group of menu of operating system types supported by the current server, so that the user can select the type of the operating system that the user wants to enter; step 200: when the server is powered On and performs Power On Self Test (POST), a BIOS (Basic Input Output System) registers (register) a set of processing programs for the operating systems supported by the server, where the processing programs define a value and a related instruction corresponding to each of the types of the operating systems, where registering the processing program by the BIOS means that the processing program is registered as a to-be-executed program, and when the conditions are met, the program is triggered and executed, for example, a value corresponding to Windows 10 is 0x11, and a value corresponding to Linux is 0x 22;
step 300: when the server is started to a current hard disk to finish initialization, loading a current operating system in the current hard disk;
step 400: the BIOS obtains an operating system interface string (OSI string) under the current operating system from the current operating system and finds a system type corresponding to the operating system string from a corresponding table (e.g., table 1), wherein the operating system string is obtained through the following steps: there is an OSI function support (Operating system interface support) module under the Operating system, there is a Operating system string under the OSI function support module, when an Operating system is loaded to the hard disk, BIOS can get the string of the Operating system;
operating system type Operating system string
Windows 10 “Windows 2015”
Windows 8.1 “Windows 2013”
Windows 8 “Windows 2012”
Windows 7 “Windows 2009”
Windows Vista “Windows 2006”
Windows Vista SP1 “Windows 2006 SP1”
Windows XP “Windows 2001”
Step 500: the related instruction corresponding to the current operating system in the processing program is triggered to execute, and a value corresponding to the current operating system is sent to the BMC, for example, if the current operating system type is Windows 10, the corresponding value is 0X 11;
step 600: the BMC compares the obtained value of the current operating system type with a preset value of the operating system type selected by the user, if the obtained value is consistent with the preset value, the step 700 is executed, and if the obtained value is not consistent with the preset value, the step 800 is executed;
step 700: displaying the found hard disk containing the selected operating system type on a user interface of the BMC;
step 800: the BMC notifies the BIOS to power down and reboot, and switches to the next hard disk, and then returns to step 200.
In this embodiment, in step 200, the handler is an SMI handler (System Management Interrupt handler).
In this embodiment, in step 200, the processing program defines values and related instructions corresponding to the types of the operating systems supported by the server.
In step 400, the table is a pre-defined OS type/OS string table.
In this embodiment, in step 500, the value corresponding to the current os is sent to the BMC in IPMI command format.
In this embodiment, in step 700, the hard disk containing the selected operating system type is found and the opening to the current hard disk is continued on the user interface of the BMC. By the steps, the invention establishes a group of menus of the types of the operating systems which can be supported by the current server in the BMC user interface. The user selects the hard disk of the operating System to be entered through a menu, when the System is powered on for self-test, all the hard disks on the current System are started through a Basic Input/Output System (BIOS), and when the started hard disks do not accord with the operating System selected by the user, the System is powered off and restarted to the next hard disk until the matched hard disk is found. The method has the advantage that the user can automatically start the system to the hard disk with the specific operating system type without wasting time to start the hard disks on the machine.
In summary, the above embodiments and drawings are only preferred embodiments of the present invention, but not intended to limit the scope of the present invention, and all equivalent changes and modifications made by the claims of the present invention should fall within the scope of the present invention.

Claims (5)

1. A method for automatically starting up a hard disk provided with a specified operating system type is suitable for a server, the server comprises a plurality of hard disks, each hard disk is provided with different types of operating systems, and the method is characterized by comprising the following steps:
a. the BMC provides a user interface to establish a group of menus of the types of the operating systems which can be supported by the current server, so that a user can select the type of the operating system which the user wants to enter;
b. when the server is started and the power-on self-test is executed, the BIOS registers a group of SMI handler aiming at the operating system supported by the server, and the SMI handler defines a numerical value and a related instruction corresponding to a plurality of operating system types respectively;
c. when the server is started to a current hard disk to finish initialization, loading a current operating system in the current hard disk;
d. the BIOS acquires an operating system string under the current operating system from the current operating system, and finds out an operating system type corresponding to the operating system string from a corresponding table;
e. the related instruction corresponding to the current operating system in the SMI handler is triggered and executed, and a value corresponding to the current operating system is sent to the BMC;
f. the BMC compares the obtained value of the current operating system type with a preset value of the operating system type selected by the user, if the obtained value of the current operating system type is consistent with the preset value of the operating system type selected by the user, the step g is executed, and if the obtained value of the current operating system type is not consistent with the preset value of the operating system type selected by the user, the step h is executed;
g. displaying the found hard disk containing the selected operating system type on a user interface of the BMC; and
h. and the BMC informs the BIOS of powering off and restarting, switches to the next hard disk, and then returns to the step b.
2. The method as claimed in claim 1, wherein in step b, the SMI handler defines the values and the related commands corresponding to the types of the os supported by the server.
3. The method of claim 1, wherein in step d, the table is a predetermined OS type-OS string table.
4. The method of claim 1, wherein in step e, the value corresponding to the current os is sent to the BMC in IPMI command format.
5. The method of claim 1, wherein in step g, a hard disk containing the selected operating system type is displayed on the user interface of the BMC and the current hard disk is continued to be opened.
CN201610308997.6A 2016-05-10 2016-05-10 Method for automatically starting up hard disk with specified operating system type Expired - Fee Related CN107357400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610308997.6A CN107357400B (en) 2016-05-10 2016-05-10 Method for automatically starting up hard disk with specified operating system type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610308997.6A CN107357400B (en) 2016-05-10 2016-05-10 Method for automatically starting up hard disk with specified operating system type

Publications (2)

Publication Number Publication Date
CN107357400A CN107357400A (en) 2017-11-17
CN107357400B true CN107357400B (en) 2021-03-26

Family

ID=60271338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610308997.6A Expired - Fee Related CN107357400B (en) 2016-05-10 2016-05-10 Method for automatically starting up hard disk with specified operating system type

Country Status (1)

Country Link
CN (1) CN107357400B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960641A (en) * 2017-12-22 2019-07-02 神讯电脑(昆山)有限公司 To the test method of the OS Type of input
US11829480B2 (en) 2022-04-20 2023-11-28 Quanta Computer Inc. Remote access of system register configuration

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5274816A (en) * 1990-11-02 1993-12-28 Kabushiki Kaisha Toshiba Personal computer capable of changing boot priority
CN101499008A (en) * 2008-01-30 2009-08-05 中兴通讯股份有限公司 Hard disk boot sequence recognition method and system
CN104050019A (en) * 2013-03-15 2014-09-17 宇宙互联有限公司 Electronic device with operating system share control function, and system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533355A (en) * 2009-04-15 2009-09-16 杭州华三通信技术有限公司 Method for starting multioperation system and device thereof
CN101866289A (en) * 2009-04-17 2010-10-20 英业达股份有限公司 Starting method for multiple operating system
CN102314380A (en) * 2010-07-02 2012-01-11 鸿富锦精密工业(深圳)有限公司 Multi-hardware start control system and method
CN102799484B (en) * 2012-07-11 2017-11-03 中兴通讯股份有限公司 The method and device of running of mobile terminal multiple operating system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5274816A (en) * 1990-11-02 1993-12-28 Kabushiki Kaisha Toshiba Personal computer capable of changing boot priority
CN101499008A (en) * 2008-01-30 2009-08-05 中兴通讯股份有限公司 Hard disk boot sequence recognition method and system
CN104050019A (en) * 2013-03-15 2014-09-17 宇宙互联有限公司 Electronic device with operating system share control function, and system and method

Also Published As

Publication number Publication date
CN107357400A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
JP6530774B2 (en) Hardware failure recovery system
US10055218B2 (en) System and method for adding and storing groups of firmware default settings
US10866623B2 (en) Information handling system and method to detect and recover from no power/no post failures
US8751783B2 (en) Booting computing devices with EFI aware operating systems
US20100100719A1 (en) Method for reducing booting time and computer using the same
CN102135893A (en) Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server
CN109002346B (en) Conversion method of Windows virtual machine bootstrap program
CN107766084B (en) Boot loading and installation method and computing system thereof
US20190004818A1 (en) Method of UEFI Shell for Supporting Power Saving Mode and Computer System thereof
CN107135462B (en) Bluetooth pairing method of UEFI firmware and computing system thereof
US20190303172A1 (en) Information processing apparatus, device assignment method, and computer readable medium
US9411602B2 (en) Techniques for booting an information processing system
US7984282B2 (en) Evasion of power on self test during an operating system initiated reboot
US10491736B2 (en) Computer system and method thereof for bluetooth data sharing between UEFI firmware and OS
US20110296072A1 (en) System and method for controlling pci-e slots of computer
CN107357400B (en) Method for automatically starting up hard disk with specified operating system type
US11030047B2 (en) Information handling system and method to restore system firmware to a selected restore point
US20150324209A1 (en) Operating System Switching Method and Dual-Operating System Electronic Device Using the Same
US20130097412A1 (en) Performing A Boot Sequence In A Multi-Processor System
US6986034B2 (en) Setting a system indication in response to a user when execution of the system setup program is desired
CN102455919A (en) Automatic optimization setting method for basic input output system(BIOS)
CN112083964B (en) Method for deploying an operating system
CN106547583B (en) Operating system installation method and device
CN115113941A (en) System capable of loading BIOS preset configuration and method for loading BIOS preset configuration
CN106502847B (en) Server diagnosis method and 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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210326

CF01 Termination of patent right due to non-payment of annual fee