CN103677875A - Method for starting electronic equipment, method for controlling permission and electronic equipment - Google Patents

Method for starting electronic equipment, method for controlling permission and electronic equipment Download PDF

Info

Publication number
CN103677875A
CN103677875A CN201210335669.7A CN201210335669A CN103677875A CN 103677875 A CN103677875 A CN 103677875A CN 201210335669 A CN201210335669 A CN 201210335669A CN 103677875 A CN103677875 A CN 103677875A
Authority
CN
China
Prior art keywords
boot record
main boot
storage unit
electronic equipment
backup
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.)
Pending
Application number
CN201210335669.7A
Other languages
Chinese (zh)
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 CN201210335669.7A priority Critical patent/CN103677875A/en
Publication of CN103677875A publication Critical patent/CN103677875A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for starting electronic equipment, a method for controlling permission and the electronic equipment. The electronic equipment comprises a first storage unit and a second storage unit, the second storage unit is different from the first storage unit, the first storage unit is used for storing a main guide record starting an operation system, and the second storage unit is used for storing a backup main guide record obtained after the main guide record is backed up. The method for starting the electronic equipment comprises the steps that in the process of starting the operation system, when the main guide record is in an abnormal state, the backup main guide record of the second storage unit is obtained; the backup main guide record is stored into an internal memory used for starting the operation system; the electronic equipment is initialized according to the backup main guide record so that the operation system can enter the starting process, the operation system can be started under the condition that the main guide record is damaged, and then user data are restored, and user experience is improved.

Description

