CN105573871B - The method of Auto-Sensing hard disk operation system type - Google Patents

The method of Auto-Sensing hard disk operation system type Download PDF

Info

Publication number
CN105573871B
CN105573871B CN201410522183.3A CN201410522183A CN105573871B CN 105573871 B CN105573871 B CN 105573871B CN 201410522183 A CN201410522183 A CN 201410522183A CN 105573871 B CN105573871 B CN 105573871B
Authority
CN
China
Prior art keywords
hard disk
type
character string
auto
steps
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
CN201410522183.3A
Other languages
Chinese (zh)
Other versions
CN105573871A (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.)
Kunda Computer Technology Kunshan Co Ltd
Mitac International Corp
Original Assignee
Kunda Computer Technology Kunshan Co Ltd
Mitac International Corp
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 Kunda Computer Technology Kunshan Co Ltd, Mitac International Corp filed Critical Kunda Computer Technology Kunshan Co Ltd
Priority to CN201410522183.3A priority Critical patent/CN105573871B/en
Publication of CN105573871A publication Critical patent/CN105573871A/en
Application granted granted Critical
Publication of CN105573871B publication Critical patent/CN105573871B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of method of Auto-Sensing hard disk operation system type, it is suitable for servers or computer that one is equipped with several hard disks, the following steps are included: whether the format of current hard disk is Legacy format in a. detection system, if it is b is thened follow the steps, e is thened follow the steps if not;B. the marker space type of the master boot sector record of the hard disk is obtained;C. according to the OS Type of the marker space type identification of the acquired hard disk hard disk;D. it according to the OS Type of the hard disk identified, generates the character string for the operating system for representing the hard disk and shows the character string in BIOS setting menu;Whether the format for e. judging the hard disk is EFI, if it is f is thened follow the steps, if otherwise terminated;F. it detects the file route of the hard disk and obtains the title of the file route of the hard disk;And g. obtains the character string for the operating system for representing the hard disk and shows the character string in BIOS setting menu according to the title of the file route of the detected hard disk.

Description

