CN112565896A - System repair method, terminal and storage medium - Google Patents

System repair method, terminal and storage medium Download PDF

Info

Publication number
CN112565896A
CN112565896A CN201910853621.7A CN201910853621A CN112565896A CN 112565896 A CN112565896 A CN 112565896A CN 201910853621 A CN201910853621 A CN 201910853621A CN 112565896 A CN112565896 A CN 112565896A
Authority
CN
China
Prior art keywords
repair
partition
file
logical partition
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910853621.7A
Other languages
Chinese (zh)
Other versions
CN112565896B (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.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co 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 Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN201910853621.7A priority Critical patent/CN112565896B/en
Publication of CN112565896A publication Critical patent/CN112565896A/en
Application granted granted Critical
Publication of CN112565896B publication Critical patent/CN112565896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a system repair method, a terminal and a storage medium, wherein the system repair method is applied to the terminal, the terminal comprises a storage module, and a logic partition is arranged in the storage module, and the method comprises the following steps: when the system is detected to be abnormally started, verifying the logical partition to obtain a verification result corresponding to the logical partition; if the verification result is that the logic partition is in an abnormal state, determining a repair strategy file corresponding to the verification result according to the verification result; and repairing the logic partition according to the repair strategy file. The invention can check the logic partition in the storage module in time when the system of the terminal is started abnormally, acquire the corresponding repair strategy file according to the check result, and repair the logic partition according to the repair strategy file, thereby repairing the system in time, improving the working efficiency of solving the abnormal problem of the system and reducing the maintenance cost.

Description

System repair method, terminal and storage medium
Technical Field
The invention relates to the technical field of intelligent equipment fault repair, in particular to a system repair method, a terminal and a storage medium.
Background
With the development of society and the advancement of technology, smart televisions have become essential appliances for households. Compared with the conventional non-intelligent television, the method also brings a new problem that the user may not start directly and normally when using the intelligent television, and the problem is mostly caused by the problem of the intelligent television memory module (EMMC). Once a problem occurs in a storage module (EMMC) of the smart television, the smart television cannot be started.
Because the current smart television can not timely and accurately detect the status of each logic partition in the storage module (EMMC) and can not timely repair the logic partition, when the television can not be started, the system can be restored to normal only by a traditional mode of forcibly upgrading the system through after-sales, which not only wastes manpower, but also has low efficiency in processing problems.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a system repair method, a terminal and a storage medium for solving the above-mentioned defects in the prior art, and aims to solve the problem that the system cannot be repaired in time when the smart tv cannot be started in the prior art.
The technical scheme adopted by the invention for solving the technical problem is as follows:
in a first aspect, an embodiment of the present invention provides a system repair method, where the method is applied to a terminal, where the terminal includes a storage module, and a logical partition is disposed in the storage module, and the method includes:
when the system is detected to be abnormally started, verifying the logical partition to obtain a verification result corresponding to the logical partition;
if the verification result is that the logic partition is in an abnormal state, determining a repair strategy file corresponding to the verification result according to the verification result;
and repairing the logic partition according to the repair strategy file.
In one embodiment, a user partition is disposed in the storage module, and the user partition is configured to direct the system to complete booting, and the checking the logical partition includes:
acquiring a preset verification program in the user partition;
and checking the logic partition according to the checking program.
In one embodiment, the checking the logical partition according to the checking program includes:
acquiring a system file in the logic partition, and mounting the system file into the user partition;
and acquiring mounting state information of the system file, and determining whether the logic partition is in an abnormal state according to the mounting state information.
In an embodiment, if the verification result indicates that the logical partition is in an abnormal state, determining, according to the verification result, a repair policy file corresponding to the verification result includes:
when the mounting state information of the system file is mounting failure, determining that the logic partition is in an abnormal state;
acquiring abnormal information of the logic partition;
according to a preset corresponding relation table, obtaining a repair strategy file corresponding to the abnormal information; the corresponding relation table stores various abnormal information of the logical partition and repair strategy files corresponding to the various abnormal information.
In one embodiment, the repairing the logical partition according to the repair policy file includes:
acquiring a formatting program in the repair strategy file;
and according to the formatting program, carrying out formatting processing on the system file in the logic partition.
In one embodiment, the repairing the logical partition according to the repair policy file includes:
acquiring repair data in the repair strategy file;
and repairing the system file in the logic partition according to the repair data.
In one embodiment, the repairing the logical partition according to the repair policy file includes:
obtaining upgrading data in the repair strategy file;
downloading an upgrading file corresponding to the upgrading data according to the upgrading data;
and upgrading the system files in the logic partitions according to the upgrading files.
In one embodiment, after repairing the logical partition according to the repair policy file, the method further includes:
after the system is recovered to be normal, guiding the system to the user partition so as to restart the system;
if the system cannot be guided to the user partition, determining that the system is abnormally started, and repeatedly executing the step of checking the logic partition.
In a second aspect, an embodiment of the present invention provides a terminal, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors to implement the one or more programs, including steps for executing the system repair method described in any one of the above.
In a third aspect, the present invention further provides a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform any one of the steps of the system repair method described above.
The invention has the beneficial effects that: because the system of the terminal (such as an intelligent television) is often related to the storage module when the system is abnormal, and once the storage module of the terminal has a problem, the system cannot be started successfully, in order to timely and accurately repair the system of the intelligent television, the embodiment of the invention acquires the logical partition in the storage module when the system of the terminal is detected to be abnormal, verifies the logical partition, and obtains the repair strategy file according to the verification result after the verification is completed. Since the verification result can reflect which specific logical partition in the storage module is in an abnormal state, and the repair policy file is obtained according to the verification result, the logical partition can be repaired by the repair policy file, so that the system can be started normally. Therefore, the embodiment of the invention can repair the system in time when the system of the terminal has a problem, improve the working efficiency of solving the problem of system abnormity, and avoid the labor cost and the maintenance cost caused by solving the problem of system abnormity through the traditional forced upgrade.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a system repair method according to an embodiment of the present invention.
Fig. 2 is a flowchart of determining a logical partition in a system repair method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a frame structure of a conventional memory module.
Fig. 4 is a schematic structural diagram of a frame of a memory module in the system repair method according to an embodiment of the present invention.
Fig. 5 is a flowchart of reporting a check result in the system repair method according to the embodiment of the present invention.
Fig. 6 is a schematic diagram illustrating mounting a system file in the system repair method according to the embodiment of the present invention.
Fig. 7 is a flowchart of a first implementation manner of a repair process in a system repair method according to an embodiment of the present invention.
Fig. 8 is a flowchart of a second implementation manner of a repair process in the system repair method according to the embodiment of the present invention.
Fig. 9 is a flowchart of a third implementation manner of a repair process in the system repair method according to the embodiment of the present invention.
Fig. 10 is a schematic block diagram of a system repair apparatus according to an embodiment of the present invention.
Fig. 11 is a functional block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The inventor researches and discovers that the operation process of the terminal is quite complex, and as the storage module is internally provided with the logic partition, the terminal needs to perform a large amount of frequent read-write operations on the storage module during starting and operation, so that problems of the virtual file system can be caused, such as: the logical partition suddenly changes from read and write to read only, the logical partition cannot be successfully mounted, the logical partition fails to check, and the like, which all result in that the system of the terminal cannot be started normally. These problems, not just the corruption of the storage module (EMMC, Embedded Multi Media Card, such as the memory in a smart tv) itself, may be corruption of the system files in the storage module. It can be seen that the system of the terminal is often related to the storage module when the system of the terminal is abnormal (for example, the system of the terminal cannot be successfully started or the terminal is frequently locked during the starting process, and the terminal cannot be successfully started after the terminal is locked for several times).
In order to timely and accurately repair a system of a terminal, when system start abnormality of the terminal is detected (the system start abnormality includes phenomena that the system of the terminal cannot be started successfully or is frequently blocked in a starting process, the terminal cannot be started successfully after being blocked for a plurality of times, and the like), a logical partition in a storage module is obtained, the logical partition is verified, and a verification result is obtained after the verification is completed. The check result may reflect whether the logical partition is in an abnormal state (the abnormal state includes phenomena such as system file damage in the logical partition or system file mounting failure), and the terminal may obtain a corresponding repair policy file according to the check result, where the repair policy file is generated according to the abnormal information of the logical partition and is used for specifically repairing the logical partition in the abnormal state. Therefore, when the terminal repairs the logic partition in the abnormal state according to the repair strategy file, the system of the terminal can be started successfully. Therefore, the embodiment of the invention can repair the system in time when the system of the terminal has a problem, thereby improving the working efficiency of solving the problem of system abnormity and avoiding the labor cost and the maintenance cost caused by solving the problem of system abnormity through the traditional forced upgrade.
For example, when a user starts up the smart television, the smart television cannot start the system, that is, the smart television cannot enter the operation interface, the operation interface includes many menu option keys, such as "carousel, anarchis, movie, children", and the like, and the smart television can play video or audio only when entering the operation interface (even if the user accesses a third-party device, such as a USB device, the user needs to enter the operation interface to play video or audio and the like in the third-party device). Therefore, when the intelligent television cannot enter the operation interface, the system starting of the intelligent television can be judged to be abnormal. In addition, if the smart television is started up and started up, the smart television is frequently jammed for multiple times and automatically restarted after each jamming, and the smart television enters the operation interface after the jamming and restarting for multiple times, although the situation finally enters the operation interface, the situation of jamming exists in the process of entering the operation interface, and therefore the situation that the smart television is abnormally started can also be judged. When the system start abnormality of the intelligent television is detected, the logical partition in the storage module of the intelligent television is acquired, the logical partition is checked, and the abnormal information in the logical partition needs to be repaired in a targeted manner for quick and timely repair of the system. The purpose of checking in this embodiment is to determine whether the logical partition is in an abnormal state and what the abnormal information is. For example, when the verification is completed, the verification result is that the logical partition a is in an exception, and the exception information is that the system file in the logical partition is damaged. Therefore, after the terminal obtains the verification result, the corresponding repair policy file is obtained according to the abnormal information of the logical partition a, for example, the corresponding repair policy file includes: the system files in logical partition a are formatted. And then the terminal repairs the logical partition A according to the repair policy file (i.e. formats the system file in the logical partition A) so as to enable the system to start normally. Therefore, the system can be repaired in time, the working efficiency of solving the system abnormity problem is improved, and the labor cost and the maintenance cost caused by solving the system abnormity problem through the traditional forced upgrading are avoided.
Exemplary method
As shown in fig. 1, an embodiment of the present invention provides a system repair method, by which a system can be repaired in time when a system of a terminal is abnormally started. Specifically, the method comprises the following steps:
and S100, when the system is detected to be abnormally started, verifying the logical partition to obtain a verification result corresponding to the logical partition.
In this embodiment, whether the system of the terminal is successfully started can be determined by detecting whether the terminal can enter the operation interface or whether frequent jamming and other phenomena exist in the process of entering the operation interface. If the terminal cannot enter the operation interface or the terminal needs to enter the operation interface after frequent jamming and restarting, and the like, the system start abnormality of the terminal is determined. The abnormal system starting condition of the terminal is related to the storage module, the storage module is divided into a plurality of logic partitions, each logic partition stores different system files, and whether the states of the system files in the logic partitions are normal or not affects the system starting process of the terminal. Therefore, in order to repair the system of the terminal, all the logical partitions in the storage module need to be acquired and checked one by one, and the purpose of checking is to find out a logical partition in an abnormal state (the abnormal state includes phenomena that a system file in the logical partition is damaged or the system file cannot be mounted, and the like), and determine abnormal information in the logical partition, so that the logical partition in the abnormal state is repaired in a targeted manner, and the system is restored to be normally started.
In one implementation, as shown in fig. 2, the step S100 specifically includes the following steps:
s101, acquiring a preset verification program in the user partition;
and S102, verifying the logic partition according to the verification program.
A use mode of the existing storage module when used in a terminal is shown in fig. 3, and the storage module is provided with a first Boot Area Partition (Boot Area Partition1), a second Boot Area Partition (Boot Area Partition2), and a user Partition (user Partition). When the system of the intelligent television is started, the system running program is guided to the user partition through the first guide area partition and the second guide area partition, and the system is started after the system is guided through the user partition. In the existing storage module, taking an intelligent television of an Android System as an example, as shown in fig. 3, the User Partition (User Partition) has a Partition 1(Partition1), a Partition 2(Partition2), a Partition 3(Partition3), and a Partition 4(Partition4), and the Partition1 stores a kernel file (kernel), the Partition2 stores a Recovery file (Recovery), the Partition3 stores a Driver file (Driver), the Partition4 stores a Data file (Data), and the other partitions store System programs (System) of the System programs.
In order to locate a Logical Partition in an abnormal state when a System of a terminal cannot be normally started, in this embodiment, an existing storage module is improved, as shown in fig. 4, a storage module component in this embodiment is divided into a User Partition (User Partition) and a Logical Partition (Logical Partition), a verification program for performing verification is stored in the User Partition, and System files are stored in the Logical Partition (Logical Partition), that is, as shown in fig. 4, the Logical Partition in this embodiment is provided with a plurality of partitions, including a Partition 1(Partition1), a Partition 2(Partition2), a Partition 3(Partition3), and a Partition 4(Partition4), correspondingly, a Partition1 stores a core program file (kernel), a Partition2 stores a Recovery program file (Recovery), a Partition3 stores a Driver file (Driver), a Partition4 stores a Data file (Data), and other partitions store a System program (System) of the System program, that is, each logical partition has a different system file set therein.
In specific implementation, as shown in fig. 4, when a system start abnormality of a terminal is detected, a logical partition in a storage module starts to be acquired, and a check program in a user partition is acquired at the same time when the logical partition is acquired, so that when the system start abnormality of the terminal is detected, the check program is started, and then each logical partition (i.e., partition1, partition2, partition3, partition 4.) is checked according to the check program, so that the logical partition in an abnormal state in the storage module is located in time.
In an implementation manner, in order to accurately determine whether a logical partition in the storage module is in an abnormal state, in this embodiment, after the logical partition is acquired, a checking program in the user partition is started to check the logical partition, where the purpose of checking is to determine whether the logical partition is in the abnormal state and determine abnormal information of the logical partition. Since the plurality of logical partitions are provided in this embodiment, each logical partition stores different system files, and whether the mount state of a system file is normal or not is important in connection with the start of the system of the terminal, when the mount state of a certain system file is abnormal (i.e., the mount of the system file fails), the system of the terminal cannot be normally started, and at this time, it is indicated that the logical partition where the system file is located is in an abnormal state. Therefore, in order to determine which logical partition in the storage module is in the abnormal state, the mount state of the system file in each logical partition needs to be checked, and the logical partition in the abnormal state can be determined through the mount state information of the system file.
Specifically, the present embodiment mainly determines whether the system file in the logical partition can be successfully mounted, so as to determine whether the logical partition is in an abnormal state. And if the mounting of the system file in a certain logical partition fails, determining that the logical partition is in an abnormal state. Specifically, the present embodiment mounts all of the logical partitions into the user Partition, as shown in fig. 5, and mounts all of Partition 1(Partition1), Partition 2(Partition2), Partition 3(Partition3), and Partition 4(Partition4). In the mounting process, a checking program in the first sub-user partition respectively checks the mounting state of a system file (namely, a core program file (kernel), a Recovery program file (Recovery), a Driver file (Driver) and a Data file (Data)) of each logic partition (namely, partition1, partition2, partition3 and partition4). After the verification is completed, a verification result is obtained, wherein the verification result comprises a logical partition information table, the logical partition information table is used for reflecting the mounting state information of each logical partition, the system file of which logical partition cannot be successfully overloaded can be known according to the mounting state of each logical partition, and when the system file which cannot be successfully mounted is determined, the logical partition corresponding to the system file can be determined to be in an abnormal state.
For example, when system startup abnormality of the smart television is detected, a user partition and each logical partition in the storage module are acquired, then all the logical partitions are mounted in the user partition respectively, a verification program is started to verify the mounting state in each logical partition, and if it is verified that the partition 4(Data) cannot be mounted successfully, a verification result is output after all system files are mounted, where the verification result includes a logical partition information table, for example, the logical partition information table includes: partition1, successful mounting, partition2, successful mounting, partition3, successful mounting, partition4, failed mounting. Therefore, it can be intuitively reflected by the logical partition information table that the system file of the partition4 is not successfully mounted, that is, the partition4 is in an abnormal state.
Further, in step S200, if the verification result indicates that the logical partition is in an abnormal state, determining a repair policy file corresponding to the verification result according to the verification result.
Because the logical partition information table exists in the check result, whether the logical partition has an abnormal state or not can be reflected according to the logical partition information table, and if a certain logical partition is in the abnormal state, the logical partition in the abnormal state needs to be repaired. In order to ensure the effectiveness and accuracy of repair, in this embodiment, a corresponding repair policy file needs to be obtained according to the check result, where the repair policy file is used to specifically repair the abnormal logical partition, so as to enable the system of the terminal to start normally according to the repair policy file.
In one implementation, as shown in fig. 6, the step S200 includes the following steps:
step S201, when the mounting state information of the system file is mounting failure, determining that the logic partition is in an abnormal state;
step S202, obtaining abnormal information of the logic partition;
step S203, obtaining a repair strategy file corresponding to the abnormal information according to a preset corresponding relation table; the corresponding relation table stores various abnormal information of the logical partitions and repair strategy files corresponding to the various abnormal information.
Specifically, the check result includes a logical partition information table, and the logical partition information table includes the mount state information of each logical partition, and the mount state information can reflect whether the logical partition is in an abnormal state. Therefore, after the logical partition information table is obtained, the system file which cannot be successfully mounted needs to be searched from the logical partition information table, and if a certain system file fails to be mounted, it can be determined that the logical partition corresponding to the system file which cannot be successfully mounted is in an abnormal state. Further, obtaining abnormal information of the logical partition, and then obtaining a repair policy file corresponding to the abnormal information according to a preset corresponding relation table, so that the terminal can repair the logical partition in the abnormal state according to the repair policy file. The repair policy file in this embodiment is generated according to the exception information of the logical partition in the exception state, and the repair manner is different for different exception information. Therefore, after the abnormal information is acquired, a corresponding repair policy file is generated in a targeted manner according to the abnormal information.
In an implementation manner, the repair policy file in this embodiment may be stored in a local memory of the middle terminal, for example, a correspondence table between the abnormal information when the logical partition is in the abnormal state and the repair policy file may be preset, and when it is determined that a certain logical partition is in the abnormal state, the abnormal information of the logical partition may be obtained, and then the repair policy file corresponding to the abnormal information is directly found from the correspondence table according to the abnormal information. Therefore, the terminal directly calls the repair strategy file to repair the logic partition, and the system of the terminal is rapidly repaired.
For example, when it is checked that the system file (Data) in the partition4 in the smart television cannot be successfully mounted, the abnormal information of the partition4 is obtained, the abnormal information is that the system file (Data) is damaged, and the damaged system file (Data) is repaired by finding the corresponding repair policy file according to the local correspondence table of the terminal, so that the system of the terminal can be normally started.
In another implementation manner, if the logical partition in the abnormal state exists, in this embodiment, a check result (including the logical partition information table) is reported to a processing device in communication connection with the terminal, and after receiving the check result, the processing device generates a corresponding repair policy file according to the abnormal information of the logical partition in the abnormal state in the check result, and when generating the repair policy file, the repair policy file is also generated based on a certain corresponding relationship, for example, the repair policy file a1 is generated corresponding to the abnormal information a, and the repair policy file b1 is generated corresponding to the abnormal information b. In this embodiment, since the terminal is in communication connection with the processing device, the processing device may respond to a service request of the terminal and may perform data interaction with the terminal. Therefore, after the processing device generates the corresponding repair policy file according to the abnormal information of the logic partition in the abnormal state in the verification result, the generated repair policy file is issued to the terminal. The processing device in this embodiment may be a server in remote communication connection with the terminal, or may be another terminal device in communication connection with the terminal.
For example, when it is verified that the system file (Data) in the partition4 in the smart television cannot be successfully mounted, the abnormal information of the partition4 is acquired, and the abnormal information is that the system file (Data) is damaged. And after receiving the verification result, the processing equipment acquires a logical partition information table from the verification result and obtains abnormal information of the partition4, wherein the abnormal information is that the system file (Data) is damaged, then generates a corresponding repair strategy file according to the abnormal information of the partition4, and repairs the damaged system file (Data) through the repair strategy file, so that the system of the terminal can be started normally.
Further, in step S300, the logical partition is repaired according to the repair policy file.
Specifically, after the repair policy file is obtained, the logical partition in the abnormal state may be repaired according to the repair policy file, and for different abnormal information, there are various repair manners. Different abnormal information is repaired in different modes, so that the abnormal information is processed in a targeted mode, and the repairing efficiency and the repairing accuracy are improved.
In one implementation, as shown in fig. 7, the step S300 includes the steps of:
step S301, acquiring a formatting program in the repair policy file;
step S302, according to the formatting program, formatting the system file in the logic partition.
Specifically, when the obtained abnormal information is that a system file of a certain logical partition is damaged and the system file is not a system file (e.g., a log file) necessary for starting the terminal, the damage of the system file also causes that the logical partition cannot be successfully mounted, so that the logical partition is in an abnormal state, and the system of the terminal cannot be normally started. In order to repair the logical partition, the system file of the logical partition needs to be formatted, so that the system of the terminal is restored to normal. And the repair policy file acquired by the terminal corresponds to the abnormal information, so that after the terminal acquires the repair policy file, a formatting program is extracted from the repair policy file, and then the formatting program is used for formatting the damaged system file, so that the logical partition is repaired, and the system of the terminal is recovered to be normal.
For example, when the abnormal information in the partition4 in the smart television is verified to be system file (Data) damage. After the repair policy file is obtained, a formatting program is obtained from the repair policy file, and the formatting program is used to format the system file (Data), so that the partition4 is repaired, and the system of the terminal can be started normally.
Further, since some important system files, such as a kernel file (kernel), a Recovery file (Recovery), and a Driver file (Driver), cannot be formatted if the mount fails, because the system files enable the system of the terminal to complete the important components of the startup, once formatted, the system cannot be used. Therefore, when the system files are mounted in failure (that is, the corresponding logical partitions are in an abnormal state), other repairing methods are required to be adopted for repairing, and therefore the repairing policy files acquired by the terminal also correspond to the abnormal information of the system files.
In another implementation, as shown in fig. 8, the step S300 includes the steps of:
step S301, acquiring repair data in the repair policy file;
and S302, repairing the system file in the logic partition according to the repair data.
In specific implementation, after the terminal receives the repair policy file, the repair policy file is analyzed, wherein the purpose of analysis is to acquire repair data from the repair policy file, and the repair data corresponds to abnormal information of the system file with mounting failure; therefore, the terminal can directly carry out targeted repair on the system files in the logic partition in the abnormal state according to the repair data.
For example, when a kernel file (kernel) in a partition1 of a smart television cannot be successfully mounted (that is, the partition1 is in an abnormal state), after a repair policy file is obtained, the repair policy file is analyzed, and repair data is obtained from the repair policy file, where the repair data is patch data for repairing the kernel file (kernel) which has failed to be mounted in the partition1, and the kernel file (kernel) can be repaired by the patch data, so that the kernel file (kernel) can be successfully mounted, and the repair of the partition1 is completed, thereby enabling a logic partition to be recovered to be normal, and further enabling the system to be recovered to be normally started.
In another implementation, as shown in fig. 9, the step S300 may further include the steps of:
step S31, obtaining the upgrade data in the repair strategy file;
step S32, downloading an upgrade file corresponding to the upgrade data according to the upgrade data;
and step S330, upgrading the system files in the logic partitions by using the upgrading files.
Specifically, when the system file of the logical partition in the abnormal state is repaired, the embodiment may also be implemented by upgrading system data. The repair policy file in this embodiment may further include upgrade data, and the terminal may download, from the processing device, an upgrade file corresponding to the upgrade data according to the upgrade data (the upgrade file may be an installation package file corresponding to the system file of the logic partition in the abnormal state). Specifically, the terminal may send an upgrade request to the processing device based on the upgrade data, and the processing device responds to the upgrade request and issues a corresponding upgrade file to the terminal, thereby implementing downloading of the upgrade file. And after the upgrade file is acquired, upgrading the system file in the logic partition in the abnormal state by using the upgrade file so as to ensure that the logic partition in the abnormal state operates normally.
For example, when a kernel file (kernel) in a partition1 in a smart television cannot be successfully mounted (that is, the partition1 is in an abnormal state), after a repair policy file is obtained, the repair policy file is analyzed, upgrade data is obtained from the repair policy file, then the upgrade file corresponding to the kernel file (kernel) is downloaded from a server according to the upgrade data, and then the kernel file (kernel) is upgraded by using the upgrade file, and specifically, the upgrade file can be used to cover an installation package file of an old version of the kernel file (kernel) to realize upgrading, so that the partition1 operates normally, and a system starts normally.
It can be seen that the repair policy file in this embodiment may include not only the formatting program and the repair data, but also the upgrade data, and the system file in the abnormal logical partition is repaired according to the formatting program, the repair data, or the upgrade data, so that the logical partition operates normally, and thus the repair of the system is implemented, and the system can be started normally.
In this embodiment, after the abnormal logical partition is repaired, the system is continuously booted to the user partition, that is, the system is restarted, and whether the system is successfully repaired is checked through the restart. If the system still cannot be guided to the user partition, determining that the system is still in a startup exception, and repeatedly executing the step of checking the logical partition in step S100, thereby repairing the system again.
Therefore, when the system start abnormality of the terminal is detected, the embodiment of the invention obtains the logical partition in the storage module, verifies the logical partition, and obtains the repair strategy file according to the verification result after the verification is completed. Since the verification result can reflect which specific logical partition in the storage module is in an abnormal state, and the repair policy file is obtained according to the verification result, the logical partition can be repaired by the repair policy file, so that the system can be started normally. Therefore, the embodiment of the invention can repair the system in time when the system of the terminal has a problem, improve the working efficiency of solving the problem of system abnormity, and avoid the labor cost and the maintenance cost caused by solving the problem of system abnormity through the traditional forced upgrade.
Exemplary device
As shown in fig. 10, fig. 10 shows a system repair apparatus in an embodiment of the present invention, where the system repair apparatus is communicatively connected to a processing device (e.g., a server), and includes: a verification unit 110, an acquisition unit 120, and a repair unit 130. Specifically, the verifying unit 910 is configured to, when system startup exception is detected, verify the logical partition to obtain a verification result corresponding to the logical partition. The obtaining unit 120 is configured to determine, according to the check result, a repair policy file corresponding to the check result if the check result indicates that the logical partition is in an abnormal state. The repair unit 130 is configured to repair the logical partition according to the repair policy file.
Based on the above embodiments, the present invention further provides a terminal, and a schematic block diagram thereof may be as shown in fig. 11. The terminal comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein the processor of the terminal is configured to provide computing and control capabilities. The memory of the terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the terminal is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a system repair method. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the terminal is arranged in the terminal in advance and used for detecting the operating temperature of internal equipment.
It will be understood by those skilled in the art that the block diagram of fig. 11 is only a block diagram of a portion of the structure associated with the inventive arrangements, and does not limit the terminals to which the inventive arrangements are applied, and a particular terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a terminal is provided that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the one or more processors to perform the one or more programs includes instructions for:
when the system is detected to be abnormally started, verifying the logical partition to obtain a verification result corresponding to the logical partition;
if the verification result is that the logic partition is in an abnormal state, determining a repair strategy file corresponding to the verification result according to the verification result;
and repairing the logic partition according to the repair strategy file.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention discloses a system repair method, a terminal and a storage medium, where the system repair method is applied to a terminal, the terminal includes a storage module, and a logical partition is disposed in the storage module, and the method includes: when the system is detected to be abnormally started, verifying the logical partition to obtain a verification result corresponding to the logical partition; if the verification result is that the logic partition is in an abnormal state, determining a repair strategy file corresponding to the verification result according to the verification result; and repairing the logic partition according to the repair strategy file. According to the method and the device, when the system of the intelligent television is abnormally started, the logical partition in the storage module can be checked in time, the corresponding repair strategy file is obtained according to the check result, and the logical partition is repaired according to the repair strategy file, so that the system is repaired in time, the working efficiency of solving the abnormal problem of the system is improved, and the maintenance cost is reduced.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A system repair method is applied to a terminal, the terminal comprises a storage module, and a logic partition is arranged in the storage module, the method comprises the following steps:
when the system is detected to be abnormally started, verifying the logical partition to obtain a verification result corresponding to the logical partition;
if the verification result is that the logic partition is in an abnormal state, determining a repair strategy file corresponding to the verification result according to the verification result;
and repairing the logic partition according to the repair strategy file.
2. The system repair method according to claim 1, wherein a user partition is provided in the storage module, the user partition is configured to direct the system to complete booting, and the checking the logical partition includes:
acquiring a preset verification program in the user partition;
and checking the logic partition according to the checking program.
3. The system repair method of claim 2, wherein the checking the logical partition according to the checking program comprises:
acquiring a system file in the logic partition, and mounting the system file into the user partition;
and acquiring mounting state information of the system file, and determining whether the logic partition is in an abnormal state according to the mounting state information.
4. The system repair method according to claim 3, wherein if the check result indicates that the logical partition is in an abnormal state, determining, according to the check result, a repair policy file corresponding to the check result includes:
when the mounting state information of the system file is mounting failure, determining that the logic partition is in an abnormal state;
acquiring abnormal information of the logic partition;
according to a preset corresponding relation table, obtaining a repair strategy file corresponding to the abnormal information; the corresponding relation table stores various abnormal information of the logical partition and repair strategy files corresponding to the various abnormal information.
5. The system repair method of claim 4, wherein the repairing the logical partition according to the repair policy file comprises:
acquiring a formatting program in the repair strategy file;
and according to the formatting program, carrying out formatting processing on the system file in the logic partition.
6. The system repair method of claim 4, wherein the repairing the logical partition according to the repair policy file comprises:
acquiring repair data in the repair strategy file;
and repairing the system file in the logic partition according to the repair data.
7. The system repair method of claim 4, wherein the repairing the logical partition according to the repair policy file comprises:
obtaining upgrading data in the repair strategy file;
downloading an upgrading file corresponding to the upgrading data according to the upgrading data;
and upgrading the system files in the logic partitions according to the upgrading files.
8. The system repair method according to any of claims 1-7, further comprising, after repairing the logical partition according to the repair policy file:
after the system is recovered to be normal, guiding the system to the user partition so as to restart the system;
if the system cannot be guided to the user partition, determining that the system is abnormally started, and repeatedly executing the step of checking the logic partition.
9. A terminal comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein the one or more programs being configured to be executed by the one or more processors comprises instructions for performing the method of any of claims 1-8.
10. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1-8.
CN201910853621.7A 2019-09-10 2019-09-10 System repairing method, terminal and storage medium Active CN112565896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910853621.7A CN112565896B (en) 2019-09-10 2019-09-10 System repairing method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910853621.7A CN112565896B (en) 2019-09-10 2019-09-10 System repairing method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112565896A true CN112565896A (en) 2021-03-26
CN112565896B CN112565896B (en) 2023-09-19

Family

ID=75029234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910853621.7A Active CN112565896B (en) 2019-09-10 2019-09-10 System repairing method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112565896B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6205527B1 (en) * 1998-02-24 2001-03-20 Adaptec, Inc. Intelligent backup and restoring system and method for implementing the same
US6591376B1 (en) * 2000-03-02 2003-07-08 Hewlett-Packard Development Company, L.P. Method and system for failsafe recovery and upgrade of an embedded operating system
CN104216800A (en) * 2014-08-27 2014-12-17 福建星网视易信息系统有限公司 Automatic system fault recovering method and device based on data redundancy
CN104298618A (en) * 2014-09-10 2015-01-21 青岛海信移动通信技术股份有限公司 Instruction processing method and device for intelligent terminal
WO2017080225A1 (en) * 2015-11-13 2017-05-18 乐视控股(北京)有限公司 Data partition recovery method and apparatus and terminal
CN106897166A (en) * 2015-12-17 2017-06-27 联发科技(新加坡)私人有限公司 A kind of mobile terminal and its restorative procedure
CN107766089A (en) * 2017-10-13 2018-03-06 维沃移动通信有限公司 The method and apparatus that a kind of system starts
CN109388436A (en) * 2017-08-04 2019-02-26 中兴通讯股份有限公司 Control method, device and the storage medium of starting procedure
CN109614267A (en) * 2018-12-06 2019-04-12 Oppo广东移动通信有限公司 A kind of method, apparatus, storage medium and terminal for repairing booting abnormal problem

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6205527B1 (en) * 1998-02-24 2001-03-20 Adaptec, Inc. Intelligent backup and restoring system and method for implementing the same
US6591376B1 (en) * 2000-03-02 2003-07-08 Hewlett-Packard Development Company, L.P. Method and system for failsafe recovery and upgrade of an embedded operating system
CN104216800A (en) * 2014-08-27 2014-12-17 福建星网视易信息系统有限公司 Automatic system fault recovering method and device based on data redundancy
CN104298618A (en) * 2014-09-10 2015-01-21 青岛海信移动通信技术股份有限公司 Instruction processing method and device for intelligent terminal
WO2017080225A1 (en) * 2015-11-13 2017-05-18 乐视控股(北京)有限公司 Data partition recovery method and apparatus and terminal
CN106897166A (en) * 2015-12-17 2017-06-27 联发科技(新加坡)私人有限公司 A kind of mobile terminal and its restorative procedure
CN109388436A (en) * 2017-08-04 2019-02-26 中兴通讯股份有限公司 Control method, device and the storage medium of starting procedure
CN107766089A (en) * 2017-10-13 2018-03-06 维沃移动通信有限公司 The method and apparatus that a kind of system starts
CN109614267A (en) * 2018-12-06 2019-04-12 Oppo广东移动通信有限公司 A kind of method, apparatus, storage medium and terminal for repairing booting abnormal problem

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩洪波;倪宏;孙鹏;: "双模机顶盒在线升级方案设计与实现", 微计算机信息, no. 24 *

Also Published As

Publication number Publication date
CN112565896B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN105760200A (en) Terminal device and system updating method thereof
CN110045991B (en) RAID configuration method and device of server, computer equipment and storage medium
US20150089479A1 (en) Method for pre-testing software compatibility and system thereof
US20160132420A1 (en) Backup method, pre-testing method for environment updating and system thereof
CN101807152B (en) Basic output and input system for self verification of selection read only memory and verification method thereof
US11995427B2 (en) Method, apparatus, device, and storage medium for upgrading vehicle-mounted Tbox
CN113504932B (en) Firmware data updating method and device
CN110795128A (en) Program bug fixing method and device, storage medium and server
CN111562934A (en) Software system upgrading method based on hot patch, terminal and storage medium
CN105677409A (en) System upgrading method and device
CN111367743A (en) Method and system for diagnosing power failure of server in cycle restart test process
CN111198703A (en) Version upgrading method, system, equipment and medium
CN114860291A (en) Method for guiding and flexibly storing and upgrading application program
CN102262573B (en) Operating system (OS) start-up protecting method and device
CN114138606A (en) PCIE error information processing method and device and computer equipment
CN114385418A (en) Protection method, device, equipment and storage medium for communication equipment
CN111417019B (en) Method and device for processing plug-in abnormity, computer equipment and storage medium
CN113032183A (en) System management method, device, computer equipment and storage medium
CN112565896B (en) System repairing method, terminal and storage medium
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
CN107844395B (en) Reboot test control method and system
CN106444730B (en) Diagnosis method of electronic control unit for preventing software from being dead
CN114237722A (en) System starting method, device, equipment and engineering vehicle
CN113688051A (en) Electric energy meter software upgrading test method and storage medium
CN106095623A (en) Terminal control method and device

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