Method, authority control method and electronic equipment that a kind of electronic equipment starts
Technical field
The present invention relates to field of computer technology, relate in particular to method, authority control method and electronic equipment that a kind of electronic equipment starts.
Background technology
At present, along with scientific and technical development, computing machine is more and more general being applied in daily life, no matter existing computing machine is desktop computer or notebook, BIOS(Basic Input Output System Basic Input or Output System (BIOS) is used in capital) start start, the indispensable module of BIOS during as computer booting plays a part very important in computer realm.
In existing technology, be to read BIOS BBC(Boot block code, bootstrap block by starting BIOS) in data, start start.Computing machine is after switching on power, first system checks inner each equipment, common complete POST(Power On Self Test, power-on self-test) check and the CPU of test computer, 640k base memory, more than 1M information such as exented memory, ROM, mainboard, CMOS memory, serial paralled interface, display card, soft or hard disc subsystem and keyboard will be comprised, once pinpoint the problems in self check, system will provide information or whistling warning.BIOS be directly and the I/O(Input/Output I/O of computing machine) equipment is connected, and by FPDP, gives an order, and transmits or receive the data of various external units, realizes the direct control of software program to hardware.
System completes after POST self check, boot sequence search disk drive, hard drive, CD-ROM or the webserver etc. that first BIOS just arranges middle preservation according to CMOS start driver effectively, the vectoring information of read operation system Main Boot Record, then by operating system control, give vectoring information, by the sequence starting of main vectoring information complete operation system.
But in the process of present inventor's invention technical scheme in realizing the embodiment of the present application, find that above-mentioned technology at least exists following technical matters:
Because BIOS utilizes the vectoring information of Main Boot Record to start the operating system, so in the situation that Main Boot Record is destroyed, the technical matters that existence cannot start the operating system.
Summary of the invention
The embodiment of the present application is by a kind of method that provides electronic equipment to start, method and the electronic equipment of control of authority, solved in prior art, exist in the situation that Main Boot Record is destroyed, the technical matters that cannot start the operating system.
On the one hand, a kind of method that the embodiment of the present application provides electronic equipment to start, being applied to one is provided with in the electronic equipment of operating system, described electronic equipment comprises the first storage unit and the second storage unit, wherein said the second storage unit is different from described the first storage unit, described the first storage unit is for storing the Main Boot Record that starts described operating system, described the second storage unit is for storing the backup Main Boot Record that described Main Boot Record is backed up to rear acquisition, described method comprises: in described os starting process, when described Main Boot Record is during in up-set condition, obtain the described backup Main Boot Record of described the second storage unit, described backup Main Boot Record is stored to for starting the internal storage of described operating system, according to described backup Main Boot Record, described electronic equipment is carried out to initialization, so that described operating system enters start-up course.
Preferably, describedly according to described backup Main Boot Record, described electronic equipment is carried out to initialization, so that described operating system enters start-up course, specifically comprise: from described internal storage, read described backup Main Boot Record; Based on described backup Main Boot Record, described electronic equipment is carried out to initialization, so that described operating system enters start-up course.
Preferably, described the second storage unit is specially: the network storage unit that the external storage unit of the built-in storage unit of described electronic equipment, described electronic equipment or described electronic equipment can be accessed.
Preferably, before the described backup Main Boot Record of described the second storage unit of described acquisition, described method also comprises: in described os starting process, whether detect described Main Boot Record in normal condition; Wherein, when described Main Boot Record being detected in up-set condition, execution step: the described backup Main Boot Record that obtains described the second storage unit.
Preferably, whether the described Main Boot Record of described detection, in normal condition, specifically comprises: whether the Basic Input or Output System (BIOS) that detects described electronic equipment can read described Main Boot Record; Wherein, in the time can reading, show that described Main Boot Record is in normal condition; In the time can not reading, show that described Main Boot Record is in up-set condition.
Preferably, describedly according to described backup Main Boot Record, described electronic equipment is carried out to initialization, so that after described operating system enters start-up course, also comprise: based on described backup Main Boot Record, recover described Main Boot Record.
Preferably, described according to described Main Boot Record, described electronic equipment is carried out to initialization, make described operating system enter start-up course, specifically comprise: will be stored to internal storage for starting the described Main Boot Record of described operating system; From described internal storage, read described Main Boot Record; Based on described Main Boot Record, described electronic equipment is carried out to initialization, make described operating system enter start-up course.
The application another embodiment provide a kind of authority control method, be applied to an electronic equipment that operating system is installed, described electronic equipment comprises the first storage unit and the second storage unit, wherein said the second storage unit is different from described the first storage unit, described the first storage unit is for storing the Main Boot Record that starts described operating system, described the second storage unit is for storing the backup Main Boot Record that described Main Boot Record is backed up to rear acquisition, described method comprises: receive the access instruction that a pair of described Main Boot Record and/or described backup Main Boot Record conduct interviews, judge that whether described access instruction is for described Main Boot Record and/or described backup Main Boot Record being carried out to the write command of write operation, if so, judge whether described write command meets first pre-conditioned, if so, based on described access instruction, described Main Boot Record and/or described backup Main Boot Record are carried out to write operation.
Preferably, judging that whether described access instruction is for after described Main Boot Record and/or described backup Main Boot Record are carried out to the write command of write operation, also comprise: when described access instruction is not when described Main Boot Record and/or described backup Main Boot Record are carried out to the write command of write operation, carry out described access instruction and operate accordingly.
Preferably, described judge described write command whether meet first pre-conditioned after, described method also comprises: when described write command does not meet first when pre-conditioned, generate an information warning; Export described information warning, with access instruction described in reminding user, do not there are access rights.
Preferably, based on described access instruction, after described Main Boot Record or described backup Main Boot Record are carried out to write operation, also comprise: generate an information; Export described information, to point out access instruction successful execution described in user.
On the other hand, also provide a kind of electronic equipment in the embodiment of the present application, described electronic equipment is provided with operating system, and described electronic equipment also comprises: the first storage unit, for storing for starting the Main Boot Record of described operating system; The second storage unit, described the second storage unit is different from described the first storage unit, and described the second storage unit is for storing the backup Main Boot Record that described Main Boot Record is backed up to rear acquisition; Obtain unit, in described os starting process, when described Main Boot Record is during in up-set condition, obtain the backup Main Boot Record of described the second storage unit; Internal storage, for storing the described backup Main Boot Record that starts described operating system.Processing unit, for according to the described backup Main Boot Record of internal storage storage, carries out initialization to described electronic equipment, so that described operating system enters start-up course.
Preferably, described processing unit specifically for: from described internal storage, read described backup Main Boot Record; Based on described backup Main Boot Record, described electronic equipment is carried out to initialization, so that described operating system enters start-up course.
Preferably, described the second storage unit is specially: the network storage unit that the external storage unit of the built-in storage unit of described electronic equipment, described electronic equipment or described electronic equipment can be accessed.
Preferably, described electronic equipment also comprises detecting unit, be used in described os starting process, whether detect described Main Boot Record in normal condition, wherein, when described record being detected when undesired, by described acquisition unit, carried out the described backup Main Boot Record that obtains described storage unit.
Preferably, described detecting unit specifically for: whether the Basic Input or Output System (BIOS) that described detecting unit detects described electronic equipment can read described Main Boot Record; Wherein, in the time can reading, show that described Main Boot Record is in normal condition; In the time can not reading, show that described Main Boot Record is in up-set condition.
Preferably, described processing unit also for: when described Main Boot Record is during in normal condition, according to described Main Boot Record, described electronic equipment is carried out to initialization, makes described operating system enter start-up course.
Preferably, described internal storage is also for storing the described Main Boot Record that starts described operating system.
Preferably, described electronic equipment also comprises recovery unit, for based on described backup Main Boot Record, recovers described Main Boot Record.
A kind of electronic equipment is also provided in the embodiment of the present application, and described electronic equipment is provided with operating system, and described electronic equipment comprises: the first storage unit, for storing for starting the Main Boot Record of described operating system; The second storage unit, described the second storage unit is different from described the first storage unit, for storing the backup Main Boot Record that described Main Boot Record is backed up to rear acquisition; Receiving element, the access instruction conducting interviews for receiving a pair of described Main Boot Record and/or described backup Main Boot Record; The first judging unit, for judging that whether described access instruction is for described Main Boot Record and/or described backup Main Boot Record being carried out to the write command of write operation; The second judging unit, for when described access instruction is for when carrying out the write command of write operation to described Main Boot Record and/or described backup Main Boot Record, judges whether described write command meets first pre-conditioned; Processing unit, for meeting first when described write command when pre-conditioned, based on described write command, carries out write operation to described Main Boot Record and/or described backup Main Boot Record.
Preferably, described processing unit also, for not being when described Main Boot Record and/or described backup Main Boot Record are carried out to the write command of write operation when described access instruction, is carried out with described access instruction and is operated accordingly.
Preferably, described processing unit also for: when described write command does not meet first when pre-conditioned, generate an information warning, described electronic equipment also comprises output unit, be used for exporting described information warning, with access instruction described in reminding user, do not there are access rights.
Preferably, described processing unit is also for generating an information, and described output unit is also for exporting described information, to point out access instruction successful execution described in user.
The one or more technical schemes that provide in the embodiment of the present application, at least have following technique effect or advantage:
In one embodiment of the invention, due in os starting process, when Main Boot Record is during in up-set condition, obtain the backup Main Boot Record of the second storage unit, then backup Main Boot Record is stored to the internal storage for starting the operating system, finally, according to backup Main Boot Record, electronic equipment is carried out to initialization, so that operating system enters start-up course.So efficiently solve in the situation that Main Boot Record is destroyed, cause the technical matters that cannot start the operating system, can in the situation that Main Boot Record is destroyed, start the operating system, and then after os starting, can realize the recovery of user data, and then promote user's experience.
Further, due in the situation that Main Boot Record is destroyed, can be directly based on backup Main Boot Record, recover described Main Boot Record, so the operation of repairing in the embodiment of the present application Main Boot Record has simple technique effect, this has also promoted user's experience further.
Further; user to Main Boot Record and/or backup Main Boot Record can not directly access time; first method in the embodiment of the present application can judge whether access is write command; when being write command; whether judgement access has access rights again; by this double judgment mechanism, so there is the vectoring information that can protect in Main Boot Record not by malicious sabotage, improve the technique effect of secure user data.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of electronic equipment starting method in the application one embodiment;
Fig. 2 is the process flow diagram of authority control method in the application one embodiment;
Fig. 3 is the framework map of electronic equipment in the application one embodiment;
Fig. 4 is the framework map of electronic equipment in another embodiment of the application.
Embodiment
One embodiment of the invention is by a kind of method that provides electronic equipment to start, method and the electronic equipment of control of authority, solved in prior art in the situation that Main Boot Record is destroyed, causes the technical matters that cannot start the operating system.
The technical scheme of one embodiment of the invention is for solving the above problems, and general thought is as follows:
By in os starting process, when Main Boot Record is during in up-set condition, obtain the backup Main Boot Record of the second storage unit, then backup Main Boot Record is stored to the internal storage for starting the operating system, finally according to backup Main Boot Record, electronic equipment is carried out to initialization, so that operating system enters start-up course.Therefore can in the situation that Main Boot Record is destroyed, start the operating system, and then after os starting, can realize the recovery of user data, and then promote user's experience.
In order better to understand technique scheme, below in conjunction with Figure of description and concrete embodiment, technique scheme is described in detail.
A kind of method that the present embodiment provides electronic equipment to start, is applied to one and is provided with in the electronic equipment of operating system, and as shown in Figure 3, electronic equipment comprises: the first storage unit 301, for storing the Main Boot Record for starting the operating system; The second storage unit 302, the second storage unit 302 are different from the first storage unit 301, the second storage unit 302 for storing the backup Main Boot Record that Main Boot Record is backed up to rear acquisition; Obtain unit 303, in os starting process, when Main Boot Record is during in up-set condition, obtain the backup Main Boot Record of the second storage unit 302; Internal storage 304, for storing the backup Main Boot Record starting the operating system; Processing unit 305, for according to the backup Main Boot Record of internal storage 304 storages, carries out initialization to electronic equipment, so that operating system enters start-up course.
In concrete application, electronic equipment can notebook computer, also can desktop computer, can also panel computer etc. there is the electronic equipment of operating system.At this, just given an example no longer one by one.
Below with reference to Fig. 1, the method in the embodiment of the present invention is described in detail.
First be: step 101: in os starting process, when Main Boot Record is during in up-set condition, obtain the backup Main Boot Record of the second storage unit 302.
Wherein, the second storage unit 302 is specifically as follows: the network storage unit that the built-in storage unit of electronic equipment, the external storage unit of electronic equipment or electronic equipment can be accessed.
In another embodiment, before obtaining the backup Main Boot Record of the second storage unit 302,, before step 101, also comprise: in os starting process, whether detect Main Boot Record in normal condition; Wherein, when Main Boot Record being detected in up-set condition, by performing step 101, can obtain the backup Main Boot Record of the second storage unit 302.
Wherein, whether detect Main Boot Record in normal condition, specifically comprise: whether the Basic Input or Output System (BIOS) of detected electrons equipment can read Main Boot Record; In the time can reading, show that Main Boot Record is in normal condition; In the time can not reading, show that Main Boot Record is in up-set condition.
Detecting Main Boot Record whether after normal condition, the method in the embodiment of the present application also comprises: when Main Boot Record is during in normal condition, according to Main Boot Record, electronic equipment is carried out to initialization, make operating system enter start-up course.After execution step 101, the method in the embodiment of the present application enters step 102: backup Main Boot Record is stored to the internal storage 304 for starting the operating system.
After execution step 102, the method in the embodiment of the present application enters step 103: according to backup Main Boot Record, electronic equipment is carried out to initialization, so that operating system enters start-up course.
Wherein, according to backup Main Boot Record, electronic equipment is carried out to initialization, so that operating system enters start-up course, specifically comprise: from internal storage 304, read backup Main Boot Record; Based on backup Main Boot Record, electronic equipment is carried out to initialization, so that operating system enters start-up course.
Wherein, in the method for the embodiment of the present application, according to backup Main Boot Record, electronic equipment is carried out to initialization, so that after operating system enters start-up course, also comprise step: based on backup Main Boot Record, recover Main Boot Record.
In order more to clearly demonstrate the implementation procedure of the embodiment of the present application method, to take below electronic equipment for example notebook computer implementation procedure is described in detail as example, wherein, notebook computer is provided with for example Windows of operating system, notebook computer comprises a hard disk and flash memories, wherein the Master boot sector of hard disk (is positioned at the Cylinder0 of hard disk, head0, Sector1, i.e. 0 cylinder of hard disk, 0 magnetic head, 1 sector) store the MBR(Master Boot Record of the hard disk for starting the operating system; Main Boot Record), MBR, by disk partition program creation, interrupts 13 by Int 13() read, flash memories stores the backup MBR that MBR is backed up to rear acquisition.
Certainly, in another embodiment of the present invention, operating system can be Linux, Unix, Android, IOS etc., the first storage unit 301 is specifically as follows portable hard drive etc., the built-in storage unit that the second storage unit 302 is specifically as follows electronic equipment is flash memories for example, also can be the external storage unit of electronic equipment mobile USB flash disk for example, the network storage unit that can also can access for electronic equipment is cloud storage hard disk for example, and the present invention is not restricted.
Below the implementation procedure of the starting method of the electronic equipment in the embodiment of the present application is explained in detail:
Wherein, step 101 is in specific implementation process, in the situation that Basic Input or Output System (BIOS) can not read Main Boot Record, just show that Main Boot Record is in up-set condition, so notebook computer will obtain backup Main Boot Record from the second storage unit 302.
In another embodiment, in the situation that Basic Input or Output System (BIOS) can read Main Boot Record, show that Main Boot Record is in normal condition, obtain the Main Boot Record of the first storage unit 301.
Specifically, notebook computer is after switching on power, first inner each equipment is checked, conventionally complete POST(Power On Self Test, power-on self-test) will comprise the information such as CPU, internal memory, ROM, mainboard, storer, serial paralled interface, display card, soft or hard disc subsystem and keyboard of check and test computer.
In the abnormal situation of MBR, Basic Input or Output System (BIOS) can not read MBR from hard disk, and therefore, BIOS reads the backup Main Boot Record in flash memories.
In the normal situation of MBR, Basic Input or Output System (BIOS) reads the Main Boot Record of hard disk from hard disk, and Main Boot Record is stored to the internal storage (specifically referring to step 102) for starting Windows operating system.Notebook computer reads Main Boot Record from internal storage, based on Main Boot Record, notebook computer is carried out to initialization, so that Windows operating system enters start-up course (specifically referring to step 103).
Step 102, in specific implementation process, during in up-set condition, is stored to interior storage unit 304 for start the operating system by backup Main Boot Record at MBR.
For example, notebook computer is stored to the interior storage unit for starting the operating system by the backup Main Boot Record obtaining in step 102.
In step 103, from internal storage 304, read backup Main Boot Record, based on backup Main Boot Record, electronic equipment is carried out to initialization, so that operating system enters start-up course.Wherein, according to backup Main Boot Record, electronic equipment is carried out to initialization, so that after operating system enters start-up course, also comprise: based on backup Main Boot Record, recover Main Boot Record.
For example: notebook computer reads backup Main Boot Record from internal storage, based on backup Main Boot Record, notebook computer is carried out to initialization, so that Windows operating operation system enters start-up course.Notebook computer also recovers Main Boot Record according to the backup Main Boot Record in flash memories.
In order to protect vectoring information in Main Boot Record not by malicious sabotage; improve secure user data; further promoting user experiences; a kind of authority control method is also provided in the embodiment of the present application; in order better to understand technique scheme, below in conjunction with Figure of description and embodiment, technique scheme is described in detail.
The method of the control of authority in the present embodiment, is applied to one and is provided with in the electronic equipment of operating system, as shown in Figure 4,
Electronic equipment comprises: the first storage unit 401, for storing the Main Boot Record for starting the operating system; The second storage unit 402, the second storage unit 402 are different from the first storage unit 401, for storing the backup Main Boot Record that Main Boot Record is backed up to rear acquisition.
Please refer to Fig. 2, the method in the embodiment of the present invention comprises:
Step 201: receive the access instruction that a pair of Main Boot Record and/or backup Main Boot Record conduct interviews.
After execution step 201, the method in the embodiment of the present application enters step 202: judge that whether access instruction is for to Main Boot Record and/or back up the write command that Main Boot Record is carried out write operation.
Wherein, judging that whether access instruction is for after Main Boot Record and/or backup Main Boot Record are carried out to the write command of write operation, also comprise: when access instruction is not for to Main Boot Record and/or backup Main Boot Record while carrying out the write command of write operation, carry out with access instruction and operate accordingly, for example read operation.
After execution step 202, the method in the embodiment of the present application enters step 203: first pre-conditioned if access instruction for for to Main Boot Record and/or backup Main Boot Record while carrying out the write command of write operation, judges whether write command meets.
Wherein, judge write command whether meet first pre-conditioned after, also comprise: when write command does not meet first when pre-conditioned, generate an information warning; Output information warning, does not have access rights with reminding user access instruction.
After execution step 203, the method in the embodiment of the present application enters step 204: if write command meets first when pre-conditioned, based on access instruction, Main Boot Record and/or backup Main Boot Record are carried out to write operation.
Wherein, based on access instruction, after Main Boot Record or backup Main Boot Record are carried out to write operation, also comprise: generate an information; Output information, to point out user's access instruction successful execution.
Below the implementation procedure of the authority control method in the embodiment of the present application is explained in detail:
Continue to continue to use the example in the first embodiment, step 201, in specific implementation process, receives the access instruction that a pair of Main Boot Record and/or backup Main Boot Record conduct interviews.
For example: notebook computer is after starting Windows operating system, open the application program of a system tool class, user generates by this system tool the access instruction that Main Boot Record on a pair of hard disk and/or the backup Main Boot Record on flash memories conduct interviews.
In step 202: judge that whether access instruction is for Main Boot Record and/or backup Main Boot Record being carried out to the write command of write operation.
When judgement access instruction is not for to Main Boot Record and/or backup Main Boot Record while carrying out the write command of write operation, illustrate that access instruction is for Main Boot Record and/or backup Main Boot Record being carried out to the instruction of reading of read operation, execution read operation.
When judgement access instruction is for to Main Boot Record and/or backup Main Boot Record while carrying out the write command of write operation, illustrate that access instruction is for Main Boot Record and/or backup Main Boot Record being carried out to the write command of write operation, performing step 203.
For example: notebook computer judges whether current accessed instruction is for MBR and/or backup MBR are carried out to the instruction of write operation.When judgement access instruction be for MBR and/or backup MBR are carried out read operation read instruction time, carry out read operation; When judgement access instruction is for to MBR and/or backup MBR while carrying out the write command of write operation, execution step 203.
In step 203: when access instruction is for to Main Boot Record and/or backup Main Boot Record while carrying out the write command of write operation, judge that whether satisfied write command is first pre-conditioned.
When write command meets first when pre-conditioned, execution step 204.
When write command does not meet first when pre-conditioned, generate an information warning, output information warning, does not have access rights with reminding user access instruction.In instructions, can write, allow user know and so on
For example: notebook computer judges in access instruction whether comprise and determine that this access instruction allows the information of access, comprise and determine when this access instruction allows the information of access, execution step 204 in access instruction; In access instruction, do not comprise and determine when this access instruction allows the information of access, generate the information warning of " dear user, you do not access the authority of MBR and/or backup MBR ", to allow user know that access instruction does not have access rights.
Continue along using an embodiment, in step 204: when write command meets first when pre-conditioned, based on access instruction, Main Boot Record and/or backup Main Boot Record are carried out to write operation to recording.Wherein, based on access instruction, after Main Boot Record or backup Main Boot Record are carried out to write operation, also comprise: generate an information; Output information, to point out user's access instruction successful execution.
For example, when judgement access instruction meets first when pre-conditioned, carry out write operation, and generate the information of " dear user, you have completed the modification to MBR and/or backup MBR ", to allow user know access instruction successful execution.
The application another embodiment also provide a kind of electronic equipment, for realizing the method for Fig. 1 and specific embodiment thereof, please refer to Fig. 3, and Fig. 3 is the Organization Chart of the present embodiment electronic equipment.
As shown in Figure 3, the electronic equipment of the present embodiment is provided with an operating system, and electronic equipment comprises:
The first storage unit 301, for storing the Main Boot Record for starting the operating system; The second storage unit 302, the second storage unit 302 are different from the first storage unit 301, the second storage unit 302 for storing the backup Main Boot Record that Main Boot Record is backed up to rear acquisition; Obtain unit 303, in os starting process, when Main Boot Record is during in up-set condition, obtain the backup Main Boot Record of the second storage unit 302; Internal storage 304, for storing the backup Main Boot Record starting the operating system; Processing unit 305, for according to the backup Main Boot Record of internal storage 304 storages, carries out initialization to electronic equipment, so that operating system enters start-up course.
Further, processing unit 305 specifically for: from internal storage 304, read backup Main Boot Record; Based on backup Main Boot Record, electronic equipment is carried out to initialization, so that operating system enters start-up course.
Further, the second storage unit 302 is specially: the network storage unit that the built-in storage unit of electronic equipment, the external storage unit of electronic equipment or electronic equipment can be accessed.
Further, electronic equipment also comprises detecting unit 306, in os starting process, whether detect Main Boot Record in normal condition, wherein, when record being detected when undesired, by obtaining unit 303, carry out the backup Main Boot Record that obtains storage unit.
Further, detecting unit 306 specifically for: whether the Basic Input or Output System (BIOS) of detecting unit 306 detected electrons equipment can read Main Boot Record; Wherein, in the time can reading, show that Main Boot Record is in normal condition; In the time can not reading, show that Main Boot Record is in up-set condition.
Further, processing unit 305 also for: when Main Boot Record is during in normal condition, according to Main Boot Record, electronic equipment is carried out to initialization, makes operating system enter start-up course.
Further, internal storage 304 is also for storing the Main Boot Record starting the operating system.
Further, electronic equipment also comprises recovery unit 307, for based on described backup Main Boot Record, recovers described Main Boot Record.
The electronic equipment that various variation patterns in method in previous embodiment and instantiation are equally applicable to the present embodiment, by the detailed description of aforementioned right method, those skilled in the art can clearly know the implementation method of electronic equipment in the present embodiment, so succinct for instructions, is not described in detail in this.
The application another embodiment also provide a kind of electronic equipment, for realizing the method for Fig. 2 and specific embodiment thereof, please refer to Fig. 4, and Fig. 4 is the Organization Chart of the present embodiment electronic equipment.
As Fig. 4, the electronic equipment of the present embodiment is provided with operating system, and electronic equipment comprises:
The first storage unit 401, for storing the Main Boot Record for starting the operating system; The second storage unit 402, the second storage unit 402 are different from the first storage unit 401, for storing the backup Main Boot Record that Main Boot Record is backed up to rear acquisition; Receiving element 403, the access instruction conducting interviews for receiving a pair of Main Boot Record and/or backup Main Boot Record; The first judging unit 404, for judging that whether access instruction is for Main Boot Record and/or backup Main Boot Record being carried out to the write command of write operation; The second judging unit 405, for when access instruction is for for to Main Boot Record and/or backup Main Boot Record while carrying out the write command of write operation, judges whether write command meets first pre-conditioned; Processing unit 406, for meeting first when write command when pre-conditioned, based on write command, carries out write operation to Main Boot Record and/or backup Main Boot Record.
Further, processing unit 406 is not also for being for Main Boot Record and/or backup Main Boot Record while carrying out the write command of write operation, are carried out with access instruction and operated accordingly when access instruction.
Further, processing unit 406 also, for not meeting first when write command when pre-conditioned, generates an information warning, and electronic equipment also comprises output unit 407, for exporting information warning, with reminding user access instruction, does not have access rights.
Further, processing unit 406 is also for generating an information, and output unit 407 is also for exporting information, to point out user's access instruction successful execution.
The electronic equipment that various variation patterns in method in previous embodiment and instantiation are equally applicable to the present embodiment, by the detailed description of aforementioned right method, those skilled in the art can clearly know the implementation method of electronic equipment in the present embodiment, so succinct for instructions, is not described in detail in this.
The one or more technical schemes that provide in the embodiment of the present application, at least have following technique effect or advantage:
In one embodiment of the invention, due in os starting process, when Main Boot Record is during in up-set condition, obtain the backup Main Boot Record of the second storage unit, then backup Main Boot Record is stored to the internal storage for starting the operating system, finally, according to backup Main Boot Record, electronic equipment is carried out to initialization, so that operating system enters start-up course.So efficiently solve in the situation that Main Boot Record is destroyed, cause the technical matters that cannot start the operating system, can in the situation that Main Boot Record is destroyed, start the operating system, and then after os starting, can realize the recovery of user data, and then promote user's experience.
Further, due in the situation that Main Boot Record is destroyed, can be directly based on backup Main Boot Record, recover described Main Boot Record, so the operation of repairing in the embodiment of the present application Main Boot Record has simple technique effect, this has also promoted user's experience further.
Further; user to Main Boot Record and/or backup Main Boot Record can not directly access time; first method in the embodiment of the present application can judge whether access is write command; when being write command; whether judgement access has access rights again; by this double judgment mechanism, so there is the vectoring information that can protect in Main Boot Record not by malicious sabotage, improve the technique effect of secure user data.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (23)