The method of Auto-Sensing hard disk operation system type
Technical field
The present invention is a kind of method of Auto-Sensing hard disk operation system type.
Background technique
Now, the display mode of most of BIOS setting menu (setup menu) its hard disk (HDD) is most of only It can show the title and amount of capacity of manufacturer.Although for a user, may think that such information content is very sufficient It is much of that.It is not necessarily enough but for research and development tester.For example, when tester is in configuration (FULL completely When doing some test jobs in system Configuration), often a system can connect 8 ~ 12 hard disks or so.Assuming that this A little hard disks have plenty of filling Windows and some are if filling linux system, he is can not to know respectively for tester The OS environment that a hard disk is filled.Such as menu is arranged in the tradition BIOS of Fig. 1, and can not show the operating system of each hard disk, It can only know the model of each hard disk.Unique method can only be one one drive into hard disk go to see just can know that it is current this Hard disk is the operating system for filling into what sample.But such method often wastes some times, and then reduces tester The working efficiency of member.
In view of this, the present invention provides a kind of method of Auto-Sensing hard disk operation system type, tester can be facilitated Member quickly understands the operating system environment of hard disk all in system before testing, and the hard disk that drives into without one one goes to know The OS Type of every hard disk, to improve the working efficiency of tester.
Summary of the invention
The main purpose of the present invention is to provide a kind of methods of Auto-Sensing hard disk operation system type, can facilitate survey Examination personnel quickly understand the operating system environment of hard disk all in system before testing, and the hard disk that drives into without one one is gone The OS Type of every hard disk is known, to improve the working efficiency of tester.
The present invention provides a kind of method of Auto-Sensing hard disk operation system type for the above-mentioned purpose, and it is suitable for one to set There are the server or computer of several hard disks, executed by basic input output system, comprising the following steps:
A. whether the format of current hard disk is Legacy format in detection system, if it is b is thened follow the steps, if otherwise Execute step e;
B. the marker space type of the master boot sector record of the hard disk is obtained;
C. according to the OS Type of the marker space type identification of the acquired hard disk hard disk;
D. according to the OS Type of the hard disk identified, the character string for representing the operating system of the hard disk is generated And the character string is shown in BIOS setting menu;
Whether the format for e. judging the hard disk is EFI, if it is f is thened follow the steps, if otherwise terminated;
F. it detects the file route of the hard disk and obtains the title of the file route of the hard disk;And
G. according to the title of the file route of the detected hard disk, the character for representing the operating system of the hard disk is obtained It goes here and there and shows the character string in BIOS setting menu.
Preferably, in step c, identify that the OS Type of the hard disk belongs to Windows, Linux or other behaviour Make system.
Preferably, in step d, the character string display of the generated operating system for representing the hard disk is arranged in BIOS In menu.
Preferably, in step g, the character string display of the operating system of the hard disk is in the setting menu of BIOS.
Compared with prior art, the method for Auto-Sensing hard disk operation system type of the present invention can Auto-Sensing server Or the type of the operating system of hard disk and shown in computer, facilitate tester to understand the system ring of all hard disks before testing Border, without one one OS Type for driving hard disk into and removing to know every hard disk, to improve the work of tester Efficiency.
[Detailed description of the invention]
Fig. 1 is that menu is arranged in traditional BIOS.
Fig. 2 is a kind of step flow chart of the method for Auto-Sensing hard disk operation system type of the present invention.
Fig. 3 is that menu is arranged in BIOS of the invention.
[specific embodiment]
It please refers to shown in Fig. 2, a kind of method of Auto-Sensing hard disk operation system type of the present invention, it is suitable for one to be equipped with The server or computer of several hard disks comprising following steps:
Step 100: after server or booting computer, basic input output system (BIOS, Basic Input/Output System) whether the format of hard disk is Legacy format in detection system, if it is thening follow the steps 200, if otherwise executed Step 500.
Step 200: basic input output system is retrieved as the master boot sector record (Master of Legacy format hard disk Boot Record) marker space type (Partition type).
Step 300: basic input output system is according to the operation of the marker space type identification of the acquired hard disk hard disk System type is to belong to Windows, Linux or other operating systems.For example, when the ID value of marker space type is 0x83h When, indicate that the hard disk is Linux system.When the ID value of marker space type be 0x07h when, indicate the hard disk be NFTS format it Windows system.
Step 400: basic input output system is generated to represent and be somebody's turn to do according to the OS Type of the hard disk identified The character string of the operating system of hard disk simultaneously shows the character string in BIOS setting menu, checks for tester, such as Fig. 3 institute Show and the operating system character string (i.e. Windows, Linux or other operating systems) for representing the hard disk is shown in BIOS setting Menu.
Step 500: basic input output system judges whether the format of the hard disk is EFI, if it is thening follow the steps 600, if otherwise terminated.
Step 600: it detects the file route of the hard disk and obtains the title of the file route of the hard disk, such as through FILEPATH_DEVICE_PATH goes to obtain the file route title of all installation hard disks at present.
Step 700: according to the title of the file route of the detected hard disk, obtaining the operating system for representing the hard disk Character string and in BIOS setting menu in show the character string, such as Windows, Linux or other operating systems.In this step In rapid, the character string display of the operating system of the hard disk is checked in setting in menu for BIOS for tester, such as will shown in Fig. 3 The operating system character string (i.e. Windows, Linux or other operating systems) for representing the hard disk is shown in BIOS setting menu.
It can be seen that the corresponding character string of all hard disks of system to be tested can be certainly by above-mentioned steps of the invention Dynamic display, it is hard without one one drive into so as to facilitate tester to understand the system environments of all hard disks before testing Disk goes to know the OS Type of every hard disk, to improve the working efficiency of tester.
It is worth noting that, the present invention may be selected after server or booting computer to execute automatically or tester according to It voluntarily needs to execute after opening this software, this is not restricted.
In conclusion the various embodiments described above and diagram be only a preferred embodiment of the present invention, but cannot with restriction The range of present invention implementation, i.e., the equivalent changes and modifications made generally according to scope of the present invention patent should all belong to the present invention In the range that patent covers.

Claims (4)

