[go: up one dir, main page]

CN105511892A - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN105511892A
CN105511892A CN201410486534.XA CN201410486534A CN105511892A CN 105511892 A CN105511892 A CN 105511892A CN 201410486534 A CN201410486534 A CN 201410486534A CN 105511892 A CN105511892 A CN 105511892A
Authority
CN
China
Prior art keywords
information list
address information
storage unit
configuration file
address
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
CN201410486534.XA
Other languages
Chinese (zh)
Other versions
CN105511892B (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 CN201410486534.XA priority Critical patent/CN105511892B/en
Publication of CN105511892A publication Critical patent/CN105511892A/en
Application granted granted Critical
Publication of CN105511892B publication Critical patent/CN105511892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses an information processing method and electronic equipment; the method comprises the following steps: obtaining a guiding program configuration file; generating a first address information list carrying physical addresses and identification information of N memory cells, wherein the N is a positive integer bigger than or equal to 1; obtaining a second address information list same with or different from the first address information list, wherein the second address information list carries physical addresses and identification information of M memory cells, and the M is a positive integer >=1; updating the guiding program configuration file according to the first and second address information lists and a first preset rule, and controlling the electronic equipment to guide an operation system to start according to the updated guiding program configuration file.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to wireless communication field, particularly relate to a kind of information processing method and electronic equipment.
Background technology
Basic output output system (BIOS, BasicInputOutputSystem) be one group of program being cured on electronic equipment mainboard chip, for providing hardware setting and the control of the bottom for electronic equipment, the content such as self-check program and system self-triggered program after the program of the basic input and output of its in store electronic equipment, system set-up information, start.At present, when using the electronic equipment such as PC or server, all can carry out increasing and decreasing or retouching operation along with the storage unit of actual service condition for correspondence; Once carry out the operation such as increase and decrease or amendment of storage unit, just likely there will be the problem that normally cannot start the operating system according to boot configuration file.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of information processing method and electronic equipment, solve at least the above-mentioned problems in the prior art.
For achieving the above object, technical scheme of the present invention is achieved in that
Embodiments provide a kind of information processing method, be applied to electronic equipment, described method comprises:
Obtain boot configuration file;
Generate the first address information list, described first address information list carries physical address and the identification information of N number of storage unit, N be more than or equal to 1 positive integer;
Get the second address information list, described second address information list and described first address information list identical or different, described second address information list carries physical address and the identification information of M storage unit, M be more than or equal to 1 positive integer;
Upgrade described boot configuration file according to described first address information list, described second address information list and the first preset rules, control described electronic equipment and guide os starting according to the described boot configuration file after described renewal.
The embodiment of the present invention additionally provides a kind of electronic equipment, and described electronic equipment comprises:
File obtaining unit, for obtaining boot configuration file;
Scalar/vector, for generating the first address information list, described first address information list carries physical address and the identification information of N number of storage unit, N be more than or equal to 1 positive integer;
Control module, for getting the second address information list, described second address information list and described first address information list identical or different, described second address information list carries physical address and the identification information of M storage unit, M be more than or equal to 1 positive integer; Described boot configuration file is upgraded according to described first address information list, described second address information list and the first preset rules; Os starting is guided according to the described boot configuration file after described renewal.
Information processing method provided by the present invention and electronic equipment, the physical address of storage unit can be associated calculated address information list with identification information, unique each storage unit of mark is carried out by identification information, can ensure by address information list the storage unit that boot configuration file correct determination operation system is corresponding and correctly guide os starting, so, the experience of user can just be ensured.
Accompanying drawing explanation
Fig. 1 is information processing method schematic flow sheet one of the present invention;
Fig. 2 is information processing method schematic flow sheet two of the present invention;
Fig. 3 is enforcement scene one of the present invention;
Fig. 4 is enforcement scene two of the present invention;
Fig. 5 is information processing method schematic flow sheet three of the present invention;
Fig. 6 is electronic equipment of the present invention composition structural representation.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
Embodiment one,
Embodiments provide a kind of information processing method, be applied to electronic equipment, as shown in Figure 1, described method comprises:
Step 101: obtain boot configuration file;
Step 102: generate the first address information list, described first address information list carries physical address and the identification information of N number of storage unit, N be more than or equal to 1 positive integer;
Step 103: get the second address information list, described second address information list and described first address information list identical or different, described second address information list carries physical address and the identification information of M storage unit, M be more than or equal to 1 positive integer;
Step 104: upgrade described boot configuration file according to described first address information list, described second address information list and the first preset rules, controls described electronic equipment and guides os starting according to the described boot configuration file after described renewal.
The execution sequence of above-mentioned steps 101 and step 102 can in no particular order, and namely described step 101 and described step 102 can perform simultaneously, also can step 101 perform prior to step 102.
Here, the physical address of described storage unit can be described storage unit position in the electronic device, can by numeral and/or letter form, such as, hd0, hd1, hd2 or, C, D, E, F dish.
Described boot configuration file is for providing first storage unit at the image file place of operating system.
Below the scene obtaining boot configuration file described in the present embodiment is described, specifically can comprises:
Startup self-detection (POST, PowerOnSelfTest) is carried out after electronic equipment powers up; Wherein, described startup self-detection can comprise the situation obtaining storage unit and hardware device;
BIOS inquires storage unit according to the boot sequence preset;
Boot configuration file is got from described storage unit; Preferably, described boot configuration file can be Main Boot Record (MBR, MainBootRecorder).
Accordingly, describedly os starting is guided to be according to the described boot configuration file after upgrading: according to the boot configuration file after upgrading, the physical address of the storage unit at the image file place of determination operation system, get described image file according to described physical address, start the operating system according to described image file.
Visible, adopt this programme, can by the physical address of storage unit be associated calculated address information list with identification information, owing to carrying out unique each storage unit of mark by identification information, therefore can ensure by address information list the storage unit that boot configuration file correct determination operation system is corresponding, guide os starting, so, just can ensure the experience of user.
Embodiment two,
Embodiments provide a kind of information processing method, be applied to electronic equipment, as shown in Figure 2, described method comprises:
Step 201: obtain boot configuration file;
Step 202: generate the first address information list, described first address information list carries physical address and the identification information of N number of storage unit, N be more than or equal to 1 positive integer;
Step 203: get the second address information list, described second address information list and described first address information list identical or different, described second address information list carries physical address and the identification information of M storage unit, M be more than or equal to 1 positive integer;
Step 204: judge that whether described first address information list is identical with described second address information list, when described first address information list is different from described second address information list, upgrade described boot configuration file according to described first preset rules, control described electronic equipment and guide os starting according to the described boot configuration file after described renewal.
Above-mentioned steps 201 and step 202 can perform simultaneously, also can step 201 perform prior to step 202.
Here, the physical address of described storage unit can be described storage unit position in the electronic device, can by numeral and/or letter form, such as, hd0, hd1, hd2 or, C, D, E, F dish.
The identification information of described storage unit can be the MAC Address of described storage unit; Or can be the string number of described storage unit; Or when can also to work as described storage unit be virtual drive, the numbering that preset algorithm can be utilized to generate by the string number of one or more hard disks corresponding to virtual drive, described preset algorithm can be hash algorithm.
Described boot configuration file is for providing first storage unit at the image file place of operating system.
Below the scene obtaining boot configuration file described in the present embodiment is described, specifically can comprises:
Startup self-detection (POST, PowerOnSelfTest) is carried out after electronic equipment powers up; Wherein, described startup self-detection can comprise the situation obtaining storage unit and hardware device;
BIOS inquires storage unit according to the boot sequence preset;
Boot configuration file is got from described storage unit; Preferably, described boot configuration file can be Main Boot Record (MBR, MainBootRecorder).
Accordingly, describedly os starting is guided to be according to the described boot configuration file after upgrading: according to the boot configuration file after upgrading, the physical address of the storage unit at the image file place of determination operation system, get described image file according to described physical address, start the operating system according to described image file.
Upgrade described boot configuration file according to the first preset rules described in above-mentioned steps 204, comprising:
Physical address corresponding to the first storage unit is obtained from described boot configuration file;
According to the second address information list, determine the identification information that the physical address of described first storage unit is corresponding;
Utilize the identification information of described first storage unit, from described first address information list, search the new physical address that described first storage unit is corresponding;
Described new physical address is utilized to upgrade described boot configuration file.
The use scenes of the embodiment of the present invention can comprise:
Scene one,
When using server, may modify to the several storage unit taken out in server separately, after again several storage unit being mounted to server, the situation that the physical location of storage unit changes may be there is, as shown in Figure 3, virgin state has two storage unit to ratio, and the image file of operating system is arranged in storage unit A, after user's adjustment, the physical address of storage unit A and storage unit B creates change; So by scheme that the present embodiment provides, according to current the first address information list of getting and the second original address information list, the actual place place of the image file of determination operation system is storage unit A, upgrade boot configuration file, utilize the boot configuration file upgraded to start the operating system.
Scene two,
When user needs exented memory, increase memory bar sometimes, at this moment, just likely can change the physical location of storage unit; Such as, shown in Fig. 4, suppose that the identification information of storage unit is A, B, C in figure in the present embodiment, the original state of storage unit is that the physical address of storage unit A is 1, the physical address of storage unit B is 2; After user's expansion, the physical address of storage unit A becomes 2, the physical address of storage unit B becomes 3, the physical address of newly-increased storage unit C becomes 1; At this moment, if be still that the image file obtaining operating system the storage unit of 1 will guide failure according to what record in boot configuration file from physical address; By the storage unit A being only memory image file that the identification information determination physical address of storage unit is 2, then boot configuration file is upgraded, utilize the boot configuration file after upgrading to guide os starting.
Be understandable that, above-mentioned scene two is the scenes increasing storage unit, deletes that the mode of operation of the scene of storage unit is identical with it accordingly, does not repeat here.
Visible, adopt this programme, can by the physical address of storage unit be associated calculated address information list with identification information, owing to carrying out unique each storage unit of mark by identification information, therefore can ensure by address information list the storage unit that boot configuration file correct determination operation system is corresponding, guide os starting, so, just can ensure the experience of user.
Embodiment three,
Embodiments provide a kind of information processing method, be applied to electronic equipment, as shown in Figure 5, described method comprises:
Step 501: obtain boot configuration file;
Step 502: the physical address detecting N number of storage unit;
Step 503: the identification information obtaining described N number of storage unit;
Step 504: the physical address of described N number of storage unit and described identification information are associated, is saved to described first address information list, N be more than or equal to 1 positive integer;
Step 505: get the second address information list, described second address information list and described first address information list identical or different, described second address information list carries physical address and the identification information of M storage unit, M be more than or equal to 1 positive integer;
Step 506: upgrade described boot configuration file according to described first address information list, described second address information list and the first preset rules, controls described electronic equipment and guides os starting according to the described boot configuration file after described renewal.
Here, the physical address of the described N number of storage unit of described detection can be: scan each storage unit according to designated order, according to the order of the storage unit the scanned physical address as described storage unit, the physical address of memory device can be made up of numeral and/or letter, such as, hd0, hd1, hd2 or, C, D, E, F dish.Wherein, described designated order can be according to physical location scanning from top to bottom.
The identification information of the described N number of storage unit of described acquisition can be: using the identification information of the MAC Address of described storage unit as described storage unit;
Or can be directly using the string of described storage unit number as identification information;
Or when can also to work as described storage unit be virtual drive, the numbering that preset algorithm can be utilized to generate by the string number of one or more hard disks corresponding to virtual drive is as identification information, and described preset algorithm can be hash algorithm.
Described boot configuration file is for providing first storage unit at the image file place of operating system.
Below the scene obtaining boot configuration file described in the present embodiment is described, specifically can comprises:
Startup self-detection (POST, PowerOnSelfTest) is carried out after electronic equipment powers up; Wherein, described startup self-detection can comprise the situation obtaining storage unit and hardware device;
BIOS inquires storage unit according to the boot sequence preset;
Boot configuration file is got from described storage unit; Preferably, described boot configuration file can be Main Boot Record (MBR, MainBootRecorder).
Accordingly, describedly os starting is guided to be according to the described boot configuration file after upgrading: according to the boot configuration file after upgrading, the physical address of the storage unit at the image file place of determination operation system, get described image file according to described physical address, start the operating system according to described image file.
Describedly upgrade described boot configuration file according to described first address information list, described second address information list and the first preset rules and comprise:
Judge that whether described first address information list is identical with described second address information list, when described first address information list is different from described second address information list, upgrade described boot configuration file according to described first preset rules.
Wherein, describedly upgrade described boot configuration file according to the first preset rules, comprising:
Physical address corresponding to the first storage unit is obtained from described boot configuration file;
According to the second address information list, determine the identification information that the physical address of described first storage unit is corresponding;
Utilize the identification information of described first storage unit, from described first address information list, search the new physical address that described first storage unit is corresponding;
Described new physical address is utilized to upgrade described boot configuration file.
The use scenes of the embodiment of the present invention can comprise:
Scene one,
When using server, may modify to the several storage unit taken out in server separately, after again several storage unit being mounted to server, the situation that the physical location of storage unit changes may be there is, as shown in Figure 3, virgin state has two storage unit to ratio, and the image file of operating system is arranged in storage unit A, after user's adjustment, the physical address of storage unit A and storage unit B creates change; So just by scheme that the present embodiment provides, according to current the first address information list of getting and the second original address information list, the actual place place of the image file of determination operation system is storage unit A, upgrade boot configuration file, utilize the boot configuration file upgraded to start the operating system.
Scene two,
When user needs exented memory, increase memory bar sometimes, at this moment, just likely can change the physical location of storage unit; Such as, shown in Fig. 4, suppose that the identification information of storage unit is A, B, C in figure in the present embodiment, the original state of storage unit is that the physical address of storage unit A is 1, the physical address of storage unit B is 2; After user's expansion, the physical address of storage unit A becomes 2, the physical address of storage unit B becomes 3, the physical address of newly-increased storage unit C becomes 1; At this moment, if be still that the image file obtaining operating system the storage unit of 1 will guide failure according to what record in boot configuration file from physical address; By the storage unit A being only memory image file that the identification information determination physical address of storage unit is 2, then boot configuration file is upgraded, utilize the boot configuration file after upgrading to guide os starting.
Be understandable that, above-mentioned scene two is the scenes increasing storage unit, deletes that the mode of operation of the scene of storage unit is identical with it accordingly, does not repeat here.
Further, after above-mentioned steps completes, the replacement operation of address information list can also be carried out, be specially: delete former described second address information list, described first address information list is saved as new described second address information list.So, upper once start electronic equipment in, this first address information list namely as the second address information list next time, thus ensures that the second address information list of each contrast use and original boot configuration file match.
In addition, the execution step of renewal boot configuration file that the present embodiment provides can also be:
After getting boot configuration file, guide described os starting according to described boot configuration file, obtain the first operating result;
When the first operating result is for guiding unsuccessfully, generate the first address information list;
Obtain the second address information list;
Upgrade described boot configuration file according to described first address information list, the second address information list and the first preset rules, guide os starting according to the boot configuration file after upgrading.Further can also delete former second address information list, described first address information list is saved as the second new address information list.So, the electronic equipment all generation of executive address information list and operations of contrast can be started at every turn, only just carrying out aforesaid operations when starting unsuccessfully, electronic equipment toggle speed under normal conditions can be ensured to a certain extent.
Visible, adopt this programme, can by the physical address of storage unit be associated calculated address information list with identification information, owing to carrying out unique each storage unit of mark by identification information, therefore can ensure by address information list the storage unit that boot configuration file correct determination operation system is corresponding, guide os starting, so, just can ensure the experience of user.
Embodiment four,
Embodiments provide a kind of electronic equipment, as shown in Figure 6, described electronic equipment comprises:
File obtaining unit 61, for obtaining boot configuration file;
Scalar/vector 62, for generating the first address information list, described first address information list carries physical address and the identification information of N number of storage unit, N be more than or equal to 1 positive integer;
Control module 63, for getting the second address information list, described second address information list and described first address information list identical or different, described second address information list carries physical address and the identification information of M storage unit, M be more than or equal to 1 positive integer; Described boot configuration file is upgraded according to described first address information list, described second address information list and the first preset rules; Os starting is guided according to the described boot configuration file after described renewal.
Here, described file obtaining unit 61, when obtaining boot configuration file, can control scalar/vector 62 by control module 63 and generate the first address information list; Or for after file obtaining unit 61 gets boot configuration file, scalar/vector 62 can be controlled by control module 63 and generates the first address information list.
The physical address of described storage unit can be described storage unit position in the electronic device, can by numeral and/or letter form, such as, hd0, hd1, hd2 or, C, D, E, F dish.
Described boot configuration file is for providing first storage unit at the image file place of operating system.
Below the scene obtaining boot configuration file described in the present embodiment is described, specifically can comprises:
Startup self-detection (POST, PowerOnSelfTest) is carried out after electronic equipment powers up; Wherein, described startup self-detection can comprise the situation obtaining storage unit and hardware device;
BIOS inquires storage unit according to the boot sequence preset;
Boot configuration file is got from described storage unit; Preferably, described boot configuration file can be Main Boot Record (MBR, MainBootRecorder).
Accordingly, describedly os starting is guided to be according to the described boot configuration file after upgrading: according to the boot configuration file after upgrading, the physical address of the storage unit at the image file place of determination operation system, get described image file according to described physical address, start the operating system according to described image file.
Visible, adopt this programme, can by the physical address of storage unit be associated calculated address information list with identification information, owing to carrying out unique each storage unit of mark by identification information, therefore can ensure by address information list the storage unit that boot configuration file correct determination operation system is corresponding, guide os starting, so, just can ensure the experience of user.
Embodiment five,
Embodiments provide a kind of electronic equipment, described electronic equipment comprises:
File obtaining unit, for obtaining boot configuration file;
Scalar/vector, for generating the first address information list, described first address information list carries physical address and the identification information of N number of storage unit, N be more than or equal to 1 positive integer;
Control module, for getting the second address information list, described second address information list and described first address information list identical or different, described second address information list carries physical address and the identification information of M storage unit, M be more than or equal to 1 positive integer; Described boot configuration file is upgraded according to described first address information list, described second address information list and the first preset rules; Os starting is guided according to the described boot configuration file after described renewal.
Here, the physical address of described storage unit can be described storage unit position in the electronic device, can by numeral and/or letter form, such as, hd0, hd1, hd2 or, C, D, E, F dish.
The identification information of described storage unit can be the MAC Address of described storage unit; Or can be the string number of described storage unit; Or when can also to work as described storage unit be virtual drive, the numbering that preset algorithm can be utilized to generate by the string number of one or more hard disks corresponding to virtual drive, described preset algorithm can be hash algorithm.
Described boot configuration file is for providing first storage unit at the image file place of operating system.
Described control module, specifically for judging that whether described first address information list is identical with described second address information list, when described first address information list is different from described second address information list, upgrade described boot configuration file according to described first preset rules.
Described control module, specifically for obtaining physical address corresponding to the first storage unit from described boot configuration file; According to the second address information list, determine the identification information that the physical address of described first storage unit is corresponding; Utilize the identification information of described first storage unit, from described first address information list, search the new physical address that described first storage unit is corresponding; Described new physical address is utilized to upgrade described boot configuration file.
Described control module, specifically for according to upgrade after boot configuration file, the physical address of the storage unit at the image file place of determination operation system, gets described image file according to described physical address, starts the operating system according to described image file.
The use scenes of the embodiment of the present invention can comprise:
Scene one,
When using server, may modify to the several storage unit taken out in server separately, after again several storage unit being mounted to server, the situation that the physical location of storage unit changes may be there is, as shown in Figure 3, virgin state has two storage unit to ratio, and the image file of operating system is arranged in storage unit A, after user's adjustment, the physical address of storage unit A and storage unit B creates change; So just by scheme that the present embodiment provides, according to current the first address information list of getting and the second original address information list, the actual place place of the image file of determination operation system is storage unit A, upgrade boot configuration file, utilize the boot configuration file upgraded to start the operating system.
Scene two,
When user needs exented memory, increase memory bar sometimes, at this moment, just likely can change the physical location of storage unit; Such as, shown in Fig. 4, suppose that the identification information of storage unit is A, B, C in figure in the present embodiment, the original state of storage unit is that the physical address of storage unit A is 1, the physical address of storage unit B is 2; After user's expansion, the physical address of storage unit A becomes 2, the physical address of storage unit B becomes 3, the physical address of newly-increased storage unit C becomes 1; At this moment, if be still that the image file obtaining operating system the storage unit of 1 will guide failure according to what record in boot configuration file from physical address; By the storage unit A being only memory image file that the identification information determination physical address of storage unit is 2, then boot configuration file is upgraded, utilize the boot configuration file after upgrading to guide os starting.
Be understandable that, above-mentioned scene two is the scenes increasing storage unit, deletes that the mode of operation of the scene of storage unit is identical with it accordingly, does not repeat here.
Visible, adopt this programme, can by the physical address of storage unit be associated calculated address information list with identification information, owing to carrying out unique each storage unit of mark by identification information, therefore can ensure by address information list the storage unit that boot configuration file correct determination operation system is corresponding, guide os starting, so, just can ensure the experience of user.
Embodiment six,
Embodiments provide electronic equipment, described electronic equipment comprises:
File obtaining unit, for obtaining boot configuration file;
Scalar/vector, for generating the first address information list, described first address information list carries physical address and the identification information of N number of storage unit, N be more than or equal to 1 positive integer;
Control module, for getting the second address information list, described second address information list and described first address information list identical or different, described second address information list carries physical address and the identification information of M storage unit, M be more than or equal to 1 positive integer; Described boot configuration file is upgraded according to described first address information list, described second address information list and the first preset rules; Os starting is guided according to the described boot configuration file after described renewal.
Described control module, specifically for judging that whether described first address information list is identical with described second address information list, when described first address information list is different from described second address information list, upgrade described boot configuration file according to described first preset rules.
Described control module, specifically for obtaining physical address corresponding to the first storage unit from described boot configuration file; According to the second address information list, determine the identification information that the physical address of described first storage unit is corresponding; Utilize the identification information of described first storage unit, from described first address information list, search the new physical address that described first storage unit is corresponding; Described new physical address is utilized to upgrade described boot configuration file.
Scalar/vector, specifically for detecting the physical address of described N number of storage unit; Obtain the identification information of described N number of storage unit; The physical address of described N number of storage unit and described identification information are associated, is saved to described first address information list.
Here, described scalar/vector, specifically for scanning each storage unit according to designated order, according to the order of the storage unit the scanned physical address as described storage unit, the physical address of memory device can be made up of numeral and/or letter, such as, hd0, hd1, hd2 or, C, D, E, F dish.Wherein, described designated order can be according to physical location scanning from top to bottom.
Described scalar/vector, specifically for using the identification information of the MAC Address of described storage unit as described storage unit;
Or can be directly using the string of described storage unit number as identification information;
Or when can also to work as described storage unit be virtual drive, the numbering that preset algorithm can be utilized to generate by the string number of one or more hard disks corresponding to virtual drive is as identification information, and described preset algorithm can be hash algorithm.
Described boot configuration file is for providing first storage unit at the image file place of operating system.
Described control module, specifically for according to upgrade after boot configuration file, the physical address of the storage unit at the image file place of determination operation system, gets described image file according to described physical address, starts the operating system according to described image file.
The use scenes of the embodiment of the present invention can comprise:
Scene one,
When using server, may modify to the several storage unit taken out in server separately, after again several storage unit being mounted to server, the situation that the physical location of storage unit changes may be there is, as shown in Figure 3, virgin state has two storage unit to ratio, and the image file of operating system is arranged in storage unit A, after user's adjustment, the physical address of storage unit A and storage unit B creates change; So just by scheme that the present embodiment provides, according to current the first address information list of getting and the second original address information list, the actual place place of the image file of determination operation system is storage unit A, upgrade boot configuration file, utilize the boot configuration file upgraded to start the operating system.
Scene two,
When user needs exented memory, increase memory bar sometimes, at this moment, just likely can change the physical location of storage unit; Such as, shown in Fig. 4, suppose that the identification information of storage unit is A, B, C in figure in the present embodiment, the original state of storage unit is that the physical address of storage unit A is 1, the physical address of storage unit B is 2; After user's expansion, the physical address of storage unit A becomes 2, the physical address of storage unit B becomes 3, the physical address of newly-increased storage unit C becomes 1; At this moment, if be still that the image file obtaining operating system the storage unit of 1 will guide failure according to what record in boot configuration file from physical address; By the storage unit A being only memory image file that the identification information determination physical address of storage unit is 2, then boot configuration file is upgraded, utilize the boot configuration file after upgrading to guide os starting.
Be understandable that, above-mentioned scene two is the scenes increasing storage unit, deletes that the mode of operation of the scene of storage unit is identical with it accordingly, does not repeat here.
Further, described control module, can also carry out the replacement operation of address information list, be specially: delete former described second address information list, described first address information list is saved as new described second address information list.So, upper once start electronic equipment in, this first address information list namely as the second address information list next time, thus ensures that the second address information list of each contrast use and original boot configuration file match.
In addition, the execution of renewal boot configuration file that the present embodiment provides can also be:
File obtaining unit, for getting boot configuration file;
Control module, guides described os starting for the described boot configuration file got according to described file obtaining unit, obtains the first operating result; When the first operating result is for guiding unsuccessfully, controls scalar/vector and generating the first address information list; Obtain the second address information list; Upgrade described boot configuration file according to described first address information list, the second address information list and the first preset rules, guide os starting according to the boot configuration file after upgrading.So, the electronic equipment all generation of executive address information list and operations of contrast can be started at every turn, only just carrying out aforesaid operations when starting unsuccessfully, electronic equipment toggle speed under normal conditions can be ensured to a certain extent.
Visible, adopt this programme, can by the physical address of storage unit be associated calculated address information list with identification information, owing to carrying out unique each storage unit of mark by identification information, therefore can ensure by address information list the storage unit that boot configuration file correct determination operation system is corresponding, guide os starting, so, just can ensure the experience of user.
In several embodiments that the application provides, should be understood that disclosed equipment and method can realize by another way.Apparatus embodiments described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, maybe can be integrated into another system, or some features can be ignored, or do not perform.In addition, the coupling each other of shown or discussed each ingredient or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, also can be distributed in multiple network element; Part or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can all be integrated in a processing module, also can be each unit individually as a unit, also can two or more unit in a unit integrated; Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: movable storage device, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (10)

1. an information processing method, is applied to electronic equipment, and described method comprises:
Obtain boot configuration file;
Generate the first address information list, described first address information list carries physical address and the identification information of N number of storage unit, N be more than or equal to 1 positive integer;
Get the second address information list, described second address information list and described first address information list identical or different, described second address information list carries physical address and the identification information of M storage unit, M be more than or equal to 1 positive integer;
Upgrade described boot configuration file according to described first address information list, described second address information list and the first preset rules, control described electronic equipment and guide os starting according to the described boot configuration file after described renewal.
2. method according to claim 1, is characterized in that, upgrades described boot configuration file, comprising according to described first address information list, described second address information list and the first preset rules:
Judge that whether described first address information list is identical with described second address information list,
When described first address information list is different from described second address information list, upgrade described boot configuration file according to described first preset rules.
3. method according to claim 1 and 2, is characterized in that, describedly upgrades described boot configuration file according to the first preset rules, comprising:
Physical address corresponding to the first storage unit is obtained from described boot configuration file;
According to the second address information list, determine the identification information that the physical address of described first storage unit is corresponding;
Utilize the identification information of described first storage unit, from described first address information list, search the new physical address that described first storage unit is corresponding;
Described new physical address is utilized to upgrade described boot configuration file.
4. method according to claim 1, is characterized in that, generates the first address information list and comprises:
Detect the physical address of described N number of storage unit;
Obtain the identification information of described N number of storage unit;
The physical address of described N number of storage unit and described identification information are associated, is saved to described first address information list.
5. method according to claim 1, it is characterized in that, described upgrade described boot configuration file according to described first address information list, described second address information list and the first preset rules after, described method also comprises: delete former described second address information list, and described first address information list is saved as new described second address information list.
6. an electronic equipment, described electronic equipment comprises:
File obtaining unit, for obtaining boot configuration file;
Scalar/vector, for generating the first address information list, described first address information list carries physical address and the identification information of N number of storage unit, N be more than or equal to 1 positive integer;
Control module, for getting the second address information list, described second address information list and described first address information list identical or different, described second address information list carries physical address and the identification information of M storage unit, M be more than or equal to 1 positive integer; Described boot configuration file is upgraded according to described first address information list, described second address information list and the first preset rules; Os starting is guided according to the described boot configuration file after described renewal.
7. electronic equipment according to claim 6, it is characterized in that, described control module, specifically for judging that whether described first address information list is identical with described second address information list, when described first address information list is different from described second address information list, upgrade described boot configuration file according to described first preset rules.
8. the method according to claim 6 or 7, is characterized in that, described control module, specifically for obtaining physical address corresponding to the first storage unit from described boot configuration file; According to the second address information list, determine the identification information that the physical address of described first storage unit is corresponding; Utilize the identification information of described first storage unit, from described first address information list, search the new physical address that described first storage unit is corresponding; Described new physical address is utilized to upgrade described boot configuration file.
9. electronic equipment according to claim 6, is characterized in that, scalar/vector, specifically for detecting the physical address of described N number of storage unit; Obtain the identification information of described N number of storage unit; The physical address of described N number of storage unit and described identification information are associated, is saved to described first address information list.
10. electronic equipment according to claim 6, is characterized in that, described control module, also for deleting former described second address information list, described first address information list is saved as new described second address information list.
CN201410486534.XA 2014-09-22 2014-09-22 A kind of information processing method and electronic equipment Active CN105511892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410486534.XA CN105511892B (en) 2014-09-22 2014-09-22 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410486534.XA CN105511892B (en) 2014-09-22 2014-09-22 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105511892A true CN105511892A (en) 2016-04-20
CN105511892B CN105511892B (en) 2018-12-14

Family

ID=55719902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410486534.XA Active CN105511892B (en) 2014-09-22 2014-09-22 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105511892B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106123905A (en) * 2016-08-16 2016-11-16 长安马自达汽车有限公司 Dead reckoning quickly start processing method
CN112559564A (en) * 2020-11-19 2021-03-26 山东云海国创云计算装备产业创新中心有限公司 Access method, device and medium for application layer state information
CN113426127A (en) * 2021-06-18 2021-09-24 网易(杭州)网络有限公司 Game operation guiding method, device, equipment and storage medium
CN114185611A (en) * 2021-11-26 2022-03-15 京微齐力(深圳)科技有限公司 Multi-column automatic copying configuration method and circuit for device to be configured
CN114546503A (en) * 2022-02-11 2022-05-27 联想开天科技有限公司 A kind of booting method and electronic device based on hard disk

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1215866A (en) * 1997-10-15 1999-05-05 戴尔美国公司 System and method for updating partition mappings to logical drives in computer memory device
US6862681B2 (en) * 2001-07-16 2005-03-01 International Business Machines Corporation Method and system for master boot record recovery
CN102063348A (en) * 2010-12-27 2011-05-18 成都市华为赛门铁克科技有限公司 Partition table information backup method and device and storage system
CN103294572A (en) * 2012-03-04 2013-09-11 三星电子株式会社 Electronic device to restore MBR, and method thereof
CN103970557A (en) * 2013-02-04 2014-08-06 中兴通讯股份有限公司 Method for starting system by storage device and storage device
CN103984571A (en) * 2014-05-21 2014-08-13 华为技术有限公司 Method and device for uprating operating system partition

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1215866A (en) * 1997-10-15 1999-05-05 戴尔美国公司 System and method for updating partition mappings to logical drives in computer memory device
US6862681B2 (en) * 2001-07-16 2005-03-01 International Business Machines Corporation Method and system for master boot record recovery
CN102063348A (en) * 2010-12-27 2011-05-18 成都市华为赛门铁克科技有限公司 Partition table information backup method and device and storage system
CN103294572A (en) * 2012-03-04 2013-09-11 三星电子株式会社 Electronic device to restore MBR, and method thereof
CN103970557A (en) * 2013-02-04 2014-08-06 中兴通讯股份有限公司 Method for starting system by storage device and storage device
CN103984571A (en) * 2014-05-21 2014-08-13 华为技术有限公司 Method and device for uprating operating system partition

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106123905A (en) * 2016-08-16 2016-11-16 长安马自达汽车有限公司 Dead reckoning quickly start processing method
CN112559564A (en) * 2020-11-19 2021-03-26 山东云海国创云计算装备产业创新中心有限公司 Access method, device and medium for application layer state information
CN112559564B (en) * 2020-11-19 2022-08-12 山东云海国创云计算装备产业创新中心有限公司 A method, device and medium for accessing application layer state information
CN113426127A (en) * 2021-06-18 2021-09-24 网易(杭州)网络有限公司 Game operation guiding method, device, equipment and storage medium
CN114185611A (en) * 2021-11-26 2022-03-15 京微齐力(深圳)科技有限公司 Multi-column automatic copying configuration method and circuit for device to be configured
CN114185611B (en) * 2021-11-26 2023-09-12 京微齐力(深圳)科技有限公司 Multi-column automatic replication configuration method and circuit for device to be configured
CN114546503A (en) * 2022-02-11 2022-05-27 联想开天科技有限公司 A kind of booting method and electronic device based on hard disk

Also Published As

Publication number Publication date
CN105511892B (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN100472657C (en) Device and method for protecting flash memory system
CN101325513B (en) Method, equipment and system for upgrading software
US8336044B2 (en) Method and system for deploying a software image
CN105511892A (en) Information processing method and electronic equipment
CN110045991B (en) RAID configuration method and device of server, computer equipment and storage medium
CN104850762B (en) Prevent the undesirable method of the movement of computer, computer program and computer
US20080091929A1 (en) Method and system for automatic generation of operating system boot images
US9965288B2 (en) Preconfiguring hardware and speeding up server discovery prior to bios boot
CN106201613A (en) Preheating software is installed
CN105242875A (en) Server raid batch configuration method
TW201207731A (en) Embedded system with plural firmware and firmware updating method thereof
CN107329792B (en) Docker container starting method and device
CN105354059A (en) Upgrading method and device for controller of air conditioning system
CN105094895A (en) Method and device for installing multiple display card drivers
CN105159673A (en) Method and device for setting control style
EP3682332A1 (en) Method and apparatus for erasing or writing flash data
CN105204910A (en) Script hot updating method and system
CN105573757A (en) Language updating method and device of Android system
CN105677409A (en) System upgrading method and device
CN109597639B (en) Software upgrading method, device, equipment and medium
CN103246544B (en) virtual hardware driving method
CN105069381A (en) Intelligent terminal based partition protection method and system
CN113419756A (en) File upgrading method and device and electronic equipment
CN113127852A (en) SE application management method and device based on chip card and storage medium
CN104008004A (en) Process protection method and electronic 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
GR01 Patent grant
GR01 Patent grant