1. the method that an electronic equipment starts, being applied to one is provided with in the electronic equipment of operating system, it is characterized in that, described electronic equipment comprises the first storage unit and the second storage unit, wherein said the second storage unit is different from described the first storage unit, described the first storage unit is for storing the Main Boot Record that starts described operating system, and described the second storage unit is for storing the backup Main Boot Record that described Main Boot Record is backed up to rear acquisition, and described method comprises:
In described os starting process, when described Main Boot Record is during in up-set condition, obtain the described backup Main Boot Record of described the second storage unit;
Described backup Main Boot Record is stored to for starting the internal storage of described operating system;
According to described backup Main Boot Record, described electronic equipment is carried out to initialization, so that described operating system enters start-up course.
2. the method for claim 1, is characterized in that, describedly according to described backup Main Boot Record, described electronic equipment is carried out to initialization, so that described operating system enters start-up course, specifically comprises:
From described internal storage, read described backup Main Boot Record;
Based on described backup Main Boot Record, described electronic equipment is carried out to initialization, so that described operating system enters start-up course.
3. the method for claim 1, is characterized in that, described the second storage unit is specially: the network storage unit that the external storage unit of the built-in storage unit of described electronic equipment, described electronic equipment or described electronic equipment can be accessed.
4. the method for claim 1, is characterized in that, before the described backup Main Boot Record of described the second storage unit of described acquisition, described method also comprises:
In described os starting process, whether detect described Main Boot Record in normal condition;
Wherein, when described Main Boot Record being detected in up-set condition, execution step: the described backup Main Boot Record that obtains described the second storage unit.
5. method as claimed in claim 4, is characterized in that, whether the described Main Boot Record of described detection, in normal condition, specifically comprises:
Whether the Basic Input or Output System (BIOS) that detects described electronic equipment can read described Main Boot Record;
Wherein, in the time can reading, show that described Main Boot Record is in normal condition; In the time can not reading, show that described Main Boot Record is in up-set condition.
6. method as claimed in claim 4, is characterized in that, in the described Main Boot Record of described detection, whether after normal condition, described method also comprises:
When described Main Boot Record is during in normal condition, according to described Main Boot Record, described electronic equipment is carried out to initialization, make described operating system enter start-up course.
7. the method for claim 1, is characterized in that, describedly according to described backup Main Boot Record, described electronic equipment is carried out to initialization, so that after described operating system enters start-up course, also comprise:
Based on described backup Main Boot Record, recover described Main Boot Record.
8. an authority control method, be applied to an electronic equipment that operating system is installed, it is characterized in that, described electronic equipment comprises the first storage unit and the second storage unit, wherein said the second storage unit is different from described the first storage unit, described the first storage unit is for storing the Main Boot Record that starts described operating system, and described the second storage unit is for storing the backup Main Boot Record that described Main Boot Record is backed up to rear acquisition, and described method comprises:
Receive the access instruction that a pair of described Main Boot Record and/or described backup Main Boot Record conduct interviews;
Judge that whether described access instruction is for described Main Boot Record and/or described backup Main Boot Record being carried out to the write command of write operation;
If so, judge whether described write command meets first pre-conditioned;
If so, based on described access instruction, described Main Boot Record and/or described backup Main Boot Record are carried out to write operation.
9. method as claimed in claim 8, is characterized in that, is judging that whether described access instruction is for after described Main Boot Record and/or described backup Main Boot Record are carried out to the write command of write operation, also comprises:
When described access instruction is not when described Main Boot Record and/or described backup Main Boot Record are carried out to the write command of write operation, carry out described access instruction and operate accordingly.
10. method as claimed in claim 8, is characterized in that, described judge described write command whether meet first pre-conditioned after, described method also comprises:
When described write command does not meet first when pre-conditioned, generate an information warning;
Export described information warning, with access instruction described in reminding user, do not there are access rights.
11. methods as claimed in claim 8, is characterized in that, based on described access instruction, after described Main Boot Record or described backup Main Boot Record are carried out to write operation, also comprise:
Generate an information;
Export described information, to point out access instruction successful execution described in user.
12. 1 kinds of electronic equipments, described electronic equipment is provided with operating system, it is characterized in that, and described electronic equipment also comprises:
The first storage unit, for storing for starting the Main Boot Record of described operating system;
The second storage unit, described the second storage unit is different from described the first storage unit, and described the second storage unit is for storing the backup Main Boot Record that described Main Boot Record is backed up to rear acquisition;
Obtain unit, in described os starting process, when described Main Boot Record is during in up-set condition, obtain the backup Main Boot Record of described the second storage unit;
Internal storage, for storing the described backup Main Boot Record that starts described operating system;
Processing unit, for according to the described backup Main Boot Record of internal storage storage, carries out initialization to described electronic equipment, so that described operating system enters start-up course.
13. electronic equipments as claimed in claim 12, is characterized in that, described processing unit specifically for:
From described internal storage, read described backup Main Boot Record;
Based on described backup Main Boot Record, described electronic equipment is carried out to initialization, so that described operating system enters start-up course.
14. electronic equipments as claimed in claim 12, is characterized in that, described the second storage unit is specially: the network storage unit that the external storage unit of the built-in storage unit of described electronic equipment, described electronic equipment or described electronic equipment can be accessed.
15. electronic equipments as claimed in claim 12, it is characterized in that, described electronic equipment also comprises detecting unit, be used in described os starting process, whether detect described Main Boot Record in normal condition, wherein, when described record being detected when undesired, by described acquisition unit, carried out the described backup Main Boot Record that obtains described storage unit.
16. electronic equipments as claimed in claim 15, is characterized in that, described detecting unit specifically for:
Whether the Basic Input or Output System (BIOS) that described detecting unit detects described electronic equipment can read described Main Boot Record;
Wherein, in the time can reading, show that described Main Boot Record is in normal condition; In the time can not reading, show that described Main Boot Record is in up-set condition.
17. electronic equipments as claimed in claim 15, it is characterized in that, described processing unit also for: when described Main Boot Record is during in normal condition, according to described Main Boot Record, described electronic equipment is carried out to initialization, make described operating system enter start-up course.
18. electronic equipments as claimed in claim 17, is characterized in that, described internal storage is also for storing the described Main Boot Record that starts described operating system.
19. electronic equipments as claimed in claim 12, is characterized in that, described electronic equipment also comprises recovery unit, for based on described backup Main Boot Record, recover described Main Boot Record.
20. 1 kinds of electronic equipments, described electronic equipment is provided with operating system, it is characterized in that, and described electronic equipment comprises:
The first storage unit, for storing for starting the Main Boot Record of described operating system;
The second storage unit, described the second storage unit is different from described the first storage unit, for storing the backup Main Boot Record that described Main Boot Record is backed up to rear acquisition;
Receiving element, the access instruction conducting interviews for receiving a pair of described Main Boot Record and/or described backup Main Boot Record;
The first judging unit, for judging that whether described access instruction is for described Main Boot Record and/or described backup Main Boot Record being carried out to the write command of write operation;
The second judging unit, for when described access instruction is for when carrying out the write command of write operation to described Main Boot Record and/or described backup Main Boot Record, judges whether described write command meets first pre-conditioned;
Processing unit, for meeting first when described write command when pre-conditioned, based on described write command, carries out write operation to described Main Boot Record and/or described backup Main Boot Record.
21. electronic equipments as claimed in claim 20, it is characterized in that, described processing unit also, for not being when described Main Boot Record and/or described backup Main Boot Record are carried out to the write command of write operation when described access instruction, is carried out with described access instruction and is operated accordingly.
22. electronic equipments as claimed in claim 20, it is characterized in that, described processing unit also for: when described write command does not meet first when pre-conditioned, generate an information warning, described processing unit also comprises output unit, be used for exporting described information warning, with access instruction described in reminding user, do not there are access rights.
23. electronic equipments as claimed in claim 20, is characterized in that, described processing unit is also for generating an information, and described output unit is also for exporting described information, to point out access instruction successful execution described in user.
CN201210335669.7A 2012-09-11 2012-09-11 Method for starting electronic equipment, method for controlling permission and electronic equipment Pending CN103677875A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210335669.7A CN103677875A (en) 2012-09-11 2012-09-11 Method for starting electronic equipment, method for controlling permission and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210335669.7A CN103677875A (en) 2012-09-11 2012-09-11 Method for starting electronic equipment, method for controlling permission and electronic equipment

Publications (1)

Publication Number Publication Date
CN103677875A true CN103677875A (en) 2014-03-26

Family

ID=50315539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210335669.7A Pending CN103677875A (en) 2012-09-11 2012-09-11 Method for starting electronic equipment, method for controlling permission and electronic equipment

Country Status (1)

Country Link
CN (1) CN103677875A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679613A (en) * 2015-03-17 2015-06-03 努比亚技术有限公司 Mobile terminal and method and device for restoring user data of mobile terminal
CN106775610A (en) * 2016-03-22 2017-05-31 新华三技术有限公司 A kind of electronic equipment starts method and a kind of electronic equipment
CN109062517A (en) * 2018-09-19 2018-12-21 郑州云海信息技术有限公司 A kind of firmware redundancy approach, device, equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1142080A (en) * 1995-02-17 1997-02-05 罗建平 Method for solidifying hard-disc document of computer
CN1170160A (en) * 1996-07-09 1998-01-14 李志淮 Method and device for safety accessing files in DOS
US20030014619A1 (en) * 2001-07-16 2003-01-16 International Business Machines Corporation Method and system for master boot record recovery
US20060041738A1 (en) * 2004-08-17 2006-02-23 Yu-Chen Lai Recovery method for master boot record of hard disk drive
CN100476731C (en) * 2006-01-04 2009-04-08 三星电子株式会社 Storage medium to manage a master boot record and a method for guiding a computer system using a storage medium
CN102439565A (en) * 2011-10-28 2012-05-02 华为技术有限公司 Method and device for starting recovery
CN102541969A (en) * 2011-03-29 2012-07-04 深圳市江波龙电子有限公司 File protection method and system based on file allocation table (FAT) file system, and memory

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1142080A (en) * 1995-02-17 1997-02-05 罗建平 Method for solidifying hard-disc document of computer
CN1170160A (en) * 1996-07-09 1998-01-14 李志淮 Method and device for safety accessing files in DOS
US20030014619A1 (en) * 2001-07-16 2003-01-16 International Business Machines Corporation Method and system for master boot record recovery
US20060041738A1 (en) * 2004-08-17 2006-02-23 Yu-Chen Lai Recovery method for master boot record of hard disk drive
CN100476731C (en) * 2006-01-04 2009-04-08 三星电子株式会社 Storage medium to manage a master boot record and a method for guiding a computer system using a storage medium
CN102541969A (en) * 2011-03-29 2012-07-04 深圳市江波龙电子有限公司 File protection method and system based on file allocation table (FAT) file system, and memory
CN102439565A (en) * 2011-10-28 2012-05-02 华为技术有限公司 Method and device for starting recovery

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679613A (en) * 2015-03-17 2015-06-03 努比亚技术有限公司 Mobile terminal and method and device for restoring user data of mobile terminal
CN106775610A (en) * 2016-03-22 2017-05-31 新华三技术有限公司 A kind of electronic equipment starts method and a kind of electronic equipment
CN106775610B (en) * 2016-03-22 2021-11-12 新华三技术有限公司 Electronic equipment starting method and electronic equipment
CN109062517A (en) * 2018-09-19 2018-12-21 郑州云海信息技术有限公司 A kind of firmware redundancy approach, device, equipment and medium

