CN104123208A - System abnormality repairing method and device and mobile terminal - Google Patents

System abnormality repairing method and device and mobile terminal Download PDF

Info

Publication number
CN104123208A
CN104123208A CN201410369964.3A CN201410369964A CN104123208A CN 104123208 A CN104123208 A CN 104123208A CN 201410369964 A CN201410369964 A CN 201410369964A CN 104123208 A CN104123208 A CN 104123208A
Authority
CN
China
Prior art keywords
storage medium
operating system
impaired
magnetic track
track
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
CN201410369964.3A
Other languages
Chinese (zh)
Other versions
CN104123208B (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 ZTE Mobile Telecom Co Ltd
Original Assignee
Shenzhen ZTE Mobile Telecom 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 ZTE Mobile Telecom Co Ltd filed Critical Shenzhen ZTE Mobile Telecom Co Ltd
Priority to CN201410369964.3A priority Critical patent/CN104123208B/en
Publication of CN104123208A publication Critical patent/CN104123208A/en
Application granted granted Critical
Publication of CN104123208B publication Critical patent/CN104123208B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Navigation (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a system abnormality repairing method and device and a mobile terminal, and belongs to the technical field of mobile terminals. The method comprises the steps of storing abnormal operation logs after a current operating system detects a system abnormality; switching the current operating system into a second operating system; obtaining the abnormal operation logs of the operating system adopted before switching; according to the abnormal operation logs, judging whether a magnetic track of a storage medium of the operating system adopted before switching is damaged or not; if the magnetic track of the storage medium of the operating system adopted before switching is damaged, repairing the storage medium with the damaged magnetic track. By the adoption of the system abnormality repairing method and device, when the current operating system is abnormal, the current operating system is switched into the second operating system, the second operating system obtains the abnormal operation logs of the operating system adopted before switching, if the magnetic track of the storage medium of the operating system adopted before switching is damaged, the storage medium with the damaged magnetic track is repaired through the second operating system, the functions of data interaction and mutual repairing of the system abnormalities of the two operating systems are achieved, operation is easy and safe, and the user experience degree is improved.

Description

A kind of restorative procedure, device and mobile terminal of system exception
Technical field
The present invention relates to technical field of mobile terminals, relate in particular to a kind of restorative procedure, device and mobile terminal of system exception.
Background technology
Along with the fast development of intelligent mobile terminal and development of Mobile Internet technology, mobile terminal is extensively universal, and function from strength to strength, becomes the indispensable communication of people and Internet access.
There is at present carrying the mobile terminal of dual system, dual system refers to a mobile terminal can install two independently operating systems, can be operating system of the same type, also can be dissimilar operating system, a mobile terminal just can allow user experience two kinds of operating systems, improves user's Experience Degree.Can also classify to two mobile terminals in addition, be for example simple operations system by one of them operating system, the simple functions such as can only make a phone call, send short messages, power consumption is low, and another operating system is multifunctional operating system, all kinds of third party softwares can be installed, experience diversified function, power consumption is larger.User can select operating system according to the dump energy of mobile terminal, realizes the reasonable use to battery, improves the flying power of mobile terminal.Moreover, can also an operating system be set to secure operating system, secrecy is high; Another operating system is set to normal operations system.A mobile terminal just can be realized user's multiple demand, exempts the trouble of carrying two mobile terminals, and great traversal is provided.
But the dual system technology of mobile terminal is ripe not enough at present, exists many problems urgently to be resolved hurrily.When one of them operating system magnetic track is impaired while causing system normally to start or to move, how to utilize another operating system assistance reparation.
Summary of the invention
In view of this, the technical problem to be solved in the present invention is to provide a kind of restorative procedure, device and mobile terminal of system exception, to solve the impaired normally technical matters of start-up and operation of system that causes of magnetic track of one of them operating system of dual system mobile terminal.
It is as follows that the present invention solves the problems of the technologies described above adopted technical scheme:
According to an aspect of the present invention, the restorative procedure of a kind of system exception providing, is applied to the mobile terminal that comprises two operating systems, and the method comprises the steps:
Current operation system detects after system exception, preserves misoperation daily record;
Current operation system is switched to the second operating system;
Obtain the misoperation daily record of the operating system before switching;
Whether magnetic track is impaired to judge the storage medium of operating system before switching according to misoperation daily record;
If so, repair the impaired storage medium of magnetic track.
Preferably, current operation system being switched to the second operating system further comprises:
In current operation system, start resident program, activate the second operating system in dormant state.
Preferably, repairing the impaired storage medium of magnetic track further comprises:
Carry out pre-set programs, repair impaired magnetic track.
Preferably, repairing the impaired storage medium of magnetic track further comprises:
Data in the impaired storage medium of alternate track, carry out subregion again to this storage medium, and the region that has bad track is divided into a subregion and stashed.
Preferably, repairing the impaired storage medium of magnetic track further comprises:
Data in the impaired storage medium of alternate track, format this storage medium.
According to another aspect of the present invention, provide a kind of prosthetic device of system exception, this device comprises:
Preserve module, detect after system exception for current operation system, preserve misoperation daily record;
Handover module, for being switched to current operation system the second operating system;
Acquisition module, for obtaining the misoperation daily record of the operating system before switching;
Judge module, for judge the storage medium of the operating system before switching according to misoperation daily record, whether magnetic track is impaired;
Repair module, for repairing the impaired storage medium of magnetic track.
Preferably, handover module specifically for:
In current operation system, start resident program, activate the second operating system in dormant state.
Preferably, repair module specifically for:
Carry out pre-set programs, repair impaired magnetic track, or
Data in the impaired storage medium of alternate track, carry out subregion again to this storage medium, and the region that has bad track is divided into a subregion and stashed.
Preferably, repair module specifically for:
Data in the impaired storage medium of alternate track, format this storage medium.
According to a further aspect of the invention, a kind of mobile terminal providing, this mobile terminal comprises two operating systems, also comprises the prosthetic device of above-mentioned system exception.
Compared with prior art, restorative procedure, device and the mobile terminal of the system exception of the embodiment of the present invention, comprise two operating systems, current operation system occurs when abnormal, being switched to the second operating system, the second operating system is obtained the misoperation daily record of the operating system before switching, if system exception is former, magnetic track is impaired, repairs the impaired storage medium of magnetic track, has realized two functions that operating system is repaired mutually, safety simple to operate, improves user's Experience Degree.
Brief description of the drawings
The process flow diagram of the restorative procedure of the system exception that Fig. 1 provides for the embodiment of the present invention.
The prosthetic device modular structure figure of the system exception that Fig. 2 provides for the embodiment of the present invention.
Embodiment
In order to make technical matters to be solved by this invention, technical scheme and beneficial effect clearer, clear, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Embodiment mono-
Refer to Fig. 1, the restorative procedure of the system exception that the embodiment of the present invention provides, is applied to the mobile terminal that comprises two operating systems, comprises the following steps:
S101, current operation system detect after system exception, preserve misoperation daily record.
Operating system, in startup, switching and operational process, can produce running log.Current operation system oneself detects, and in the time detecting that loading the kernel process frequency of failure reaches default value, determines that system occurs abnormal, preserves the running log under operating system abnormal conditions.This default value is the value of operating system default setting, can be also the value that user arranges.
S102, current operation system is switched to the second operating system.
Particularly, in two operating systems of mobile terminal, be equipped with resident program, this resident program is used for starting another operating system.When current operation system detects system exception, generate the activation instruction of resident program, carry out this instruction, start resident program, activate the second operating system in dormant state, the operating system before dormancy is switched, the switching of complete operation system.
S103, the misoperation daily record of obtaining the operating system before switching.
Particularly, first the second operating system obtain the store path of misoperation daily record, and this store path can obtain from resident program.The second operating system, according to the store path of misoperation daily record, reads the misoperation daily record of the operating system before switching.
S104, whether magnetic track is impaired to judge the storage medium of operating system before switching according to misoperation daily record.
In misoperation daily record, find and damage relevant key word with magnetic track, judge whether the abnormal reason of operating system before switching is that magnetic track is impaired.
S105, if so, repair the impaired storage medium of magnetic track.
Wherein, repair impaired storage medium and further comprise: carry out pre-set programs, repair impaired magnetic track.In the time that operating system occurs that logic bad track appears in abnormal former because storage medium, can the default magnetic track repair procedure of executive system, repair impaired magnetic track.Operating system occurs that the problem that logic bad track cannot normally start system generally can solve by the method for repairing.
Repairing impaired storage medium also further comprises: the data in the impaired storage medium of alternate track, the storage medium impaired to magnetic track carries out subregion again, and the region that has bad track is divided into a subregion and stashed.
Be not logic bad track if the magnetic track of operating system is impaired, but physics bad track is carried out pre-set programs and cannot be repaired.In this case, the data in the impaired storage medium of alternate track, the storage medium impaired to magnetic track carries out subregion again, and the region that has bad track is divided into a subregion and stashed.
The restorative procedure of the system exception of the embodiment of the present invention, be applied to the mobile terminal that comprises two operating systems, current operation system occurs when abnormal, be switched to the second operating system, the second operating system is obtained the misoperation daily record of the operating system before switching, if system exception is former, magnetic track is impaired, repair the impaired storage medium of magnetic track, realized two functions that operating system is repaired mutually, safety simple to operate, improves user's Experience Degree.
Embodiment bis-
Consult equally Fig. 1, the present embodiment two is optimized on the basis of embodiment mono-: in step S105, the operating system of repairing before switching also comprises: the data in the impaired storage medium of alternate track, format storage medium.
Particularly, the data in the impaired storage medium of the second operating system alternate track, format storage medium.Format storage medium can be repartitioned magnetic track and the sector of this storage medium, avoids the impaired region of magnetic track, no longer read-write operation is carried out in impaired region.
Embodiment tri-
Refer to Fig. 2, the prosthetic device of a kind of system exception that the embodiment of the present invention provides comprises with lower module:
Preserve module 10, detect after system exception for current operation system, preserve misoperation daily record.
Particularly, current operation system is in startup, switching and operational process, and oneself detects in real time, in the time system exception being detected, preserves the running log under abnormal conditions.
Handover module 20, for being switched to current operation system the second operating system.
Wherein, handover module 20 specifically for:
In current operation system, start resident program, activate the second operating system in dormant state.
Particularly, in current operation system, generate the activation instruction of resident program, carry out this instruction, activate resident program, start the second operating system in dormant state, dormancy current operation system.
Acquisition module 30, for obtaining the misoperation daily record of the operating system before switching.
Particularly, the second operating system, according to the store path of the misoperation daily record of the operating system before switching, reads misoperation daily record.
Judge module 40, for judge the storage medium of the operating system before switching according to misoperation daily record, whether magnetic track is impaired.
In misoperation daily record, find and damage relevant key word with magnetic track, whether magnetic track is impaired to judge the storage medium of operating system before switching.
Repair module 50, for repairing the impaired storage medium of magnetic track.
Wherein, repair module 50 specifically for:
Carry out pre-set programs, repair impaired magnetic track, or
Data in the impaired storage medium of alternate track, the storage medium impaired to magnetic track carries out subregion again, and the region that has bad track is divided into a subregion and stashed, and no longer this subregion carried out to read-write operation.
Wherein, repair module 50 specifically also for:
Data in the impaired storage medium of alternate track, format storage medium.
Particularly, the data in the impaired storage medium of the second operating system alternate track, avoid loss of data, and format storage medium is repartitioned magnetic track and the sector of this storage medium, avoids the impaired region of magnetic track, no longer read-write operation is carried out in impaired region.
Correspondingly, the present invention also provides a kind of mobile device, and this mobile terminal comprises two operating systems, and each operating system is equipped with and starts the mobile resident program of another operation, also comprises the prosthetic device of the system exception of above-described embodiment three.
Restorative procedure, device and the mobile terminal of the system exception of above-described embodiment, comprise two operating systems, current operation system occurs when abnormal, be switched to the second operating system, the second operating system is obtained the misoperation daily record of the operating system before switching, if system exception is former, the magnetic track of storage medium damages, repair this storage medium, the data interaction and the mutual abnormal function of repair system that have realized two operating systems, safety simple to operate, improves user's Experience Degree.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is can control relevant hardware by program to complete, described program can be being stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
With reference to the accompanying drawings of the preferred embodiments of the present invention, not thereby limit to interest field of the present invention above.Those skilled in the art do not depart from the scope and spirit of the present invention, and can have multiple flexible program to realize the present invention, such as can be used for another embodiment and obtain another embodiment as the feature of an embodiment.Allly using any amendment of doing within technical conceive of the present invention, be equal to and replace and improve, all should be within interest field of the present invention.

Claims (10)

1. a restorative procedure for system exception, is applied to the mobile terminal that comprises two operating systems, it is characterized in that, described method comprises the steps:
Current operation system detects after system exception, preserves misoperation daily record;
Current operation system is switched to the second operating system;
Obtain the misoperation daily record of the operating system before switching;
Whether magnetic track is impaired to judge the storage medium of operating system before switching according to described misoperation daily record;
If so, repair the impaired storage medium of magnetic track.
2. the restorative procedure of system exception according to claim 1, is characterized in that, describedly current operation system is switched to the second operating system further comprises:
In current operation system, start resident program, activate the second operating system in dormant state.
3. the restorative procedure of system exception according to claim 1, is characterized in that, the impaired storage medium of described reparation magnetic track further comprises:
Carry out default repair procedure, repair impaired magnetic track.
4. the restorative procedure of system exception according to claim 1, is characterized in that, the impaired storage medium of described reparation magnetic track further comprises:
Data in the impaired storage medium of alternate track, carry out subregion again to described storage medium, and the region that has bad track is divided into a subregion and stashed.
5. the restorative procedure of system exception according to claim 1, is characterized in that, the impaired storage medium of described reparation magnetic track further comprises:
Data in the impaired storage medium of alternate track, format described storage medium.
6. a prosthetic device for system exception, is characterized in that, described device comprises:
Preserve module, detect after system exception for current operation system, preserve misoperation daily record;
Handover module, for being switched to current operation system the second operating system;
Acquisition module, for obtaining the misoperation daily record of the operating system before switching;
Judge module, for judge the storage medium of the operating system before switching according to described misoperation daily record, whether magnetic track is impaired;
Repair module, for repairing the impaired storage medium of magnetic track.
7. the prosthetic device of system exception according to claim 6, is characterized in that, described handover module specifically for:
In current operation system, start resident program, activate described the second operating system in dormant state.
8. the prosthetic device of system exception according to claim 6, is characterized in that, described reparation module specifically for:
Carry out pre-set programs, repair impaired magnetic track, or
Data in the impaired storage medium of alternate track, carry out subregion again to described storage medium, and the region that has bad track is divided into a subregion and stashed.
9. the prosthetic device of system exception according to claim 6, is characterized in that, described reparation module specifically for:
Data in the impaired storage medium of alternate track, format described storage medium.
10. a mobile terminal, is characterized in that, this mobile terminal comprises two operating systems, also comprises the prosthetic device of the arbitrary described system exception of claim 6-9.
CN201410369964.3A 2014-07-30 2014-07-30 The restorative procedure of a kind of system exception, device and mobile terminal Active CN104123208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410369964.3A CN104123208B (en) 2014-07-30 2014-07-30 The restorative procedure of a kind of system exception, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410369964.3A CN104123208B (en) 2014-07-30 2014-07-30 The restorative procedure of a kind of system exception, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN104123208A true CN104123208A (en) 2014-10-29
CN104123208B CN104123208B (en) 2016-06-15

Family

ID=51768628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410369964.3A Active CN104123208B (en) 2014-07-30 2014-07-30 The restorative procedure of a kind of system exception, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN104123208B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408344A (en) * 2014-11-14 2015-03-11 南京酷派软件技术有限公司 System switching method, system switching device and terminal
CN104484241A (en) * 2014-12-10 2015-04-01 广东欧珀移动通信有限公司 Terminal system file backup and recovery method and device
CN104765655A (en) * 2015-04-17 2015-07-08 宇龙计算机通信科技(深圳)有限公司 System abnormality repair method and device and terminal
CN105159791A (en) * 2015-07-06 2015-12-16 汉柏科技有限公司 System fault processing method and apparatus for firewall device
CN105389233A (en) * 2015-10-21 2016-03-09 广州视睿电子科技有限公司 Dual-system state parameter storage method, first system and dual-system terminal
CN106850895A (en) * 2017-03-02 2017-06-13 李良杰 The method that smart mobile phone is switched to back-up system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080077943A1 (en) * 2006-09-27 2008-03-27 Pierce James R Computing device with redundant, dissimilar operating systems
CN102163167A (en) * 2011-03-02 2011-08-24 奇智软件(北京)有限公司 Method and device for rescuing system
CN103902316A (en) * 2012-12-27 2014-07-02 联想(北京)有限公司 Switching method and electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080077943A1 (en) * 2006-09-27 2008-03-27 Pierce James R Computing device with redundant, dissimilar operating systems
CN102163167A (en) * 2011-03-02 2011-08-24 奇智软件(北京)有限公司 Method and device for rescuing system
CN103902316A (en) * 2012-12-27 2014-07-02 联想(北京)有限公司 Switching method and electronic device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408344A (en) * 2014-11-14 2015-03-11 南京酷派软件技术有限公司 System switching method, system switching device and terminal
CN104408344B (en) * 2014-11-14 2018-02-13 南京酷派软件技术有限公司 System switching method, system switching device and terminal
CN104484241A (en) * 2014-12-10 2015-04-01 广东欧珀移动通信有限公司 Terminal system file backup and recovery method and device
CN104484241B (en) * 2014-12-10 2018-12-11 广东欧珀移动通信有限公司 The method and device that a kind of pair of terminal system file is backed up and restored
CN104765655A (en) * 2015-04-17 2015-07-08 宇龙计算机通信科技(深圳)有限公司 System abnormality repair method and device and terminal
CN104765655B (en) * 2015-04-17 2018-03-16 宇龙计算机通信科技(深圳)有限公司 System exception restorative procedure, system exception prosthetic device and terminal
CN105159791A (en) * 2015-07-06 2015-12-16 汉柏科技有限公司 System fault processing method and apparatus for firewall device
CN105389233A (en) * 2015-10-21 2016-03-09 广州视睿电子科技有限公司 Dual-system state parameter storage method, first system and dual-system terminal
CN106850895A (en) * 2017-03-02 2017-06-13 李良杰 The method that smart mobile phone is switched to back-up system

Also Published As

Publication number Publication date
CN104123208B (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN104123208A (en) System abnormality repairing method and device and mobile terminal
CN104133730A (en) Method and device for repairing system abnormality and mobile terminal
CN104156273A (en) System exception repair method, system exception repair device and mobile terminal
CN204719671U (en) Running is with the electronic equipment and the system that produce tactile notification
CN102279775B (en) Method for processing failure of hard disk under Linux system
KR102338346B1 (en) System and method for fuel cell degradation management
CN104951034A (en) Mobile terminal and USB interface mode control method and device thereof
CN104142859A (en) Fast switching method and device for double systems and mobile terminal
CN102446104B (en) The method starting computer system
CN102004707A (en) Power-fail protection method and device for solid state disk
CN101917516A (en) Power-saving processing method and system for mobile terminal, and mobile terminal
CN102236569A (en) Embedded system and starting method thereof
CN103858070A (en) Power-off threshold voltage adjustment method, starting up method and electronic equipment using same
CN103902399B (en) Software system repair processing method and software system repair processing device
CN102722389A (en) Electronic device and starting system thereof
CN101977179A (en) Dual-network dual-system computer communication method
CN103399520B (en) For power failure data access method and the device of programmable logic controller system
CN105808409A (en) Information processing method and electronic equipment
US9760143B2 (en) Switching module, related server device and power switching method
CN104346410A (en) Method and equipment for monitoring terminal equipment
CN102945124B (en) The method and system that a kind of mobile terminal controlling application program exits fast
CN102572110A (en) Smart phone power-down protection system and method
CN101702535A (en) Power supply device and method
CN103297620A (en) Power-down protection system and method for smart phone
JP2012105383A (en) Power system, power control method, power control device and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
CB02 Change of applicant information

Address after: A District No. 9018 Han innovation building in Nanshan District high tech Zone in Shenzhen city of Guangdong Province, North Central Avenue, 518000 floor 10

Applicant after: Nubian Technologies Ltd.

Address before: A District No. 9018 Han innovation building in Nanshan District high tech Zone in Shenzhen city of Guangdong Province, North Central Avenue, 518000 floor 10

Applicant before: Shenzhen ZTE Mobile Tech Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant