CN110018968B - Data reading method, electronic equipment and computer storage medium - Google Patents

Data reading method, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN110018968B
CN110018968B CN201910253156.3A CN201910253156A CN110018968B CN 110018968 B CN110018968 B CN 110018968B CN 201910253156 A CN201910253156 A CN 201910253156A CN 110018968 B CN110018968 B CN 110018968B
Authority
CN
China
Prior art keywords
data
storage space
block
read
damaged
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
CN201910253156.3A
Other languages
Chinese (zh)
Other versions
CN110018968A (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 CN201910253156.3A priority Critical patent/CN110018968B/en
Publication of CN110018968A publication Critical patent/CN110018968A/en
Application granted granted Critical
Publication of CN110018968B publication Critical patent/CN110018968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The embodiment of the invention discloses a data reading method, which comprises the following steps: reading data of a data block in a first storage space from a starting position of the first storage space; if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space; the data stored in the first storage space and the data stored in the second storage space are the same, and the position of the first damaged block corresponds to the address of the first position. The embodiment of the invention also discloses electronic equipment and a computer storage medium.

Description

Data reading method, electronic equipment and computer storage medium
Technical Field
The present disclosure relates to the field of electronics and information technologies, and in particular, to a data reading method, an electronic device, and a computer storage medium.
Background
In the related art, when data in a storage space is read, if a certain data block in the storage space is damaged, the electronic device cannot read the data stored in the storage space.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention desirably provide a data reading method, an electronic device, and a computer storage medium, so as to solve a problem in the related art that when data in a storage space is read, if a certain data block in the storage space is damaged, the electronic device cannot read the data stored in the storage space.
The technical scheme of the invention is realized as follows:
a method of data reading, the method comprising:
reading data of a data block in a first storage space from a starting position of the first storage space;
if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space;
the data stored in the first storage space and the data stored in the second storage space are the same, and the position of the first damaged block corresponds to the address of the first position.
Optionally, after the reading of the data block in the second storage space from the first location of the second storage space if the location of the first damaged block is read, the method further includes:
if the position of a second damaged block is read, continuously reading the data of the data block in the first storage space from the second position of the first storage space; wherein the location of the second corrupted block corresponds to the address of the second location.
Optionally, after the reading of the data block in the second storage space from the first location of the second storage space if the location of the first damaged block is read, the method further includes:
and if the end mark of the data in the data block is read before the second damaged block is read in the second storage space, determining the data of the data block read from the first storage space and the second storage space as target data.
Optionally, if the position of the first damaged block is read, continuing to read the data of the data block in the second storage space from the first position of the second storage space, including:
if the first damaged block is read, recording the position of the first damaged block, and generating a first reading instruction;
reading data of a data block in the first storage space from a starting position of the first storage space based on the first reading instruction;
and if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space.
Optionally, if the position of the second damaged block is read, continuing to read the data of the data block in the first storage space from the second position of the first storage space, including:
if the second damaged block is read, recording the position of the second damaged block and generating a second reading instruction;
reading data of a data block in the first storage space from a starting position of the first storage space based on the second reading instruction;
if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space;
and if the position of the second damaged block is read, continuously reading the data of the data block in the first storage space from the second position of the first storage space.
Optionally, the reading, based on the first read instruction, data of the data block in the first storage space from a start position of the first storage space includes:
reading data of the data block in the second storage space from the starting position of the second storage space based on the first reading instruction;
if the third damaged block is read, recording the position of the third damaged block and generating a third reading instruction;
and if the address of the position of the first damaged block is larger than the address of the position of the third damaged block, reading the data of the data block in the first storage space from the initial position of the first storage space based on the third read instruction.
Optionally, the method further comprises:
determining a first target position of the acquired damaged block in the first storage space, and determining a second target position of the acquired damaged block in the second storage space;
determining a first data block corresponding to the first target position from the second storage space, and determining a second data block corresponding to the second target position from the first storage space; wherein the location of the first data block corresponds to the address of the first target location; the location of the second data block corresponds to the address of the second target location;
and repairing the acquired damaged block in the first storage space based on the first data block, and repairing the acquired damaged block in the second storage space based on the second data block.
Optionally, the method further comprises:
determining a read time consumed for reading data of the data block of each storage space;
and determining the data block corresponding to the reading time which is longer than the specific time as the damaged block of each storage space.
An electronic device, the electronic device comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the program of the data reading method in the memory to realize the following steps:
reading data of a data block in a first storage space from a starting position of the first storage space;
if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space; the data stored in the first storage space and the data stored in the second storage space are the same, and the position of the first damaged block corresponds to the address of the first position.
A computer storage medium storing one or more programs executable by one or more processors to implement the steps of the data reading method described above.
According to the data reading method, the electronic device and the computer storage medium provided by the embodiment of the invention, the data of the data block in the first storage space is read from the initial position of the first storage space; if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space; because the data stored in the first storage space and the data stored in the second storage space are the same, and the position of the first damaged block corresponds to the address of the first position, when the position of the first damaged block is read, the reading of the first damaged block is bypassed, so that the reading can be continued, and the problem that the electronic equipment cannot read the data stored in the storage space if a certain data block in the storage space is damaged is further avoided.
Drawings
Fig. 1 is a schematic flowchart of a data reading method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating another data reading method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another data reading method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a first storage space and a second storage space provided in an embodiment of the present invention;
FIG. 5 is a flowchart illustrating reading data in a data block according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating a data reading method according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
It should be appreciated that reference throughout this specification to "an embodiment of the present invention" or "an embodiment described previously" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrase "in an embodiment of the present invention" or "in the foregoing embodiments" in various places throughout the specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
After the electronic device is powered On, a BIOS (Basic Input Output System) file solidified in a Read-Only Memory (ROM) chip On a motherboard is automatically run, which is generally called Power On Self Test (POST), to check whether the electronic device is good. The basic input and output system file mainly comprises parameters set for hardware, when the electronic equipment is started, the parameters in the basic input and output system file are read and compared with actual hardware settings, if the parameters and the actual hardware settings are mutually matched, a boot program is entered, namely, an operating system is booted to be installed into the electronic equipment, otherwise, the startup of the system is influenced if the parameters and the actual hardware settings are not matched.
The bios file is stored in a storage space, where the storage space includes a plurality of data blocks, and if a certain data block is damaged, the data block cannot be read from the damaged data block, and thus the bios file cannot be read. The storage space may be a memory or a buffer. The size of each of the plurality of data blocks may be the same or different. When the size of a data block is 128K, the characterization may store data less than or equal to 128K into the data block. The size of the data block may be selected according to actual situations, which is not limited in the embodiment of the present invention.
In an embodiment, in order to avoid a situation that the bios file cannot be read when a data block in a storage space storing the bios file is damaged, a first storage space and a second storage space are usually configured in the electronic device, and both the first storage space and the second storage space store the bios file. The first storage space and the second storage space may be provided on one storage device or on different storage devices.
In general, the bios file stored in the first storage space is referred to as a main file, the bios file stored in the second storage space is referred to as a standby file, and the main file and the standby file are the same file. The first storage space may include a plurality of sequentially arranged data blocks a1, a2, … …, An, the second storage space may include a plurality of sequentially arranged data blocks B1, B2, … …, Bn, a1 and B1 are the same in size and store the same data, a2 and B2 are the same in size and store the same data, … …, and An and Bn are the same in size and store the same data. The main files are stored in data blocks A1, A2, … …, An, and the standby files are stored in data blocks B1, B2, … …, Bn. In one embodiment, the data chunks a1, a2, … …, An may be the same size, e.g., data chunks a1, a2, … …, An are all 128K in size. In another embodiment, the data chunks a1, a2, … …, An may be of different sizes. In the embodiment of the invention, the basic input and output system files are stored continuously in the first storage space or the second storage space, that is, the data blocks a1, a2, … … and An are continuous, and the data blocks B1, B2, … … and Bn are continuous. The addresses of the data block a1 and the data block B1 in the embodiment of the present invention are the same, the addresses of the data block a2 and the data block B2 are the same, … …, and the addresses of the data block An and the data block Bn are the same. The address in the embodiment of the invention is a physical address or an offset address.
When the processor starts to read the data of the data block from the initial position of the first storage space, if a damaged block in the first storage space is read, the processor may start to read the data of the data block from the initial position of the second storage space, and if an end identifier of the bios file is read, determine that the data read from the second storage space is the bios file.
However, when the processor also reads the damaged block in the second storage space, the processor cannot read the data in the data block of the second storage space, that is, when the damaged block exists in both the first storage space and the second storage space, the above-mentioned reading method still cannot read the bios file.
An embodiment of the present invention provides a data reading method applied to an electronic device, and as shown in fig. 1, the method includes the following steps:
step 101: reading data of the data block in the first storage space from the starting position of the first storage space.
The electronic device in the embodiments of the present invention may be any device having data processing capability, such as a server, a mobile phone, a tablet computer, a notebook computer, a palm computer, a personal digital assistant, a portable media player, a navigation device, a wearable device, a smart band, a pedometer, a digital TV, a desktop computer, or the like.
Step 102: and if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space.
The data stored in the first storage space and the data stored in the second storage space are the same, and the position of the first damaged block corresponds to the address of the first position. The addresses of the locations of the two data blocks may correspond to the addresses of each of the two data blocks, and the offset from the address of the first block of the storage space in which each data block is located is the same. For example, the location of the first defective block and the address of the first location may correspond such that the offset of the location of the first defective block with respect to the first block of the first storage space (i.e., the data block at the start of the first storage space) is the same as the offset of the first location with respect to the first block of the second storage space (i.e., the data block at the start of the second storage space). It should be understood that, in the embodiment of the present invention, the addresses of the locations of the other two data blocks are corresponding, and the description of the location of the first damaged block and the address corresponding to the first location may be referred to, and the embodiment of the present invention will not be described again.
When a processor of the electronic device reads the data blocks in the first storage space, firstly reading the position of the first data block, starting timing by a timer, then reading the data stored in the data block A1, and after the data reading of the data block A1 is completed, the first reading time consumed by acquiring the data read from the data block A1 from the timer is less than or equal to a specific time; then the processor reads the position of the second data block A2, the timer restarts counting, and then the data stored in the data block A2 is read, after the data reading of the data block A2 is completed, the first reading time consumed for obtaining the data of the data block A2 from the timer is less than or equal to a specific time; then the processor reads the position … … of the third data block a3 until the processor reads the position of the ith data block, the timer restarts counting, and when the data of the ith data block is read, the first reading time obtained from the timer is determined to be greater than a specific time, and the ith data block is determined to be a first damaged block. It can be understood that when reading a data block in the storage space, the processor always reads the position of the data block and then reads the data of the data block at the position. In the embodiment of the present invention, the first damaged block is a damaged block obtained for the first time when the data of the data block is read from the start position of the first storage space.
In an embodiment, if the location of the first damaged block is read, continuing to read the data of the data block in the second storage space from the first location of the second storage space may be implemented as follows: and if the position of the first damaged block is read and the first reading time consumed for reading the data of the first damaged block is longer than the specific time, continuously reading the data of the data block in the second storage space from the first position of the second storage space. That is, when the processor reads the position of the data block Ai, the data in the data block can be continuously read from the position of the data block Bi of the second storage space.
In the embodiment of the present invention, data in the data block Bi is continuously read from the position of the data block Bi in the second storage space, and data in the data block Bi +1, data in the data block Bi +2, and the like are continuously read. In other embodiments, the data in the data block Bi in the second storage space is continuously read from the position of the data block Bi, and after the data in the data block Bi is read, the data in the data block Ai +1, the data in the data block Ai +2, and the like can be continuously read.
In this way, when the processor reads the position of the first damaged block, because the data of the first damaged block is not read yet, whether the block is the damaged block cannot be known, so that the processor can read the data of the first damaged block, acquire the first reading time consumed when the data of the first damaged block is read, and determine that the acquired first reading time is longer than the specific time, at this moment, the processor obtains that the first damaged block is the damaged block. When the target data is stored in the first storage space and the second storage space, the data stored in the data block at the corresponding position is the same when the target data is just stored, in one case, the data stored in the first damaged block is abnormal, so that the data cannot be read from the first damaged block, but the data stored in the data block at the first position in the second storage space corresponding to the position of the first damaged block is not abnormal, so the processor in the embodiment of the invention can continue to read the data of the data block in the second storage space from the first position in the second storage space, and further, in the process of reading the data, the situation that the data is to be read from the first damaged block is bypassed, and the reading can continue. The target data in the implementation of the present invention may be the main file or the standby file, or may also be other files.
The data reading method provided by the embodiment of the invention reads the data of the data block in the first storage space from the initial position of the first storage space; if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space; because the data stored in the first storage space and the data stored in the second storage space are the same, and the position of the first damaged block corresponds to the address of the first position, when the position of the first damaged block is read, the reading of the first damaged block is bypassed, so that the reading can be continued, and the problem that the electronic equipment cannot read the data stored in the storage space if a certain data block in the storage space is damaged is further avoided.
Based on the foregoing embodiments, an embodiment of the present invention provides a data reading method, as shown in fig. 2, the method including the following steps:
step 201: the electronic equipment reads the data of the data block in the first storage space from the starting position of the first storage space.
In the embodiment of the present invention, the data in the electronic device read data block may be data in the electronic device processor read data block.
Step 202: and if the position of the first damaged block is read, the electronic equipment continuously reads the data of the data block in the second storage space from the first position of the second storage space.
The data stored in the first storage space and the data stored in the second storage space are the same, and the position of the first damaged block corresponds to the address of the first position.
In an embodiment of the present invention, the first corrupted block is determined to be a corrupted block by determining that the time consumed to read the data in the first corrupted block is greater than a certain time.
It should be understood that the processor, when obtaining whether each data block is a corrupted block, may be implemented by: determining a read time consumed for reading data of the data block of each storage space; and determining the data block corresponding to the reading time which is longer than the specific time as the damaged block of each storage space.
For example, as described below for a second corrupted block and a third corrupted block, the processor may determine that the time taken to read data in the second corrupted block is greater than a certain time, determine that the second corrupted block is a corrupted block, may determine that the time taken to read data in the third corrupted block is greater than a certain time, and determine that the third corrupted block is a corrupted block. Similarly, the processor may still determine the fourth damaged block, the fifth damaged block, and so on by this method, and the embodiments of the present invention will not be described in detail.
After step 202, the processor may determine to perform steps 203 or 204 based on whether a second corrupted block or end identifier is read.
Step 203: and if the position of the second damaged block is read, the electronic equipment continuously reads the data of the data block in the first storage space from the second position of the first storage space.
Wherein the location of the second corrupted block corresponds to the address of the second location.
In an embodiment, if the location of the second damaged block is read, the electronic device continues to read the data of the data block in the first storage space from the second location of the first storage space, which may be implemented as follows: and if the position of the second damaged block is read and the second reading time consumed for reading the data of the second damaged block is longer than the specific time, the electronic equipment continuously reads the data of the data block in the first storage space from the second position of the first storage space.
For example, when the processor continues to read the data in the data block from the position of the data block Bi in the second storage space until the position of the data block Bj is read, the timer restarts counting, then the data in the data block Bj is read, when it is determined that the second reading time obtained from the timer is greater than the specific time, the data block Bj is determined to be a second damaged block, and then the processor continues to read the data in the data block from the position of the data block Aj in the first storage space.
Similarly, if the location of the second damaged block is read, after the data of the data block in the first storage space is continuously read from the second location of the first storage space, the processor may further perform the following steps: if the end mark is read from the first storage space, determining to read target data; if the position of the fourth damaged block is read, continuously reading the data of the data block in the second storage space from the fourth position of the second storage space; if the end mark is read from the second storage space, determining the data of the read target; if the position of the fifth damaged block is read, the data … … of the data block in the first storage space is continuously read from the fifth position of the first storage space until the end mark is read, and the target data is obtained.
In this way, each time the processor reads a damaged block in one storage space, the data in the data block is continuously read from a position corresponding to the address of the position of the damaged block in the other storage space until the end mark is read, and the data in the data block is read in an interleaving manner, so that the data reading of the damaged block is bypassed, so that the damaged block exists in both storage spaces, and the data reading can still be carried out and the target data can be read when the addresses of the positions of the damaged blocks in the two storage spaces are different.
The second damaged block in the embodiment of the present invention is a damaged block that is read for the first time when the data of the data block is read from the first position of the second storage space.
Step 204: and if the end mark of the data in the data block is read before the second damaged block is read in the second storage space, the electronic equipment determines that the data of the data block read from the first storage space and the second storage space are the target data.
Reading the end mark of the data in the data block before reading the second damaged block in the second storage space, in other words, reading the end mark in the second storage space, but not reading the damaged block, that is, the second time consumed by reading each data block from the second storage space is less than or equal to the specific time.
In other embodiments of the present invention, step 204 may also be replaced with: and if the number of the read data blocks is the target number, the electronic equipment determines that the data of the data blocks read from the first storage space and the second storage space are the target data.
For example, when the target data is stored in data blocks a1, a2, … …, An, or in data blocks B1, B2, … …, Bn, the end flag is stored in data blocks An or Bn, the target number is n. When the first damaged block is the data block Ai, the data read from the data blocks a1, … …, Ai-1, Bi +1, … … Bn is determined to be the target data.
In one embodiment, after step 203 or step 204, the electronic device may further perform the methods of steps C1 to C3:
step C1: the electronic equipment determines a first target position of the acquired damaged block in the first storage space and determines a second target position of the acquired damaged block in the second storage space.
For example, after step 204, the processor may obtain the location of the first corrupted block in the first memory space, and thus the first target location is the location of the first corrupted block. Alternatively, after step 203, the processor may obtain the location of the first damaged block in the first storage space and the location of the second damaged block in the second storage space, or may also obtain the location of the fourth damaged block in the first storage space, the location of the fifth damaged block in the second storage space, and so on, and thus the first target location includes the location of the first damaged block and the second target location includes the location of the second damaged block, or the first target location includes the location of the first damaged block and the fourth damaged location, and so on, and the second target location includes the locations of the second damaged block and the fifth damaged block, and so on, which are not enumerated here.
Step C2: the electronic device determines a first data block corresponding to the first target position from the second storage space, and determines a second data block corresponding to the second target position from the first storage space.
Wherein the location of the first data block corresponds to the address of the first target location; the location of the second data block corresponds to the address of the second target location.
For example, after the processor acquires the position of the first damaged block, the determined data block at the first position corresponding to the position of the first damaged block is the first data block. And after the processor acquires the position of the second damaged block, determining that the data block at the second position corresponding to the position of the second damaged block is the second data block. It should be understood that the location correspondence in the embodiment of the present invention may be address correspondence of the location. Further, the method of obtaining the data blocks corresponding to the positions of the third damaged block, the fourth damaged block and the fifth damaged block may be similar to that described above, and details are not repeated here. It should be understood that the number of data blocks in the first data block should be consistent with the number of acquired defective blocks in the first storage space, and the number of data blocks in the second data block should be consistent with the number of acquired defective blocks in the second storage space.
Step C3: and the electronic equipment repairs the acquired damaged blocks in the first storage space based on the first data blocks and repairs the acquired damaged blocks in the second storage space based on the second data blocks.
In this way, by acquiring the data block corresponding to each damaged block position in the other storage space, the damaged block that has been acquired can be repaired. In one embodiment, repairing the data blocks may be writing data of the data blocks corresponding to each defective block location to each defective block.
It should be noted that, in the embodiment of the present invention, the damaged block may be a damaged block in a data block in the first storage space, or a damaged block in a data block in the second storage space, without being described.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
According to the data reading method provided by the embodiment of the invention, when the data of the data block in the second storage space is continuously read from the first position of the second storage space, if the end mark is read, the target data is read, if the second damaged block is read, the data of the data block in the first storage space is continuously read from the second position of the first storage space, and so on, when each damaged block is read, the data are continuously read from the position of the other storage space and each damaged block until the end mark is read, the target data are obtained, and further, through the reading mode, when the damaged blocks exist in the first storage space and the second storage space, the reading can still be carried out, so that the target data are obtained.
Based on the foregoing embodiments, an embodiment of the present invention provides a data reading method, as shown in fig. 3, the method including the following steps:
step 301: the electronic equipment reads the data of the data block in the first storage space from the starting position of the first storage space.
In one embodiment, the processor may obtain a fourth read instruction, and read data of the data block in the first storage space from the start position of the first storage space based on the fourth read instruction. The reading instruction in the embodiment of the present invention may be a start instruction for starting the electronic device. It should be understood that the read instruction herein may include the first read instruction, the second read instruction, the third read instruction, the fourth read instruction, the fifth read instruction, and so on, which are present in the embodiments of the present invention.
Step 302: if the first damaged block is read, the electronic equipment records the position of the first damaged block and generates a first reading instruction.
For example, when the processor determines that the ith data block Ai is the first damaged block, the processor may record a first position of the first damaged block and store an address of the first position in the preset storage space, so that the processor may call the address of the first position in the preset storage space when reading next time. The embodiment of the invention does not limit the sequence of the two steps of recording the position of the first damaged block and generating the first reading instruction.
Step 303: the electronic equipment reads the data of the data block in the first storage space from the starting position of the first storage space based on the first reading instruction.
In one embodiment, step 303 may be implemented by the following steps D1 to D4:
step D1: the electronic equipment reads the data of the data block in the second storage space from the starting position of the second storage space based on the first reading instruction.
Step D2: and if the third damaged block is read, the electronic equipment records the position of the third damaged block and generates a third reading instruction.
And the third damaged block is a damaged block obtained for the first time when the data of the data block is read from the starting position of the second storage space.
After step D2, the electronic device may determine to perform step D3 or step D4 based on the address relationship of the address of the location of the first corrupted block and the location of the third corrupted block.
Step D3: and if the address of the position of the first damaged block is larger than the address of the position of the third damaged block, the electronic equipment reads the data of the data block in the first storage space from the initial position of the first storage space based on the third read instruction.
For example, when the first corrupted block is Ai and the third corrupted block is Bk, i is greater than k, then the address characterizing the location of the first corrupted block is greater than the address of the location of the third corrupted block.
Step D4: and if the address of the position of the first damaged block is smaller than the address of the position of the third damaged block, the electronic equipment reads the data of the data block in the first storage space from the initial position of the second storage space based on the third read instruction.
Through steps D1 to D4, on one hand, when the second storage space has no damaged block, the target data can be directly read from the second storage space, avoiding the situation of interleaved reading, and on the other hand, according to the size relationship between the address of the position of the first damaged block and the address of the position of the third damaged block, the data of the data block is determined to be read from the starting position of the first storage space or the starting position of the second storage space, so that the number of times of interleaved reading can be reduced, and the influence of the head jumping back and forth on the reading performance can be avoided.
Step 304: and if the position of the first damaged block is read, the electronic equipment continuously reads the data of the data block in the second storage space from the first position of the second storage space.
Step 305: if the second damaged block is read, the electronic equipment records the position of the second damaged block and generates a second reading instruction.
For example, when the processor determines that the jth data block Bj is a second damaged block, the processor may record a second location of the second damaged block, and store an address of the second location in the preset storage space, so that the processor may call the address of the second location in the preset storage space when reading next time.
Step 306: the electronic equipment reads the data of the data block in the first storage space from the starting position of the first storage space based on the second reading instruction.
Step 307: and if the position of the first damaged block is read, the electronic equipment continuously reads the data of the data block in the second storage space from the first position of the second storage space.
After step 307, the electronic device may further perform the following steps: and if the end mark is read before the second damaged block is read from the second storage space, determining to read the target data.
Step 308: and if the position of the second damaged block is read, the electronic equipment continuously reads the data of the data block in the first storage space from the second position of the first storage space.
In one embodiment, after step 308, the electronic device may further perform the following steps: and if the ending mark is read before the fourth damaged block is read from the first storage space, the electronic equipment determines to read the target data. It should be understood that the fourth defective block is a defective block obtained for the first time when the data of the data block is read from the start position of the first storage space.
In another embodiment, after step 308, the electronic device may further perform the following steps: if the fourth damaged block is read from the first storage space, the electronic device records the position of the fourth damaged block, generates a fifth reading instruction, starts to read the data of the data block in the first storage space from the initial position of the first storage space based on the fifth reading instruction until the position of the fourth damaged block is read, and continues to read the data in the data block from the position, corresponding to the address of the position of the fourth damaged block, of the second storage space until the end mark is read.
The following describes a reading process of the electronic device for data in the data block with reference to fig. 4 and 5:
referring to fig. 4, the first storage space includes data blocks a1, a2, A3, … …, An, and the second storage space includes data blocks B1, B2, B3, … …, Bn.
With continued reference to fig. 4 and 5, the processor performs a first read based on the fourth read command, starts the read from data block a1, determines that a corrupted block was read when the processor reads data block A3, records the location of data block A3, and generates the first read command. It should be noted that, in the embodiment of the present invention, the processor is restarted each time based on the read instruction, and when the processor starts to read data in the data block from the start position, the processing device is powered on first and then reads the data.
The processor performs a second read based on the first read instruction, starting with data block B1 at the start of the second memory space. When the second data block B2 is read, the data block B2 is determined to be a corrupted block, the processor records the location of the data block B2, and generates a third read command.
The processor determines from data A3 and data block B2 that the address of the location of data block A3 is greater than the address of the location of data block B2, and therefore, the processor performs a third read based on the third read instruction, and reads the data in the data block starting from the beginning in the main storage space, and continues to read the data in the data block from data block B3 in the second storage space when the location of data block A3 is read. Until an end flag is read. And by analogy, when the damaged block is read from the second storage space, the position of the damaged block can be recorded, a reading instruction is generated and read again, and when the damaged block is read from the first storage space next time, the damaged block is read again until the end mark is read.
It should be noted that, in the data reading method according to the embodiment of the present invention, after the data in the data block B3 in the second storage space is continuously read, how to perform the next reading when the damaged block is read is not described, but it should be understood that, in the subsequent reading process, as long as the processor reads each damaged block, the processor records the position of each damaged block and generates a reading instruction, and the processor starts to read the data in the data block from the start position of the first storage unit according to the reading instruction, and when the processor reads the position of each damaged block, the processor continues to read the data in the data block from the position of the other storage space corresponding to the position of each damaged block that has been recorded until the end mark is read, so as to obtain the target data.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
According to the data reading method provided by the embodiment of the invention, when the damaged block is read each time, the position of the damaged block is recorded, a reading instruction is generated, based on the reading instruction, the data of the data block in the first storage space is read from the initial position of the first storage space, and when the position of each recorded damaged block is read, the data is continuously read from the data block corresponding to the address of the position of each damaged block in the other storage space, so that the situation that the data cannot be read when the damaged block is read is avoided.
Based on the foregoing embodiments, an embodiment of the present invention provides a data reading method, as shown in fig. 6, the method including the following steps:
step 401: the electronic equipment reads the data of the main file stored in the first storage space from the starting position of the first storage space.
The main file in the embodiment of the invention is a basic input and output system file.
Step 402: and if the position of the first damaged block is read, the electronic equipment continuously reads the data of the standby file stored in the second storage space from the first position of the second storage space.
The standby file in the embodiment of the invention is a basic input and output system file. In other words, the main file stored in the first storage space and the standby file stored in the second storage space are the same file and are both bios files.
In an embodiment, if the location of the first damaged block is read, the electronic device continues to read the data of the backup file stored in the second storage space from the first location of the second storage space, which may include: if the first damaged block is read, the electronic equipment records the position of the first damaged block and generates a first reading instruction; and the electronic equipment starts to read the data of the main file stored in the first storage space from the initial position of the first storage space based on the first reading instruction, and if the position of the first damaged block is read, the electronic equipment continues to read the data of the standby file stored in the second storage space from the first position of the second storage space.
In an embodiment, after step 402, the electronic device may further perform a step of determining that the data read from the first storage space and the second storage space is the bios file if the end identifier in the standby file is read.
In another embodiment, after step 402, the electronic device may further perform the following steps: if the second damaged block is read, the electronic equipment records the position of the second damaged block and generates a second reading instruction; based on the second reading instruction, the electronic equipment starts to read the data of the main file stored in the first storage space from the initial position of the first storage space; if the position of the first damaged block is read, the electronic equipment continuously reads the data of the standby file stored in the second storage space from the first position of the second storage space; and if the position of the second damaged block is read, the electronic equipment continuously reads the data of the main file stored in the first storage space from the second position of the first storage space.
By analogy, if the end identifier is read from the main file, determining to read the basic input and output system file; if the fourth damaged block is read, the electronic equipment records the position of the fourth damaged block, generates a fifth reading instruction, and starts to read the data of the main file stored in the first storage space from the initial position of the first storage space based on the fifth reading instruction until the position of the fourth damaged block is read, and continues to read the data of the standby file from the position, corresponding to the address of the position of the fourth damaged block, of the second storage space; and if the end mark is read from the standby file, determining to read the basic input and output system file, if the fifth damaged block is read, the electronic equipment still records the position of the fifth damaged block, and regenerates a reading instruction, and starts to read the data of the main file stored in the first storage space from the initial position of the first storage space based on the reading instruction until the position of the fifth damaged block is read, and continues to read the data in the main file from the position of the first storage space corresponding to the address of the position of the fifth damaged block until the end mark is read, so as to obtain the basic input and output system file.
The data reading method in the embodiment of the present invention is not limited to this, but it should be understood that the data reading method in the embodiment of the present invention is that the electronic device reads each damaged block in the storage space, and when the position of the damaged block is not recorded, the position of each damaged block is recorded, and a reading instruction is generated, and based on the reading instruction, the electronic device needs to read data of the main file stored in the first storage space from the start position of the first storage space until the position of the damaged block that has been recorded is read, and read data in the data block from another storage space until the end identifier is read, so as to obtain the basic input/output system file. For example, referring to fig. 4 and 5, when reading data block A3 at the time of the first read, the electronic device will record the location of data block A3 and generate a first read command because the location of data block A3 was not recorded. When the third reading is performed, or the reading is started from the starting position, when the data block A3 is read, since the position of the data block A3 is already recorded, the electronic device can continue to read the data in the data block from the position of the data block B3 in the second storage space based on the position of the data block A3, and so on until the end flag is read.
In short, each time the electronic device reads an unrecorded damaged block, the position of each damaged block is recorded, a reading instruction is generated, data reading is restarted from the starting position based on the reading instruction, and according to the position of the recorded damaged block, the data of the main file and the data of the standby file are read in an interleaving manner until an ending mark is read, so that a basic input and output system file is obtained.
When the electronic equipment reads the basic input and output system file, the parameters in the basic input and output system file are compared with the actual hardware setting, if the parameters and the actual hardware setting are in accordance with each other, a bootstrap program is entered, an operating system is booted to be loaded into the electronic equipment, and then the electronic equipment is started.
According to the data reading method provided by the embodiment of the invention, since the files stored in the first storage space and the second storage space are the same and are both basic input and output system files, when the position of the first damaged block is read, the reading of the first damaged block is bypassed, the reading can be continued, so that the basic input and output system files can be read, and the problem that the electronic equipment cannot read the basic input and output system files and further cannot be started up if a certain data block in the storage space is damaged is solved.
Based on the foregoing embodiments, an embodiment of the present invention provides an electronic device 5, where the electronic device 5 may be applied to a data reading method provided in the embodiments corresponding to fig. 1 to 3 and fig. 6, and as shown in fig. 7, the electronic device 5 may include: a processor 51, a memory 52, and a communication bus 53, wherein:
the communication bus 53 is used to realize a communication connection between the processor 51 and the memory 52.
The processor 51 is configured to execute a program of a data reading method stored in the memory 52 to implement the following steps:
reading data of a data block in a first storage space from a starting position of the first storage space;
if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space;
the data stored in the first storage space and the data stored in the second storage space are the same, and the position of the first damaged block corresponds to the address of the first position.
In other embodiments of the present invention, the processor 51 is configured to execute a data reading method stored in the memory 52 to implement the following steps:
if the position of the second damaged block is read, continuously reading the data of the data block in the first storage space from the second position of the first storage space; wherein the location of the second corrupted block corresponds to the address of the second location.
In other embodiments of the present invention, the processor 51 is configured to execute a data reading method stored in the memory 52 to implement the following steps:
and if the end mark of the data in the data block is read before the second damaged block is read in the second storage space, determining the data of the data block read from the first storage space and the second storage space as target data.
In other embodiments of the present invention, the processor 51 is configured to execute the following steps, if the location of the first damaged block is read, stored in the memory 52, and continue reading the data of the data block in the second storage space from the first location of the second storage space, to implement:
if the first damaged block is read, recording the position of the first damaged block, and generating a first reading instruction;
reading data of a data block in the first storage space from a starting position of the first storage space based on the first reading instruction;
and if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space.
In other embodiments of the present invention, the processor 51 is configured to execute the following steps if the location of the second damaged block is read, which is stored in the memory 52, to continue reading the data of the data block in the first storage space from the second location of the first storage space, so as to:
if the second damaged block is read, recording the position of the second damaged block and generating a second reading instruction;
reading data of the data block in the first storage space from the starting position of the first storage space based on the second reading instruction;
if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space;
and if the position of the second damaged block is read, continuously reading the data of the data block in the first storage space from the second position of the first storage space.
In other embodiments of the present invention, the processor 51 is configured to execute the first read instruction stored in the memory 52 to read data of the data block in the first storage space from the start position of the first storage space, so as to implement the following steps:
reading data of the data block in the second storage space from the starting position of the second storage space based on the first reading instruction;
if the third damaged block is read, recording the position of the third damaged block and generating a third read instruction;
and if the address of the position of the first damaged block is larger than the address of the position of the third damaged block, reading the data of the data block in the first storage space from the initial position of the first storage space based on a third read instruction.
In other embodiments of the present invention, the processor 51 is configured to execute a data reading method stored in the memory 52 to implement the following steps:
determining a first target position of the acquired damaged block in the first storage space, and determining a second target position of the acquired damaged block in the second storage space;
determining a first data block corresponding to the first target position from the second storage space, and determining a second data block corresponding to the second target position from the first storage space; wherein the location of the first data block corresponds to the address of the first target location; the location of the second data block corresponds to the address of the second target location;
and repairing the acquired damaged block in the first storage space based on the first data block, and repairing the acquired damaged block in the second storage space based on the second data block.
In other embodiments of the present invention, the processor 51 is configured to execute a data reading method stored in the memory 52 to implement the following steps:
determining a read time consumed for reading data of the data block of each storage space;
and determining the data block corresponding to the reading time which is longer than the specific time as the damaged block of each storage space.
It should be noted that, for a specific implementation process of the steps executed by the processor in this embodiment, reference may be made to implementation processes in the data reading method provided in the embodiments corresponding to fig. 1 to 3 and fig. 6, and details are not described here.
The electronic device provided by the embodiment of the invention reads the data of the data block in the first storage space from the initial position of the first storage space; if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space; because the data stored in the first storage space and the data stored in the second storage space are the same, and the position of the first damaged block corresponds to the address of the first position, when the position of the first damaged block is read, the reading of the first damaged block is bypassed, so that the reading can be continued, and the problem that the electronic equipment cannot read the data stored in the storage space if a certain data block in the storage space is damaged is further avoided.
Based on the foregoing embodiments, embodiments of the present invention provide a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the data reading method as any one of the above.
The Processor may be at least one of an Embedded Controller (EC), an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a Controller, a microcontroller, and a microprocessor. It is to be understood that the electronic device implementing the above-described processor function may be other electronic devices, and the embodiments of the present invention are not particularly limited.
The computer storage medium/Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); but may also be various terminals such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above-mentioned memories.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, recitation of an element by the phrase "comprising an … …" does not exclude the presence of other like elements in the process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present invention.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A method of data reading, the method comprising:
reading data of a data block in a first storage space from a starting position of the first storage space;
if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space;
if the position of the first damaged block is read, after the data of the data block in the second storage space is continuously read from the first position of the second storage space, if the position of the second damaged block is read, the data of the data block in the first storage space is continuously read from the second position of the first storage space;
the data stored in the first storage space and the data stored in the second storage space are the same, and the position of the first damaged block corresponds to the address of the first position; the location of the second corrupted block corresponds to the address of the second location.
2. The method of claim 1, wherein after reading the location of the first damaged block and continuing to read the data of the data block in the second storage space from the first location of the second storage space, the method further comprises:
and if the end mark of the data in the data block is read before the second damaged block is read in the second storage space, determining the data of the data block read from the first storage space and the second storage space as target data.
3. The method of claim 1, wherein if the location of the first damaged block is read, continuing to read the data of the data block in the second storage space from the first location of the second storage space comprises:
if the first damaged block is read, recording the position of the first damaged block, and generating a first reading instruction;
reading data of a data block in the first storage space from a starting position of the first storage space based on the first reading instruction;
and if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space.
4. The method of claim 3, wherein if the location of the second damaged block is read, continuing to read the data of the data block in the first storage space from the second location of the first storage space comprises:
if the second damaged block is read, recording the position of the second damaged block and generating a second reading instruction;
reading data of a data block in the first storage space from a starting position of the first storage space based on the second reading instruction;
if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space;
and if the position of the second damaged block is read, continuously reading the data of the data block in the first storage space from the second position of the first storage space.
5. The method of claim 3, the reading data of the data block in the first storage space starting from a starting position of the first storage space based on the first read instruction, comprising:
reading data of the data block in the second storage space from the starting position of the second storage space based on the first reading instruction;
if a third damaged block is read, recording the position of the third damaged block and generating a third read instruction;
and if the address of the position of the first damaged block is larger than the address of the position of the third damaged block, reading the data of the data block in the first storage space from the initial position of the first storage space based on the third read instruction.
6. The method of any of claims 1 to 5, further comprising:
determining a first target position of the acquired damaged block in the first storage space, and determining a second target position of the acquired damaged block in the second storage space;
determining a first data block corresponding to the first target position from the second storage space, and determining a second data block corresponding to the second target position from the first storage space; wherein the location of the first data block corresponds to the address of the first target location; the location of the second data block corresponds to the address of the second target location;
and repairing the acquired damaged block in the first storage space based on the first data block, and repairing the acquired damaged block in the second storage space based on the second data block.
7. The method of any of claims 1 to 5, further comprising:
determining a read time consumed for reading data of the data block of each storage space;
and determining the data block corresponding to the reading time which is longer than the specific time as the damaged block of each storage space.
8. An electronic device, the electronic device comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the program of the data reading method in the memory to realize the following steps:
reading data of a data block in a first storage space from a starting position of the first storage space;
if the position of the first damaged block is read, continuously reading the data of the data block in the second storage space from the first position of the second storage space;
if the position of the first damaged block is read, after the data of the data block in the second storage space is continuously read from the first position of the second storage space, if the position of the second damaged block is read, the data of the data block in the first storage space is continuously read from the second position of the first storage space;
the data stored in the first storage space and the data stored in the second storage space are the same, and the position of the first damaged block corresponds to the address of the first position; the location of the second corrupted block corresponds to the address of the second location.
9. A computer storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the data reading method of any one of claims 1 to 7.
CN201910253156.3A 2019-03-29 2019-03-29 Data reading method, electronic equipment and computer storage medium Active CN110018968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910253156.3A CN110018968B (en) 2019-03-29 2019-03-29 Data reading method, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910253156.3A CN110018968B (en) 2019-03-29 2019-03-29 Data reading method, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN110018968A CN110018968A (en) 2019-07-16
CN110018968B true CN110018968B (en) 2021-07-16

