CN112565896B - System repairing method, terminal and storage medium - Google Patents

System repairing method, terminal and storage medium Download PDF

Info

Publication number
CN112565896B
CN112565896B CN201910853621.7A CN201910853621A CN112565896B CN 112565896 B CN112565896 B CN 112565896B CN 201910853621 A CN201910853621 A CN 201910853621A CN 112565896 B CN112565896 B CN 112565896B
Authority
CN
China
Prior art keywords
logical partition
partition
file
repair
repairing
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
CN201910853621.7A
Other languages
Chinese (zh)
Other versions
CN112565896A (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

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 repairing method, a terminal and a storage medium, wherein the system repairing 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 detecting that the system is started abnormally, checking the logical partition to obtain a checking result corresponding to the logical partition; if the checking result is that the logical partition is in an abnormal state, determining a repair strategy file corresponding to the checking result according to the checking result; and repairing the logical partition according to the repairing strategy file. The method and the device can timely check the logical partition in the storage module when the system of the terminal is started abnormally, acquire the corresponding repair strategy file according to the check result, and repair the logical partition according to the repair strategy file, thereby timely repairing the system, improving the working efficiency for solving the problem of system abnormality and reducing the maintenance cost.

Description

System repairing method, terminal and storage medium
Technical Field
The present invention relates to the field of intelligent device fault repair technologies, and in particular, to a system repair method, a terminal, and a storage medium.
Background
With the development of society and the progress of technology, smart televisions have become necessary appliances for families. Compared with the traditional non-intelligent television, the intelligent television has new problems that a user can not directly and normally start when using the intelligent television, and most of the problems are caused by the problems of the intelligent television storage modules (EMMC, embedded Multi Media Card). Once a problem occurs in a storage module (EMMC) of the smart television, the smart television cannot be started.
Because the current intelligent television cannot timely and accurately detect the condition of each logic partition in a storage module (EMMC) and cannot repair the condition in time, when the television cannot be started, the system can be recovered to be normal only by a traditional after-sales gate-up mode to forcedly upgrade the system, so that not only is the manpower wasted, but also the efficiency of processing the problems is low.
Accordingly, the prior art is still in need of improvement and development.
Disclosure of Invention
The invention aims to solve the technical problems that a system repairing method, a terminal and a storage medium are provided for overcoming the defects in the prior art, and aims to solve the problem that the system cannot be repaired in time when an intelligent television cannot be started in the prior art.
The technical scheme adopted for solving the technical problems is as follows:
in a first aspect, an embodiment of the present invention provides a system repair method, where the system repair 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 detecting that the system is started abnormally, checking the logical partition to obtain a checking result corresponding to the logical partition;
if the checking result is that the logical partition is in an abnormal state, determining a repair strategy file corresponding to the checking result according to the checking result;
and repairing the logical partition according to the repairing strategy file.
In one embodiment, the storage module is provided with a user partition, the user partition is used for guiding the system to complete starting, and the verifying the logical partition includes:
acquiring a verification program preset in the user partition;
and checking the logical partition according to the checking program.
In one embodiment, the verifying the logical partition according to the verification program includes:
acquiring a system file in the logical partition, and mounting the system file to the user partition;
and acquiring the 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 one embodiment, if the check result is 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 logical partition is in an abnormal state;
obtaining abnormal information of the logical partition;
obtaining a repair strategy file corresponding to the abnormal information according to a preset corresponding relation table; and the corresponding relation table stores various abnormal information of the logical partition and repair strategy files respectively 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 carrying out formatting processing on the system files in the logical partition according to the formatting program.
In one embodiment, the repairing the logical partition according to the repair policy file includes:
obtaining repair data in the repair strategy file;
and repairing the system files in the logical partition according to the repairing data.
In one embodiment, the repairing the logical partition according to the repair policy file includes:
acquiring upgrade data in the repair strategy file;
downloading an upgrade file corresponding to the upgrade data according to the upgrade data;
and upgrading the system files in the logical partition 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 to restart the system;
if the system cannot be guided to the user partition, determining that the system is started abnormally, and repeatedly executing the step of checking the logical 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, where the one or more programs include steps for performing the system repair method described in any one of the above.
In a third aspect, embodiments of the present invention further provide a non-transitory computer-readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the steps of the system repair method described in any one of the above.
The invention has the beneficial effects that: because the abnormality of the system of the terminal (such as the intelligent television) is usually related to the storage module, once the storage module of the terminal has a problem, the system cannot be started successfully, so that in order to timely and accurately repair the system of the intelligent television, the embodiment of the invention acquires the logic partition in the storage module when detecting the system starting abnormality of the terminal, verifies the logic partition, and obtains the repair strategy file according to the verification result after the verification is completed. Because the checking result can reflect which logic partition is in an abnormal state in the storage module, and the repairing strategy file is obtained according to the checking result, the logic partition can be repaired through the repairing strategy file, so that the system is started normally. Therefore, when the system of the terminal has a problem, the embodiment of the invention can repair the system in time, improve the working efficiency of solving the problem of system abnormality, and avoid the labor cost and the maintenance cost caused by solving the problem of system abnormality 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 that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings may be obtained according to the drawings without inventive effort to those skilled in the art.
Fig. 1 is a flowchart of a system repairing method according to an embodiment of the present invention.
Fig. 2 is a flowchart of determining a logical partition in the system repairing method according to the 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 diagram of a frame structure of a storage module in a system repairing method according to an embodiment of the present invention.
Fig. 5 is a flowchart of reporting a verification result in the system repair method provided by the embodiment of the invention.
Fig. 6 is a schematic diagram of mounting a system file in the system repairing method according to the embodiment of the present invention.
Fig. 7 is a flowchart of a first implementation of a repair procedure in a system repair method according to an embodiment of the present invention.
Fig. 8 is a flowchart of a second implementation of a repair procedure in the system repair method according to the embodiment of the present invention.
Fig. 9 is a flowchart of a third implementation of a repair procedure in the system repair method according to the embodiment of the present invention.
Fig. 10 is a schematic block diagram of a system repairing 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 present invention better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The inventor researches find that the operation process of the terminal is quite complex, and because the storage module is provided with the logic partition, the terminal needs to perform a large number of frequent read-write operations on the storage module during starting and operation, so that problems of a virtual file system are caused, such as: the logical partition suddenly changes from read-write to read-only, the logical partition cannot be successfully mounted, the logical partition verification fails, and the like, which can cause the system of the terminal to be unable to be started normally. These problems are not just the corruption of the storage module (EMMC, embedded Multi Media Card, such as the memory in a smart tv) itself, but may be corruption of system files in the storage module. It can be seen that the abnormality of the system of the terminal (such as failure to start the system of the terminal or frequent jamming during the start, failure to start the system after jamming for several times) is often associated with the storage module, and once the storage module of the terminal has a problem, the system of the terminal cannot start successfully.
In order to repair a system of a terminal timely and accurately, when detecting a system start abnormality of the terminal (the system start abnormality includes frequent blocking in the process that the system of the terminal cannot be started successfully or is started successfully after being blocked for a plurality of times), the embodiment of the invention acquires a logic partition in a storage module, checks the logic partition, and obtains a check result after the check is completed. The verification result can reflect whether the logic partition is in an abnormal state (the abnormal state comprises the phenomena that a system file in the logic partition is damaged or the system file cannot be mounted, and the like), and the terminal can obtain a corresponding repair strategy file according to the verification result, wherein the repair strategy file is generated according to the abnormal information of the logic partition and is used for repairing the logic partition in the abnormal state in a targeted manner. Therefore, after the terminal repairs the logical partition in the abnormal state according to the repair strategy file, the system of the terminal can be successfully started. Therefore, when the system of the terminal has a problem, the embodiment of the invention can repair the system in time, improve the working efficiency of solving the problem of system abnormality, and avoid the labor cost and the maintenance cost caused by solving the problem of system abnormality through the traditional forced upgrade.
For example, when the user starts up the smart tv, the smart tv cannot start up the system, i.e., the smart tv cannot enter the operation interface at this time, and the operation interface includes many menu option keys, such as "carousel, variety, movie, child", etc., and the smart tv 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 in the third party device). Therefore, when the intelligent television cannot enter the operation interface, the system start of the intelligent television can be judged to be abnormal. In addition, if the smart television is frequently jammed when the system is started, and is automatically restarted after each jamming, the smart television enters the operation interface after being jammed and restarted for a plurality of times, and the situation finally enters the operation interface although the situation is also that the smart television is jammed in the process of entering the operation interface, so that the starting of the smart television can be judged to be abnormal. When the system of the intelligent television is detected to start abnormal, a logic partition in a storage module of the intelligent television is obtained, and verification of the logic partition is started, so that abnormal information in the logic partition needs to be repaired in a targeted manner for the system to repair quickly and timely. The purpose of the check in this embodiment is therefore to determine if the logical partition is in an abnormal state and to determine 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, a 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 strategy file (namely formatting 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 for solving the problem of system abnormality is improved, and the labor cost and the maintenance cost caused by solving the problem of system abnormality through the traditional forced upgrading are avoided.
Exemplary method
As shown in fig. 1, the embodiment of the invention provides a system repairing method, by which a system can be repaired in time when the system of a terminal is started abnormally. Specifically, the method comprises the following steps:
and step 100, when the system starting abnormality is detected, checking the logical partition to obtain a checking result corresponding to the logical partition.
In this embodiment, whether the system of the terminal is started successfully may be determined by detecting whether the terminal may enter the operation interface or whether frequent jamming exists in the process of entering the operation interface. If the terminal described in the above example cannot enter the operation interface or needs to enter the operation interface after frequent jamming and restarting, 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 logical partitions, each logical partition stores different system files, and whether the states of the system files in the logical partitions are normal or not can influence 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, the purpose of the check is to find out the logical partition in an abnormal state (the abnormal state includes the phenomena that the system file in the logical partition is damaged or the system file cannot be mounted, etc.), and determine the 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:
step S101, acquiring a verification program preset in the user partition;
and step S102, checking the logical partition according to the checking program.
The conventional memory module is used when used in a terminal, and is provided with a first boot area partition (Boot Area Partition 1), a second boot partition (Boot Area Partition 2), and a user partition (UserPartition), as shown in fig. 3. 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 then the system is started after being guided through the user partition. In the existing storage module, taking the intelligent electricity of the Android System as an example, as shown in fig. 3, the User Partition (User Partition) has Partition1 (Partition 1), partition2 (Partition 2), partition3 (Partition 3), partition4 (Partition 4), and Partition1 stores a kernel program file (kernel), partition2 stores a Recovery program file (Recovery), the Partition3 stores a Driver file (Driver), the Partition4 stores a Data file (Data), and other partitions store a System program (System) of a System program, but when the System of the smart television cannot be started normally, the existing storage module does not have a logic Partition which cannot locate an abnormal state, so that the System cannot be repaired in time.
In order to locate a logical Partition in an abnormal state when a System of a terminal cannot be started normally, the present embodiment improves an existing storage module, as shown in fig. 4, a storage module in the present 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, a System file is stored in the logical Partition (Logical Partition), that is, as shown in fig. 4, a plurality of logical partitions are provided in the present embodiment, including Partition1 (Partition 1), partition2 (Partition 2), partition3 (Partition 3), partition4 (Partition 4), and accordingly, partition1 stores a core program file (kernel), partition2 stores a Recovery program file (Recovery), partition3 stores a Driver file (Driver), partition4 stores a Data file (Data), and other partitions store a System program (System) of a System program, that is, each of which is, different System files are provided in the logical partitions.
In specific implementation, as shown in fig. 4, when a system start abnormality of a terminal is detected, acquisition of a logical partition in a storage module is started, and a verification 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 verification program is started, and then each logical partition (i.e., partition1, partition2, partition3, partition 4.) is verified according to the verification program, so that the logical partition in an abnormal state in the storage module is located in time.
In one 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 verification program in the user partition is started to verify the logical partition, so that the purpose of verification is to determine whether the logical partition is in an abnormal state, and determine the abnormal information of the logical partition. Because the logical partitions in this embodiment are provided with a plurality of logical partitions, and each logical partition stores a different system file, it is important whether the mount state of a system file is normally associated with the start of the system of the terminal, and 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 an 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 according to the mount state information of the system file.
Specifically, in this embodiment, whether the logical partition is in an abnormal state is determined mainly by determining whether the system file in the logical partition can be successfully mounted. If the system file in a certain logical partition fails to be mounted, determining that the logical partition is in an abnormal state. Specifically, in this embodiment, all the logical partitions are mounted to the user Partition, and as shown in fig. 5, partition1 (Partition 1), partition2 (Partition 2), partition3 (Partition 3), and Partition4 (Partition 4) are mounted to the user Partition. In the mounting process, the mounting state of the system files (i.e., kernel files (kernel), recovery program files (Recovery), driver files (Driver), data files (Data)) of each logical partition (i.e., partition1, partition2, partition3, partition 4.) is checked by the check program in the first sub-user partition, so as to obtain mounting state information of the system files, and then whether the logical partition is in an abnormal state is determined according to the mounting state information. After the verification is completed, a verification result is obtained, wherein the verification result comprises a logic partition information table, the logic partition information table is used for reflecting the mounting state information of each logic partition, according to the mounting state of each logic partition, the system file of which logic partition cannot be successfully overloaded can be known, and when the system file which cannot be successfully mounted is determined, the logic partition corresponding to the system file can be determined to be in an abnormal state.
For example, when detecting that the system of the smart television is started abnormally, acquiring the user partition and each logical partition in the storage module, then respectively mounting all the logical partitions in the user partition, starting a verification program to verify the mounting state in each logical partition, and if it is verified that the partition4 (Data) cannot be successfully mounted, outputting a verification result after the mounting of all the system files is completed, where the verification result includes a logical partition information table, for example, the contents included in the logical partition information table include: partition 1- -successful mount, partition 2- -successful mount, partition 3- -successful mount, partition 4- -failure to mount. Therefore, the logical partition information table can intuitively reflect that the system file of the partition4 cannot be successfully mounted, that is, the partition4 is in an abnormal state.
Further, in step S200, if the checking result is that the logical partition is in an abnormal state, a repair policy file corresponding to the checking result is determined according to the checking result.
Because the checking result has the logical partition information table, 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 the repair, the embodiment needs to obtain a corresponding repair policy file according to the verification result, where the repair policy file is used to repair the logical partition in the abnormal state in a targeted manner, so as to enable the system of the terminal to be started 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 logical partition is in an abnormal state;
step S202, obtaining abnormal information of the logical partition;
step S203, obtaining a repair strategy file corresponding to the abnormal information according to a preset corresponding relation table; and the corresponding relation table stores various abnormal information of the logical partition and repair strategy files respectively corresponding to the various abnormal information.
Specifically, the verification result includes a logical partition information table, where the logical partition information table includes mounting status information of each logical partition, and the mounting status information may reflect whether the logical partition is in an abnormal state. Therefore, after the logical partition information table is obtained, the system files which cannot be successfully mounted need to be searched from the logical partition information table, and if the mounting of a certain system file fails, it can be determined that the logical partition corresponding to the system files which cannot be successfully mounted is in an abnormal state. Further, the abnormal information of the logic partition is obtained, and then a repair strategy file corresponding to the abnormal information is obtained according to a preset corresponding relation table, so that the terminal can repair the logic partition in an abnormal state according to the repair strategy file. The repair policy file in this embodiment is generated according to the abnormality information of the logical partition in the abnormal state, and the repair manner is different for different abnormality information. Therefore, after the abnormal information is acquired, a corresponding repair strategy file is generated pertinently according to the abnormal information.
In one implementation manner, the repair policy file in this embodiment may be stored in a local memory of the middle terminal, for example, a table of correspondence between abnormal information and repair policy files when a logical partition is in an abnormal state may be preset, when it is determined that a certain logical partition is in an abnormal state, the abnormal information of the logical partition may be obtained, and then, the repair policy file corresponding to the abnormal information may be directly found out from the correspondence table according to the abnormal information. So that the terminal directly calls the repair policy file to repair the logical partition, thereby realizing the rapid repair of the system of 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 obtained, the abnormal information is that the system file (Data) is damaged, and the corresponding repair policy file is found according to the local correspondence table of the terminal to repair the damaged system file (Data), so that the system of the terminal can be started normally.
In another implementation manner, if the logical partition in the abnormal state exists, the embodiment reports the verification result (including the logical partition information table) to the processing device communicatively connected to the terminal, and after receiving the verification 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 verification result, and when generating the repair policy file, the repair policy file is also generated based on a certain corresponding relationship, for example, the abnormal information a corresponds to the generated repair policy file a1, and the abnormal information b corresponds to the generated repair policy file b1. In this embodiment, since the terminal is capable of being communicatively connected to 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 equipment generates the corresponding repair strategy file according to the abnormal information of the logic partition in the abnormal state in the verification result, the repair strategy file is generated and is issued to the terminal. The processing device in this embodiment may be a server connected to a terminal in a remote communication manner, or may be other terminal devices connected to a terminal in a communication manner.
For example, when it is verified that the system file (Data) in the partition4 in the smart television cannot be successfully mounted, the exception information of the partition4 is obtained, and the exception information is that the system file (Data) is damaged. Uploading the verification result to processing equipment, 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 damage to a system file (Data), then a corresponding repair strategy file is generated according to the abnormal information of the partition4, and the damaged system file (Data) is repaired through the repair strategy file, so that a system of the terminal can be started normally.
Further, step S300 is to repair the logical partition according to the repair policy file.
Specifically, after the repair policy file is obtained, the logical partition in the abnormal state can be repaired according to the repair policy file, and various repair modes are available for different abnormal information. By adopting different repairing modes for different abnormal information, the method realizes targeted processing of the abnormal information, thereby improving the repairing efficiency and the repairing accuracy.
In one implementation, as shown in fig. 7, the step S300 includes the steps of:
step S301, a formatting program in the repair strategy file is acquired;
step S302, according to the formatting program, performing formatting processing on the system file in the logical partition.
Specifically, when the obtained exception information is a system file failure of a certain logical partition, and the system file is not a system file (for example, a log file) necessary for the terminal to start, the system file failure also causes that the logical partition cannot be successfully mounted, and further causes that the logical partition is in an exception state, so that the system of the terminal cannot be started normally. 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 be normal. And the repair strategy file acquired by the terminal corresponds to the abnormal information, so that after the terminal acquires the repair strategy file, a formatting program is extracted from the repair strategy file, and the damaged system file is formatted through the formatting program, thereby repairing the logical partition and enabling the system of the terminal to be restored to be normal.
For example, when it is verified that the abnormal information in the partition4 in the smart tv is a system file (Data) corruption. After the repair policy file is obtained, a formatting program is obtained from the repair policy file, and the formatting program is used for formatting 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 are not formatted, such as kernel files (kernel), recovery files (Recovery), driver files (Driver), these system files cannot be formatted if a mount failure occurs, because these system files make the system of the terminal complete an important component of the start-up, and once formatted, the system cannot be used. Therefore, when the system files are failed to mount (i.e. the corresponding logical partitions are in an abnormal state), other repairing modes are needed to repair, so that the repairing strategy 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, obtaining repair data in the repair strategy file;
and step S302, repairing the system files in the logical partition according to the repairing data.
When the method is implemented, after the terminal receives the repair strategy file, the repair strategy file is analyzed, and the purpose of analysis is to acquire repair data from the repair strategy file, wherein the repair data corresponds to abnormal information of a system file which fails to be mounted; therefore, the terminal can directly repair the system files in the abnormal logical partition according to the repair data.
For example, when a kernel file (kernel) in a partition1 of the smart television cannot be successfully mounted (i.e., the partition1 is in an abnormal state), after a repair policy file is obtained, the repair policy file is parsed, and repair data is obtained from the repair policy file, wherein the repair data is patch data for repairing the kernel file (kernel) which fails to be mounted in the partition1, and the kernel file (kernel) can be repaired through the patch data, so that the kernel file (kernel) can be successfully mounted, and the repair of the partition1 is completed, thereby enabling the logical partition to recover to be normal, and further enabling the system to recover to be normally started.
In another implementation, as shown in fig. 9, the step S300 may further include the steps of:
step S31, obtaining 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 logical partition by utilizing the upgrading files.
Specifically, when repairing the system file of the logical partition in the abnormal state, the embodiment may also be implemented by adopting a mode of 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 logical partition in the abnormal state). Specifically, the terminal may send an upgrade request to the processing device based on the upgrade data, where the processing device responds to the upgrade request and issues a corresponding upgrade file to the terminal, so as to download the upgrade file. And after the upgrade file is obtained, upgrading the system file in the logic partition in the abnormal state by utilizing the upgrade file so as to ensure that the logic partition in the abnormal state operates normally.
For example, when a kernel program file (kernel) in a partition1 in a smart tv cannot be successfully installed (i.e., the partition1 is in an abnormal state), after a repair policy file is obtained, the repair policy file is parsed, upgrade data is obtained from the repair policy file, then an upgrade file corresponding to the kernel program file (kernel) is downloaded from a server according to the upgrade data, the kernel program file (kernel) is upgraded by using the upgrade file, and specifically, the upgrade can be implemented by using the upgrade file to cover an installation package file of an old version of the kernel program file (kernel), so that the partition1 operates normally and a system is started normally.
It can be seen that, in this embodiment, the repair policy file may include not only a formatting program, repair data, but also upgrade data, and repair the system file in the logical partition in the abnormal state according to the formatting program, repair data, or upgrade data, so that the logical partition operates normally, and repair of the system is further implemented, so that the system can be started normally.
In this embodiment, after the logical partition in the abnormal state is repaired, the present embodiment continues to boot the system to the user partition, that is, the system is restarted, and whether the system is repaired successfully is checked by restarting. If the system still cannot be guided to the user partition, determining that the system is still abnormal in starting, and repeating the step of checking the logical partition in step S100, so as to repair the system again.
Therefore, when the system starting abnormality of the terminal is detected, the embodiment of the invention acquires the logical partition in the storage module, checks the logical partition, and obtains the repair strategy file according to the checking result after the checking is completed. Because the checking result can reflect which logic partition is in an abnormal state in the storage module, and the repairing strategy file is obtained according to the checking result, the logic partition can be repaired through the repairing strategy file, so that the system is started normally. Therefore, when the system of the terminal has a problem, the embodiment of the invention can repair the system in time, improve the working efficiency of solving the problem of system abnormality, and avoid the labor cost and the maintenance cost caused by solving the problem of system abnormality through the traditional forced upgrade.
Exemplary apparatus
As shown in fig. 10, fig. 10 shows a system repairing device according to an embodiment of the present invention, where the system repairing device is communicatively connected to a processing device (such as a server), and includes: a verification unit 110, an acquisition unit 120, and a repair unit 130. Specifically, the verification unit 910 is configured to, when detecting that the system is started abnormally, verify the logical partition, and obtain a verification result corresponding to the logical partition. The obtaining unit 120 is configured to determine, according to the verification result, a repair policy file corresponding to the verification result if the verification result indicates that the logical partition is in an abnormal state. The repairing unit 130 is configured to repair the logical partition according to the repair policy file.
Based on the above embodiment, the present invention also provides a terminal, and a functional block diagram thereof may be 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 adapted to provide computing and control capabilities. The memory of the terminal includes 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 the operating system and computer programs in the non-volatile storage media. The network interface of the terminal is used for communicating with an external terminal through a network connection. 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 preset in the terminal and used for detecting the running temperature of the internal equipment.
It will be appreciated by those skilled in the art that the functional block diagram shown in fig. 11 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the terminal to which the present inventive arrangements may be applied, and that a particular terminal may include more or less components than those shown, or may combine some of the 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 to be executed by one or more processors, the one or more programs comprising instructions for:
when detecting that the system is started abnormally, checking the logical partition to obtain a checking result corresponding to the logical partition;
if the checking result is that the logical partition is in an abnormal state, determining a repair strategy file corresponding to the checking result according to the checking result;
and repairing the logical partition according to the repairing strategy file.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
In summary, the invention discloses a system repairing method, a terminal and a storage medium, wherein the system repairing method is applied to the terminal, the terminal comprises a storage module, and a logical partition is arranged in the storage module, and the method comprises the following steps: when detecting that the system is started abnormally, checking the logical partition to obtain a checking result corresponding to the logical partition; if the checking result is that the logical partition is in an abnormal state, determining a repair strategy file corresponding to the checking result according to the checking result; and repairing the logical partition according to the repairing strategy file. According to the method and the device, when the system of the intelligent television is started abnormally, the logical partition in the storage module can be checked timely, 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 timely, the working efficiency for solving the problem of system abnormality is improved, and the maintenance cost is reduced.
It is to be understood that the invention is not limited in its application to the examples described above, but is capable of modification and variation in light of the above teachings by those skilled in the art, and that all such modifications and variations are intended to be included within the scope of the appended claims.

