CN107357400A - Method of the Auto Power On to the hard disk for being provided with assigned operation system type - Google Patents

Method of the Auto Power On to the hard disk for being provided with assigned operation system type Download PDF

Info

Publication number
CN107357400A
CN107357400A CN201610308997.6A CN201610308997A CN107357400A CN 107357400 A CN107357400 A CN 107357400A CN 201610308997 A CN201610308997 A CN 201610308997A CN 107357400 A CN107357400 A CN 107357400A
Authority
CN
China
Prior art keywords
type
operation system
hard disk
current operation
numerical value
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.)
Granted
Application number
CN201610308997.6A
Other languages
Chinese (zh)
Other versions
CN107357400B (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.)
Mitac Computer Shunde Ltd
Shencloud Technology Co Ltd
Original Assignee
Mitac Computer Shunde Ltd
Shencloud 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 Mitac Computer Shunde Ltd, Shencloud Technology Co Ltd filed Critical Mitac Computer Shunde 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

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

For a kind of Auto Power On to the method for the hard disk for being provided with assigned operation system type, it is applied to a server, including step:A. the menu for the OS Type that current server can be supported is established;B. in startup self-detection, the operating system supported for the server goes to register one group of processing routine;C is when start is to a present hard discs, the current operation system that is loaded into the present hard discs;D. the operating system word string under the current operation system is obtained, finds out OS Type corresponding to the operating system word string;E. the dependent instruction of the current operation system is triggered execution, sends numerical value corresponding to current operation system;One default numerical value of the OS Type that f. numerical value of the current operation system type of acquisition is selected with the user is compared, and if consistent, performs step g, if not, performing step h;G. the hard disk for having found and having included selected OS Type is shown;And h. shuts down and turned back on, next hard disk, return to step b are switched to.

Description