Family

ID=67190248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910253156.3A Active CN110018968B (en) 2019-03-29 2019-03-29 Data reading method, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN110018968B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260256A (en) * 2015-10-27 2016-01-20 首都师范大学 Fault detection and fallback method for dual-mode redundant pipeline

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001044986A1 (en) * 1999-12-17 2001-06-21 Si Han Kim Information coding and retrieval system and method thereof
TWI414992B (en) * 2009-01-23 2013-11-11 Infortrend Technology Inc Method for remote asynchronous replication of volumes and apparatus therefor
US9651525B2 (en) * 2013-06-27 2017-05-16 TecScan Systems Inc. Method and apparatus for scanning an object
CN103473098A (en) * 2013-09-10 2013-12-25 华为技术有限公司 Starting method of boot program and relevant device
CN105099793B (en) * 2015-09-24 2019-02-05 华为技术有限公司 Hot spare method, apparatus and system
CN105554130A (en) * 2015-12-18 2016-05-04 深圳中兴网信科技有限公司 Distributed storage system-based NameNode switching method and switching device
CN107885612B (en) * 2016-09-30 2020-02-21 华为技术有限公司 Data processing method, system and device
CN109388511B (en) * 2018-09-14 2021-05-18 联想(北京)有限公司 Information processing method, electronic equipment and computer storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260256A (en) * 2015-10-27 2016-01-20 首都师范大学 Fault detection and fallback method for dual-mode redundant pipeline

