CN107766089A - The method and apparatus that a kind of system starts - Google Patents

The method and apparatus that a kind of system starts Download PDF

Info

Publication number
CN107766089A
CN107766089A CN201710953186.6A CN201710953186A CN107766089A CN 107766089 A CN107766089 A CN 107766089A CN 201710953186 A CN201710953186 A CN 201710953186A CN 107766089 A CN107766089 A CN 107766089A
Authority
CN
China
Prior art keywords
user data
data subregion
subregion
primary user
standby
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
CN201710953186.6A
Other languages
Chinese (zh)
Other versions
CN107766089B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710953186.6A priority Critical patent/CN107766089B/en
Publication of CN107766089A publication Critical patent/CN107766089A/en
Application granted granted Critical
Publication of CN107766089B publication Critical patent/CN107766089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The embodiments of the invention provide the method and apparatus that a kind of system starts, the system includes primary user data subregion and standby user data subregion;Described method includes:When the system is activated, whether the user data subregion for judging to be loaded is the primary user data subregion;If it is not, then judge that the primary user data subregion has failure;Load the standby user data subregion;The primary user data subregion is repaired according to preset processing mode;The standby mode of the system is launched into according to the result of reparation.In embodiments of the present invention, in the case where primary user data subregion damages, system can still be successfully started up.

Description