Method of the Auto Power On to the hard disk for being provided with assigned operation system type
Technical field
The present invention is method of the Auto Power On to the hard disk for being provided with assigned operation system type.
Background technology
As Information technology constantly flourishes, people for computer demand constantly among soaring.Wherein, server is even more important for some cloud system manufacturers.In general, a server has many hard disks, can often install different types of OS (Operating respectively in these hard disks System, operating system) with response to the different demand of user.When test research staff or user need to verify system effectiveness, or system problem occurs and when needing to use certain types of OS to search or solve problem, now first problems faced of user is, do not know which hard disk is mounted with which OS type in system instantly, for example, if user will enter installation Windows hard disk come if doing system checking, by he does not know the OS types that all system disks are installed instantly, so he uniquely may way be exactly that each HDD that drives into one by one does the hard disk checked until finding his desired installation Windows.But this practice, which can allow user to waste many times, to be stayed on board.
In view of this, the present invention provides a kind of method that Auto Power On arrives the hard disk for being provided with assigned operation system type, and it can allow user not have to lose time to stay in board and drive hard disk one by one up, it is possible to start shooting to the hard disk for being provided with the OS Type specified.
The content of the invention
It is a primary object of the present invention to provide a kind of method of hard disk of Auto Power On to assigned operation system type is provided with, it can allow user not have to lose time to stay in board to drive hard disk one by one up, it is possible to start to the hard disk for being provided with the OS Type specified.
For the above-mentioned purpose, a kind of Auto Power On is to the method for the hard disk for being provided with assigned operation system type, and it is applied to a server, and it comprises the following steps:
A. BMC provides a user interface and establishes the menu of the OS Type that one group of current server can be supported, and the OS Type that it wants to enter into is selected for user;
B. when the server is started shooting and performs startup self-detection, operating system that BIOS is supported for the server goes to register one group of processing routine, the processing routine define multiple OS Types distinguish corresponding to a numerical value and a dependent instruction;
C. when the server is started shooting to current operation system during present hard discs completion initialization, being loaded into the present hard discs;
D. the BIOS obtains the operating system word string under the current operation system from the current operation system, and from a corresponding table, finds out OS Type corresponding to the operating system word string;
E. the dependent instruction that the current operation system is corresponded in the processing routine is triggered execution, and numerical value corresponding to current operation system is sent into the BMC;
One default numerical value of the OS Type that f. BMC selects the numerical value of the current operation system type of acquisition with the user is compared, and if consistent, then performs step g, if it is not, then performing step h;
G. the hard disk for having found and having included selected OS Type is shown in the user interface of the BMC;And
H. the BMC notifies BIOS to shut down and turn back on, and is switched to next hard disk, is then returned to step b.
Preferably, in stepb, the processing routine is SMI handler.
Preferably, in stepb, the processing routine define multiple operating systems that the server is supported type distinguish corresponding to the numerical value and the related instruction.
Preferably, in step d, the corresponding table is an OS Type set in advance and operating system word string corresponding table.
Preferably, in step e, numerical value is sent to BMC with IPMI instruction formats corresponding to the current operation system.
Preferably, in step g, shown in the user interface of the BMC and found the hard disk comprising selected OS Type and continued to drive the present hard discs into.
Compared with prior art, invention establishes the menu for the OS Type that one group of current server can be supported in BMC user interfaces.Hard disk of the user through the operating system to be entered of menu selection, when system boot self-test, through all hard disks in the current system of BIOS driving into one by one, when the hard disk driven into does not meet the operating system selected by user, now system closedown, which is laid equal stress on, drives next into until finding the hard disk met.This way, benefit are to allow user not have to lose time to stay in board to drive hard disk one by one up, it is possible to reach and allow system automatically to start shooting to the hard disk of installation specific operation system type.
【Brief description of the drawings】
Fig. 1 provides a kind of step flow chart of the method for hard disk of Auto Power On to assigned operation system type is provided with for the present invention.
【Embodiment】
Refer to shown in Fig. 1, the present invention provides a kind of Auto Power On to the method for the hard disk for being provided with assigned operation system type, and it is applied to a server, comprised the following steps:
Step 100: BMC(Baseboard Management Controller, baseboard management controller)The menu that one user interface establishes the OS Type that one group of current server can be supported is provided, the type of its operating system wanted to enter into is selected for user;Step 200:When the server is started shooting and performs startup self-detection(POST, Power On Self Test), BIOS(Basic Input Output System, basic input output system)The operating system supported for the server goes to register(register)One group of processing routine, the processing routine define multiple operating systems type distinguish corresponding to a numerical value and a dependent instruction, wherein, the BIOS registers the processing routine and referred to, the processing routine is registered as a pending program, and when conditions are met, the program can just be triggered and perform, such as Numerical value corresponding to Windows 10 is 0x11, and numerical value corresponding to Linux is 0x22;
Step 300:When server start to current operation system during present hard discs completion initialization, being loaded into the present hard discs;
Step 400:The BIOS obtains the operating system word string under the current operation system from the current operating system(operating system interface string,OSI string)And from table corresponding to one (such as table 1), system type corresponding to the operating system word string is found out, wherein, the operating system word string obtains especially by following approach:There is OSI functions support under an operating system(Operating system interface support)Module, there is an operating system word string below this OSI feature support module, after an operating system is loaded into hard disk, BIOS can obtain the word string of this operating system;
OS Type Operating system word 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 dependent instruction that the current operation system is corresponded in the processing routine is triggered execution, and numerical value corresponding to current operation system is sent into the BMC, such as current OS Type is Windows 10, then corresponding numerical value is 0X11;
Step 600:One default numerical value of the OS Type that the BMC selects the numerical value of the current operation system type of acquisition with the user is compared, and if consistent, then performs step 700, if otherwise performing step 800;
Step 700:The hard disk for having found and having included selected OS Type is shown in the user interface of the BMC;
Step 800:BMC notices BIOS shuts down and turned back on, and is switched to next hard disk, is then returned to step 200.
In the present embodiment, in step 200, the processing routine is SMI Handler (System Management Interrupt handler, system management interrupt handler).
In the present embodiment, in step 200, the processing routine define multiple operating systems that the server is supported type distinguish corresponding to numerical value and correlation instruction.
In the present embodiment, in step 400, the corresponding table is an OS Type set in advance and operating system word string corresponding table.
In the present embodiment, in step 500, numerical value is sent to BMC with IPMI instruction formats corresponding to the current operation system.
In the present embodiment, in step 700, shown in the user interface of the BMC and found the hard disk comprising selected OS Type and continued to drive the present hard discs into.By above-mentioned steps, the present invention establishes the menu for the OS Type that one group of current server can be supported in BMC user interfaces.User selects the hard disk of the operating system to be entered through menu, when system boot self-test, through BIOS (Basic Input/Output System) all hard disks driven into current system one by one, when the hard disk driven into does not meet the operating system selected by user, now system closedown, which is laid equal stress on, drives next into until finding the hard disk met.This way, benefit are to allow user not have to lose time to stay in board to drive hard disk one by one up, it is possible to reach and allow system automatically to start shooting to the hard disk of installation specific operation system type.
In summary, the various embodiments described above and diagram be only presently preferred embodiments of the present invention, but can not with restrictions the present invention implementation scope, i.e., the equivalent changes and modifications made generally according to claims of the present invention, should all remain within the scope of the patent.

Claims (6)

