CN102591691B - Hard disk startup method and the os starting loading method based on BIOS - Google Patents

Hard disk startup method and the os starting loading method based on BIOS Download PDF

Info

Publication number
CN102591691B
CN102591691B CN201110459181.0A CN201110459181A CN102591691B CN 102591691 B CN102591691 B CN 102591691B CN 201110459181 A CN201110459181 A CN 201110459181A CN 102591691 B CN102591691 B CN 102591691B
Authority
CN
China
Prior art keywords
efi
subregion
hard disk
startupoptions
path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110459181.0A
Other languages
Chinese (zh)
Other versions
CN102591691A (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.)
Dawning Information Systems (Liaoning) Co., Ltd.
Original Assignee
Dawning Information Industry 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 Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN201110459181.0A priority Critical patent/CN102591691B/en
Publication of CN102591691A publication Critical patent/CN102591691A/en
Application granted granted Critical
Publication of CN102591691B publication Critical patent/CN102591691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of hard disk startup method and os starting loading method, hard disk startup method comprises the following steps: there is the subregion of FAT32 in basic input-output system BIOS identification hard disk after, is globally unique identifier partition table GPT subregion by subregion sign; Pre-service is carried out to the startupoptions being masked as GPT subregion; Pretreated startupoptions is kept in non-volatile random access memory NVRAM; And BIOS finds the mirror image of os starting loader Boot Loader, thus carry out hard disk startup.

Description