The method and apparatus that a kind of system starts
Technical field
The present invention relates to technical field of mobile terminals, a kind of method and system started more particularly to a kind of system starts Device.
Background technology
The development of science and technology make it that mobile terminal is more and more intelligent, on the one hand, people can pass through movement in daily life Terminal such as is done shopping, entertained at the activity, very convenient;On the other hand, because the height of mobile terminal is intelligent so that work as movement When terminal breaks down, user is difficult self-healing, and the use to user brings certain trouble.
For example, user using mobile terminal when, it is possible that one of the problem of cannot be started up, its reason is Userdata partitioned file system failures, cause userdata subregions not load.And userdata partitioned file system failures The reason for a lot, including hardware aspect and software aspects.
During mobile terminal-opening, system can first carry out having detected whether file before userdata subregions are loaded Whether system, and file system are wrong.If it find that there is file system, and mistake be present, then can attempt to be repaired. Under certain situation, mistake can repair completely, but have under certain situation, and for mistake than more serious, can not repair adds it Carry.
In the prior art, when userdata subregions damage, just there is no userdata subregions can use, and userdata subregions It can not load, the service of file in userdata subregions is relied in start process can not just start, and mobile terminal can be blocked in and hold In machine flow, mobile phone standby interface is cannot be introduced into, the usage experience of extreme difference is brought to user, while also to mobile terminal manufacturer Brand brings injury.
The content of the invention
The embodiment of the present invention provides a kind of method that system starts, to solve in the case where user data subregion damages, The problem of mobile terminal can not start.
In order to solve the above-mentioned technical problem, the present invention is realized in:A kind of method that system starts, the system bag Primary user data subregion and standby user data subregion are included, described method includes:
When the system starts, whether the user data subregion for judging to be loaded is the primary user data subregion;
If it is not, then judge that the primary user data subregion has failure;
Load the standby user data subregion;
The primary user data subregion is repaired according to preset processing mode;
Enter the standby mode of the system according to the result of reparation.
In a first aspect, the embodiment of the present invention additionally provides the device that a kind of system starts, it is characterised in that the system bag Primary user data subregion and standby user data subregion are included, described device includes:
Subregion judge module, whether the user data subregion for when the system starts, judging to be loaded is described Primary user data subregion;
Fisrt fault judge module, for judging that the primary user data subregion has failure;
Subregion load-on module, for loading the standby user data subregion;
Divisional reconstruction module, for being repaired according to preset processing mode to the primary user data subregion;
Standby module, for entering the standby mode of the system according to the result of reparation.
Second aspect, the embodiments of the invention provide a kind of mobile terminal, including processor, memory and it is stored in described On memory and the computer program that can run on the processor, the computer program is by real during the computing device The step of method that a kind of existing system as described above starts.
The third aspect, the embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable storage Computer program is stored on medium, the computer program realizes that a kind of system as described above starts when being executed by processor Method the step of.
In embodiments of the present invention, the system in mobile terminal includes primary user data subregion, standby user data point Area, when system is activated, whether the user data subregion for judging to be loaded is the primary user data subregion, if it is not, then Judge that primary user data subregion has failure, then load standby user data subregion, and according to preset processing mode pair Primary user data subregion is repaired, and finally starts the system according to the result of reparation.So, in primary user data point In the case that area damages, system can be still successfully started up, at the same time it can also be repaiied to the primary user data subregion of damage It is multiple so that while user can be with normal use mobile terminal, the user data in the subregion of damage will not to be lost, reduce use The loss of user data, improves Consumer's Experience.
Brief description of the drawings
Fig. 1 is the step flow chart for the embodiment of the method that a kind of system of the present invention starts;
Fig. 2 is the step flow chart for the embodiment of the method that another system of the present invention starts;
Fig. 3 is the structured flowchart for the device embodiment that a kind of system of the present invention starts;
Fig. 4 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Reference picture 1, show the step flow chart for the embodiment of the method that a kind of system of the present invention starts, the system bag Include primary user data subregion, standby user data subregion, and system partitioning.
In the present invention, the system is the system on mobile terminal, and the mobile terminal can have following features:
(1) on hardware systems, equipment possesses central processing unit, memory, input block and output block, that is, Say, equipment is often the microcomputer devices for possessing communication function.Furthermore it is also possible to there are multiple input modes, such as key Disk, mouse, touch-screen, transmitter and shooting are first-class, and can be adjusted input as needed.Meanwhile equipment often has A variety of way of outputs, such as receiver, display screen, it can also be adjusted as needed;
(2) on software architecture, equipment must possess operating system, as Windows Mobile, Symbian, Palm, Android, iOS etc..Meanwhile these operating systems are more and more open, of the operating system platform exploitation based on these openings Property application program emerge in an endless stream, such as address book, schedule, notepad, calculator and various types of games are dramatically full The foot demand of personalized user;
(3) in communication capacity, equipment has flexible access way and high-bandwidth communication performance, and can be selected by The business selected and residing environment, the communication mode selected by adjust automatically, so as to be user-friendly.Equipment can support GSM, WCDMA, CDMA2000, TDSCDMA, Wi-Fi and WiMAX etc., so as to adapt to multiple types network, not only support voice industry Business, more supports a variety of wireless data services;
(4) in function using upper, equipment more focuses on hommization, personalization and multifunction.With computer technology Development, equipment enter the pattern of " human-centred " from the pattern of " facility center management ", are integrated with embedding assembly, control skill Art, artificial intelligence technology and biometrics etc., people-oriented objective is fully demonstrated.Due to the hair of software engineering Exhibition, equipment can be adjusted according to demands of individuals and set, more personalized.Meanwhile equipment is integrated with numerous software and hardwares in itself, Function is also stronger and stronger.
In a kind of preferred embodiment of the present invention, the primary user data subregion, standby user data subregion are Uesrdata subregions, system partitioning are system subregions.
By taking Android as an example, system system subregions, be mounted to/system catalogues under subregion.Equivalent to the C of computer Disk, for place system.Have here/system/bin and/system/sbin preserve many system commands.It is come out by compiling System.img come it is burned.This subregion contains whole Android operation system substantially, except kernel (kerne) and ramdisk.System application including Android user interface and all prepackages.This subregion is wiped, whole Android can be deleted System.A new ROM, that is, new peace can be installed by entering in Recovery programs or bootloader programs Tall and erect system.
Userdata subregions, this subregion are also user data area, contain the data of user:Contact person, short message, set Put, the program of user installation etc..It will be mounted to/data catalogues under, it is Lai burned by compiling userdata.img out. This subregion is wiped, is essentially equivalent to mobile phone factory reset, that is, state during cell phone system startup for the first time, or Person is the state after last time installation official or third party ROM." the data/factory carried out in Recovery programs Reset " operations are exactly to wipe this subregion.
The application is using double userdata partition schemes, a main userdata subregions (referred to as primary user data point Area), a standby userdata subregion (referred to as standby user data subregion).Primary user data subregion is standby as routine use With user data subregion in the case where primary user data subregion damages, for using temporarily.Therefore, primary user data point Area is larger, and it can include all data of user, and standby user data subregion is smaller, the size of standby user data subregion Only be required to storage can allow mobile terminal start shooting necessary to file can, such as userdata file system Mirror image.
" startup " in the application, refers to mobile terminal in the state of shutdown, and user presses power key, loading system System, loading user data, until can be with the process of normal use mobile terminal into standby interface, user.
Described method specifically may include steps of:
Step 101, when the system starts, whether the user data subregion for judging to be loaded is the primary number of users According to subregion;
Because system partitioning contains the file of whole system, system on startup, understands first loading system subregion, so After reload user data subregion, so, in actual applications, can be recorded in system partitioning needs which number of users loaded According to subregion.
For convenience of description, the user data subregion for needing to load is referred to as " boot partition " in this application.For example, it is System needs to load primary user data subregion when starting, then primary user data subregion is exactly boot partition;When system starts Need to load standby user data subregion, then standby user data subregion is exactly boot partition.
In embodiments of the present invention, whether the user data subregion for judging to be loaded is the primary user data subregion Exactly obtain the record of the boot partition in system partitioning.User can be started mobile whole by the entity power key of mobile terminal System in end, when system starts, the first loading system subregion of meeting, that is, system subregions, then obtain and remember in system partitioning The boot partition of load loads user data subregion.
Because containing all user data in primary user data subregion, under default situations, boot partition is all It is primary user data subregion.
Step 102, if it is not, then judging that the primary user data subregion has failure;
In actual applications, in the case of primary user data subregion is normal, the boot partition that is recorded in system partitioning It is primary user data subregion, if primary user data subregion damages, can not be normally loaded, then can be by system partitioning In boot partition be revised as standby user data subregion, when system start during, it is standby use to read boot partition During user data subregion, it is possible to judge that primary user data subregion has failure.
Step 103, the standby user data subregion is loaded;
When primary user data subregion damages, then the storage address of standby user data subregion, Ran Houcong are directly obtained The storage address loads the data in standby user data subregion.
Certainly, the storage address of primary user data subregion and standby user data subregion, and when primary user data When subregion damages, obtaining the storage address of standby user data subregion can all be set in advance in configuration information, so, work as system When can not normally start, it is possible to standby user data subregion is loaded from preset configuration information.
It should be noted that except primary user data subregion damage when can load standby user data subregion with Outside, in actual applications, the boot partition in system partitioning can also be directly revised as to standby user data subregion, so, After the completion of system partitioning loading, standby user data subregion will be loaded directly into, without judging primary user data subregion Whether damage.
Step 104, the primary user data subregion is repaired according to preset processing mode;
After loading standby user data subregion success, it is possible to carry out standby interface, user can be moved eventually with normal use Hold, still, because containing all data of user in primary user data subregion, user is if desired by primary use User data in user data subregion extracts, and primary user data subregion can be repaiied according to preset processing mode It is multiple.
In a kind of preferred embodiment of the present invention, the preset processing mode includes:By the primary user data point The loading mode in area is revised as USB flash disk pattern, or, the primary user data subregion is formatted, or, to the primary user Data partition is without operation;
It is described before described the step of being repaired according to preset processing mode to the primary user data subregion Method also include:
Show the preset processing mode;
Receive operational order corresponding to the processing mode of user's triggering.
Specifically, because user may want to attempt to give for change the data in damage subregion by computer etc., therefore, will be primary User data subregion is arranged to USB flash disk pattern, and such user can read primary user data subregion from the other equipments such as computer In data.
Moreover, in order to avoid maloperation, the reliability of standby user data subregion is improved, not by standby user data subregion It is arranged to USB flash disk pattern.
Or due to that can not be repaired due to damage when primary user data subregion, user will not brush machine situation when, only Primary user data subregion can be loaded by formatting primary user data subregion.Therefore, standby user is being used During data partition, there is provided an interface can format primary user data subregion.
Or if user will not both set USB flash disk pattern, it will not also format, then can not also be to primary number of users Any operation is carried out according to subregion, directly enters standby interface from standby user data subregion, subsequently mobile terminal is sent again and repaiied specially Industry maintenance mechanism.
Therefore, after loading the success of standby user data subregion, into before standby interface, mobile terminal can eject one Dialog box is selected, selects dialog box to include such as " main partition USB flash disk pattern, formatting main partition, into desktop " three options, When user clicks wherein some option, operational order corresponding with the option is obtained.
Step 105, the standby mode of the system is entered according to the result of processing.
When user selects the option of " main partition USB flash disk pattern " or " entering desktop ", mobile terminal can all enter standby boundary Face, unlike, under " main partition USB flash disk pattern ", when mobile terminal is accessed other computing devices such as computer by user, it can be seen that User data in primary user data subregion, and under " entering desktop " pattern, even if mobile terminal is accessed computer etc. by user Other computing devices, it can not also see the user data in primary user data subregion;When user selects " formatting main partition " During pattern, then return to step 101, the process of step 101~step 105 is continued executing with.
In embodiments of the present invention, the system in mobile terminal includes primary user data subregion, standby user data point Area, when system is activated, whether the user data subregion for judging to be loaded is the primary user data subregion, if it is not, then Judge that primary user data subregion has failure, then load standby user data subregion, and according to preset processing mode pair Primary user data subregion is repaired, and finally starts the system according to the result of reparation.So, in primary user data point In the case that area damages, system can be still successfully started up, at the same time it can also be repaiied to the primary user data subregion of damage It is multiple so that while user can be with normal use mobile terminal, the user data in the subregion of damage will not to be lost, reduce use The loss of user data, improves Consumer's Experience.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group Close, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to According to the embodiment of the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
Reference picture 2, show the step flow chart for the embodiment of the method that another system of the present invention starts, the system Including primary user data subregion, standby user data subregion, and system partitioning;
Described method specifically may include steps of:
Step 201, when the system starts, whether the user data subregion for judging to be loaded is the primary number of users According to subregion;
Step 202, if it is not, then judging that the primary user data subregion has failure;
Step 203, the standby user data subregion is loaded;
Step 204, the primary user data subregion is repaired according to preset processing mode;
Step 205, the standby mode of the system is entered according to the result of reparation;
Step 206, if the user data subregion being loaded is the primary user data subregion, the primary use is judged Whether user data subregion loads success;
The boot partition recorded in system partitioning is primary user data subregion, can necessarily be started into without representing system Work(.For example, the boot partition recorded in system partitioning is primary user data subregion, but the portion in primary user data subregion Point file corruption, can not normal load, then and in this case, system can still start failure, so, it is also necessary to detection master Whether loaded successfully with user data subregion.
It is described to judge whether the primary user data subregion loads successful step in a kind of preferred embodiment of the present invention Suddenly include:
Obtain the carry information of the system;
Carry information based on the system, judges whether the primary user data subregion is loaded into user data subregion Carry path on;
If so, then judge that the primary user data subregion loads successfully;Otherwise, it is determined that the primary user data subregion Loading failure.
Mono- Virtual File System of proc/proc file system is that a kind of kernel and kernel module are used for process (process) mechanism (so being called/proc) of information is sent.This pseudo file system allows user can be with kernel internal data Structure interacts, and obtains the useful information about process, and (onthefly) changes to set and (joined by changing kernel in operation Number).Different from alternative document system ,/proc is present among internal memory rather than on hard disk.
/ proc does not carry/proc equipment by interior nuclear control.Because/proc is mainly deposited by the state of interior nuclear control Information, so the logical place of these most of information is located at the internal memory of interior nuclear control.Right/proc carries out once ' ls-l' can be with It is all that 0 byte is big to see most of file;When but watching these files, really it can be seen that some information.This is Because/proc file system is as other conventional file system oneself being registered to virtual file system (VFS).So And until calling it as VFS, demand file, catalogue i-node when ,/proc file system just letter in kernel Breath establishes corresponding file and catalogue.
Check/proc file/proc file can be used for accessing the state about kernel, the attribute of computer, just In information such as the states of a process of operation.File and catalogue in major part/proc provide system physical environment newest information. Although the file in/proc is virtual, they can still use any file editor or as ' more', ' less' or ' Program as cat' is checked.
/ proc file system can be used to collecting useful on system and the information of operating kernel.Here is Some important files:/ proc/cpuinfo-CPU information (model, family, cache size etc.)/proc/meminfo- things List/the proc/devices- for the file system that information/proc/mounts- of reason internal memory, swapace etc. has been loaded can use Module/proc/ that file system/proc/modules- that list/proc/filesystems- of equipment is supported has been loaded The kernel command line parameter that version- kernel versions/proc/cmdline- systems input when starting.
In embodiments of the present invention, the final step loaded in subregion, the carry information of system is read, wherein, carry letter Breath be stored in/proc/mounts paths under, judge whether primary user data subregion is mounted to the carry road of user data subregion On footpath, wherein, the carry path of user data subregion is /data, if, then it represents that primary user data subregion is normal, such as Fruit does not have, then it represents that primary user data subregion has damaged.
Step 207, if so, then entering the standby mode of the system;
If primary user data subregion loads successfully, into standby interface, user can be with normal use mobile terminal.
Step 208, if it is not, being then revised as the authority of the system partitioning read-write;
If primary user data subregion loading have failed, then return to step 201 is just needed, reloads system partitioning, The authority of the system partitioning is revised as read-write simultaneously, boot partition is then revised as standby user data subregion, it is no Then, after the completion of system partitioning loading, the primary user data subregion of loading damage is also may proceed to, so as to carry out endless loop, is caused Mobile terminal is infinitely restarted.
Step 209, the user data subregion being loaded is arranged to standby user data subregion;
Specifically, it is standby user data subregion by the record modification of boot partition in system partitioning.
Step 2010, the system is restarted.
In embodiments of the present invention, the system in mobile terminal includes primary user data subregion, standby user data point Area, and system partitioning, when system is activated, whether the user data subregion for judging to be loaded is the primary user data Subregion, if it is not, then judging that primary user data subregion has failure, standby user data subregion is then loaded, and according to preset Processing mode primary user data subregion is repaired, finally according to the result activation system of reparation, if the use being loaded User data subregion is primary user data subregion, then judges whether primary user data subregion loads success, if so, then starting system System;If it is not, being then revised as the authority of system partitioning read-write, and the user data subregion being loaded is arranged to standby user Data partition, then restarting systems.So, in the case where primary user data subregion damages, still can successfully open Dynamic system, avoiding makes mobile terminal enter situation about infinitely restarting.
At the same time it can also be repaired to the primary user data subregion of damage so that user can be moved with normal use While terminal, the user data in the subregion of damage will not be lost, reduces the loss of user data, improves user's body Test.
Reference picture 3, shows the structured flowchart for the device embodiment that a kind of system of the present invention starts, and the system includes Primary user data subregion and standby user data subregion;
Described device can specifically include following module:
Subregion judge module 301, for when the system starts, whether the user data subregion for judging to be loaded to be institute State primary user data subregion;
Fisrt fault judge module 302, for judging that the primary user data subregion has failure;
Subregion load-on module 303, for loading the standby user data subregion;
Divisional reconstruction module 304, for being repaired according to preset processing mode to the primary user data subregion;
Standby module 305, for entering the standby mode of the system according to the result of reparation.
In a kind of preferred embodiment of the present invention, the system also includes system partitioning;Described device also includes:
Second breakdown judge module, if the user data subregion for being loaded is the primary user data subregion, Judge whether the primary user data subregion loads success;
The standby module is additionally operable to the standby mode into the system;
Authority modified module, it is read-write for the authority of the system partitioning to be revised as;
Subregion setup module, for the user data being loaded subregion to be arranged into standby user data subregion;
Module is restarted, for restarting the system.
In a kind of preferred embodiment of the present invention, the second breakdown judge module includes:
Carry acquisition of information submodule, for obtaining the carry information of the system;
Carry path judging submodule, for the carry information based on the system, judge the primary user data point Whether area is loaded on the carry path of user data subregion;
Subregion loads judging submodule, for judging that the primary user data subregion loads successfully, or, described in judgement Primary user data subregion loading failure.
In a kind of preferred embodiment of the present invention, the preset processing mode includes:By the primary user data point The loading mode in area is revised as USB flash disk pattern, or, the primary user data subregion is formatted, or, to the primary user Data partition is without operation;
Described device also includes:
Display module, for showing the preset processing mode;
Receiving module, for receiving operational order corresponding to the processing mode of user's triggering.
In a kind of preferred embodiment of the present invention, primary user data subregion, standby user data subregion are to include user The subregion of data, system partitioning are the subregion comprising system file.
Device provided in an embodiment of the present invention can realize that mobile terminal is realized each in Fig. 1 to Fig. 2 embodiment of the method Individual process, to avoid repeating, repeat no more here.
In embodiments of the present invention, the system in mobile terminal includes primary user data subregion, standby user data point Area, when system is activated, whether the user data subregion for judging to be loaded is the primary user data subregion, if it is not, then Judge that primary user data subregion has failure, then load standby user data subregion, and according to preset processing mode pair Primary user data subregion is repaired, and finally starts the system according to the result of reparation.So, in primary user data point In the case that area damages, system can be still successfully started up, at the same time it can also be repaiied to the primary user data subregion of damage It is multiple so that while user can be with normal use mobile terminal, the user data in the subregion of damage will not to be lost, reduce use The loss of user data, improves Consumer's Experience.
Fig. 4 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention,
The mobile terminal 400 includes but is not limited to:It is radio frequency unit 401, mixed-media network modules mixed-media 402, audio output unit 403, defeated Enter unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor The part such as 4140 and power supply 411.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 4 is not formed Restriction to mobile terminal, mobile terminal can be included than illustrating more or less parts, either combine some parts or Different part arrangements.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet personal computer, notebook computer, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 410, for when the system starts, whether the user data subregion for judging to be loaded to be institute State primary user data subregion;
If it is not, then judge that the primary user data subregion has failure;
Load the standby user data subregion;
The primary user data subregion is repaired according to preset processing mode;
Enter the standby mode of the system according to the result of reparation.
In embodiments of the present invention, the system in mobile terminal includes primary user data subregion, standby user data point Area, when system is activated, whether the user data subregion for judging to be loaded is the primary user data subregion, if it is not, then Judge that primary user data subregion has failure, then load standby user data subregion, and according to preset processing mode pair Primary user data subregion is repaired, and finally starts the system according to the result of reparation.So, in primary user data point In the case that area damages, system can be still successfully started up, at the same time it can also be repaiied to the primary user data subregion of damage It is multiple so that while user can be with normal use mobile terminal, the user data in the subregion of damage will not to be lost, reduce use The loss of user data, improves Consumer's Experience.
It should be understood that in the embodiment of the present invention, radio frequency unit 401 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 410;In addition, will be up Data are sent to base station.Generally, radio frequency unit 401 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 401 can also by wireless communication system and network and other set Standby communication.
Mobile terminal has provided the user wireless broadband internet by mixed-media network modules mixed-media 402 and accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 403 can be receiving by radio frequency unit 401 or mixed-media network modules mixed-media 402 or in memory 409 It is sound that the voice data of storage, which is converted into audio signal and exported,.Moreover, audio output unit 403 can also be provided and moved The audio output for the specific function correlation that dynamic terminal 400 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 403 includes loudspeaker, buzzer and receiver etc..
Input block 404 is used to receive audio or video signal.Input block 404 can include graphics processor (Graphics Processing Unit, GPU) 4041 and microphone 4042, graphics processor 4041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 406.Picture frame after the processing of graphics processor 4041 can be deposited Storage is transmitted in memory 409 (or other storage mediums) or via radio frequency unit 401 or mixed-media network modules mixed-media 402.Mike Wind 4042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be The form output of mobile communication base station can be sent to via radio frequency unit 401 by being converted in the case of telephone calling model.
Mobile terminal 400 also includes at least one sensor 405, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 4061, and proximity transducer can close when mobile terminal 400 is moved in one's ear Display panel 4061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass Sensor 405 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, will not be repeated here.
Display unit 406 is used for the information for showing the information inputted by user or being supplied to user.Display unit 406 can wrap Display panel 4061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 4061.
User input unit 407 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 407 include contact panel 4071 and Other input equipments 4072.Contact panel 4071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 4071 or in contact panel 4071 Neighbouring operation).Contact panel 4071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 410, receiving area Manage the order that device 410 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes contact panel 4071.Except contact panel 4071, user input unit 407 can also include other input equipments 4072.Specifically, other input equipments 4072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, action bars, will not be repeated here.
Further, contact panel 4071 can be covered on display panel 4061, when contact panel 4071 is detected at it On or near touch operation after, send processor 410 to determine the type of touch event, be followed by subsequent processing device 410 according to touch The type for touching event provides corresponding visual output on display panel 4061.Although in Fig. 4, contact panel 4071 and display Panel 4061 is the part independent as two to realize the input of mobile terminal and output function, but in some embodiments In, can be integrated by contact panel 4071 and display panel 4061 and realize input and the output function of mobile terminal, it is specific this Place does not limit.
Interface unit 408 is the interface that external device (ED) is connected with mobile terminal 400.For example, external device (ED) can include Line or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 408 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 400 can be used in the He of mobile terminal 400 Data are transmitted between external device (ED).
Memory 409 can be used for storage software program and various data.Memory 409 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 409 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 410 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 409, and call and be stored in storage Data in device 409, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 410 may include one or more processing units;Preferably, processor 410 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 410.
Mobile terminal 400 can also include the power supply 411 (such as battery) to all parts power supply, it is preferred that power supply 411 Can be logically contiguous by power-supply management system and processor 410, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
In addition, mobile terminal 400 includes some unshowned functional modules, will not be repeated here.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 410, memory 409, is stored in On memory 409 and the computer program that can be run on the processor 410, the computer program are performed by processor 410 The each process for the embodiment of the method that a kind of above-mentioned systems of Shi Shixian start, and identical technique effect can be reached, to avoid weight It is multiple, repeat no more here.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize each mistake for the embodiment of the method that a kind of above-mentioned system starts when being executed by processor Journey, and identical technique effect can be reached, to avoid repeating, repeat no more here.Wherein, described computer-readable storage medium Matter, such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, belong within the protection of the present invention.