1. a kind of method of Auto-Sensing hard disk operation system type, it is suitable for servers or electricity that one is equipped with several hard disks Brain, which is characterized in that by basic input output system execute the following steps are included:
A. whether the format of current each hard disk is Legacy format in detection system, if it is b is thened follow the steps, if otherwise Execute step e;
B. the marker space type of the master boot sector record of each hard disk is obtained;
C. according to the OS Type of each hard disk of marker space type identification of acquired hard disk;
D. according to the OS Type of each hard disk identified, the character string for representing the operating system of each hard disk is generated And the character string is shown in BIOS setting menu;
Whether the format for e. judging each hard disk is EFI, if it is f is thened follow the steps, if otherwise terminated;
F. it detects the file route of each hard disk and obtains the title of the file route of each hard disk;And
G. according to the title of the file route of detected each hard disk, the character for representing the operating system of each hard disk is obtained It goes here and there and shows the character string in BIOS setting menu.
2. a kind of method of Auto-Sensing hard disk operation system type according to claim 1, which is characterized in that in step In c, identify that the OS Type of each hard disk belongs to Windows, Linux or other operating systems.
3. a kind of method of Auto-Sensing hard disk operation system type according to claim 1, which is characterized in that in step In d, by the character string display of the generated operating system for representing each hard disk in BIOS setting menu.
4. a kind of method of Auto-Sensing hard disk operation system type according to claim 1, which is characterized in that in step In g, the character string display of the operating system of each hard disk is in the setting menu of BIOS.
CN201410522183.3A 2014-10-07 2014-10-07 The method of Auto-Sensing hard disk operation system type Expired - Fee Related CN105573871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410522183.3A CN105573871B (en) 2014-10-07 2014-10-07 The method of Auto-Sensing hard disk operation system type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410522183.3A CN105573871B (en) 2014-10-07 2014-10-07 The method of Auto-Sensing hard disk operation system type

Publications (2)

Publication Number Publication Date
CN105573871A CN105573871A (en) 2016-05-11
CN105573871B true CN105573871B (en) 2019-05-07

Family

ID=55884037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410522183.3A Expired - Fee Related CN105573871B (en) 2014-10-07 2014-10-07 The method of Auto-Sensing hard disk operation system type

Country Status (1)

Country Link
CN (1) CN105573871B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107918580A (en) * 2016-10-11 2018-04-17 英业达科技有限公司 For opening computer detecting system and start method for detecting
CN109683965B (en) * 2018-12-03 2022-03-04 郑州云海信息技术有限公司 BIOS state viewing method and device
CN111552594B (en) * 2020-04-27 2024-01-02 杭州海康存储科技有限公司 Method, device and system for detecting power failure of solid state disk and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201111912Y (en) * 2007-08-28 2008-09-10 上海北大方正科技电脑系统有限公司 Mobile hard disk capable of displaying memory information without electric condition

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101805627B1 (en) * 2011-11-28 2017-12-08 삼성전자주식회사 Method and apparatus for controlling booting of computer system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201111912Y (en) * 2007-08-28 2008-09-10 上海北大方正科技电脑系统有限公司 Mobile hard disk capable of displaying memory information without electric condition

Also Published As

Publication number Publication date
CN105573871A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
CN109960642B (en) Automatic test method and device
US8458384B2 (en) Automatically launching a measurement application in response to measurement device connection
CN103530221B (en) A kind of android system Program behavior and interface operation mapping method
CN105573871B (en) The method of Auto-Sensing hard disk operation system type
US20100042929A1 (en) Verification of software applications
CN105468482B (en) Hard disk position identification and fault diagnosis method and server equipment thereof
CN103502936A (en) Image-based automation systems and methods
CN100524241C (en) Method for integrating and testing platform of multiple operating systems
US8473787B2 (en) Intelligent LUN generation and management
CN102568522A (en) Hardware performance test method and device
CN103677887B (en) A kind of information processing method and a kind of electronic equipment
CN105302687A (en) Hard disk sequence detection method based on linux
KR101816751B1 (en) Apparatus and method for monitoring virtual machine based on hypervisor
KR101976629B1 (en) Commit sensitive tests
AU2017279795A1 (en) Metadata-driven program code generation for clinical data analysis
CN113515457B (en) Internet of things equipment firmware security detection method and device
CN108563540A (en) Server and red flag Compatibility of Operating System test method, system and storage medium
EP2951687A1 (en) Test script creation based on abstract test user controls
CN106021046A (en) Hard disk performance comparison method, device and server
CN105068902B (en) One type Unix operating system computer hardware test methods
Cordy et al. Debcheck: Efficient checking for open source code clones in software systems
US8099630B2 (en) Hardware diagnostics determination during initial program loading
Douglas et al. Processing a 16S rRNA sequencing dataset with the microbiome helper workflow
TW201312345A (en) Method for analyzing the data of hard discs
CN103902415A (en) System and method for testing hard discs

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20190507

Termination date: 20201007

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