1. for a kind of Auto Power On to the method for the hard disk for being provided with assigned operation system type, it is applied to a server, it is characterised in that comprises the following steps:
A. BMC provides a user interface and establishes the menu of the OS Type that one group of current server can be supported, and the OS Type that it wants to enter into is selected for user;
B. when the server is started shooting and performs startup self-detection, operating system that BIOS is supported for the server goes to register one group of processing routine, the processing routine define multiple OS Types distinguish corresponding to a numerical value and a dependent instruction;
C. when the server is started shooting to current operation system during present hard discs completion initialization, being loaded into the present hard discs;
D. the BIOS obtains the operating system word string under the current operation system from the current operation system, and from a corresponding table, finds out OS Type corresponding to the operating system word string;
E. the dependent instruction that the current operation system is corresponded in the processing routine is triggered execution, and numerical value corresponding to current operation system is sent into the BMC;
One default numerical value of the OS Type that f. BMC selects the numerical value of the current operation system type of acquisition with the user is compared, and if consistent, then performs step g, if it is not, then performing step h;
G. the hard disk for having found and having included selected OS Type is shown in the user interface of the BMC;And
H. the BMC notifies BIOS to shut down and turn back on, and is switched to next hard disk, is then returned to step b.
2. Auto Power On according to claim 1 is to the method for the hard disk for being provided with assigned operation system type, it is characterised in that in stepb, the processing routine is SMI handler.
3. Auto Power On according to claim 1 is to the method for the hard disk for being provided with assigned operation system type, it is characterized in that, in stepb, the processing routine define multiple operating systems that the server is supported type distinguish corresponding to the numerical value and the related instruction.
4. Auto Power On according to claim 1 is to the method for the hard disk for being provided with assigned operation system type, it is characterised in that in step d, the corresponding table is an OS Type set in advance and operating system word string corresponding table.
5. Auto Power On according to claim 1 is to the method for the hard disk for being provided with assigned operation system type, it is characterised in that in step e, numerical value is sent to BMC with IPMI instruction formats corresponding to the current operation system.
6. Auto Power On according to claim 1 is to the method for the hard disk for being provided with assigned operation system type, it is characterized in that, in step g, shown in the user interface of the BMC and found the hard disk comprising selected OS Type and continued to drive the present hard discs into.
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 true CN107357400A (en) 2017-11-17
CN107357400B 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)

Cited By (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 (7)

* 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
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
US20120005494A1 (en) * 2010-07-02 2012-01-05 Hon Hai Precision Industry Co., Ltd. Host computer and method for starting hard disks
CN102799484A (en) * 2012-07-11 2012-11-28 中兴通讯股份有限公司 Method and device for running multiple operating systems by mobile terminal
CN104050019A (en) * 2013-03-15 2014-09-17 宇宙互联有限公司 Electronic device with operating system share control function, and system and method

Patent Citations (7)

* 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
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
US20120005494A1 (en) * 2010-07-02 2012-01-05 Hon Hai Precision Industry Co., Ltd. Host computer and method for starting hard disks
CN102799484A (en) * 2012-07-11 2012-11-28 中兴通讯股份有限公司 Method and device for running multiple operating systems by mobile terminal
CN104050019A (en) * 2013-03-15 2014-09-17 宇宙互联有限公司 Electronic device with operating system share control function, and system and method

Cited By (3)

* 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
TWI824558B (en) * 2022-04-20 2023-12-01 廣達電腦股份有限公司 Method for accessing data

Also Published As

Publication number Publication date
CN107357400B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
JP6530774B2 (en) Hardware failure recovery system
US9778844B2 (en) Installation of operating system on host computer using virtual storage of BMC
TWI507985B (en) Electronic device capable of automatically setting up operating systems and related method and system
US9912535B2 (en) System and method of performing high availability configuration and validation of virtual desktop infrastructure (VDI)
US20080222406A1 (en) Hot-pluggable information processing device and setting method
TW201717001A (en) Unified firmware managment system, non-transitory computer-readable storage medium and method for unified firmware managment
US20060015710A1 (en) Method for sharing host processor for non-operating system uses
US20070061818A1 (en) Detection of devices during operating system setup
JP2016058083A (en) System and method for managing plurality of bios default setting
US12001285B2 (en) System booting method and apparatus, node device, and computer-readable storage medium
US20150154033A1 (en) Computer system and boot method thereof
US20190182110A1 (en) Raid configuration
US10713061B2 (en) Boot disk detection and management in an information handling system manufacturing environment
CN106445576A (en) Motherboard and computer implementing method thereof, and non-transitory computer readable storage devices thereof
US20150095632A1 (en) Computer booting system and method for computer system
US7921230B2 (en) USB devices pre-configuration for KVM switch
CN103257922B (en) A kind of method of quick test BIOS and OS interface code reliability
WO2019020073A1 (en) Operating system installation
WO2019020074A1 (en) Installation of operating system
CN107357400A (en) Method of the Auto Power On to the hard disk for being provided with assigned operation system type
RU2606565C2 (en) Firmware agent
KR20180023784A (en) Data storage system and method thereof to access RAID volume in pre-boot environment
US20130097412A1 (en) Performing A Boot Sequence In A Multi-Processor System
US20110270814A1 (en) Expanding Functionality Of One Or More Hard Drive Bays In A Computing System
US20180101389A1 (en) Boot detection system and boot detection method for computer

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210326