Claims (12)

1. a kind of method that system starts, it is characterised in that the system includes primary user data subregion and standby number of users According to subregion;Described method includes:
When the system starts, whether the user data subregion for judging to be loaded is the primary user data subregion;
If it is not, then judge that the primary user data subregion has failure;
Load the standby user data subregion;
The primary user data subregion is repaired according to preset processing mode;
Enter the standby mode of the system according to the result of reparation.
2. according to the method for claim 1, it is characterised in that the system also includes system partitioning;Described method is also Including:
If the user data subregion being loaded is the primary user data subregion, judge that the primary user data subregion is It is no to load successfully;
If so, then enter the standby mode of the system;
If it is not, then the authority of the system partitioning is revised as read-write;
The user data subregion being loaded is arranged to standby user data subregion;
Restart the system.
3. according to the method for claim 2, it is characterised in that described to judge whether the primary user data subregion loads Successful step includes:
Obtain the carry information of the system;
Carry information based on the system, judges whether the primary user data subregion is loaded into the extension of user data subregion Carry on path;
If so, then judge that the primary user data subregion loads successfully;Otherwise, it is determined that the primary user data subregion loading Failure.
4. according to the method for claim 1, it is characterised in that the preset processing mode includes:By the primary use The loading mode of user data subregion is revised as USB flash disk pattern, or, the primary user data subregion is formatted, or, to described Primary user data subregion is without operation;
Before described the step of being repaired according to preset processing mode to the primary user data subregion, described side Method also includes:
Show the preset processing mode;
Receive operational order corresponding to the processing mode of user's triggering.
5. method according to claim 1 or 2, it is characterised in that primary user data subregion, standby user data subregion For the subregion comprising user data, system partitioning is the subregion comprising system file.
6. the device that a kind of system starts, it is characterised in that the system includes primary user data subregion and standby number of users According to subregion;Described device includes:
Subregion judge module, for when the system starts, whether the user data subregion for judging to be loaded to be described primary User data subregion;
Fisrt fault judge module, for judging that the primary user data subregion has failure;
Subregion load-on module, for loading the standby user data subregion;
Divisional reconstruction module, for being repaired according to preset processing mode to the primary user data subregion;
Standby module, for entering the standby mode of the system according to the result of reparation.
7. device according to claim 6, it is characterised in that the system also includes system partitioning;Described device is also Including:
Second breakdown judge module, if being the primary user data subregion for the user data subregion being loaded, judge Whether the primary user data subregion loads success;
The standby module is additionally operable to the standby mode into the system;
Authority modified module, it is read-write for the authority of the system partitioning to be revised as;
Subregion setup module, for the user data being loaded subregion to be arranged into standby user data subregion;
Module is restarted, for restarting the system.
8. device according to claim 7, it is characterised in that the second breakdown judge module includes:
Carry acquisition of information submodule, for obtaining the carry information of the system;
Carry path judging submodule, for the carry information based on the system, judge that the primary user data subregion is On the no carry path for being loaded into user data subregion;
Subregion loads judging submodule, for judging that the primary user data subregion loads successfully, or, judge described primary The loading failure of user data subregion.
9. device according to claim 6, it is characterised in that the preset processing mode includes:By the primary use The loading mode of user data subregion is revised as USB flash disk pattern, or, the primary user data subregion is formatted, or, to described Primary user data subregion is without operation;
Described device also includes:
Display module, for showing the preset processing mode;
Receiving module, for receiving operational order corresponding to the processing mode of user's triggering.
10. the device according to claim 6 or 7, it is characterised in that primary user data subregion, standby user data point Area is the subregion comprising user data, and system partitioning is the subregion comprising system file.
11. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, the computer program is realized such as claim 1 to 5 during the computing device Any one of a kind of system start method the step of.
12. a kind of computer-readable recording medium, it is characterised in that computer journey is stored on the computer-readable recording medium Sequence, realizing that a kind of system as any one of claim 1 to 5 starts when the computer program is executed by processor The step of method.
CN201710953186.6A 2017-10-13 2017-10-13 System starting method and device Active CN107766089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710953186.6A CN107766089B (en) 2017-10-13 2017-10-13 System starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710953186.6A CN107766089B (en) 2017-10-13 2017-10-13 System starting method and device

