CN107506253A - A kind of operating system abnormal information store method and device - Google Patents

A kind of operating system abnormal information store method and device Download PDF

Info

Publication number
CN107506253A
CN107506253A CN201710685490.7A CN201710685490A CN107506253A CN 107506253 A CN107506253 A CN 107506253A CN 201710685490 A CN201710685490 A CN 201710685490A CN 107506253 A CN107506253 A CN 107506253A
Authority
CN
China
Prior art keywords
operating system
abnormal information
sector
system abnormal
reserve
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
CN201710685490.7A
Other languages
Chinese (zh)
Other versions
CN107506253B (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.)
BEIJING KEYIN JINGCHENG TECHNOLOGY Co Ltd
Kyland Technology Co Ltd
Original Assignee
BEIJING KEYIN JINGCHENG TECHNOLOGY Co Ltd
Kyland Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING KEYIN JINGCHENG TECHNOLOGY Co Ltd, Kyland Technology Co Ltd filed Critical BEIJING KEYIN JINGCHENG TECHNOLOGY Co Ltd
Priority to CN201710685490.7A priority Critical patent/CN107506253B/en
Publication of CN107506253A publication Critical patent/CN107506253A/en
Application granted granted Critical
Publication of CN107506253B publication Critical patent/CN107506253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of operating system abnormal information store method and device, during solving in the prior art to be saved in abnormal information during operating system on hard disk by the interface of file system, if the problem of there is exception and causes operating system abnormal information not preserve normally in file system.The system exception information saving method, including:When getting operating system abnormal information, according to the byte number of the operating system abnormal information, several continuous reserve sectors are determined from the reserve sector of predetermined number, wherein, the total capacity of several continuous reserve sectors is more than or equal to the byte number of the operating system abnormal information;Interface is write by hard disk sector, the operating system abnormal information is written on several described continuous reserve sectors.

Description

