CN1952834A - Method and system of preventing system damage - Google Patents

Method and system of preventing system damage Download PDF

Info

Publication number
CN1952834A
CN1952834A CN 200510116238 CN200510116238A CN1952834A CN 1952834 A CN1952834 A CN 1952834A CN 200510116238 CN200510116238 CN 200510116238 CN 200510116238 A CN200510116238 A CN 200510116238A CN 1952834 A CN1952834 A CN 1952834A
Authority
CN
China
Prior art keywords
read
computer system
default
shutdown
write
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
CN 200510116238
Other languages
Chinese (zh)
Other versions
CN100437421C (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.)
Getac Technology Corp
Original Assignee
Mitac Technology Corp
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 Mitac Technology Corp filed Critical Mitac Technology Corp
Priority to CNB2005101162381A priority Critical patent/CN100437421C/en
Publication of CN1952834A publication Critical patent/CN1952834A/en
Application granted granted Critical
Publication of CN100437421C publication Critical patent/CN100437421C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

This invention relates to a anti-damage system, wherein, one processor in system starts the computer system according to one start signals to load one operation system into one memory in one read only area and to read one system set in read area to judge whether the front operation is normal; wherein, if not, then loading the front system set in the read area and then to judge whether or not to store current system set; if yes then the area is set as reading and writing and the read area set as read only.

Description

The method and system that prevention system is damaged
Technical field
The present invention relates to a kind of method for managing system, relate in particular to a kind of method of avoiding system to cause data or system damage with the improper program shutdown.
Background technology
Computer has become in lifely can not obtain one of scarce instrument, and along with the progress of computer and communication product, and technology such as wired networking, Wi-Fi, bluetooth are also in the widespread use life.
" digital home (Digital Home) " is not only with the household electrical appliances digitizing, and digital family equipment is also integrated into the networking function.The meaning of digital home network is, computer can be contacted via network in the family, comprises that audio-visual devices also all will be included within this network, and along with the broadband continues to popularize, family just becomes the extension of working environment, so people are to the network demand of household internal broadband access network no longer just just.On the other hand, " appliance-based computer " integrates great computer of difference and audiovisual household electrical appliances function originally, and under small and exquisite lightening again development, make the computer that originally just possesses multimedia performance under the cooperation of software and hardware, also have the ability that replaces the audiovisual household electrical appliances.In other words, " appliance-based computer " combines functions such as TV, sound equipment, Karaoke, DVD Video Recorder, and can integrate all at home digital household appliances by getting online without being tethered to a cable, become one family digital entertainment center, family data storage center and home audio-visual center.
The characteristic of traditional home appliance be for can " promptly open promptly close ", promptly do not need need carry out initialization or terminator when the switching on and shutting down and waste many stand-by period as computer system.Yet generally speaking, computer system will be if with the improper program shutdown, may cause data or system damage.In other words, computer system does not make data damage if desire normal shutdown, with the function that is difficult to provide as " promptly open promptly and close " of traditional home appliance.
Therefore, the invention provides the method that a kind of prevention system is damaged, make the function that the computer system of electrification of domestic has " promptly open promptly and close ", but can shut down fast unlikely damage data or system itself.
Summary of the invention
Based on above-mentioned purpose, the embodiment of the invention has disclosed the method that a kind of prevention system is damaged.At first, start a computer system, will be somebody's turn to do then the operating system in the read-only region of computer system and relative program be loaded in the storer of this computer system and carry out, read the default in the read-write district of this memory storage simultaneously.Judge whether this computer system has normal shutdown when preceding single job.If this computer system is shut down with improper program when preceding single job, the default when then being written into last subnormal shutdown that is stored in this read-write district.Need to judge whether the current default of this computer system of storage.If this default of storage, then should read-write district be made as read-writely so that this default is write, and should be made as read-only in read-write district.
The embodiment of the invention has also disclosed the system that a kind of prevention system is damaged, and is applicable to a computer system, comprises a storer, a memory storage and a processor, and this memory storage also comprises a read-only region and a read-write district.This read-only region is in order to deposit operating system and the data that can not be changed.The setting and the data of this operating system are deposited in this read-write district.This processor starts this computer system according to an enabling signal, this operating system in this read-only region is loaded in this storer carries out, read the default in this read-write district simultaneously, judge whether this computer system has normal shutdown when preceding single job, if not, default when then being written into last subnormal shutdown that is stored in this read-write district, need to judge whether the current default of this computer system of storage, if, then should read-write district be made as read-writely so that this default is write, and should be made as read-only in read-write district.
Description of drawings
Fig. 1 is the system architecture synoptic diagram that shows the prevention system damage of the embodiment of the invention.
Fig. 2 is the method step process flow diagram that shows the prevention system damage of the embodiment of the invention.
Embodiment
For allow purpose of the present invention, feature, and advantage can become apparent, preferred embodiment cited below particularly, and conjunction with figs. Fig. 1 to Fig. 2 are described in detail.Instructions of the present invention provides different embodiment that the technical characterictic of the different embodiments of the present invention is described.Wherein, the usefulness that is configured to explanation of each element among the embodiment is not in order to restriction the present invention.And the part of drawing reference numeral repeats among the embodiment, is for the purpose of simplifying the description, is not the relevance that means between the different embodiment.
The embodiment of the invention has disclosed the method and system that a kind of prevention system is damaged.
Fig. 1 is the system architecture synoptic diagram that shows the prevention system damage of the embodiment of the invention.
Computer system (for example, embedded system) 100 comprises a processor 200, a storer 300 and a memory storage 400, and memory storage 400 comprises a read-only region 410 and a read-write district 430 again.The read-write properties of read-only region 410 are for read-only forever, and it is used for deposit operation system and the data (for example, the initial setting of system) that can not be changed.The read-write properties in read-write district 430 can be made as read-only maybe can write (being initially set read-only), and it is used for the setting and the data of deposit operation system.When general procedure is carried out, be set at read-onlyly, just be made as and write when deposit system is set when returning.
When processor 200 receives the signal that starts computer system 100, operating system in the read-only region 410 and relative program are loaded into execution in the storer 300, read the default in the read-write district 430 simultaneously.Then, processor 200 is set according to a conditioned disjunction and is judged last time whether normal shutdown of computer system 100.If, then be written into and be stored in preceding in the read-write district 430 default when once shutting down, be stored in the default when last subnormal shutdown in the read-write district 430 or be stored in system's initial setting in the read-only region 410 otherwise be written into.For instance, computer system 100 last time was an abnormal shutdown.
Then, processor 200 need to judge whether the default of store electricity brain system 100.If, then read-write district 430 is made as read-writely, then default is write, then be made as read-write district 430 read-only again.If not, then do not carry out any operation.Default after the renewal in read-write district 430 can be in order to be written into when the next computer system 100 undesired shutdown.In addition, judge that operation that whether default need write is that it is not in order to limit the present invention according to computer system 100 whether normal shutdown or other condition.
Fig. 2 is the method step process flow diagram that shows the prevention system damage of the embodiment of the invention.
At first, start a computer system according to an enabling signal, then the operating system in the read-only region of this computer system and relative program are loaded in the storer of this computer system and carry out, read the default (step S1) in the read-write district of this memory storage simultaneously.Then, judge whether this computer system had normal shutdown (step S2) last time.If, execution in step S3 then, otherwise execution in step S4.If this computer system has normal shutdown when preceding single job, then be written into the default (step S3) of last time during normal shutdown that is stored in this read-write district.If this computer system last time be with the improper program shutdown, the default when then being written into the last subnormal shutdown that is stored in this read-write district or be stored in system's initial setting (step S4) in this read-only region.Then, need to judge whether the current default (step S5) of this computer system of storage.If, execution in step S5 then, otherwise execution in step S6.If need storage system to set, then should be made as read-write (step S6) in read-write district, then default is write (step S7), then should be made as read-only (step S8) in read-write district again.If not, then do not carry out any operation (step S9).If storage system is set, the default after then upgrading can be in order to be written into when the undesired shutdown of next computer system.
The method that prevention system of the present invention is damaged makes computer system shut down fast, and prevents that computer system is in non-damage data or the system itself of causing when shut down with normal procedure.In addition, the image shelves (mirror image shelves) of the operating system of computer system are deposited in the read-write district that also can utilize above to be disclosed, when computer system causes its operating system to be damaged because of abnormal shutdown, can utilize these image shelves of depositing (mirror image shelves) to recover this operating system.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; any those of ordinary skills; without departing from the spirit and scope of the present invention; when can doing various changes and modification, so protection scope of the present invention is as the criterion when looking the accompanying Claim person of defining.

Claims (12)

1. the method that prevention system is damaged comprises the following steps:
Start a computer system;
To carry out in the described storer that operating system in the read-only region of computer system and relative program is loaded into described computer system, read the default in the read-write district of described memory storage simultaneously;
Judge whether described computer system has normal shutdown when preceding single job;
If described computer system is shut down with improper program when preceding single job, the default when then being written into last subnormal shutdown that is stored in the described read-write district;
Need to judge whether the current default of the described computer system of storage;
If the described default of storage then is made as described read-write district read-write so that described default is write; And
Be made as described read-write district read-only.
2. the method that prevention system as claimed in claim 1 is damaged is characterized in that, also comprises if described computer system has normal shutdown when preceding single job, the default when then being written into last subnormal shutdown that is stored in the described read-write district.
3. the method that prevention system as claimed in claim 1 is damaged is characterized in that, also comprises if described computer system is shut down with improper program when preceding single job, then is written into the system's initial setting that is stored in the described read-only region.
4. the method that prevention system as claimed in claim 1 is damaged is characterized in that, also comprises upgrading described default to be written into when the undesired shutdown of described computer system.
5. the system that prevention system is damaged is applicable to a computer system, comprising:
One storer;
One memory storage, it also comprises:
One read-only region, it is in order to deposit operating system and the data that can not be changed; And
One read-write district, it deposits the setting and the data of described operating system; And
One processor, it starts described computer system according to an enabling signal, described operating system in the described read-only region is loaded in the described storer carries out, read the default in the described read-write district simultaneously, judge whether described computer system has normal shutdown when preceding single job, if not, default when then being written into last subnormal shutdown that is stored in the described read-write district, need to judge whether the current default of the described computer system of storage, if, then described read-write district is made as read-writely so that described default is write, and is made as described read-write district read-only.
6. the system that prevention system as claimed in claim 5 is damaged is characterized in that, if described computer system has normal shutdown when preceding single job, and the default when then described processor is written into last subnormal shutdown that is stored in the described read-write district.
7. the system that prevention system as claimed in claim 5 is damaged is characterized in that, if described computer system is that then described processor is written into the system's initial setting that is stored in the described read-only region with the improper program shutdown when preceding single job.
8. the system that prevention system as claimed in claim 5 is damaged is characterized in that, the described default described processor is written into renewal when the undesired shutdown of described computer system after.
9. storage medium, in order to store a computer program, described computer program comprises a plurality of procedure codes, it comprises the following steps: in order to be loaded in the computer system and to make described computer system carry out the method that a kind of prevention system is damaged
Start a computer system;
To carry out in the described storer that operating system in the read-only region of computer system and relative program is loaded into described computer system, read the default in the read-write district of described memory storage simultaneously;
Judge whether described computer system has normal shutdown when preceding single job;
If described computer system is shut down with improper program when preceding single job, the default when then being written into last subnormal shutdown that is stored in the described read-write district;
Need to judge whether the current default of the described computer system of storage;
If the described default of storage then is made as described read-write district read-write so that described default is write; And
Be made as described read-write district read-only.
10. storage medium as claimed in claim 9 is characterized in that, also comprises if described computer system has normal shutdown when preceding single job, the default when then being written into last subnormal shutdown that is stored in the described read-write district.
11. storage medium as claimed in claim 9 is characterized in that, also comprises if described computer system is shut down with improper program when preceding single job, then is written into the system's initial setting that is stored in the described read-only region.
12. storage medium as claimed in claim 9 is characterized in that, also comprises upgrading described default to be written into when the undesired shutdown of described computer system.
CNB2005101162381A 2005-10-21 2005-10-21 Method and system of preventing system damage Expired - Fee Related CN100437421C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101162381A CN100437421C (en) 2005-10-21 2005-10-21 Method and system of preventing system damage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101162381A CN100437421C (en) 2005-10-21 2005-10-21 Method and system of preventing system damage