Hard disk startup method and the os starting loading method based on BIOS
Technical field
Present invention relates in general to computer realm, more specifically, relate to hard disk startup method and the os starting loading method based on BIOS.
Background technology
GPT (globally unique identifier's partition table) zoned format is a kind of subregion framework of novel management hard disk.Compared with " host sectors is recorded " (MBR) partition method, GPT has more advantage, because it allows each disk to have nearly 128 subregions, support the volume size up to 18 peta-bytes, primary partition table and backup disk partition table is allowed to be used for redundancy, also support unique disk and partition id (GUID, globally unique identifier).
Although GPT subregion has support that hard-disk capacity is large, but the hard disk with this subregion does not start by traditional MBR mode, that is BIOS (Basic Input or Output System (BIOS)) does not directly load Boot Loader (os starting loader) program by reading MBR, and must carry out load operation system by so-called Boot Loader mirror image under loading UEFI (unified Extensible Firmware Interface) environment.This Starting mode just creates the problem that hard disk cannot use on multiple mainboard, and a GPT hard disk can only start on that block mainboard of its installation system, and reason is the Boot Loader mirror image deposit position that other mainboard does not know this block hard disk.
In prior art, develop by the built-in EFI-Shell (Extensible Firmware Interface shell) of BIOS, found the solution of the Boot Loader of operating system in hard disk in the mode of order line.But command line mode more complicated, for general user, does not have professional knowledge related to this cannot apply it, moreover consider from user-friendly target, we do not wish to be started the operating system by this way yet.
In addition, also there is following solution in prior art: in Windows system, in NVRAM (non-volatile random access memory), add new startupoptions by BCDEdit order.But, this scheme needs one piece of GPT hard disk that can start, and need the order inputting more complicated to realize, in addition, also staff is needed to be familiar with principle and the form of GPT subregion, if do not have professional equipment and professional knowledge, staff is difficult to solve technical matters as discussed above.
Summary of the invention
For this reason, the invention provides a kind of hard disk startup method, comprise the following steps: there is the subregion of FAT32 in basic input-output system BIOS identification hard disk after, is globally unique identifier partition table GPT subregion by subregion sign; Pre-service is carried out to the startupoptions being masked as GPT subregion; Pretreated startupoptions is kept in non-volatile random access memory NVRAM; And BIOS finds the mirror image of os starting loader Boot Loader, thus carry out hard disk startup.
Pre-service comprises further: the device path of newly-built media; The subtype of device path is set to file type and default file name; And device path is attached on the device path of the startupoptions being masked as GPT subregion.
The path of the Boot Loader under GPT subregion framework is :/EFI/BOOT/BOOTX64.efi or/EFI/Microsoft/BootMgr.efi.
Pre-service comprises further: check the startupoptions being masked as GPT subregion, when it is Extensible Firmware Interface shell EFI-Shell, and not optional equipment path.
In addition, additionally provide a kind of os starting loading method based on BIOS, comprise the following steps: be the device path mark will of startupoptions; And by the file path of os starting loader BootLoader mirror image with the mode of device path be attached to beaten mark device path on.
The path of the Boot Loader under globally unique identifier partition table GPT subregion framework is :/EFI/BOOT/BOOTX64.efi or/EFI/Microsoft/BootMgr.efi.
The method comprises further: the startupoptions of mark of having fought each other checks, when it is Extensible Firmware Interface shell EFI-Shell, does not carry out additional operations.
Accompanying drawing explanation
When reading in conjunction with the accompanying drawings, the present invention may be better understood according to the following detailed description.It is emphasized that according to the standard practices in industry, various parts are not drawn to scale.In fact, in order to clearly discuss, the size of various parts can be arbitrarily increased or reduce
Fig. 1 shows the process flow diagram of the hard disk startup method according to exemplary embodiment of the present invention;
Fig. 2 shows pretreated process flow diagram in the hard disk startup method according to exemplary embodiment of the present invention; And
Fig. 3 shows the process flow diagram of the os starting loading method based on BIOS according to exemplary embodiment of the present invention.
Embodiment
In order to implement different parts of the present invention, following description provides many different embodiments or example.The particular example of element and layout is below described to simplify the present invention.Certainly these are only that example is not intended to limit.Moreover, in below describing first component be formed in second component can comprise wherein the first and second parts directly to contact the embodiment of formation, and also can comprise wherein extra parts and form the embodiment be inserted in the first and second parts, the first and second parts are not directly contacted.For the sake of simplicity with clear, at random various parts can be drawn with different sizes.
The invention provides a kind of hard disk startup method, comprise the following steps: S101, after there is the subregion of FAT32, is globally unique identifier partition table GPT subregion by subregion sign in basic input-output system BIOS identification hard disk; S103, carries out pre-service to the startupoptions being masked as GPT subregion; S105, is kept in non-volatile random access memory NVRAM by pretreated startupoptions; And S107, BIOS find the mirror image of os starting loader Boot Loader, thus carry out hard disk startup.
Preferentially, pre-treatment step S103 comprises further: S201, the device path of newly-built media; S203, is set to file type and default file name by the subtype of device path; And S205, device path is attached on the device path of the startupoptions being masked as GPT subregion.
Preferentially, the path of the Boot Loader under GPT subregion framework is :/EFI/BOOT/BOOTX64.efi or/EFI/Microsoft/BootMgr.efi.
Preferentially, pre-service comprises (not shown) further: check the startupoptions being masked as GPT subregion, when it is Extensible Firmware Interface shell EFI-Shell, and not optional equipment path.
In addition, additionally providing a kind of os starting loading method based on BIOS, comprise the following steps: S301, is the device path mark will of startupoptions; And S303, the file path of os starting loader Boot Loader mirror image is attached in the mode of device path on the device path having beaten mark.
Preferentially, the path of the Boot Loader under globally unique identifier's partition table GPT subregion framework is :/EFI/BOOT/BOOTX64.efi or/EFI/Microsoft/BootMgr.efi.
Os starting loading method based on BIOS comprises further: the startupoptions of mark of having fought each other checks, when it is Extensible Firmware Interface shell EFI-Shell, does not carry out additional operations.
Synthetically see, according to UEFI 2.3 specification, under GPT subregion framework, the path of the BootLoader of operating system is /EFI/BOOT/BOOTX64.efi or/EFI/Microsoft/BootMgr.efi.BIOS is after recognizing in hard disk the subregion having FAT32, the mark of GPT subregion can be stamped, before startupoptions is stored in NVRAM, the startupoptions indicated of having fought each other carries out pre-service, disposal route is the device path of newly-built media, its subtype is set to file type, and its filename is preset, finally ready device path is attached on the device path of the startupoptions having beaten mark, when system starts, BIOS just can find the mirror image of Boot Loader smoothly.To some use linux kernels operating system distribution version, the path of their Boot Loader mirror image may have difference, use the same method their file path with the mode of device path be attached to beaten mark startupoptions device path on.
It should be noted that, the built-in EFI-Shell of BIOS also may get beat up mark, so need to conduct a survey to all startupoptions having beaten mark in pretreated process, if startupoptions is Shell (shell), then not appended document device path.
Present invention achieves the transparence that GPT partitionable hard starts, make user when using GPT hard disk, the hard disk of larger storage space can not only be managed, and without the need to inputting any order in start-up course, thus clog-free the transferring on other main frames of the hard disk of GPT subregion is used.
Discuss the parts of some embodiments above, make the various aspects that the present invention may be better understood for those of ordinary skill in the art.It will be understood by those skilled in the art that to use easily and to design based on the present invention or to change other for the process and the structure that reach the object identical with introduced embodiment here and/or realize same advantage.Those of ordinary skill in the art also it should be appreciated that this equivalent constructions does not deviate from the spirit and scope of the present invention, and when not deviating from the spirit and scope of the present invention, can carry out multiple change, replacement and change.

Claims (6)

1. a hard disk startup method, is characterized in that, comprises the following steps:
There is the subregion of FAT32 in basic input-output system BIOS identification hard disk after, be globally unique identifier partition table GPT subregion by described subregion sign;
Pre-service is carried out to the startupoptions being masked as described GPT subregion;
Pretreated startupoptions is kept in non-volatile random access memory NVRAM; And
Described BIOS finds the mirror image of os starting loader Boot Loader, thus carries out hard disk startup;
Wherein, described pre-service comprises further:
The device path of newly-built media;
The subtype of described device path is set to file type and default file name; And
Described device path is attached on the device path of the startupoptions being masked as described GPT subregion.
2. method according to claim 1, is characterized in that, the path of the BootLoader under GPT subregion framework is :/EFI/BOOT/BOOTX64.efi or/EFI/Microsoft/BootMgr.efi.
3. method according to claim 1, is characterized in that, described pre-service comprises further:
The startupoptions being masked as described GPT subregion is checked, when it is Extensible Firmware Interface shell EFI-Shell, not additional described device path.
4., based on an os starting loading method of BIOS, it is characterized in that, comprise the following steps:
There is the subregion of FAT32 in basic input-output system BIOS identification hard disk after, be the device path mark will of startupoptions; And
The file path of os starting loader Boot Loader mirror image is attached in the mode of device path on the device path having beaten mark.
5. method according to claim 4, is characterized in that, the path of the Boot Loader under globally unique identifier partition table GPT subregion framework is :/EFI/BOOT/BOOTX64.efi or/EFI/Microsoft/BootMgr.efi.
6. method according to claim 4, is characterized in that, described method comprises further:
The startupoptions indicated of having fought each other checks, when it is Extensible Firmware Interface shell EFI-Shell, does not carry out described additional operations.
CN201110459181.0A 2011-12-31 2011-12-31 Hard disk startup method and the os starting loading method based on BIOS Active CN102591691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110459181.0A CN102591691B (en) 2011-12-31 2011-12-31 Hard disk startup method and the os starting loading method based on BIOS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110459181.0A CN102591691B (en) 2011-12-31 2011-12-31 Hard disk startup method and the os starting loading method based on BIOS

Publications (2)

Publication Number Publication Date
CN102591691A CN102591691A (en) 2012-07-18
CN102591691B true CN102591691B (en) 2015-08-26

Family

ID=46480403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110459181.0A Active CN102591691B (en) 2011-12-31 2011-12-31 Hard disk startup method and the os starting loading method based on BIOS

Country Status (1)

Country Link
CN (1) CN102591691B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103392174B (en) * 2012-11-29 2015-11-25 华为技术有限公司 Based on the system of flash memory storage, partition method and device
CN108829351B (en) * 2018-06-04 2021-10-12 成都傲梅科技有限公司 Method for converting MBR disk into GPT disk
CN109710319B (en) * 2018-12-06 2022-07-19 郑州云海信息技术有限公司 Method and system for identifying in-place hard disk of computer
CN111258666B (en) * 2020-01-22 2023-07-04 奇安信科技集团股份有限公司 Method and device for reading computer file, computer system and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038551A (en) * 2006-03-16 2007-09-19 南京大学 Method for implementing the start of Linux operation system in mobile hard disk
CN101753360A (en) * 2009-12-16 2010-06-23 中兴通讯股份有限公司 Method applying system start-up, parallel management system and application management system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038551A (en) * 2006-03-16 2007-09-19 南京大学 Method for implementing the start of Linux operation system in mobile hard disk
CN101753360A (en) * 2009-12-16 2010-06-23 中兴通讯股份有限公司 Method applying system start-up, parallel management system and application management system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
How to set up dynamic boot partition mirroring on GUID partition table (GPT) disks in Windows Server 2008;Microsoft;《http://support.microsoft.com/kb/951985/en-us》;20091002;第1-6页 *

Also Published As

Publication number Publication date
CN102591691A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
US8370835B2 (en) Method for dynamically generating a configuration for a virtual machine with a virtual hard disk in an external storage device
US9507604B2 (en) Boot method and boot system
US9239725B2 (en) System and method for installing an OS via a network card supporting PXE
US10810017B2 (en) Systems and methods for handling firmware driver dependencies in host operating systems while applying updates from bootable image file
CN103514015A (en) Method and device for booting operation system from storage medium
CN105739961B (en) Starting method and device of embedded system
US10606677B2 (en) Method of retrieving debugging data in UEFI and computer system thereof
US10303487B2 (en) System and method for booting an information handling system
CN102591675A (en) Method and system for management of multiple software images with shared memory blocks
CN115390996B (en) Virtual machine migration method and device, computing equipment and storage medium
CN102591691B (en) Hard disk startup method and the os starting loading method based on BIOS
CN109426527B (en) Computer system and method for sharing Bluetooth data between UEFI firmware and operating system
US9672047B1 (en) Systems and methods for accessing a bootable partition on a serial peripheral interface device
CN106250125A (en) Obtain the method and device of daily record
US9846621B1 (en) Disaster recovery—multiple restore options and automatic management of restored computing devices
WO2019144621A1 (en) Method, apparatus, and server for acquiring uefi os startup item
WO2016177067A1 (en) Mobile phone memory expanding method and terminal
US9852029B2 (en) Managing a computing system crash
US20200364040A1 (en) System and Method for Restoring a Previously Functional Firmware Image on a Non-Volatile Dual Inline Memory Module
TWI518594B (en) Computer system and activation method for computer system
US20180032351A1 (en) Information processing method and storage device
US11340882B2 (en) Systems and methods for enforcing update policies while applying updates from bootable image file
CN108052337A (en) A kind of firmware upgrade method and device of eMMC production tools
CN109254800B (en) Equipment information processing method, electronic equipment and server
CN102681859A (en) Method for starting Windows operation systems from USB (universal serial bus) mass storage device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170210

Address after: 124000 Panjin, Liaoning Province, coastal economic zone in the coastal area of the crown building, building 3018, room 3, Liaoning

Patentee after: Dawning Information Systems (Liaoning) Co., Ltd.

Address before: 300384 Tianjin city Xiqing District Huayuan Industrial Zone (outer ring) Haitai Huake Street No. 15 1-3

Patentee before: Sugon Information Industry Co., Ltd.