Similar Documents

Publication Publication Date Title
US9417967B2 (en) Computing device and method for automatically recovering bios of computing device
CN103119554B (en) The memory logic that platform is irrelevant is provided
US10613773B2 (en) Backing up firmware during initialization of device
CN103207975B (en) The method of protection password and computing machine
US9703635B2 (en) Method, computer program, and computer for restoring set of variables
US8281119B1 (en) Separate normal firmware and developer firmware
US9239725B2 (en) System and method for installing an OS via a network card supporting PXE
US9262283B2 (en) Method for reading kernel log upon kernel panic in operating system
JP2012508932A (en) Manage cache data and metadata
US20150095632A1 (en) Computer booting system and method for computer system
US20150199190A1 (en) System and method for updating firmware
CN104751062B (en) A kind of method and device improving operating system reliability
CN104011733A (en) Secure data protection with improved read-only memory locking during system pre-boot
US20190065300A1 (en) Method of retrieving debugging data in uefi and computer system thereof
US8892860B2 (en) Clearing secure system resources in a computing device
CN105786545B (en) Breakpoint recovery method and system based on heterogeneous hybrid memory
US20160124816A1 (en) Computing device and method for recovering bios of computing device
CN110058973B (en) Test system and test method for data storage device
US9250942B2 (en) Hardware emulation using on-the-fly virtualization
CN103677875A (en) Method for starting electronic equipment, method for controlling permission and electronic equipment
CN110096882B (en) Safety measurement method in equipment operation process
CN105630523A (en) Computer BIOS data recovery system and method
CN113094107B (en) Data protection method, device, equipment and computer storage medium
CN107784218A (en) It is a kind of for the starting-up method of terminal device, device, equipment and storage medium
US11250929B2 (en) System for detecting computer startup and method of system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326

RJ01 Rejection of invention patent application after publication