Publications (2)

Publication Number Publication Date
CN107766089A true CN107766089A (en) 2018-03-06
CN107766089B CN107766089B (en) 2021-06-04

Family

ID=61269558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710953186.6A Active CN107766089B (en) 2017-10-13 2017-10-13 System starting method and device

Country Status (1)

Country Link
CN (1) CN107766089B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565896A (en) * 2019-09-10 2021-03-26 深圳Tcl数字技术有限公司 System repair method, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636217A (en) * 2013-11-14 2015-05-20 厦门雅迅网络股份有限公司 Root file system automatic backup and exception recovery method and partition structure
US20160063256A1 (en) * 2011-03-01 2016-03-03 Softex Incorporated Methods, Systems, and Apparatuses for Managing a Hard Drive Security System
CN105701162A (en) * 2015-12-30 2016-06-22 青岛海信移动通信技术股份有限公司 User data partition management method of intelligent terminal and intelligent terminal
CN107066343A (en) * 2017-01-24 2017-08-18 广东欧珀移动通信有限公司 The restorative procedure of partition table, device and mobile terminal in mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160063256A1 (en) * 2011-03-01 2016-03-03 Softex Incorporated Methods, Systems, and Apparatuses for Managing a Hard Drive Security System
CN104636217A (en) * 2013-11-14 2015-05-20 厦门雅迅网络股份有限公司 Root file system automatic backup and exception recovery method and partition structure
CN105701162A (en) * 2015-12-30 2016-06-22 青岛海信移动通信技术股份有限公司 User data partition management method of intelligent terminal and intelligent terminal
CN107066343A (en) * 2017-01-24 2017-08-18 广东欧珀移动通信有限公司 The restorative procedure of partition table, device and mobile terminal in mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
花郎: "Android ROM开发—ubuntu下编译CyanogenMod生成SDK", 《HTTPS://WWW.CNBLOGS.COM/LOULIJUN/ARCHIVE/2012/03/06/2381842.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565896A (en) * 2019-09-10 2021-03-26 深圳Tcl数字技术有限公司 System repair method, terminal and storage medium
CN112565896B (en) * 2019-09-10 2023-09-19 深圳Tcl数字技术有限公司 System repairing method, terminal and storage medium