Also Published As

Publication number Publication date
CN110018968A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
US7908469B2 (en) Method for executing power on self test on a computer system and updating SMBIOS information partially
US20060064576A1 (en) Boot systems and methods
CN110162429B (en) System repair method, server and storage medium
WO2015103917A1 (en) Management method and apparatus of wireless routing device
US20120117367A1 (en) Electronic apparatus and booting method thereof
US11861349B2 (en) Modular firmware updates in an information handling system
CN109582332B (en) System upgrading method and device for Internet camera
US8788800B2 (en) OS processing method, system and non-transitory computer readable storage medium thereof
CN110941516B (en) Operating system restoration method, device, equipment and storage medium
CN112133357A (en) eMMC testing method and device
CN112306368B (en) Method and device for expanding user data partition by EMMC (enhanced multi-media card)
CN111221553A (en) Firmware upgrading method and device
US20100115004A1 (en) Backup system that stores boot data file of embedded system in different strorage sections and method thereof
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
WO2024152611A1 (en) Control method and apparatus for baseboard control unit, and electronic device and non-volatile readable storage medium
JP2004021990A (en) Firmware selector of computer including processor
CN111857882B (en) Extensible SSD card opening firmware loading method and device, computer equipment and storage medium
CN103455750A (en) High-security verification method and high-security verification system for embedded devices
CN111930575B (en) Firmware acquisition method and device and electronic equipment
CN110018968B (en) Data reading method, electronic equipment and computer storage medium
US9443604B2 (en) Electronic device and data-management method thereof
CN113505026B (en) Method, device and equipment for verifying backup data and storage medium
CN106611124A (en) Computer device and boot method thereof
EP1710697A1 (en) Method and apparatus for executing application in system having NAND flash memory
US20170131946A1 (en) Method and device for formatting storage of mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant