CN101261599A - Method for reading hard disk monitoring information - Google Patents
Method for reading hard disk monitoring information Download PDFInfo
- Publication number
- CN101261599A CN101261599A CN 200710037918 CN200710037918A CN101261599A CN 101261599 A CN101261599 A CN 101261599A CN 200710037918 CN200710037918 CN 200710037918 CN 200710037918 A CN200710037918 A CN 200710037918A CN 101261599 A CN101261599 A CN 101261599A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- monitoring information
- main frame
- reads
- monitoring
- 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.)
- Pending
Links
Images
Abstract
A method for reading the monitoring information of a hard disk is applicable to hand-held electronic devices with hard disks. The method has the following steps that: a hand-held electronic device and a host establish a connection by a connecting interface; the host writes a monitoring procedure in the hard disk of the hand-held electronic device; the hand-held electronic device implements the monitoring procedure to obtain the monitoring information of the hard disk and stores the monitoring information in a particular region of the hard disk; finally, the host reads the monitoring information which is stored in the particular region.
Description
Technical field
The present invention is relevant for a kind of hard disk monitoring method, and particularly relevant for a kind of method that reads the hand-held hard disk monitoring information.
Background technology
Along with the continuous progress of electronics technology, the application of portable electric device (Handheld Electronic Device) also more and more widely.With mobile phone (Mobile Phone), portable multimedia player (PortableMedia Player, PMP) or personal digital assistant (Personal Digital Assistant, PDA) etc. portable electric device is an example, and the user can use these portable electric devices to watch dynamic film.These all can config memory above portable electric device or storage element such as hard disk stores these data.But the storage element of this class of hard disk all has its certain serviceable life, and may be given a shock or high temperature etc. is former thereby damage.
The damage of hard disk can be divided into two kinds of the damages of the damage of measurable (Predictable) and unpredictable (Unpredictable) generally.The damage that so-called predictable damage refers to hard disk has some signs to follow, and for example hard disk begins to produce wrong (Failure).And uncertain damage refers to not damage expectedly of hard disk, similarly is that circuit is burnt or the like suddenly.
Produce predictable damage for fear of hard disk, hard disk is now supported hard disk oneself's check and analysis and repayment technology (Self-Monitoring Analysis and Reporting Technology mostly, SMART), make the user to do understanding to the behaviour in service of hard disk.Hard disk oneself's check and analysis and repayment technology can provide the information of the many hard disks of user, for example the duration of runs of hard disk (Spin Up Time), temperature (Temperature), read error rate (Read Error Rate), heavy distribution section number (ReallocatedSectors Count) and sector number co-pending (Pending Sector Count).The information of hard disk oneself check and analysis and repayment technology can allow the user learn whether hard disk has the situation that makes a mistake, and makes the user to avoid Hard disk error and causes the damage of data.
In known technology, the information that the user can utilize existing implementing procedure to obtain hard disk oneself's check and analysis and repayment technology is judged the health status of hard disk, wherein, these existing implementing procedures are that (Advanced Technology Attachment, instruction ATA) obtains the information of hard disk oneself's check and analysis and repayment technology by assigning advanced supplementary technology.These existing implementing procedures can be applied to by advanced supplementary technology or string type advanced supplementary technology (Serial Advanced Technology Attachment, the SATA) hard disk that is connected.
Yet (Universal Serial Bus, USB) agreement (Protocol) is restricted to the instruction of advanced supplementary technology for USB (universal serial bus).Therefore, when these existing implementing procedures were applied to the hard disk of the portable electric device that connects by USB (universal serial bus), existing implementing procedure was the health status that the information that can't obtain hard disk oneself's check and analysis and repayment technology is judged hard disk.So, the user can only utilize the mode of the machine of tearing open that hard disk is taken out and be connected in host computer (Computer) by advanced supplementary technology or the advanced supplementary technology of string type, just can learn the whether wrong generation of hard disk of these portable electric devices, considerably inconvenient concerning the user.In addition, the relation of the spare part of portable electric device inside is often considerably complicated and accurate, makes that the process of the machine of tearing open is not only time-consuming but also might cause damage to portable electric device.
Summary of the invention
In view of this, the invention provides a kind of method of reading hard disk monitoring information, after portable electric device is connected in main frame by USB (universal serial bus), main frame can read the monitoring information of portable electric device hard disk, makes the user can learn the whether wrong generation of portable electric device hard disk expediently.
The present invention proposes a kind of method of reading hard disk monitoring information, is applicable to the handheld electronic device with a hard disk, and it comprises the following steps: by a connection interface portable electric device and main frame to be connected; Then, portable electric device is carried out monitoring facilities obtaining a monitoring information of hard disk, and monitoring information is stored in a specific region of hard disk; At last, main frame reads the monitoring information that is stored in the specific region.
Method according to the described reading hard disk monitoring information of preferred embodiment of the present invention, wherein after portable electric device is connected to the step of main frame, more comprise by main frame judging whether monitoring facilities is arranged in the hard disk,, then monitoring facilities is write hard disk by main frame if do not have monitoring facilities in the hard disk.
According to the method for the described reading hard disk monitoring information of preferred embodiment of the present invention, wherein after main frame writes the step of hard disk with monitoring facilities, also comprise and restart portable electric device.
Method according to the described reading hard disk monitoring information of preferred embodiment of the present invention, wherein before portable electric device is stored in monitoring information the step of specific region of hard disk, the main frame backup originally was stored in one of specific region source book, and after main frame reads the step of the monitoring information that is stored in the specific region, reduce the source book of this specific region by main frame again.
According to the method for the described reading hard disk monitoring information of preferred embodiment of the present invention, wherein after main frame read the step of the monitoring information that is stored in the specific region, the host analysis monitoring information was obtained an analysis result, and is shown by main frame.This analysis result comprises judges whether wrong generation of hard disk.
According to the described method that reads the monitoring information of hard disk of preferred embodiment of the present invention, wherein monitoring information is the analysis result after many preset threshold values of comparison.
According to the described method that reads the monitoring information of hard disk of preferred embodiment of the present invention, wherein this main frame reads after this monitoring information that is stored in this specific region, more comprises: interrupt being connected of this portable electric device and this main frame; Restart this portable electric device.
According to the described method that reads the monitoring information of hard disk of preferred embodiment of the present invention, wherein monitoring information is the information of hard disk oneself check and analysis and repayment technology, comprising the duration of runs, temperature, read error rate, weight distribution section number and the sector number co-pending of hard disk one of them or its combination.
According to the described method that reads the monitoring information of hard disk of preferred embodiment of the present invention, wherein connecting interface is a USB (universal serial bus) interface.
The present invention be because of allowing main frame read the monitoring information of portable electric device hard disk by a USB (universal serial bus) interface, therefore, is convenient to detect the whether wrong generation of portable electric device hard disk.In addition, in the front and back that main frame reads monitoring information, owing to backup is arranged and reduce the source book of specific region, so can not change to some extent hard-disk content.
For above-mentioned feature and advantage of the present invention can be become apparent, preferred embodiment cited below particularly, and conjunction with figs. are described in detail below.
Description of drawings
Fig. 1 is the process flow diagram according to the method for the reading hard disk monitoring information that a preferred embodiment of the present invention illustrated.
Fig. 2 is the process flow diagram of the method for the reading hard disk monitoring information that illustrated according to another preferred embodiment of the present invention.
The analysis result synoptic diagram of Fig. 3 for being illustrated according to another preferred embodiment of the present invention.
Embodiment
Fig. 1 is the process flow diagram according to the method for the reading hard disk monitoring information that a preferred embodiment of the present invention illustrated.Please refer to Fig. 1, at first, step S102 connects interface by one portable electric device is connected to a main frame, this connects interface and can be the USB (universal serial bus) interface, or other interfaces that can establish a connection by wired or wireless connected mode, and wherein this portable electric device has a hard disk.Then carry out step S104, portable electric device is carried out monitoring facilities obtaining a monitoring information of hard disk, and monitoring information is stored in a specific region of hard disk.This monitoring information for example is the information of hard disk oneself's check and analysis and repayment technology, and it comprises the information such as the duration of runs, temperature, read error rate, heavy distribution section number and sector number co-pending of hard disk.Carry out step S106 at last, main frame reads the monitoring information that is stored in the specific region.
By above-mentioned process flow diagram as can be seen, main frame may be read into the monitoring information of portable electric device hard disk, make the user whether to produce mistake to the portable electric device hard disk and judged, and can reduce hard disk to be damaged and the possibility that causes data to damage by monitoring information.In addition, the process that main frame is obtained monitoring information does not need the complicated machine of tearing open yet, and convenience is good.
Fig. 2 is the process flow diagram of the method for the reading hard disk monitoring information that illustrated according to another preferred embodiment of the present invention.Please refer to Fig. 2, at first, step S202 is connected to a main frame by a USB (universal serial bus) interface with portable electric device.This portable electric device has a hard disk.Then carry out step S204, main frame judges whether monitoring facilities is arranged in the hard disk.If do not have monitoring facilities in the hard disk, then main frame writes monitoring facilities in this hard disk (step S206).Then, step S208 restarts portable electric device, makes monitoring facilities be operated.Then, carry out step S210, the main frame backup originally was stored in a source book of specific region.This specific region will store the usefulness of monitoring information as monitoring facilities.In addition, if after carrying out step S204, main frame judges that hard disk has monitoring facilities, equally then carries out step S210.
After finishing step S210, portable electric device is carried out monitoring facilities obtaining a monitoring information of hard disk, and monitoring information is stored in the specific region (step S212) of hard disk.Then carry out step S214, main frame reads the monitoring information that is stored in the specific region.After main frame read monitoring information, the source book (step S216) of main frame reduction specific region was to guarantee the consistance of source book before and after monitoring facilities is carried out.
Then carry out step S218, the host analysis monitoring information is obtained an analysis result.Analysis result comprises judges whether wrong generation of hard disk, a for example given threshold value (Threshold), again resulting monitoring information and threshold value are made comparisons,, judge that then hard disk is wrong if the drop of monitoring information and threshold value exceeds default scope.Then, main frame display analysis result (step S220).
The analysis result synoptic diagram of Fig. 3 for being illustrated according to another preferred embodiment of the present invention.Please refer to Fig. 3, upper left corner disk (Diskl) is represented the hard disk of portable electric device.Analysis result is for example for analyzing the resulting result of information of hard disk oneself's check and analysis and repayment technology.Analysis result has a plurality of fields, and it comprises identification title (ID), threshold value, original value (Raw Value) and state (Status).
Classify example as with the 6th, the original value of searching error rate (Seek Error Rate) is 0, do not make mistakes when so representative is searched, so monitoring facilities (OK) in good condition that analyze out.In addition, at the 5th row and the 7th row, the original value of heavy distribution section number (Reallocated Sector Count) and sector number co-pending (PendingSector Count) is respectively 11 and 24, monitoring facilities is for example made comparisons with original value and threshold value or with original value and default scope, and the state of analyzing hard disk is to have to produce wrong situation.
After obtaining analysis result, carry out step S222, portable electric device is removed from main frame.At last, can restart portable electric device, allow portable electric device recover monitoring facilities and carry out preceding state.
In sum, the method for reading hard disk monitoring information of the present invention has following advantage at least:
One, main frame can read the monitoring information of portable electric device hard disk by a USB (universal serial bus) interface, therefore, is convenient to detect the whether wrong generation of portable electric device hard disk, and need not tear complicated mode such as machine open.
Therefore two, read the front and back of monitoring information at main frame, because the source book of backup and reduction specific region is arranged, can not change to some extent and influence the data that the user reads and writes original preservation hard-disk content.
Three, the user can more be pressed close to the returning error message of user's demand by the threshold value that sets up each monitoring information on their own.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; have in the technical field under any and know the knowledgeable usually; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention defines and is as the criterion when looking accompanying claim.
Claims (10)
1. the method for a reading hard disk monitoring information is used to read the handheld electronic device with a hard disk, and this method comprises the following steps:
One main frame connects interface by one and is connected to this portable electric device;
This portable electric device is carried out a monitoring facilities obtaining a monitoring information of this hard disk, and this monitoring information is stored in a specific region of this hard disk; And
This main frame reads this monitoring information that is stored in this specific region.
2. the method for reading hard disk monitoring information as claimed in claim 1 is characterized in that, also comprises after this portable electric device is connected to the step of this main frame:
This main frame judges whether this monitoring facilities is arranged in this hard disk; And
If this monitoring facilities not in this hard disk, then this main frame writes this monitoring facilities in this hard disk.
3. the method for reading hard disk monitoring information as claimed in claim 1 is characterized in that, at this portable electric device this monitoring information is stored in before the step of this specific region of this hard disk, also comprises:
This main frame backup originally was stored in a source book of this specific region;
After this main frame reads the step of this monitoring information that is stored in this specific region, also comprise:
This main frame reduces this source book of this specific region.
4. the method for reading hard disk monitoring information as claimed in claim 1 is characterized in that, after this main frame reads the step of this monitoring information that is stored in this specific region, also comprises:
This monitoring information of this host analysis is obtained an analysis result;
This main frame shows this analysis result.
5. the method that reads the monitoring information of hard disk as claimed in claim 4 is characterized in that, this analysis result comprises:
Judge the whether wrong generation of this hard disk.
6. the method that reads the monitoring information of hard disk as claimed in claim 1 is characterized in that, this monitoring information is the analysis result after many preset threshold values of comparison.
7. the method for reading hard disk monitoring information as claimed in claim 1 is characterized in that, after this main frame reads this monitoring information that is stored in this specific region, also comprises:
Interrupt being connected of this portable electric device and this main frame; And
Restart this portable electric device.
8. the method that reads the monitoring information of hard disk as claimed in claim 1 is characterized in that, this monitoring information is the information of hard disk oneself's check and analysis and repayment technology.
9. the method that reads the monitoring information of hard disk as claimed in claim 1 is characterized in that, this monitoring information comprises the duration of runs, temperature, read error rate of this hard disk, heavy distribution section number and sector number co-pending one of them or its combination.
10. the method that reads the monitoring information of hard disk as claimed in claim 1 is characterized in that, this connection interface is a USB (universal serial bus) interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710037918 CN101261599A (en) | 2007-03-08 | 2007-03-08 | Method for reading hard disk monitoring information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710037918 CN101261599A (en) | 2007-03-08 | 2007-03-08 | Method for reading hard disk monitoring information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101261599A true CN101261599A (en) | 2008-09-10 |
Family
ID=39962065
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200710037918 Pending CN101261599A (en) | 2007-03-08 | 2007-03-08 | Method for reading hard disk monitoring information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101261599A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970638A (en) * | 2013-02-01 | 2014-08-06 | 国际商业机器公司 | Selective Monitoring Of Archive And Backup Storage |
CN107766184A (en) * | 2017-09-21 | 2018-03-06 | 曙光信息产业(北京)有限公司 | Examine the method and device of hard disc apparatus |
CN109697144A (en) * | 2018-11-22 | 2019-04-30 | 合肥联宝信息技术有限公司 | The hard disk detection method and electronic equipment of a kind of electronic equipment |
-
2007
- 2007-03-08 CN CN 200710037918 patent/CN101261599A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970638A (en) * | 2013-02-01 | 2014-08-06 | 国际商业机器公司 | Selective Monitoring Of Archive And Backup Storage |
CN107766184A (en) * | 2017-09-21 | 2018-03-06 | 曙光信息产业(北京)有限公司 | Examine the method and device of hard disc apparatus |
CN109697144A (en) * | 2018-11-22 | 2019-04-30 | 合肥联宝信息技术有限公司 | The hard disk detection method and electronic equipment of a kind of electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2137621B1 (en) | Accessing metadata with an external host | |
US20160232450A1 (en) | Storage device lifetime monitoring system and storage device lifetime monitoring method thereof | |
CN105144074B (en) | It is stored using the block of hybrid memory device | |
US7992061B2 (en) | Method for testing reliability of solid-state storage medium | |
CN111694764B (en) | Data reading method of failed solid state disk | |
CN103517304A (en) | Method and device for obtaining safe state of mobile terminal | |
CN102737205B (en) | Protection comprises can the file of editing meta-data | |
CN111581022B (en) | Data recovery method and system | |
CN104881355A (en) | Method and system for testing test coverage | |
CN104699408A (en) | Operation method and device of touch screen and touch device | |
CN103942009A (en) | Apparatus and method for extending memory in terminal | |
CN106227625A (en) | The restoration methods of a kind of flash data damaged because of power down and system | |
CN104346230A (en) | Threshold voltage regulating method and device for memory chip and memory chip | |
CN103309892A (en) | Method and equipment for information processing and Web browsing history navigation and electronic device | |
CN101261599A (en) | Method for reading hard disk monitoring information | |
CN105304140B (en) | The test method and device of the memory performance of electronic equipment | |
US9791911B2 (en) | Determining whether a change in power usage is abnormal when power usage exceeds a threshold based on additional metrics of components in an electronic device | |
CN105446848A (en) | Electronic device data processing performance test method and device | |
CN110704257A (en) | Solid state disk, quality monitoring method and device thereof and computer readable storage medium | |
CN102368232B (en) | Method and device for generating installation configuration list | |
CN112068781B (en) | Data reading and writing method of memory and related equipment | |
CN103631755A (en) | Installing configuration list generation method and device | |
CN105279171A (en) | Method and equipment for evaluating predicates on compressed variable-length character string | |
CN108052441A (en) | A kind of test method, system, device and the storage medium of hard disk performance level | |
WO2023098269A1 (en) | Solid-state drive processing method, system, and device, and non-volatile readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20080910 |