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

Method and system of preventing system damage Download PDF

Info

Publication number
CN100437421C
CN100437421C CNB2005101162381A CN200510116238A CN100437421C CN 100437421 C CN100437421 C CN 100437421C CN B2005101162381 A CNB2005101162381 A CN B2005101162381A CN 200510116238 A CN200510116238 A CN 200510116238A CN 100437421 C CN100437421 C CN 100437421C
Authority
CN
China
Prior art keywords
read
computer system
default
write
shutdown
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.)
Expired - Fee Related
Application number
CNB2005101162381A
Other languages
Chinese (zh)
Other versions
CN1952834A (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
Getac 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 Getac Technology Corp filed Critical Getac 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, wherein this computer system has a memory storage and this memory storage has a read-write district and a read-only region, and to set this read-write district be a read states; Then the operating system in this read-only region and relative program are 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 shuts down with improper program when preceding single job, the default when then being written into the last subnormal shutdown that is stored in this read-write district or be written into the system's initial setting that is stored in this read-only region.Need to judge whether the current default of this computer system of storage.If storage this system current setting, then should read-write district be made as read-writely so that the current setting of this system 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, then be written into the default that is stored in last subnormal when shutdown in this read-write district or be written into the system's initial setting that is stored in this read-only region, 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 the current setting of this system 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 S6 then, otherwise execution in step S9.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 (6)

1. the method that prevention system is damaged comprises the following steps:
Start a computer system, wherein said computer system has a memory storage and described memory storage has a read-write district and a read-only region, and sets described read-write district for a read states;
Operating system in the described read-only region and relative program are loaded in the storer of described computer system and carry out, 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 shuts down with improper program when preceding single job, the default when then being written into the last subnormal shutdown that is stored in the described read-write district or be written into the system's initial setting that is stored in the described read-only region;
Need to judge whether the current default of the described computer system of storage;
If the current setting of the described system of storage then is made as described read-write district read-write so that the current setting of described system 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 upgrading described default to be written into when the undesired shutdown of described computer system.
4. the system that prevention system is damaged is applicable to a computer system, comprising:
One storer;
One memory storage, described memory storage 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, its
Figure C2005101162380002C1
Deposit 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, then be written into the default that is stored in last subnormal when shutdown in the described read-write district or be written into the system's initial setting that is stored in the described read-only region, 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 current default is write, and is made as described read-write district read-only.
5. the system that prevention system as claimed in claim 4 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.
6. the system that prevention system as claimed in claim 4 is damaged is characterized in that, the described default described processor is written into renewal when the undesired shutdown of described computer system after.
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 CN1952834A (en) 2007-04-25
CN100437421C true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207875B (en) 2010-03-30 2014-11-12 鸿富锦精密工业(深圳)有限公司 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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5835955A (en) * 1995-06-23 1998-11-10 Elonex I. P. Holdings 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
CN1460210A (en) * 2001-04-25 2003-12-03 成津C&C株式会社 Apparatus and method for protecting failure of computer operating system
CN1466030A (en) * 2002-06-28 2004-01-07 联想(北京)有限公司 Method for preventing destroying file system in abnormal power cutting off

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5835955A (en) * 1995-06-23 1998-11-10 Elonex I. P. Holdings 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
CN1460210A (en) * 2001-04-25 2003-12-03 成津C&C株式会社 Apparatus and method for protecting failure of computer operating system
CN1466030A (en) * 2002-06-28 2004-01-07 联想(北京)有限公司 Method for preventing destroying file system in abnormal power cutting off

Also Published As

Publication number Publication date
CN1952834A (en) 2007-04-25

Similar Documents

Publication Publication Date Title
EP2041662A2 (en) Systems and methods for power management in relation to a wireless storage device
US8954660B2 (en) Execute-in-place mode configuration for serial non-volatile memory
US20070028009A1 (en) Hot unpluggable media storage device
EP3444723A1 (en) Shared nonvolatile memory architecture
TWI358635B (en) Power managing method for a multi-microprocessor s
CN103154900A (en) Embedded program update method, embedded program update program, electronic apparatus, network system
US20070169074A1 (en) Upgrade apparatus and its method for home network system
US20060287990A1 (en) Method of file accessing and database management in multimedia device
US8265454B2 (en) Video/audio playback apparatus
JP2010503054A (en) Method and apparatus for binding a non-volatile storage device to a consumer product
CN100437421C (en) Method and system of preventing system damage
CN101634958B (en) Flash memory with secondary backup mechanism
CN102196308B (en) Digital-television-based multi-hardware interface compatible driving system
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
TWI279711B (en) Dual-processor multimedia system, and method for fast activation of the multimedia system
EP1971908B1 (en) Firmware updates on media
CN101634957A (en) Method and system for managing data of flash memory
JP4616683B2 (en) Information processing apparatus and program
CN101788913A (en) Computer system with double operating devices and monitoring method thereof
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
US20090182904A1 (en) System and Method for Providing Peripheral Device Functionality
CN202634627U (en) Television integrated with function of advertising machine

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