A kind of operating system abnormal information store method and device
Technical field
The present invention relates to field of embedded technology, more particularly to a kind of operating system abnormal information store method and device.
Background technology
It is responsible for being referred to as file management system, abbreviation file system with the software mechanism of storage file information in operating system System.File system is made up of three parts:The interface of file system, software assembly, object and attribute to object manipulation and management. From the point of view of system perspective, file system is to carry out tissue and distribution to the space of file-storage device, and responsible file storage is simultaneously right The system that the file of deposit is protected and retrieved, specifically, file system are that user establishes file, be stored in, read, changing, Dump file, control the access of file and file etc. is cancelled when user does not use.
In the prior art, when abnormal information caused by operating system such as RAM leakage, equipment access exception, interruption During the information such as abnormal, serial communication exception, the operating system exception for accessing illegal memory address and triggering, file system can be passed through Above-mentioned abnormal information is saved on hard disk by the interface of system, however, when file system occurs abnormal, then can cause aforesaid operations Abnormal information caused by system operation can not be preserved normally.
Therefore, how independent of file system preserve operating system caused by abnormal information, be prior art urgently One of technical problem to be solved.
The content of the invention
The invention discloses a kind of operating system abnormal information store method and device, to solve to pass through in the prior art When abnormal information during operating system is saved on hard disk by the interface of file system, if file system occur it is abnormal and The problem of causing operating system abnormal information not preserve normally.
The embodiments of the invention provide a kind of operating system abnormal information store method, including:
When getting operating system abnormal information, according to the byte number of the operating system abnormal information, from present count Several continuous reserve sectors are determined in the reserve sector of amount, wherein, total appearance of several continuous reserve sectors Byte number of the amount more than or equal to the operating system abnormal information;
Interface is write by hard disk sector, the operating system abnormal information is written to several described continuous reservations On sector.
The embodiments of the invention provide a kind of operating system abnormal information save set, including:
Determining unit, for when getting operating system abnormal information, according to the word of the operating system abnormal information Joint number, several continuous reserve sectors are determined from the reserve sector of predetermined number, wherein, several described continuous guarantors The total capacity of sector is stayed to be more than or equal to the byte number of the operating system abnormal information;
R/w cell, for writing interface by hard disk sector, the operating system abnormal information is written to described some On individual continuous reserve sector.
The embodiments of the invention provide a kind of computer equipment, the computer equipment includes processor, the processor The step of aforesaid operations system exception information saving method is realized during for performing the computer program stored in memory.
A kind of computer-readable recording medium provided in an embodiment of the present invention, it is stored thereon with computer program, the meter Calculation machine program realizes the step of aforesaid operations system exception information saving method when being executed by processor.
Beneficial effects of the present invention include:
Operating system abnormal information store method and device provided by the invention, when getting operating system abnormal information When, according to the byte number of operating system abnormal information, several continuous reservations are determined from the reserve sector of predetermined number Sector, wherein, the total capacity of several continuous reserve sectors is more than or equal to the byte number of operating system abnormal information, then leads to That crosses hard disk sector writes interface, and operating system abnormal information is written on several continuous reserve sectors, realized not The interface of dependent file system, operating system abnormal information is saved on hard disk, so as to solve when file system appearance is different The problem of often can not normally preserving operating system abnormal information.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the present invention, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the structural representation of hard disk;
Fig. 2 is the implementation process diagram for the operating system abnormal information store method that the embodiment of the present invention one provides;
Fig. 3 is the flow signal for the positional information for obtaining several continuous reserve sectors that the embodiment of the present invention one provides Figure;
Fig. 4 is the structural representation for the operating system abnormal information save set that the embodiment of the present invention two provides;
Fig. 5 is the structural representation for the computer equipment that the embodiment of the present invention three provides.
Embodiment
In order to solve in the prior art to be saved in abnormal information during operating system by the interface of file system When on hard disk, if the problem of there is exception and causes operating system abnormal information not preserve normally in file system, the present invention Propose a kind of operating system abnormal information store method and device.
The implementation principle of operating system abnormal information store method provided in an embodiment of the present invention is:
Operating system abnormal information store method provided by the invention, when getting operating system abnormal information, according to The byte number of operating system abnormal information, several continuous reserve sectors are determined from the reserve sector of predetermined number, its In, the total capacity of several continuous reserve sectors is more than or equal to the byte number of operating system abnormal information, then passes through hard disk Interface is write in sector, and operating system abnormal information is written on several continuous reserve sectors, realized independent of text The interface of part system, operating system abnormal information is saved on hard disk, so as to solve when file system occurs extremely and nothing Method normally preserves the problem of operating system abnormal information.
The preferred embodiments of the present invention are illustrated below in conjunction with Figure of description, it will be appreciated that described herein Preferred embodiment is merely to illustrate and explain the present invention, and is not intended to limit the present invention, and in the case where not conflicting, this hair The feature in embodiment and embodiment in bright can be mutually combined.
Hard disk is made up of many discs (Platter), and there is a read-write head in each face of each disc, if M Individual disc, just there is 2M face, corresponding 2M magnetic head (Heads), be numbered from 0,1,2.Each disc is divided into several Concentric circles magnetic track, the radius of so each disc are that fixed value R concentric circles has logically created one with electric machine main shaft It is 0,1,2 ... from outside to inside numbering, each magnetic track on each disc is divided into again for the cylinder (Cylinders) of axle Tens sectors, the capacity of generally each sector is 512 bytes.Sector on each hard disk according to certain rule numbers is 1, 2、3…….Hard disk is made up of many sectors, and these sectors can be organized into several " subregions ".The subregion rule of hard disk It is then:All sectors of one subregion must be continuous, and hard disk can have most 4 subregions physically, and this 4 Physical Extents can To be 4 main partitions or 3 main partitions add an extension subregion.Have in a division on the hard disk in multiple main partitions, then may be used Multiple different operating systems are installed, each operating system each goes management to distribute to the subregion of oneself.
MBR (Main Boot Record, MBR) is to be located at the one section of guidance code of hard disk foremost, is to calculate Machine start after from can start be initially introduced on medium internal memory and perform one section of code, the sector of MBR guidance codes will be included Referred to as MBS, positioned at 0 cylinder, 0 magnetic head, 1 sector of hard disk, i.e. the first of hard disk sector.
When starting computer, system is tested hardware device first, and bootstrap routine INT is entered after being successfully tested 19H, then the cylinder of read apparatus hard disk 0,0 magnetic head, the MBR contents of 1 sector perform MBR program section to internal memory designated area, firmly The MBS of disk is not belonging to any subregion on hard disk, and is not belonging to any one operating system, and it is prior to all behaviour Make system and be transferred internal memory, then control is just given to the operating system in main partition, and hard disk is managed with partition table.
Illustrate the structure of hard disk by taking the hard disk of 4 subregions as an example, as shown in figure 1, it is the structural representation of hard disk, It is made up of MBS, main partition 1, main partition 2, main partition 3 and extension subregion.MBS takes 512 words altogether Section, is made up of three parts:MBR, hard disk partition table (DPT, Disk Partition Table), end mark.Its In, MBR account for preceding 446 bytes, offset address 0000H~1BDH in MBS;Hard disk partition table account for 64 bytes afterwards, offset address 1BEH~1FDH, it is made up of four subregion list items, the 1st partition table in respectively Fig. 1 Item, the 2nd subregion list item, the 3rd subregion list item and the 4th subregion list item;Two last bytes are end mark 0x55AA, skew Address 01FEH~01FFH.The subregion of one hard disk partition can be less than 4, but no more than 4, and each subregion list item is 16 bytes, its content implication are as shown in table 1:
Table 1
DBR (DOS Boot Record, dos boot record) is also referred to as boot sector, and DBR is the MBR by hard disk The program segment of loading, after DBR graftabls, that is, start to perform the bootstrap routine segment, its major function is to complete operating system Boot and give control to operating system.Each subregion of hard disk has boot sector, primary partition 1 as shown in Figure 1 ~3 and extension subregion in boot sector.
In boot sector in addition to DBR bootstrap routine segments, in addition to one is referred to as BPB (Bios Parameter Block, Bios parameter block) local area reference record table, have recorded in BPB the initial sector of this subregion, terminate sector, file is deposited Store up form, hard disk media descriptor, root size, FAT (File Allocation Table, file configuration table) numbers with And the parameter such as size of allocation unit.
It should be noted that the operation system being related in operating system abnormal information store method provided in an embodiment of the present invention Unite as embedded OS, the operating system installed in the main partition of hard disk is embedded OS, as Linux, All operating systems for embedded system such as uClinux, WinCE, PalmOS, Symbian, eCos, VxWorks.
It is that file is stored data in by file system interface when in the prior art, using file system data storage In the data field of system, if exception occurs in file system, hard disk can not be write data into by file system interface again, and The present invention utilizes reserve sector data storage, will not both destroy the original structure of file system, and when file system appearance is different Chang Shi, can be independent of the interface of file system, but data are stored in hard disk by the interface of writing of hard disk sector.
Embodiment one
As shown in Fig. 2 it is the implementing procedure for the operating system abnormal information store method that the embodiment of the present invention one provides Schematic diagram, it may comprise steps of:
S11, when getting operating system abnormal information, according to the byte number of the operating system abnormal information, from pre- If determining several continuous reserve sectors in the reserve sector of quantity, wherein, several continuous reserve sectors Total capacity is more than or equal to the byte number of the operating system abnormal information.
When it is implemented, in the byte number according to the operating system abnormal information, from the reserve sector of predetermined number Before determining several continuous reserve sectors, the reserve sector of predetermined number can be obtained in such a way:By hard disk A default zoned format turn to file configuration table FAT forms so that the guarantor of predetermined number is included in the subregion after formatting Stay sector.
Specifically, call format function, the predetermined number of reserve sector is set in format output function, utilizes the form Change function and one default zoned format of hard disk is turned into FAT forms, then comprising predetermined number in the subregion after formatting Reserve sector.As shown in table 1, it turns to the structure after FAT16 for a zoned format of hard disk, and each sector takes 512 Byte.
Table 2
Based on table 2, it is formatted as in FAT16 subregion and includes following sections:Reserve sector, file allocation table, root mesh Area and data field are recorded, wherein, boot sector DBR is included in reserve sector, takes a sector, and distribute plus to file Several sectors before table are reserve sector, and its quantity can be preset by format output function according to demand, the present invention This is not construed as limiting.
Wherein, if FAT32, its reserve sector also includes a FSINFO information sectors, takes a sector, is used for The current information of log file system, the cluster number of quantity and next available cluster to the space cluster of log file system etc. Information, so that operating system is as reference.File allocation table is the form for log file position.Root directory area can be with Regard a part for data field as, because root has been changed to root file, using with subdirectory file identical manager Formula, generally begin to use from the second cluster, size optionally increases, therefore the number of files under root is no longer by most 512 limitation.
DBR bootstrap routine segments and Bios parameter blocks are included in boot sector, this subregion is have recorded in Bios parameter blocks Initial sector, terminate sector, file memory format, hard disk media descriptor, root size, FAT number and allocation unit The parameter such as size.
Further, when getting operating system abnormal information, according to the byte number of operating system abnormal information, from pre- If determining several continuous reserve sectors in the reserve sector of quantity, wherein, several continuous reserve sectors Total capacity is more than or equal to the byte number of the operating system abnormal information, and several described continuous reserve sectors are described default The sector being not used by the reserve sector of quantity.
When it is implemented, operating system abnormal information includes:RAM leakage, equipment access exception, abnormal interruption, serial ports lead to Letter exception, access illegal memory address etc. are various may to cause the abnormal information of operating system, wherein, equipment accesses different Often there is access exception, input equipment such as keyboard in such as USB device or exception occurs in mouse.Operating system abnormal information can be with The mode of message queue is stored in internal memory, in the byte number according to the operating system abnormal information, from the guarantor of predetermined number Stay before several continuous reserve sectors are determined in sector, start-up operation system exception information handling task, disappear from described The first address for the buffering area that the operating system abnormal information is obtained in the message of queue is ceased, according to the first ground of the buffering area Location, obtain the operating system abnormal information.Specifically, after operating system is per subnormal startup, an abnormal letter can all be initiated Processing task is ceased, whether the abnormal of processing in need is believed in the message queue for deposit operation system exception information for detecting Breath.This task is periodic duty, and priority sets relatively low, can not so disturb the normal operation of operating system.Work as detection It is not space-time to message queue, the message obtained in message queue is handled.Deposit operation system can be included in every message The first address of the buffering area of abnormal information, for every message, according to the slow of the deposit operation system exception information wherein included The first address in area is rushed, obtains the operating system abnormal information.
Further, it is true from the reserve sector of predetermined number according to the byte number of the operating system abnormal information of acquisition Make several continuous reserve sectors.The total capacity of several continuous reserve sectors is more than or equal to operating system abnormal information Byte number, wherein, the capacity of each reserve sector is 512 bytes.For example, a certain bar operating system abnormal information includes altogether 1000 bytes, because each reserve sector is 512 bytes, then it can determine to need 2 reserve sectors, because 1000 bytes are more than The byte of capacity 512 of 1 reserve sector, less than capacity 512 × 2=1024 bytes of 2 reserve sectors, then 2 reserve sectors The abnormal information can be deposited.
S12, interface write by hard disk sector, the operating system abnormal information is written to described several are continuous On reserve sector.
When it is implemented, first, several continuous reserve sectors are obtained from the reserve sector of the predetermined number Positional information.Still by taking the operating system abnormal information that one in step S12 includes 1000 bytes as an example, from step S11 The positional information of 2 continuous reserve sectors is obtained in the reserve sector of predetermined number.Specifically, can be by as shown in Figure 3 Flow the positional informations of several continuous reserve sectors is obtained from the reserve sector of the predetermined number, can include with Lower step:
S201, the sector offset amount for obtaining from the MBS of the hard disk the default subregion, and according to described Sector offset amount determines the positional information of the default subregion.
In this step, the default subregion is obtained from the subregion list item of the default subregion of the MBS of hard disk Start sector number, terminate sector number, determine the sector offset amount of the default subregion, i.e. first sector from subregion starting Relative to the sector number of first sector offset of hard disk, and it is inclined according to the start sector number of the subregion, end sector number, sector The address of first sector of shifting amount and hard disk determines the corresponding initial address of the subregion and end address.
S202, the numbering for obtaining from the reserve sector of the predetermined number several continuous reserve sectors, and according to The numbering determines the positional information of several continuous reserve sectors with the sector offset amount.
In this step, several continuous reserve sectors are obtained from the reserve sector being not used by of the default subregion Numbering, and according to the initial sector of the numbering of several reserve sectors, the subregion numbering and the subregion initial address Determine the respective address of several reserve sectors.
Further, according to the positional information, interface is write by hard disk sector, by the operating system abnormal information It is written on several described continuous reserve sectors.
In this step, according to several the continuous respective addresses of reserve sector determined, pass through writing for hard disk sector Interface, the operating system abnormal information obtained from buffering area is written on several continuous reserve sectors.Specifically, Write interface and can be achieved by the steps of in hard disk sector:Write order is sent to hard disk controller, this write order is a number According to structure, including start sector number, sector number, buffering area first address these three functions enter ginseng, wait hard disk controller operation hard Disk completes write operation.
In addition, when receiving operating system abnormal information and reading instruction, by the reading interface of hard disk sector, if from described The operating system abnormal information is read into internal memory on dry continuous reserve sector.
All operations to hard disk can be realized by hard disk controller in the embodiment of the present invention, the reading and writing of hard disk sector Interface is used to directly operate hard disk controller, and the operation of hard disk is controlled by hard disk controller.
Operating system abnormal information store method provided by the invention, a default zoned format of hard disk is turned to first FAT forms, the reserve sector of predetermined number is included in the subregion after formatting, when getting operating system abnormal information, According to the byte number of operating system abnormal information, several continuous reservation fans are determined from the reserve sector of predetermined number Area, wherein, the total capacity of several continuous reserve sectors is more than or equal to the byte number of operating system abnormal information, then passes through Interface is write in hard disk sector, and operating system abnormal information is written on several continuous reserve sectors, realizes and disobeys Rely the interface of file system, operating system abnormal information is saved on hard disk, so as to solve when exception occurs in file system And the problem of can not normally preserving operating system abnormal information.
It is that file is stored data in by file system interface when in the prior art, using file system data storage In the data field of system, if exception occurs in file system, hard disk can not be write data into by file system interface again, and The present invention utilizes reserve sector data storage, will not both destroy the original structure of file system, and when file system appearance is different Chang Shi, can be independent of the interface of file system, but data are stored in hard disk by the interface of writing of hard disk sector.
Embodiment two
Based on same inventive concept, the embodiment of the present invention two additionally provides a kind of operating system abnormal information save set, It is similar to operating system abnormal information store method to solve the principle of problem due to said apparatus, therefore the implementation of said apparatus can Referring to the implementation of method, to repeat part and repeat no more.
As shown in figure 4, it is the structural representation for the operating system abnormal information save set that the embodiment of the present invention two provides Figure, can include:
Determining unit 31, for when getting operating system abnormal information, according to the operating system abnormal information Byte number, several continuous reserve sectors are determined from the reserve sector of predetermined number, wherein, it is described that several are continuous The total capacity of reserve sector is more than or equal to the byte number of the operating system abnormal information;
R/w cell 32, for writing interface by hard disk sector, if the operating system abnormal information is written to described On dry continuous reserve sector.
Alternatively, the operating system abnormal information save set, can also include:
Obtaining unit, in the byte number according to the operating system abnormal information, from the reserve sector of predetermined number In determine several continuous reserve sectors before, obtain the reserve sector of the predetermined number in such a way:Will be hard One default zoned format of disk turns to file configuration table FAT forms so that comprising predetermined number in the subregion after formatting Reserve sector.
It is preferred that the r/w cell 32, specifically for obtaining the default subregion from the MBS of the hard disk Sector offset amount, and determine according to the sector offset amount positional information of the default subregion;From the predetermined number The numbering of several continuous reserve sectors is obtained in reserve sector, and institute is determined with the sector offset amount according to the numbering State the positional information of several continuous reserve sectors;According to the positional information, by the interface of writing of hard disk sector, by described in Operating system abnormal information is written on several described continuous reserve sectors.
It is preferred that the operating system abnormal information is stored in internal memory in a manner of message queue, the message queue Message in include the first address of the buffering area for depositing the operating system abnormal information.
Alternatively, the operating system abnormal information save set, can also include:
Start unit, for start-up operation system exception information handling task;
First acquisition unit, for obtaining the buffering of the operating system abnormal information from the message of the message queue The first address in area;
Second acquisition unit, for the first address according to the buffering area, obtain the operating system abnormal information.
Alternatively, the operating system abnormal information save set, can also include:
Reading unit, for when receiving the reading instruction of operating system abnormal information, then being connect by the reading of hard disk sector Mouthful, the operating system abnormal information is read from several described continuous reserve sectors into internal memory.
For convenience of description, above each several part is divided by function describes respectively for each module (or unit).Certainly, exist The function of each module (or unit) can be realized in same or multiple softwares or hardware when implementing of the invention.
Embodiment three
As shown in figure 5, the structural representation of the computer equipment provided for the embodiment of the present invention three.The calculating of the embodiment Machine equipment includes:Processor 51, memory 52 and it is stored in the meter that can be run in the memory and on the processor Calculation machine program, such as resource for computer system adjustment programme.Realized described in the computing device during computer program above-mentioned each Step in resource for computer system dispatching method embodiment, such as the step S11 shown in Fig. 2.Or the computing device The function of each module/unit in above-mentioned each device embodiment, such as 31 are realized during the computer program.
Exemplary, the computer program can be divided into one or more module/units, one or more Individual module/unit is stored in the memory, and by the computing device, to complete the present invention.It is one or more Individual module/unit can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used to describe institute State implementation procedure of the computer program in the computer equipment.For example, the computer program can be divided into determination Unit and r/w cell, each module concrete function are as follows:
Determining unit 31, for when getting operating system abnormal information, according to the operating system abnormal information Byte number, several continuous reserve sectors are determined from the reserve sector of predetermined number, wherein, it is described that several are continuous The total capacity of reserve sector is more than or equal to the byte number of the operating system abnormal information;
R/w cell 32, for writing interface by hard disk sector, if the operating system abnormal information is written to described On dry continuous reserve sector.
The computer equipment can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set It is standby.The computer equipment may include, but be not limited only to, processor, memory.It is it will be understood by those skilled in the art that described Schematic diagram is only the example of computer equipment, does not form the restriction to computer equipment, can include than illustrate it is more or Less part, some parts or different parts are either combined, such as the computer equipment can also be defeated including inputting Go out equipment, network access equipment, bus etc..
The processor can be CPU (Central Processing Unit, CPU), can also be it His general processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng the processor is the control centre of the computer equipment, utilizes various interfaces and the whole computer equipment of connection Various pieces.
The memory can be used for storing the computer program and/or module, and the processor is by running or performing The computer program and/or module being stored in the memory, and the data being stored in memory are called, described in realization The various functions of computer equipment.The memory can mainly include storing program area and storage data field, wherein, storage program Area can storage program area, the application program (such as sound-playing function, image player function etc.) needed at least one function Deng;Storage data field can store uses created data (such as voice data, phone directory etc.) etc. according to mobile phone.In addition, Memory can include high-speed random access memory, can also include nonvolatile memory, such as hard disk, internal memory, grafting Formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
Example IV
If the integrated module/unit of the computer equipment is realized in the form of SFU software functional unit and as independent Production marketing in use, can be stored in a computer-readable recording medium.Based on such understanding, the present invention realizes All or part of flow in above-described embodiment method, by computer program the hardware of correlation can also be instructed to complete, Described computer program can be stored in a computer-readable recording medium, the computer program when being executed by processor, The step of above-mentioned each embodiment of the method can be achieved.Wherein, the computer program includes computer program code, the calculating Machine program code can be source code form, object identification code form, executable file or some intermediate forms etc..The computer Readable storage medium storing program for executing can include:Can carry any entity or device of the computer program code, recording medium, USB flash disk, Mobile hard disk, magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory Device (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..Need what is illustrated It is that the content that the computer-readable recording medium includes can be entered according to legislation in jurisdiction and the requirement of patent practice The appropriate increase and decrease of row, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium does not include electricity and carried Ripple signal and telecommunication signal.
For convenience of description, above each several part is divided by function describes respectively for each module (or unit).Certainly, exist The function of each module (or unit) can be realized in same or multiple softwares or hardware when implementing of the invention.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, apparatus or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (device) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (12)

  1. A kind of 1. operating system abnormal information store method, it is characterised in that including:
    When getting operating system abnormal information, according to the byte number of the operating system abnormal information, from predetermined number Several continuous reserve sectors are determined in reserve sector, wherein, the total capacity of several continuous reserve sectors is big In the byte number equal to the operating system abnormal information;
    Interface is write by hard disk sector, the operating system abnormal information is written to several described continuous reserve sectors On.
  2. 2. according to the method for claim 1, it is characterised in that in the byte number according to the operating system abnormal information, Before several continuous reserve sectors are determined from the reserve sector of predetermined number, obtain in such a way described default The reserve sector of quantity:
    One default zoned format of hard disk is turned into file configuration table FAT forms so that comprising pre- in the subregion after formatting If the reserve sector of quantity.
  3. 3. according to the method for claim 1, it is characterised in that interface is write by hard disk sector, by the operating system Abnormal information is written on several described continuous reserve sectors, is specifically included:
    The sector offset amount of the default subregion is obtained from the MBS of the hard disk, and according to the sector offset amount Determine the positional information of the default subregion;
    Obtain the numbering of several continuous reserve sectors from the reserve sector of the predetermined number, and according to the numbering with The sector offset amount determines the positional information of several continuous reserve sectors;
    According to the positional information, interface is write by hard disk sector, if the operating system abnormal information is written to described On dry continuous reserve sector.
  4. 4. according to the method for claim 1, it is characterised in that the operating system abnormal information is in a manner of message queue It is stored in internal memory, the first ground for the buffering area for depositing the operating system abnormal information is included in the message of the message queue Location;And
    In the byte number according to the operating system abnormal information, determine that several are continuous from the reserve sector of predetermined number Reserve sector before, in addition to:
    Start-up operation system exception information handling task;
    The first address of the buffering area of the operating system abnormal information is obtained from the message of the message queue;
    According to the first address of the buffering area, the operating system abnormal information is obtained.
  5. 5. according to the method for claim 1, it is characterised in that also include:
    When receiving the reading instruction of operating system abnormal information, then by the reading interface of hard disk sector, from several described companies The operating system abnormal information is read on continuous reserve sector into internal memory.
  6. A kind of 6. operating system abnormal information save set, it is characterised in that including:
    Determining unit, for when getting operating system abnormal information, according to the byte number of the operating system abnormal information, Several continuous reserve sectors are determined from the reserve sector of predetermined number, wherein, several described continuous reservation fans The total capacity in area is more than or equal to the byte number of the operating system abnormal information;
    R/w cell, for writing interface by hard disk sector, the operating system abnormal information is written to several described companies On continuous reserve sector.
  7. 7. device according to claim 6, it is characterised in that also include:
    Obtaining unit, in the byte number according to the operating system abnormal information, from the reserve sector of predetermined number really Before making several continuous reserve sectors, the reserve sector of the predetermined number is obtained in such a way:By hard disk One default zoned format turns to file configuration table FAT forms so that the reservation of predetermined number is included in the subregion after formatting Sector.
  8. 8. device according to claim 6, it is characterised in that
    The r/w cell, the sector offset amount specifically for obtaining the default subregion from the MBS of the hard disk, And the positional information of the default subregion is determined according to the sector offset amount;Obtained from the reserve sector of the predetermined number The numbering of several continuous reserve sectors, and several are continuous according to the numbering with sector offset amount determination The positional information of reserve sector;According to the positional information, interface is write by hard disk sector, the operating system is believed extremely Breath is written on several described continuous reserve sectors.
  9. 9. device according to claim 6, it is characterised in that the operating system abnormal information is in a manner of message queue It is stored in internal memory, the first ground for the buffering area for depositing the operating system abnormal information is included in the message of the message queue Location;And
    Described device, in addition to:
    Start unit, for start-up operation system exception information handling task;
    First acquisition unit, for obtaining the buffering area of the operating system abnormal information from the message of the message queue First address;
    Second acquisition unit, for the first address according to the buffering area, obtain the operating system abnormal information.
  10. 10. device according to claim 6, it is characterised in that also include:
    Reading unit, for when receiving operating system abnormal information and reading instruction, then by the reading interface of hard disk sector, from The operating system abnormal information is read on several described continuous reserve sectors into internal memory.
  11. 11. a kind of computer equipment, it is characterised in that the computer equipment includes processor, and the processor is used to perform Realize that the operating system abnormal information as described in any one in claim 1-5 is protected during the computer program stored in memory The step of depositing method.
  12. 12. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The step of the operating system abnormal information store method as described in any one in claim 1-5 is realized when being executed by processor Suddenly.
CN201710685490.7A 2017-08-11 2017-08-11 Method and device for storing abnormal information of operating system Active CN107506253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710685490.7A CN107506253B (en) 2017-08-11 2017-08-11 Method and device for storing abnormal information of operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710685490.7A CN107506253B (en) 2017-08-11 2017-08-11 Method and device for storing abnormal information of operating system

Publications (2)

Publication Number Publication Date
CN107506253A true CN107506253A (en) 2017-12-22
CN107506253B CN107506253B (en) 2021-05-18

Family

ID=60690718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710685490.7A Active CN107506253B (en) 2017-08-11 2017-08-11 Method and device for storing abnormal information of operating system

Country Status (1)

Country Link
CN (1) CN107506253B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110147289A (en) * 2018-02-13 2019-08-20 北京京东尚科信息技术有限公司 Unexpected message screening technique and device and computer readable storage medium
CN114360627A (en) * 2020-10-12 2022-04-15 合肥君正科技有限公司 Lightweight TF card detection tool

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101231607A (en) * 2008-02-22 2008-07-30 浪潮电子信息产业股份有限公司 Method for maintenance of main system through custom-built embedded small system
CN102073655A (en) * 2009-11-20 2011-05-25 腾讯科技(深圳)有限公司 Method and device for saving data
CN101582084B (en) * 2009-06-03 2012-12-19 中兴通讯股份有限公司 Method and device for data storage
CN104798136A (en) * 2012-11-19 2015-07-22 高通股份有限公司 Memory cell array with reserved sector for storing configuration information
CN105653385A (en) * 2015-12-31 2016-06-08 深圳市蓝泰源信息技术股份有限公司 Vehicle-loaded videorecording method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101231607A (en) * 2008-02-22 2008-07-30 浪潮电子信息产业股份有限公司 Method for maintenance of main system through custom-built embedded small system
CN101582084B (en) * 2009-06-03 2012-12-19 中兴通讯股份有限公司 Method and device for data storage
CN102073655A (en) * 2009-11-20 2011-05-25 腾讯科技(深圳)有限公司 Method and device for saving data
CN104798136A (en) * 2012-11-19 2015-07-22 高通股份有限公司 Memory cell array with reserved sector for storing configuration information
CN105653385A (en) * 2015-12-31 2016-06-08 深圳市蓝泰源信息技术股份有限公司 Vehicle-loaded videorecording method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110147289A (en) * 2018-02-13 2019-08-20 北京京东尚科信息技术有限公司 Unexpected message screening technique and device and computer readable storage medium
CN110147289B (en) * 2018-02-13 2023-11-03 北京京东尚科信息技术有限公司 Abnormal message screening method and device and computer readable storage medium
CN114360627A (en) * 2020-10-12 2022-04-15 合肥君正科技有限公司 Lightweight TF card detection tool

Also Published As

Publication number Publication date
CN107506253B (en) 2021-05-18

Similar Documents

Publication Publication Date Title
US11068455B2 (en) Mapper tree with super leaf nodes
US7689802B2 (en) Controlling memory access in a multi-booting system
JP4685038B2 (en) Hidden area management apparatus and method
JP4733461B2 (en) Computer system, management computer, and logical storage area management method
CN101650660B (en) Booting a computer system from central storage
CN105094811A (en) Method can device for processing events
CN111767270A (en) Data migration method, device, server and storage medium
CN112148226A (en) Data storage method and related device
CN107506253A (en) A kind of operating system abnormal information store method and device
CN106709014B (en) File system conversion method and device
CN108304142A (en) A kind of data managing method and device
CN110673795A (en) Data writing method and device, computer device and storage medium
CN102968323A (en) Computer terminal and method for accelerating starting-up of computer system
US11055017B1 (en) Throttling a point-in-time snapshot copy operation within a data consistency application
CN114138292A (en) System upgrading method, storage medium and terminal equipment
CN108932155A (en) Virtual machine memory management method, device, electronic equipment and readable storage medium storing program for executing
CN111459848B (en) File fragment sorting method and device, storage medium and electronic equipment
CN111435331B (en) Data writing method and device for storage volume, electronic equipment and machine-readable storage medium
CN105354294A (en) Nested file management system and method
CN106033454B (en) Formatting method, processing method and device of virtual file system
CN114371815B (en) Data storage method, device and system
CN109002401A (en) Magnetic disk of virtual machine reproduction process read method and device based on dynamic buffering
US11635920B2 (en) Enabling multiple storage tiers in a hyperconverged infrastructure (HCI) cluster
CN117609195B (en) Object management method, device and equipment of distributed storage system and medium
CN111625192B (en) Metadata object access method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20171222

Assignee: Kedong (Guangzhou) Software Technology Co., Ltd

Assignor: Beijing Dongtu Technology Co., Ltd.|Beijing keyin Jingcheng Technology Co., Ltd

Contract record no.: X2020980000255

Denomination of invention: Method and device for storing abnormal information of operating system

License type: Exclusive License

Record date: 20200218

EE01 Entry into force of recordation of patent licensing contract
GR01 Patent grant
GR01 Patent grant