CN105511892B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN105511892B
CN105511892B CN201410486534.XA CN201410486534A CN105511892B CN 105511892 B CN105511892 B CN 105511892B CN 201410486534 A CN201410486534 A CN 201410486534A CN 105511892 B CN105511892 B CN 105511892B
Authority
CN
China
Prior art keywords
information list
address information
storage unit
address
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410486534.XA
Other languages
Chinese (zh)
Other versions
CN105511892A (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 a kind of information processing method and electronic equipments, wherein the described method includes: obtaining bootstrap configuration file;The first address information list is generated, first address information list carries the physical address and identification information of N number of storage unit, and N is the positive integer more than or equal to 1;The second address information list is got, second address information list and first address information list are identical or different, and second address information list carries the physical address and identification information of M storage unit, and M is the positive integer more than or equal to 1;The bootstrap configuration file is updated according to first address information list, second address information list and the first preset rules, the electronic equipment is controlled according to the updated bootstrap configuration file and guides os starting.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to wireless communication field more particularly to a kind of information processing methods and electronic equipment.
Background technique
Basic output output system (BIOS, Basic Input Output System) is one group and is cured to electronic equipment Program on mainboard chip, for providing the hardware setting and control of the bottom for electronic equipment, its in store electronic equipment Substantially the contents such as self-check program and system self-triggered program after the program of input and output, system set-up information, booting.Currently, It, all can be as actual use situation be for the progress of corresponding storage unit when using electronic equipments such as PC or servers Increase and decrease or modification operation;Once having carried out the operation such as increase and decrease or modification of storage unit, it is possible to which will appear can not basis The problem of bootstrap configuration file normal start-up operation system.
Summary of the invention
In view of this, being solved at least existing the purpose of the present invention is to provide a kind of information processing method and electronic equipment There is the above problem present in technology.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
The embodiment of the invention provides a kind of information processing methods, are applied to electronic equipment, which comprises
Obtain bootstrap configuration file;
The first address information list is generated, first address information list carries the physical address of N number of storage unit And identification information, N are the positive integer more than or equal to 1;
The second address information list is got, second address information list is identical as first address information list Or it is different, second address information list carries the physical address and identification information of M storage unit, and M is more than or equal to 1 Positive integer;
According to the update of first address information list, second address information list and the first preset rules Bootstrap configuration file controls the electronic equipment according to the updated bootstrap configuration file guidance operation System starting.
The embodiment of the invention also provides a kind of electronic equipment, the electronic equipment includes:
File obtaining unit, for obtaining bootstrap configuration file;
Scalar/vector, for generating the first address information list, first address information list carries N number of deposit The physical address and identification information of storage unit, N are the positive integer more than or equal to 1;
Control unit, for getting the second address information list, second address information list and first ground Location information list is identical or different, and second address information list carries the physical address and mark letter of M storage unit Breath, M are the positive integer more than or equal to 1;According to first address information list, second address information list and first Preset rules update the bootstrap configuration file;According to the updated bootstrap configuration file guidance operation System starting.
Information processing method and electronic equipment provided by the present invention, can be by the physical address and identification information of storage unit Association generates address information list, uniquely identifies each storage unit by identification information, passes through address information list energy Enough guarantee that bootstrap configuration file correctly determines the corresponding storage unit of operating system and correctly guides os starting, such as This, it will be able to guarantee the usage experience of user.
Detailed description of the invention
Fig. 1 is information processing method flow diagram one of the present invention;
Fig. 2 is information processing method flow diagram two of the present invention;
Fig. 3 is implement scene one of the invention;
Fig. 4 is implement scene two of the invention;
Fig. 5 is information processing method flow diagram three of the present invention;
Fig. 6 is electronic equipment composed structure schematic diagram of the present invention.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is further described in more detail.
Embodiment one,
The embodiment of the invention provides a kind of information processing methods, are applied to electronic equipment, as shown in Figure 1, the method Include:
Step 101: obtaining bootstrap configuration file;
Step 102: generating the first address information list, first address information list carries N number of storage unit Physical address and identification information, N are the positive integer more than or equal to 1;
Step 103: getting the second address information list, second address information list and first address information List is identical or different, and second address information list carries the physical address and identification information of M storage unit, and M is Positive integer more than or equal to 1;
Step 104: according to first address information list, second address information list and the first preset rules The bootstrap configuration file is updated, controls the electronic equipment according to the updated bootstrap configuration file Guide os starting.
The execution sequence of above-mentioned steps 101 and step 102 can in no particular order, i.e., the described step 101 and the step 102 It may be performed simultaneously, can also be executed with step 101 prior to step 102.
Here, the physical address of the storage unit can be the position of the storage unit in the electronic device, can be with It is made of number and/or letter, for example, hd0, hd1, hd2 are alternatively, C, D, E, F disk.
The bootstrap configuration file is used to provide the first storage unit where the image file of operating system.
A scene for obtaining bootstrap configuration file described in the present embodiment is illustrated below, specifically can wrap It includes:
Startup self-detection (POST, Power On Self Test) is carried out after electronic equipment power-up;Wherein, the startup self-detection It may include the situation for obtaining storage unit and hardware device;
BIOS inquires storage unit according to preset boot sequence;
Bootstrap configuration file is got from the storage unit;Preferably, the bootstrap configuration file can Think master boot record (MBR, Main Boot Recorder).
Correspondingly, described can be with according to updated bootstrap configuration file guidance os starting are as follows: root According to updated bootstrap configuration file, the physical address of the storage unit where the image file of operating system, root are determined The image file is got according to the physical address, according to the image file start-up operation system.
As it can be seen that using this programme address letter can be generated by the way that the physical address of storage unit to be associated with identification information List is ceased, due to uniquely identifying each storage unit by identification information, can be guaranteed by address information list Bootstrap configuration file correctly determines the corresponding storage unit of operating system, guides os starting, so, it will be able to protect Demonstrate,prove the usage experience of user.
Embodiment two,
The embodiment of the invention provides a kind of information processing methods, are applied to electronic equipment, as shown in Fig. 2, the method Include:
Step 201: obtaining bootstrap configuration file;
Step 202: generating the first address information list, first address information list carries N number of storage unit Physical address and identification information, N are the positive integer more than or equal to 1;
Step 203: getting the second address information list, second address information list and first address information List is identical or different, and second address information list carries the physical address and identification information of M storage unit, and M is Positive integer more than or equal to 1;
Step 204: judging whether first address information list and second address information list are identical, when described When the first address information list and the second address information list difference, the guidance is updated according to first preset rules Program configuration file controls the electronic equipment according to the updated bootstrap configuration file and guides operating system Starting.
Above-mentioned steps 201 and step 202 may be performed simultaneously, and can also be executed with step 201 prior to step 202.
Here, the physical address of the storage unit can be the position of the storage unit in the electronic device, can be with It is made of number and/or letter, for example, hd0, hd1, hd2 are alternatively, C, D, E, F disk.
The identification information of the storage unit can be the MAC Address of the storage unit;It or can be the storage The string number of unit;Or can also be when the storage unit is virtual drive, it can be corresponding one or more by virtual drive The number that the string number of a hard disk is generated using preset algorithm, the preset algorithm can be hash algorithm.
The bootstrap configuration file is used to provide the first storage unit where the image file of operating system.
A scene for obtaining bootstrap configuration file described in the present embodiment is illustrated below, specifically can wrap It includes:
Startup self-detection (POST, Power On Self Test) is carried out after electronic equipment power-up;Wherein, the startup self-detection It may include the situation for obtaining storage unit and hardware device;
BIOS inquires storage unit according to preset boot sequence;
Bootstrap configuration file is got from the storage unit;Preferably, the bootstrap configuration file can Think master boot record (MBR, Main Boot Recorder).
Correspondingly, described can be with according to updated bootstrap configuration file guidance os starting are as follows: root According to updated bootstrap configuration file, the physical address of the storage unit where the image file of operating system, root are determined The image file is got according to the physical address, according to the image file start-up operation system.
The bootstrap configuration file is updated according to the first preset rules described in above-mentioned steps 204, comprising:
The corresponding physical address of the first storage unit is obtained from the bootstrap configuration file;
According to the second address information list, the corresponding identification information of physical address of first storage unit is determined;
Using the identification information of first storage unit, from first address information list, described first is searched The corresponding new physical address of storage unit;
The bootstrap configuration file is updated using the new physical address.
The usage scenario of the embodiment of the present invention may include:
Scene one,
When using server, may individually it modify to the several storage units taken out in server, when again Several storage units are installed to server, it is possible that the case where physical location of storage unit changes, such as Fig. 3 Shown, there are two storage unit, the image files of operating system to be located in storage unit A for reset condition, after user's adjustment, The physical address of storage unit A and storage unit B produce variation;The scheme so provided through this embodiment, according to current The first address information list and the second original address information list got, determines the reality of the image file of operating system It is storage unit A at where border, bootstrap configuration file is updated, using the bootstrap configuration file of update come start-up operation System.
Scene two,
When user needs exented memory, memory bar will increase sometimes, at this moment, it is possible to can change the object of storage unit Manage position;For example, assume that the identification information of storage unit is A, B, C in figure in the present embodiment shown in Fig. 4, storage unit Original state be the physical address of storage unit A be 1, the physical address of storage unit B is 2;After user's extension, storage unit The physical address that the physical address that the physical address of A becomes 2, storage unit B becomes 3, newly-increased storage unit C becomes 1;This When, if obtaining operating system in the storage unit for being 1 according further to the slave physical address recorded in bootstrap configuration file Image file will guide failure;By the identification information of storage unit determine physical address be 2 be only memory image text Then the storage unit A of part is updated bootstrap configuration file, guided using updated bootstrap configuration file Os starting.
It is understood that above-mentioned scene second is that increase storage unit scene, delete the scene of storage unit accordingly Mode of operation it is same, be not described herein.
As it can be seen that using this programme address letter can be generated by the way that the physical address of storage unit to be associated with identification information List is ceased, due to uniquely identifying each storage unit by identification information, can be guaranteed by address information list Bootstrap configuration file correctly determines the corresponding storage unit of operating system, guides os starting, so, it will be able to protect Demonstrate,prove the usage experience of user.
Embodiment three,
The embodiment of the invention provides a kind of information processing methods, are applied to electronic equipment, as shown in figure 5, the method Include:
Step 501: obtaining bootstrap configuration file;
Step 502: detecting the physical address of N number of storage unit;
Step 503: obtaining the identification information of N number of storage unit;
Step 504: the physical address of N number of storage unit and the identification information being associated, saved to institute The first address information list is stated, N is the positive integer more than or equal to 1;
Step 505: getting the second address information list, second address information list and first address information List is identical or different, and second address information list carries the physical address and identification information of M storage unit, and M is Positive integer more than or equal to 1;
Step 506: according to first address information list, second address information list and the first preset rules The bootstrap configuration file is updated, controls the electronic equipment according to the updated bootstrap configuration file Guide os starting.
Here, the physical address of the detection N number of storage unit can be with are as follows: scans each storage according to designated order Unit, the physical address according to the sequence of the storage unit scanned as the storage unit, stores the physical address of equipment It can be made of number and/or letter, for example, hd0, hd1, hd2 are alternatively, C, D, E, F disk.Wherein, the designated order can be with For the scanning according to physical location from top to bottom.
The identification information for obtaining N number of storage unit can be with are as follows: using the MAC Address of the storage unit as institute State the identification information of storage unit;
Or it can be for directly by the string number of the storage unit as identification information;
Or can also be when the storage unit is virtual drive, it can be corresponding one or more hard by virtual drive For the number that the string number of disk is generated using preset algorithm as identification information, the preset algorithm can be hash algorithm.
The bootstrap configuration file is used to provide the first storage unit where the image file of operating system.
A scene for obtaining bootstrap configuration file described in the present embodiment is illustrated below, specifically can wrap It includes:
Startup self-detection (POST, Power On Self Test) is carried out after electronic equipment power-up;Wherein, the startup self-detection It may include the situation for obtaining storage unit and hardware device;
BIOS inquires storage unit according to preset boot sequence;
Bootstrap configuration file is got from the storage unit;Preferably, the bootstrap configuration file can Think master boot record (MBR, Main Boot Recorder).
Correspondingly, described can be with according to updated bootstrap configuration file guidance os starting are as follows: root According to updated bootstrap configuration file, the physical address of the storage unit where the image file of operating system, root are determined The image file is got according to the physical address, according to the image file start-up operation system.
It is described to be updated according to first address information list, second address information list and the first preset rules The bootstrap configuration file includes:
Judge whether first address information list and second address information list are identical, when first address When information list and the second address information list difference, the bootstrap is updated according to first preset rules and is configured File.
It is wherein, described to update the bootstrap configuration file according to the first preset rules, comprising:
The corresponding physical address of the first storage unit is obtained from the bootstrap configuration file;
According to the second address information list, the corresponding identification information of physical address of first storage unit is determined;
Using the identification information of first storage unit, from first address information list, described first is searched The corresponding new physical address of storage unit;
The bootstrap configuration file is updated using the new physical address.
The usage scenario of the embodiment of the present invention may include:
Scene one,
When using server, may individually it modify to the several storage units taken out in server, when again Several storage units are installed to server, it is possible that the case where physical location of storage unit changes, such as Fig. 3 Shown, there are two storage unit, the image files of operating system to be located in storage unit A for reset condition, after user's adjustment, The physical address of storage unit A and storage unit B produce variation;The scheme so just provided through this embodiment, according to working as Before the first address information list and the second original address information list that get, determine the image file of operating system It is storage unit A at where practical, updates bootstrap configuration file, start behaviour using the bootstrap configuration file of update Make system.
Scene two,
When user needs exented memory, memory bar will increase sometimes, at this moment, it is possible to can change the object of storage unit Manage position;For example, assume that the identification information of storage unit is A, B, C in figure in the present embodiment shown in Fig. 4, storage unit Original state be the physical address of storage unit A be 1, the physical address of storage unit B is 2;After user's extension, storage unit The physical address that the physical address that the physical address of A becomes 2, storage unit B becomes 3, newly-increased storage unit C becomes 1;This When, if obtaining operating system in the storage unit for being 1 according further to the slave physical address recorded in bootstrap configuration file Image file will guide failure;By the identification information of storage unit determine physical address be 2 be only memory image text Then the storage unit A of part is updated bootstrap configuration file, guided using updated bootstrap configuration file Os starting.
It is understood that above-mentioned scene second is that increase storage unit scene, delete the scene of storage unit accordingly Mode of operation it is same, be not described herein.
Further, after above-mentioned steps are completed, the replacement operation of address information list can also be carried out, specifically: it deletes Except former second address information list, first address information list is saved as into new second address information and is arranged Table.In this way, this first address information list is i.e. as the second ground next time when starting electronic equipment next time Location information list, to guarantee to compare the second address information list used and original bootstrap configuration file phase every time Match.
In addition, the execution step provided in this embodiment for updating bootstrap configuration file can be with are as follows:
After getting bootstrap configuration file, the operating system is guided to open according to the bootstrap configuration file It is dynamic, obtain the first operating result;
When the first operating result is guidance failure, the first address information list is generated;
Obtain the second address information list;
The guidance is updated according to first address information list, the second address information list and the first preset rules Program configuration file guides os starting according to updated bootstrap configuration file.It can also further delete First address information list, is saved as the second new address information list by former second address information list.In this way, can be with The operation that electronic equipment is carried out generation and the comparison of address information list need not be started every time, only when starting fails It waits and just carries out aforesaid operations, can guarantee the starting speed of electronic equipment under normal conditions to a certain extent.
As it can be seen that using this programme address letter can be generated by the way that the physical address of storage unit to be associated with identification information List is ceased, due to uniquely identifying each storage unit by identification information, can be guaranteed by address information list Bootstrap configuration file correctly determines the corresponding storage unit of operating system, guides os starting, so, it will be able to protect Demonstrate,prove the usage experience of user.
Example IV,
The embodiment of the invention provides a kind of electronic equipment, as shown in fig. 6, the electronic equipment includes:
File obtaining unit 61, for obtaining bootstrap configuration file;
Scalar/vector 62, for generating the first address information list, first address information list carries N number of The physical address and identification information of storage unit, N are the positive integer more than or equal to 1;
Control unit 63, for getting the second address information list, second address information list and described first Address information list is identical or different, and second address information list carries the physical address and mark of M storage unit Information, M are the positive integer more than or equal to 1;According to first address information list, second address information list and One preset rules update the bootstrap configuration file;According to the updated bootstrap configuration file guidance behaviour Make system starting.
Here, the file obtaining unit 61 can be controlled when obtaining bootstrap configuration file by control unit 63 Scalar/vector 62 generates the first address information list;It or can be to match when file obtaining unit 61 gets bootstrap After setting file, scalar/vector 62 is controlled by control unit 63 and generates the first address information list.
The physical address of the storage unit can be the position of the storage unit in the electronic device, can be by number And/or letter composition, for example, hd0, hd1, hd2 are alternatively, C, D, E, F disk.
The bootstrap configuration file is used to provide the first storage unit where the image file of operating system.
A scene for obtaining bootstrap configuration file described in the present embodiment is illustrated below, specifically can wrap It includes:
Startup self-detection (POST, Power On Self Test) is carried out after electronic equipment power-up;Wherein, the startup self-detection It may include the situation for obtaining storage unit and hardware device;
BIOS inquires storage unit according to preset boot sequence;
Bootstrap configuration file is got from the storage unit;Preferably, the bootstrap configuration file can Think master boot record (MBR, Main Boot Recorder).
Correspondingly, described can be with according to updated bootstrap configuration file guidance os starting are as follows: root According to updated bootstrap configuration file, the physical address of the storage unit where the image file of operating system, root are determined The image file is got according to the physical address, according to the image file start-up operation system.
As it can be seen that using this programme address letter can be generated by the way that the physical address of storage unit to be associated with identification information List is ceased, due to uniquely identifying each storage unit by identification information, can be guaranteed by address information list Bootstrap configuration file correctly determines the corresponding storage unit of operating system, guides os starting, so, it will be able to protect Demonstrate,prove the usage experience of user.
Embodiment five,
The embodiment of the invention provides a kind of electronic equipment, the electronic equipment includes:
File obtaining unit, for obtaining bootstrap configuration file;
Scalar/vector, for generating the first address information list, first address information list carries N number of deposit The physical address and identification information of storage unit, N are the positive integer more than or equal to 1;
Control unit, for getting the second address information list, second address information list and first ground Location information list is identical or different, and second address information list carries the physical address and mark letter of M storage unit Breath, M are the positive integer more than or equal to 1;According to first address information list, second address information list and first Preset rules update the bootstrap configuration file;According to the updated bootstrap configuration file guidance operation System starting.
Here, the physical address of the storage unit can be the position of the storage unit in the electronic device, can be with It is made of number and/or letter, for example, hd0, hd1, hd2 are alternatively, C, D, E, F disk.
The identification information of the storage unit can be the MAC Address of the storage unit;It or can be the storage The string number of unit;Or can also be when the storage unit is virtual drive, it can be corresponding one or more by virtual drive The number that the string number of a hard disk is generated using preset algorithm, the preset algorithm can be hash algorithm.
The bootstrap configuration file is used to provide the first storage unit where the image file of operating system.
Described control unit, specifically for judging that first address information list is with second address information list It is no identical, when first address information list and the second address information list difference, according to the described first default rule Then update the bootstrap configuration file.
Described control unit, specifically for obtaining the corresponding object of the first storage unit from the bootstrap configuration file Manage address;According to the second address information list, the corresponding identification information of physical address of first storage unit is determined;It utilizes It is corresponding to search first storage unit from first address information list for the identification information of first storage unit New physical address;The bootstrap configuration file is updated using the new physical address.
Described control unit is specifically used for determining the mirror image of operating system according to updated bootstrap configuration file The physical address of storage unit where file gets the image file according to the physical address, according to the mirror image File start operating system.
The usage scenario of the embodiment of the present invention may include:
Scene one,
When using server, may individually it modify to the several storage units taken out in server, when again Several storage units are installed to server, it is possible that the case where physical location of storage unit changes, such as Fig. 3 Shown, there are two storage unit, the image files of operating system to be located in storage unit A for reset condition, after user's adjustment, The physical address of storage unit A and storage unit B produce variation;The scheme so just provided through this embodiment, according to working as Before the first address information list and the second original address information list that get, determine the image file of operating system It is storage unit A at where practical, updates bootstrap configuration file, start behaviour using the bootstrap configuration file of update Make system.
Scene two,
When user needs exented memory, memory bar will increase sometimes, at this moment, it is possible to can change the object of storage unit Manage position;For example, assume that the identification information of storage unit is A, B, C in figure in the present embodiment shown in Fig. 4, storage unit Original state be the physical address of storage unit A be 1, the physical address of storage unit B is 2;After user's extension, storage unit The physical address that the physical address that the physical address of A becomes 2, storage unit B becomes 3, newly-increased storage unit C becomes 1;This When, if obtaining operating system in the storage unit for being 1 according further to the slave physical address recorded in bootstrap configuration file Image file will guide failure;By the identification information of storage unit determine physical address be 2 be only memory image text Then the storage unit A of part is updated bootstrap configuration file, guided using updated bootstrap configuration file Os starting.
It is understood that above-mentioned scene second is that increase storage unit scene, delete the scene of storage unit accordingly Mode of operation it is same, be not described herein.
As it can be seen that using this programme address letter can be generated by the way that the physical address of storage unit to be associated with identification information List is ceased, due to uniquely identifying each storage unit by identification information, can be guaranteed by address information list Bootstrap configuration file correctly determines the corresponding storage unit of operating system, guides os starting, so, it will be able to protect Demonstrate,prove the usage experience of user.
Embodiment six,
The embodiment of the invention provides electronic equipment, the electronic equipment includes:
File obtaining unit, for obtaining bootstrap configuration file;
Scalar/vector, for generating the first address information list, first address information list carries N number of deposit The physical address and identification information of storage unit, N are the positive integer more than or equal to 1;
Control unit, for getting the second address information list, second address information list and first ground Location information list is identical or different, and second address information list carries the physical address and mark letter of M storage unit Breath, M are the positive integer more than or equal to 1;According to first address information list, second address information list and first Preset rules update the bootstrap configuration file;According to the updated bootstrap configuration file guidance operation System starting.
Described control unit, specifically for judging that first address information list is with second address information list It is no identical, when first address information list and the second address information list difference, according to the described first default rule Then update the bootstrap configuration file.
Described control unit, specifically for obtaining the corresponding object of the first storage unit from the bootstrap configuration file Manage address;According to the second address information list, the corresponding identification information of physical address of first storage unit is determined;It utilizes It is corresponding to search first storage unit from first address information list for the identification information of first storage unit New physical address;The bootstrap configuration file is updated using the new physical address.
Scalar/vector, specifically for detecting the physical address of N number of storage unit;It is single to obtain N number of storage The identification information of member;The physical address of N number of storage unit and the identification information are associated, saved to described First address information list.
Here, the scalar/vector is specifically used for scanning each storage unit according to designated order, be arrived according to scanning Storage unit physical address of the sequence as the storage unit, store equipment physical address can by number and/or Letter composition, for example, hd0, hd1, hd2 are alternatively, C, D, E, F disk.Wherein, the designated order can for according to physical location from The scanning of top to bottm.
The scalar/vector, specifically for using the MAC Address of the storage unit as the mark of the storage unit Know information;
Or it can be for directly by the string number of the storage unit as identification information;
Or can also be when the storage unit is virtual drive, it can be corresponding one or more hard by virtual drive For the number that the string number of disk is generated using preset algorithm as identification information, the preset algorithm can be hash algorithm.
The bootstrap configuration file is used to provide the first storage unit where the image file of operating system.
Described control unit is specifically used for determining the mirror image of operating system according to updated bootstrap configuration file The physical address of storage unit where file gets the image file according to the physical address, according to the mirror image File start operating system.
The usage scenario of the embodiment of the present invention may include:
Scene one,
When using server, may individually it modify to the several storage units taken out in server, when again Several storage units are installed to server, it is possible that the case where physical location of storage unit changes, such as Fig. 3 Shown, there are two storage unit, the image files of operating system to be located in storage unit A for reset condition, after user's adjustment, The physical address of storage unit A and storage unit B produce variation;The scheme so just provided through this embodiment, according to working as Before the first address information list and the second original address information list that get, determine the image file of operating system It is storage unit A at where practical, updates bootstrap configuration file, start behaviour using the bootstrap configuration file of update Make system.
Scene two,
When user needs exented memory, memory bar will increase sometimes, at this moment, it is possible to can change the object of storage unit Manage position;For example, assume that the identification information of storage unit is A, B, C in figure in the present embodiment shown in Fig. 4, storage unit Original state be the physical address of storage unit A be 1, the physical address of storage unit B is 2;After user's extension, storage unit The physical address that the physical address that the physical address of A becomes 2, storage unit B becomes 3, newly-increased storage unit C becomes 1;This When, if obtaining operating system in the storage unit for being 1 according further to the slave physical address recorded in bootstrap configuration file Image file will guide failure;By the identification information of storage unit determine physical address be 2 be only memory image text Then the storage unit A of part is updated bootstrap configuration file, guided using updated bootstrap configuration file Os starting.
It is understood that above-mentioned scene second is that increase storage unit scene, delete the scene of storage unit accordingly Mode of operation it is same, be not described herein.
Further, described control unit can also carry out the replacement operation of address information list, specifically: it deletes former First address information list is saved as new second address information list by second address information list.Such as This, when starting electronic equipment next time, this first address information list is as the second address letter next time List is ceased, so that guarantee compares the second address information list used every time and original bootstrap configuration file matches.
In addition, the execution provided in this embodiment for updating bootstrap configuration file can be with are as follows:
File obtaining unit, for getting bootstrap configuration file;
Control unit, for being got according to the file obtaining unit the bootstrap configuration file guidance described in Os starting obtains the first operating result;When the first operating result is guidance failure, control scalar/vector is generated First address information list;Obtain the second address information list;It is arranged according to first address information list, the second address information Table and the first preset rules update the bootstrap configuration file, are guided and are grasped according to updated bootstrap configuration file Make system starting.In this way, the behaviour that electronic equipment is carried out generation and the comparison of address information list may not necessarily be started every time Make, aforesaid operations are only just carried out when starting failure, can guarantee electronic equipment in normal feelings to a certain extent Starting speed under condition.
As it can be seen that using this programme address letter can be generated by the way that the physical address of storage unit to be associated with identification information List is ceased, due to uniquely identifying each storage unit by identification information, can be guaranteed by address information list Bootstrap configuration file correctly determines the corresponding storage unit of operating system, guides os starting, so, it will be able to protect Demonstrate,prove the usage experience of user.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit Or communication connection, it can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit The component shown can be or may not be physical unit, it can and it is in one place, it may be distributed over multiple network lists In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing module, it can also To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned include: movable storage device, it is read-only Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or The various media that can store program code such as person's CD.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (8)

1. a kind of information processing method is applied to electronic equipment, which comprises
Obtain bootstrap configuration file;
The first address information list is generated, first address information list carries the physical address and mark of N number of storage unit Know information, N is the positive integer more than or equal to 1;
Get the second address information list, second address information list is identical as first address information list or not Together, second address information list carries the physical address and identification information of M storage unit, and M is just more than or equal to 1 Integer;
The guidance is updated according to first address information list, second address information list and the first preset rules Program configuration file controls the electronic equipment according to the updated bootstrap configuration file and guides operating system Starting;
It is described to update the bootstrap configuration file according to the first preset rules, comprising:
The corresponding physical address of the first storage unit is obtained from the bootstrap configuration file;
According to the second address information list, the corresponding identification information of physical address of first storage unit is determined;
Using the identification information of first storage unit, from first address information list, first storage is searched The corresponding new physical address of unit;
The bootstrap configuration file is updated using the new physical address.
2. the method according to claim 1, wherein according to first address information list, second ground Location information list and the first preset rules update the bootstrap configuration file, comprising:
Judge whether first address information list and second address information list are identical,
When first address information list and the second address information list difference, more according to first preset rules The new bootstrap configuration file.
3. the method according to claim 1, wherein the first address information list of generation includes:
Detect the physical address of N number of storage unit;
Obtain the identification information of N number of storage unit;
The physical address of N number of storage unit and the identification information are associated, saves to first address and believes Cease list.
4. the method according to claim 1, wherein it is described according to first address information list, described After double-address information list and the first preset rules update the bootstrap configuration file, the method also includes: it deletes Except former second address information list, first address information list is saved as into new second address information and is arranged Table.
5. a kind of electronic equipment, the electronic equipment include:
File obtaining unit, for obtaining bootstrap configuration file;
Scalar/vector, for generating the first address information list, it is single that first address information list carries N number of storage The physical address and identification information of member, N are the positive integer more than or equal to 1;
Control unit, for getting the second address information list, second address information list and first address are believed Breath list is identical or different, and second address information list carries the physical address and identification information of M storage unit, M For the positive integer more than or equal to 1;It is default according to first address information list, second address information list and first Bootstrap configuration file described in Policy Updates;Operating system is guided according to the updated bootstrap configuration file Starting;
Described control unit, it is corresponding physically specifically for obtaining the first storage unit from the bootstrap configuration file Location;According to the second address information list, the corresponding identification information of physical address of first storage unit is determined;Using described It is corresponding new to search first storage unit from first address information list for the identification information of first storage unit Physical address;The bootstrap configuration file is updated using the new physical address.
6. electronic equipment according to claim 5, which is characterized in that described control unit is specifically used for judging described the Whether one address information list and second address information list are identical, when first address information list and described second When address information list difference, the bootstrap configuration file is updated according to first preset rules.
7. electronic equipment according to claim 5, which is characterized in that scalar/vector is specifically used for detecting described N number of The physical address of storage unit;Obtain the identification information of N number of storage unit;By the physical address of N number of storage unit, And the identification information is associated, and is saved to first address information list.
8. electronic equipment according to claim 5, which is characterized in that described control unit is also used to delete former described the First address information list is saved as new second address information list by double-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 CN105511892A (en) 2016-04-20
CN105511892B true 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)

