CN1612115A - Method for automatically recovering BIOS based on hard disk protective space - Google Patents

Method for automatically recovering BIOS based on hard disk protective space Download PDF

Info

Publication number
CN1612115A
CN1612115A CN 200310102351 CN200310102351A CN1612115A CN 1612115 A CN1612115 A CN 1612115A CN 200310102351 CN200310102351 CN 200310102351 CN 200310102351 A CN200310102351 A CN 200310102351A CN 1612115 A CN1612115 A CN 1612115A
Authority
CN
China
Prior art keywords
bios
hpa
hard disk
file
module
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
CN 200310102351
Other languages
Chinese (zh)
Other versions
CN1317650C (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB2003101023515A priority Critical patent/CN1317650C/en
Publication of CN1612115A publication Critical patent/CN1612115A/en
Application granted granted Critical
Publication of CN1317650C publication Critical patent/CN1317650C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention is a BIOS automatic recovering method based on harddisc protection space, as the computer starts, firstly detecting if there are BIOS files backuped in HPA: if no, backup the BIOS files in the HPA; further booting the BIOS: if the boot fails or the BIOS has been upgraded, use the backup BIOS files in the HPA to recover the BIOS modules. It implements BIOS safety protection; provides more reliable BIOS upgrading means; the BIOS data is stored in the HPA, uneasy to be destroyed; because it only needs the harddisc, it can in time and reliably recover the BIOS; it need not display in the automatic repairing course, needs no input device and also reduce the trouble in user interference and operation.

Description

Automatically recover the method for BIOS based on the hard disk protection space
Technical field
The present invention relates to a kind of automatic recovery basic input output system of computer (BasicInput/Output System; abbreviation BIOS) method; be meant a kind of especially based on hard disk protection space (Host Protected Area; be called for short HPA) the interior BIOS file that backs up; when starting computing machine to the detection of BIOS; automatically the method for reparation or upgrading BIOS belongs to the computer security technique field.
Background technology
Along with popularizing of computing machine, the competition of computer circle is growing more intense.Computer hardware is constantly upgraded, and supporting thereupon software module also will be upgraded.With computer motherboard, the kernel software module that its BIOS module is control main board work, but because the update of mainboard is increased, and the development﹠ testing cycle of mainboard BIOS shortens, the situation of the latent defect of BIOS module also day by day increases.In order to support new hardware better, for example (ATA is a kind of interface specification of hard disk to the S-ATA hard disk, is mainboard and hard-disk interface commonly used in the present PC in addition; S-ATA: serial ATA, a kind of interface specification of new hard disk), provide BIOS upgrade function in a lot of mainboard producers, the user can oneself utilize producer that BIOS is provided upgrading tool, BIOS on the mainboard is upgraded, replace original BIOS module of mainboard, the defective that exists in the BIOS module before can solving on the one hand can be supported new hardware device on the other hand better.
At present BIOS upgrading mode is fairly simple, and the user obtains (as downloading from mainboard producer website) behind the new BIOS file, operation ROMPaq, user and ROMPaq carry out necessary mutual after, just use new BIOS module and replace the original BIOS module of mainboard.
Because the manufacturer of mainboard is a lot, the mainboard kind of same producer is also many, and the user might be with the upgrade BIOS module of own computer motherboard of the BIOS file that does not match.And in BIOS module upgrade process, because technical reason, whether ROMPaq can not mate by new BIOS file and the mainboard of self-verifying; Therefore, if the user selects wrong BIOS file, just probably cause mainboard not work.In addition, outage, program exception situation such as withdraw from and also all can cause BIOS upgrading failure in the upgrading BIOS process, make the mainboard cisco unity malfunction.When the problems referred to above occurring, the user can't oneself solve, and mainboard need be delivered to special maintenance department and keep in repair, and is very inconvenient.
At present, provide a kind of when BIOS is destroyed among the BIOS of part mainboard, under specific situation, repair the method for BIOS: at first, even being provided with in the BIOS module when BIOS upgrades also is the program module (BootBlock) that remains unchanged, when this module also is the computer starting guiding, the inlet of BIOS module.Therefore, during computer starting, at first can move the BootBlock program, if BIOS goes wrong, and, the floppy drive, industrial standard architectures (the Industry StandardArchitecture that have disposed on the computing machine, be called for short ISA) display card and keyboard, then the BootBlock program just can be from shirtsleeve operation system of floppy disk guiding, and then, the user recovers the BIOS module of mainboard with the BIOS file of backup on floppy disk.This method can solve some problems that may occur in the process of upgrading BIOS module in some cases.
But present floppy drive is not the PC standard configuration gradually yet; If the user does not shift to an earlier date the back-up BIOS file, or the floppy disk of back-up BIOS file goes wrong; Or the user does not have ISA display card (present display card mainly is AGP, and seldom some is PCI, the display card of ISA interface seldom on the market, even some mainboards do not have the ISA interface yet at present, can't support the ISA display card) just can not recover BIOS.
In addition, during routine work, the BIOS module also might be because a variety of causes be destroyed.In the case, user's BIOS module does not back up often.Therefore, how to improve the stability of BIOS module, when guaranteeing that the BIOS module is destroyed, how making things convenient for timely reparation BIOS module is exactly an important problem.
HPA is a specific character of the hard disk stipulated in ATA and the S-ATA standard.Support the hard disk of this characteristic, can guard space be arranged in the final stage space of hard disk by some instructions, the data that the back guard space is set can not be accessed.Visit guard space if desired, need same with ATA instruction unpack hard disk protection space.Therefore can utilize this specific character of hard disk to guarantee the BIOS safety of data that is used for recovering automatically the BIOS module of preserving.Because BIOS at most need be with several megabyte (1 megabyte=1,000,000 byte); And present general tens G bytes of hard disk (1G byte=1,000,000,000 byte), so HPA can be arranged to enough greatly, is used to provide enough spaces to preserve a plurality of BIOS and backs up.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of and recovers the method for BIOS automatically based on the hard disk protection space, solves active computer safety technique field BIOS and goes wrong when causing PC not work, and BIOS is difficult for the problem of repairing.
Another object of the present invention is to provide a kind of method of recovering BIOS based on the hard disk protection space automatically; when BIOS is destroyed and the BIOS upgrading automatic reparation BIOS when going wrong; the method according to this invention; also BIOS can be backuped to space or other storage mediums of the non-HPA of hard disk; simultaneously in daily use; if BIOS is destroyed, BIOS also can be repaired automatically.
In order to realize purpose of the present invention, utilize the backup and the recovery of the HPA realization BIOS data of hard disk, it mainly comprises following processing:
During computer starting, at first detect and whether backed up the BIOS file among the HPA, if there is not the back-up BIOS file among the HPA; Then with the BIOS file backup in HPA;
When further guiding BIOS, indicate, then utilize the BIOS file that backs up among the HPA that the BIOS module is recovered if guiding failure or BIOS have upgrading.
In addition, when the BIOS of production or upgrading computing machine, automated back-up BIOS in the HPA of hard disc of computer so that when computer starting, detects the BIOS module, if variation has taken place for BIOS guiding failure or BIOS, then BIOS is repaired automatically.
The operation of data is that this one deck of physical sector at hard disk carries out among the HPA.For better with other program sharings HPA, and the BIOS file of management backup better.When realizing the HPA operation, can also define the storing mode of data among the HPA, be used to write down the size of HPA, comprise size, the BACKUP TIME of each BIOS backup file in the size of BIOS backup file storage area and position, the BIOS Backup Data district and preserve positional information etc.; And realize all method of data among the operation HPA, so just can manage HPA.Can set up the software interface function of a cover to the HPA operation: the function of the bottom is realized the sector read and write access to HPA in these functions for this reason; More high-rise then is by calling the read-write interface function of bottom, realizing the functions such as backup file accessing operation among the HPA.
As from the foregoing: the present invention has following characteristics:
1, realized the BIOS safeguard protection; During each the startup BIOS is carried out verification automatically, repair automatically, do not need user's intervention if BIOS is destroyed;
2, provide more reliable BIOS upgrading means; During the BIOS upgrading, the mainboard BIOS automated back-up does not need the manual back-up BIOS of user, and the Backup Data of mainboard BIOS is kept in hard disk or other storage mediums;
3, the Backup Data of mainboard BIOS is kept among the HPA, can guarantee that enough spaces preserve a plurality of BIOS backup and be difficult for destroyed;
When 4, recovering BIOS, only need hard disk, hard disk is the PC standard configuration, therefore can in time recover reliably; Need floppy drive when BIOS recovers at present, and floppy drive has not been the PC standard configuration at present, and floppy disk damages easily;
5, do not need to show in the repair process automatically;
6, do not need input equipment, for example: keyboard: repair process is automatically, does not need the user to import therebetween, does not also just need keyboard, the trouble that has also reduced user intervention and needed the user to operate.
Description of drawings
Fig. 1 is the process flow diagram of back-up BIOS file of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing and specific embodiment:
Referring to figure, one embodiment of the invention comprises following operation:
When starting computing machine, at first execution in step 1; Detect among the HPA whether backed up the BIOS file, if there is not the back-up BIOS file among the HPA; Then execution in step 2, otherwise execution in step 3; Concrete operation comprises:
Open HPA, and the form of canned data in the BIOS module on the mainboard with the BIOS file backuped among the HPA, close the HPA (not shown);
The above-mentioned backup of condition upgrade to(for) BIOS comprises:
A, Bootblock find by detecting: BIOS is backup not;
B, Bootblock find existing BIOS upgrading sign.
When starting computing machine, check at first whether BIOS has backed up the BIOS file, if do not have the back-up BIOS file among the HPA execution in step 2 with the BIOS file backup in HPA, specifically comprise:
Steps A ': when in detecting HPA, not having the back-up BIOS file, open the HPA in the hard disk;
Step B ': the data in the BIOS module are stored among the HPA with the form of BIOS file;
Step C ': the status information of ad-hoc location is set to not upgrade, and closes HPA;
Step D ': continue bootup process.
Continue guiding: if find BIOS guiding failure, and BootBlock finds that ad-hoc location is configured to the BIOS upgrade status, then carries out;
Step 32; Upgrade status is not provided with if BootBlock finds BIOS, and variation has taken place the BIOS content, thinks that then the BIOS module is destroyed, and then execution in step 33 is recovered.
Described step 33 is recovered to comprise automatically:
Step 331; Open the HPA in the hard disk, from wherein finding the BIOS file; (not shown)
Step 332; The storage space at the BIOS module place that this BIOS file copy is used to start to the mainboard, and with its covering; (not shown)
Step 333; Close the HPA in the hard disk.(not shown)
The BIOS module is carried out in the rejuvenation, if in guiding BIOS when success, comprise the processing procedure of upgrading sign:
Step C: open the HPA in the hard disk;
Step D: the data in the BIOS module are stored among the HPA with the form of BIOS file;
Step e: the status information of ad-hoc location is set to not upgrade, and closes HPA;
Step F: continue bootup process.
When upgrading BIOS, need the content of the new BIOS of backup, the concrete backup method and the principle of foundation are:
A, user carry out upgrading BIOS work, but the BootBlock module contents remains unchanged among the BIOS, does not upgrade;
B, behind upgrading BIOS, when for the first time guiding BIOS, after BootBlock finds the BIOS upgrading, the new BIOS of backup in HPA automatically;
C, at an ad-hoc location BIOS upgrade status is set, this ad-hoc location can be arranged in CMOS, also can be positioned in the hard disk particular sector, or medium other of BIOS can be stored the space of data; After normal BIOS guiding guiding, and above-mentioned ad-hoc location is provided with the BIOS upgrade status, then removes the BIOS upgrade status.
It should be noted that at last: above embodiment only in order to the explanation the present invention and and unrestricted technical scheme described in the invention; Therefore, although this instructions has been described in detail the present invention with reference to each above-mentioned embodiment,, those of ordinary skill in the art should be appreciated that still and can make amendment or be equal to replacement the present invention; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.

Claims (7)

1, a kind ofly recover the method for BIOS automatically, it is characterized in that this method comprises following step based on the hard disk protection space:
Step 1: during computer starting, at first detect and whether backed up the BIOS file among the HPA, if there is not the back-up BIOS file among the HPA, then execution in step 2, otherwise execution in step 3;
Step 2: with the BIOS file backup in HPA;
Step 3: further guide BIOS, and determine whether to utilize the BIOS file that backs up among the HPA that the BIOS module is recovered according to the result of guiding.
2, according to claim 1ly recover the method for BIOS automatically, it is characterized in that described step 3 specifically comprises based on the hard disk protection space:
Step 31: when BIOS guiding failure, detect the status information in the ad-hoc location among the HPA, if this status information is configured to not upgrade status of BIOS, then execution in step 33;
Step 32: be not provided with if detect the BIOS upgrade status, and variation has taken place the BIOS content, then execution in step 33;
Step 33: the BIOS module is recovered with the BIOS file that backs up among the HPA.
3, according to claim 1 and 2ly recover the method for BIOS automatically, it is characterized in that, described the BIOS module is recovered to comprise based on the hard disk protection space:
Step 331: open the HPA in the hard disk, from wherein finding the BIOS file;
Step 332: with the storage space of this BIOS file copy to the BIOS module place that is used to start, and with its covering;
Step 333: close the HPA in the hard disk, proceed follow-up work.
4, according to claim 3ly recover the method for BIOS automatically, it is characterized in that before step 331, also further detecting,, then create this HPA if do not have HPA in the hard disk to whether having HPA in the hard disk based on the hard disk protection space.
5, according to claim 1ly recover the method for BIOS automatically, it is characterized in that the step of back-up BIOS file comprises in the HPA in hard disk based on the hard disk protection space:
Steps A: after the BIOS module upgraded, ad-hoc location among the HPA is arranged to the BIOS upgrade status;
Step B: when to the BIOS channeling conduct, detect the status information of this ad-hoc location, if this status information represents to upgrade execution in step C then; Otherwise execution in step F;
Step C: open the HPA in the hard disk;
Step D: the data in the BIOS module are stored among the HPA with the form of BIOS file;
Step e: the status information of ad-hoc location is set to not upgrade, and closes HPA;
Step F: continue bootup process.
6, according to claim 1ly recover the method for BIOS automatically, it is characterized in that the step of back-up BIOS file comprises in the HPA in hard disk based on the hard disk protection space:
Steps A ': when in detecting HPA, not having the back-up BIOS file, open the HPA in the hard disk;
Step B ': the data in the BIOS module are stored among the HPA with the form of BIOS file;
Step C ': the status information of ad-hoc location is set to not upgrade, and closes HPA;
Step D ': continue bootup process.
7, describedly recover the method for BIOS automatically based on the hard disk protection space according to claim 2 or 5 or 6, it is characterized in that, described ad-hoc location is the memory sector of stipulating in memory location among the CMOS of computer motherboard or the hard disk.
CNB2003101023515A 2003-10-27 2003-10-27 Method for automatically recovering BIOS based on hard disk protective space Expired - Lifetime CN1317650C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2003101023515A CN1317650C (en) 2003-10-27 2003-10-27 Method for automatically recovering BIOS based on hard disk protective space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2003101023515A CN1317650C (en) 2003-10-27 2003-10-27 Method for automatically recovering BIOS based on hard disk protective space

Publications (2)

Publication Number Publication Date
CN1612115A true CN1612115A (en) 2005-05-04
CN1317650C CN1317650C (en) 2007-05-23

Family

ID=34756376

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2003101023515A Expired - Lifetime CN1317650C (en) 2003-10-27 2003-10-27 Method for automatically recovering BIOS based on hard disk protective space

Country Status (1)

Country Link
CN (1) CN1317650C (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100437502C (en) * 2005-12-30 2008-11-26 联想(北京)有限公司 Safety chip based virus prevention method
CN104102505A (en) * 2013-04-12 2014-10-15 昆达电脑科技(昆山)有限公司 Computer power-on method
CN104657232A (en) * 2013-11-22 2015-05-27 鸿富锦精密工业(武汉)有限公司 BIOS automatic recovery system and BIOS automatic recovery method
CN105144185A (en) * 2013-04-23 2015-12-09 惠普发展公司,有限责任合伙企业 Verifying controller code and system boot code
CN105867891A (en) * 2015-09-22 2016-08-17 乐视致新电子科技(天津)有限公司 Guide loading device and method, electronic equipment and mainboard replacement method thereof
CN107329855A (en) * 2017-06-23 2017-11-07 合肥联宝信息技术有限公司 Reduce the method and device of firmware information
CN108052418A (en) * 2017-12-21 2018-05-18 曙光信息产业(北京)有限公司 A kind of method and apparatus of the backup or recovery of BIOS for blade server
US11418335B2 (en) 2019-02-01 2022-08-16 Hewlett-Packard Development Company, L.P. Security credential derivation
US11520662B2 (en) 2019-02-11 2022-12-06 Hewlett-Packard Development Company, L.P. Recovery from corruption

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9012949D0 (en) * 1989-08-25 1990-08-01 Ibm An apparatus and method for loading bios from a diskette in a personal computer system
CN1180346C (en) * 2001-02-20 2004-12-15 技嘉科技股份有限公司 Autoamtic safe reset method of BIOS storage in computer system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100437502C (en) * 2005-12-30 2008-11-26 联想(北京)有限公司 Safety chip based virus prevention method
CN104102505A (en) * 2013-04-12 2014-10-15 昆达电脑科技(昆山)有限公司 Computer power-on method
CN105144185A (en) * 2013-04-23 2015-12-09 惠普发展公司,有限责任合伙企业 Verifying controller code and system boot code
CN105144185B (en) * 2013-04-23 2018-06-05 惠普发展公司,有限责任合伙企业 Access control device code and system start code
US10733288B2 (en) 2013-04-23 2020-08-04 Hewlett-Packard Development Company, L.P. Verifying controller code and system boot code
US11520894B2 (en) 2013-04-23 2022-12-06 Hewlett-Packard Development Company, L.P. Verifying controller code
CN104657232A (en) * 2013-11-22 2015-05-27 鸿富锦精密工业(武汉)有限公司 BIOS automatic recovery system and BIOS automatic recovery method
CN105867891A (en) * 2015-09-22 2016-08-17 乐视致新电子科技(天津)有限公司 Guide loading device and method, electronic equipment and mainboard replacement method thereof
CN107329855A (en) * 2017-06-23 2017-11-07 合肥联宝信息技术有限公司 Reduce the method and device of firmware information
CN108052418A (en) * 2017-12-21 2018-05-18 曙光信息产业(北京)有限公司 A kind of method and apparatus of the backup or recovery of BIOS for blade server
US11418335B2 (en) 2019-02-01 2022-08-16 Hewlett-Packard Development Company, L.P. Security credential derivation
US11520662B2 (en) 2019-02-11 2022-12-06 Hewlett-Packard Development Company, L.P. Recovery from corruption

Also Published As

Publication number Publication date
CN1317650C (en) 2007-05-23

Similar Documents

Publication Publication Date Title
JP4371771B2 (en) Power management block used in non-volatile memory system
CN1244867C (en) Method and system for keeping firmware edition in data processing system
CN1277211C (en) Repair method for computer operation system
US8341386B2 (en) Method for updating basic input/output system and method for repairing thereof
CN101334825B (en) Application program management and operation system and method
US9417967B2 (en) Computing device and method for automatically recovering bios of computing device
US20110022601A1 (en) Block level tagging with file level information
KR100339051B1 (en) Auto-recovery system of LINUX using a flash card
KR20100054817A (en) Method and system for repairing damaged hard disk file systems
CN1317650C (en) Method for automatically recovering BIOS based on hard disk protective space
CN1924821A (en) Firmware renewing system and method
US8260748B1 (en) Method and apparatus for capturing data from a backup image
US20160124816A1 (en) Computing device and method for recovering bios of computing device
CN1501252A (en) Automatic restoring method and system for basic input and output system
CN116361817B (en) Protection method of ubi file system under Linux
CN111984195A (en) Method and device for improving stability of embedded Linux system
KR100853941B1 (en) Multimedia storage device and data recovering method of the device
CN2563637Y (en) Starting up operation system device of computer host
CN1818824A (en) High-reliable personal computer and operating system thereof
KR20110039416A (en) Data storage method, apparatus and system for interrupted write recovery
CN1645485A (en) Method for rapid copying hard disk with protective subareas
CN102831032A (en) Repair system and method for master boot record of hard disc
CN1282922C (en) Method and device for renewing firmware by storage card
JP2005149248A (en) Metadata restoration system, method thereof, storage device and program therefor
CN100458719C (en) Method and system obtaining and compliling basic input and output system information

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
CX01 Expiry of patent term

Granted publication date: 20070523

CX01 Expiry of patent term