Also Published As

Publication number Publication date
CN107766089B (en) 2021-06-04

Similar Documents

Publication Publication Date Title
CN107276789B (en) Log uploading method and device and computer readable storage medium
CN107273160A (en) A kind of method and device of edition upgrading
CN107678876B (en) Screen freezing monitoring and solving method, mobile terminal and computer readable storage medium
CN108647160A (en) USB force downloads circuit, mobile terminal, method for down loading and data line
CN103279288A (en) Method, device and terminal units for transmitting data
CN103489303A (en) Remote control method and device
CN109101363A (en) Abnormal restoring method, device, smart machine and storage medium based on android system
CN103810004A (en) Method and device for upgrading embedded system as well as equipment
CN110008062A (en) A kind of data managing method and mobile terminal
US20160124704A1 (en) Method and electronic device for storing audio data
CN107817949A (en) Hanging method, Android device and the storage medium of disk array
CN107766222B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN108090345A (en) Linux system external command performs method and device
CN108733993A (en) A kind of method for information display and terminal
CN108037934A (en) A kind of method and apparatus of application program update
CN107704332A (en) Freeze screen solution method, mobile terminal and computer-readable recording medium
CN107608637A (en) RAID management methods, device and computer-readable recording medium
CN107908491A (en) Card screen detection is with solving method, mobile terminal and computer-readable recording medium
CN109873901A (en) A kind of screenshot method for managing resource and terminal, computer readable storage medium
CN107832191B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN110287655A (en) A kind of verifying code imput method, device and mobile terminal
CN106371896B (en) Virutal machine memory configuration method and device, mobile terminal
CN109067975A (en) A kind of method for managing contact person information and terminal device
CN108810284A (en) A kind of mode switching method and electronic equipment of camera
CN107766089A (en) The method and apparatus that a kind of system starts

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