Claims (5)

1. A system repair method, applied to a terminal, where the terminal includes a storage module, and a logical partition is disposed in the storage module, the method includes:
when detecting that the system is started abnormally, checking the logical partition to obtain a checking result corresponding to the logical partition;
if the checking result is that the logical partition is in an abnormal state, determining a repair strategy file corresponding to the checking result according to the checking result;
repairing the logical partition according to the repairing strategy file;
the verification result comprises a logic partition information table, wherein the logic partition information table is used for reflecting the mounting state information of each logic partition;
if the checking result is that the logical partition is in an abnormal state, determining a repair policy file corresponding to the checking result according to the checking result, including:
when the mounting state information of the system file is mounting failure, determining that the logical partition is in an abnormal state;
obtaining abnormal information of the logical partition;
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 partition and repair strategy files corresponding to the various abnormal information respectively;
the storage module is provided with a user partition, the user partition is used for guiding the system to finish starting, and the verifying the logical partition comprises the following steps:
acquiring a verification program preset in the user partition;
checking the logical partition according to the checking program;
the repair strategy file is generated according to the abnormal information of the logical partition and is used for repairing the logical partition in an abnormal state in a targeted manner;
the repairing the logical partition according to the repairing policy file includes:
acquiring a formatting program in the repair strategy file;
formatting the system files in the logical partition according to the formatting program;
the repairing the logical partition according to the repairing policy file further includes:
obtaining repair data in the repair strategy file;
repairing the system files in the logical partition according to the repairing data;
obtaining upgrade data in the repair strategy file;
downloading an upgrade file corresponding to the upgrade data according to the upgrade data;
and upgrading the system files in the logical partition according to the upgrading files.
2. The system repair method of claim 1, wherein verifying the logical partition according to the verification program comprises:
acquiring a system file in the logical partition, and mounting the system file to the user partition;
and acquiring the mounting state information of the system file, and determining whether the logic partition is in an abnormal state according to the mounting state information.
3. The system repair method of any one of claims 1-2, 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 to restart the system;
if the system cannot be guided to the user partition, determining that the system is started abnormally, and repeatedly executing the step of checking the logical partition.
4. A terminal comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for performing the method of any of claims 1-3.
5. 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 one of claims 1-3.
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 CN112565896A (en) 2021-03-26
CN112565896B true 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
双模机顶盒在线升级方案设计与实现;韩洪波;倪宏;孙鹏;;微计算机信息(24);全文 *

Also Published As

Publication number Publication date
CN112565896A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN105760200A (en) Terminal device and system updating method thereof
CN109670319B (en) Server flash safety management method and system thereof
US20160132420A1 (en) Backup method, pre-testing method for environment updating and system thereof
CN112906008B (en) Kernel vulnerability restoration method, device, server and system
CN110045991B (en) RAID configuration method and device of server, computer equipment and storage medium
CN109587331B (en) Method and system for automatically repairing cloud mobile phone fault
US20190149571A1 (en) Method and device for repairing page vulnerability
CN105677409A (en) System upgrading method and device
CN114138606A (en) PCIE error information processing method and device and computer equipment
CN114860291A (en) Method for guiding and flexibly storing and upgrading application program
CN111198703A (en) Version upgrading method, system, equipment and medium
CN102262573B (en) Operating system (OS) start-up protecting method and device
CN114489732A (en) Method and device for updating FPGA (field programmable Gate array) firmware of equipment and electronic equipment
CN112565896B (en) System repairing method, terminal and storage medium
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
CN113626227A (en) Abnormal log information reporting method, intelligent terminal and storage medium
CN107844395B (en) Reboot test control method and system
CN116795408A (en) ECU software upgrading method and system and vehicle
CN106444730B (en) Diagnosis method of electronic control unit for preventing software from being dead
CN112804071A (en) On-line upgrading method, upgrading file providing method, equipment and storage medium
CN116049011A (en) Deployment method and device of test environment, electronic equipment and storage medium
CN113114730B (en) Upgrading method and device, terminal equipment and storage medium
CN106095623A (en) Terminal control method and device
CN113688051A (en) Electric energy meter software upgrading test method and storage medium

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