Families Citing this family (4)

* 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
CN112559564B (en) * 2020-11-19 2022-08-12 山东云海国创云计算装备产业创新中心有限公司 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
CN114185611B (en) * 2021-11-26 2023-09-12 京微齐力(深圳)科技有限公司 Multi-column automatic replication configuration method and circuit for device to be configured

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 中兴通讯股份有限公司 Storage device and system starting method thereof
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 中兴通讯股份有限公司 Storage device and system starting method thereof
CN103984571A (en) * 2014-05-21 2014-08-13 华为技术有限公司 Method and device for uprating operating system partition

Also Published As

Publication number Publication date
CN105511892A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN105511892B (en) A kind of information processing method and electronic equipment
US20120246645A1 (en) Method for managing virtual machine, information processing apparatus, and medium for virtual machine management program
US9218197B2 (en) Virtual machine image migration
CN106325760B (en) The method and apparatus for managing storage array configuration
US11558252B2 (en) Learning by inference from previous deployments
CN106325915A (en) Systems, methods, and computer-readable storage media for updating a computer firmware
CN104461594B (en) The upgrade method and device of embedded OS
US8321617B1 (en) Method and apparatus of server I/O migration management
CN104915226B (en) A kind of network device software starting method, apparatus and the network equipment
CN108234164A (en) Clustered deploy(ment) method and device
CN109474443B (en) Configuration method, device and system of newly added server and communication equipment
WO2020123213A1 (en) Container migration in computing systems
CN105573830B (en) A kind of virtual machine migration method
CN105607972B (en) A kind of method and device repaired extremely
WO2012038211A1 (en) Attesting use of an interactive component during a boot process
CN107329769A (en) A kind of method and apparatus for configuring bare machine server
JP6996629B2 (en) Verification automation equipment, verification automation methods, and programs
CN107861790A (en) Magnetic disk of virtual machine Extend Methods of Spatial Distribution, device, host and readable storage medium storing program for executing
CN110851827A (en) Service customizable high-interaction honeypot realized based on container technology and use method
CN107992381A (en) System reducing method, device, system, backup and reduction server and storage medium
JP2014515858A (en) Method and apparatus for recombining executing instructions
JP2009244999A (en) Virtual machine management program and management server device
US10235005B2 (en) Method of generating display name of objects to be managed
CN106254364B (en) Computer desktop service access apparatus and method under a kind of Multi net voting isolation environment
US8838790B2 (en) Configuration value management apparatus and management method

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