Publications (2)

Publication Number Publication Date
CN1952834A true CN1952834A (en) 2007-04-25
CN100437421C CN100437421C (en) 2008-11-26

Family

ID=38059202

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101162381A Expired - Fee Related CN100437421C (en) 2005-10-21 2005-10-21 Method and system of preventing system damage

Country Status (1)

Country Link
CN (1) CN100437421C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207875A (en) * 2010-03-30 2011-10-05 鸿富锦精密工业(深圳)有限公司 Media data playing device and rebooting method thereof
CN109739799A (en) * 2018-12-29 2019-05-10 深圳市优必选科技有限公司 Data interactive method, heterogeneous multi-nucleus processor and the terminal of heterogeneous multi-nucleus processor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997001139A1 (en) * 1995-06-23 1997-01-09 Elonex Plc Disk array controller with enhanced synchronous write
US6016536A (en) * 1997-11-13 2000-01-18 Ye-Te Wu Method for backing up the system files in a hard disk drive
KR100389206B1 (en) * 2001-04-25 2003-06-27 주식회사 성진씨앤씨 Apparatus and method for protecting failure of computer operating system
CN100346266C (en) * 2002-06-28 2007-10-31 联想(北京)有限公司 Method for preventing destroying file system in abnormal power cutting off

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207875A (en) * 2010-03-30 2011-10-05 鸿富锦精密工业(深圳)有限公司 Media data playing device and rebooting method thereof
CN102207875B (en) * 2010-03-30 2014-11-12 鸿富锦精密工业(深圳)有限公司 Media data playing device and rebooting method thereof
US8935522B2 (en) 2010-03-30 2015-01-13 Hon Hai Precision Industry Co., Ltd. Electronic computing device and a reboot method executable by same
CN109739799A (en) * 2018-12-29 2019-05-10 深圳市优必选科技有限公司 Data interactive method, heterogeneous multi-nucleus processor and the terminal of heterogeneous multi-nucleus processor

Also Published As

Publication number Publication date
CN100437421C (en) 2008-11-26

Similar Documents

Publication Publication Date Title
US20060075293A1 (en) Pre-configured backup dvd-rws
WO2008005731A2 (en) Systems and methods for power management in relation to a wireless storage device
US8522299B2 (en) Virtual personal video recorder
CN102360298B (en) Software upgrading method of terminal equipment
US20060224781A1 (en) Method and apparatus for controlling a user interface of a consumer electronic device
CN103154900A (en) Embedded program update method, embedded program update program, electronic apparatus, network system
US8954660B2 (en) Execute-in-place mode configuration for serial non-volatile memory
US20070169074A1 (en) Upgrade apparatus and its method for home network system
US8265454B2 (en) Video/audio playback apparatus
US20090319723A1 (en) Method and device for binding a non-volatile storage device with a consumer product
CN100437421C (en) Method and system of preventing system damage
US8154658B2 (en) Television and method for adding datafiles therein
TWI509414B (en) Network adapter, method & computer program product
CN107087231B (en) Video data playing method and device
EP1971908B1 (en) Firmware updates on media
CN101788913A (en) Computer system with double operating devices and monitoring method thereof
CN101882331A (en) Electronic equipment and method for recording use time
CN101634957A (en) Method and system for managing data of flash memory
TW201732582A (en) Method and system for switching output interfaces of a computer system
CN103428453B (en) The television set of a kind of integrated advertisement machine function and ad stream media playing method thereof
CN100520740C (en) Mobile storage device having a anti-copy function and method thereof
CN102193881B (en) Storage device and method for loading extension function to different storage areas
US20120110314A1 (en) Booting access method and memory device of embedded system
JP2012242942A (en) Hub device control method and hub device
CN101650676A (en) Backup system and method thereof for storing startup data files of embedded system in different storage blocks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081126

Termination date: 20121021