CN103400602B - A kind of bad track of hard disk self-repairing method and equipment - Google Patents

A kind of bad track of hard disk self-repairing method and equipment Download PDF

Info

Publication number
CN103400602B
CN103400602B CN201310314880.5A CN201310314880A CN103400602B CN 103400602 B CN103400602 B CN 103400602B CN 201310314880 A CN201310314880 A CN 201310314880A CN 103400602 B CN103400602 B CN 103400602B
Authority
CN
China
Prior art keywords
hard disk
bad track
prosthetic appliance
automatic
bad
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.)
Active
Application number
CN201310314880.5A
Other languages
Chinese (zh)
Other versions
CN103400602A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201310314880.5A priority Critical patent/CN103400602B/en
Publication of CN103400602A publication Critical patent/CN103400602A/en
Application granted granted Critical
Publication of CN103400602B publication Critical patent/CN103400602B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of bad track of hard disk self-repairing method and equipment, the method comprises: the automatic prosthetic appliance of bad track of hard disk upon actuation, is automatically repaired order by the first bad track of hard disk and scanned hard disk; When there is bad track in hard disk, generate the bad track list comprising bad track, and by bad track list storage to the first storage area; Generate order by the first image file and mirror image is carried out to the content corresponding to the bad track in bad track list, and the content after mirror image is stored into the second storage area; Automatically repair order by the second bad track of hard disk and format process is carried out to the bad track in bad track list; Generate order by the second image file and the content stored in the second storage area reverted to bad track in bad track list; The reparation of bad track of hard disk automatic prosthetic appliance determination bad track of hard disk completes.In the embodiment of the present invention, automatically can carrying out bad track detection to hard disk, automatically repairing bad track of hard disk when bad track of hard disk being detected, bad track of hard disk repair process does not need manpower intervention.

Description

A kind of bad track of hard disk self-repairing method and equipment
Technical field
The present invention relates to communication technical field, particularly relate to a kind of bad track of hard disk self-repairing method and equipment.Background technology
Hard disk produces the reason of bad track and comprises: dust, vibrations, electrostatic, high temperature, illegal shutdown (i.e. abnormal power-down), internal memory very little consequently application software hard disk is frequently accessed.Hard disk, after there is bad track, can cause the sector of some bad hard disk unavailable, and can have influence on other free hard sector, causes the damage of monoblock hard disk.Therefore, when bad track appears in hard disk, mean that this hard disk is used for storing data dangerous.
In actual applications, hard disk occurs that the situation of bad track is inevitable, needs to repair bad track of hard disk for this reason.Under Windows system, DiskGenius(fdisk is repaired) be a fdisk and date restoring software, it supports the inspection and repair function of bad track of hard disk, minimizes to reduce repairing the corrupted data in bad track process.In addition, under Windows system, HDDRegenerator(hard disk regenerator) be a instrument can repairing bad track of hard disk, its corrupted information reparation that can will not can read, and existing information is unaffected.
Realizing in process of the present invention, inventor finds at least there is following problem in prior art:
When repairing bad track of hard disk need hard disk to remove from veneer, and by being provided with the PC(PersonalComputer of Windows, personal computer) bad track reparation is carried out to hard disk, it faces dismounting hard disk and builds the complex processes such as environment.In addition, the reparation software under Windows does not mostly support Linuxext2/3/4 file system type, therefore needs to carry out format reparation to monoblock hard disk in bad track repair process.
Summary of the invention
The embodiment of the present invention provides a kind of bad track of hard disk self-repairing method and equipment, automatically to carry out bad track detection to hard disk, and when bad track of hard disk being detected, automatically repairs bad track of hard disk.
For achieving the above object, the embodiment of the present invention provides a kind of bad track of hard disk self-repairing method, comprising:
The automatic prosthetic appliance of bad track of hard disk upon actuation, is automatically repaired order by the first bad track of hard disk and is scanned hard disk; When there is bad track in described hard disk, generate the bad track list comprising bad track, and by first storage area of described bad track list storage to the automatic prosthetic appliance of bad track of hard disk;
The automatic prosthetic appliance of described bad track of hard disk is after having scanned described hard disk, generate order by the first image file and mirror image is carried out to the content corresponding to the bad track in described bad track list, and the content after mirror image is stored into the second storage area of the automatic prosthetic appliance of bad track of hard disk;
The automatic prosthetic appliance of described bad track of hard disk, after the content mirrors corresponding to bad track completes, is automatically repaired order by the second bad track of hard disk and is carried out format process to the bad track in described bad track list;
The automatic prosthetic appliance of described bad track of hard disk generates order by the second image file and the content stored in the second storage area of automatic for described bad track of hard disk prosthetic appliance is reverted to bad track in described bad track list;
The reparation of described bad track of hard disk automatic prosthetic appliance determination bad track of hard disk completes;
Wherein, described first bad track of hard disk repairs order automatically, described first image file generates order, described second bad track of hard disk repairs order automatically and described second image file generates three storage area of demanded storage at the automatic prosthetic appliance of bad track of hard disk.
The embodiment of the present invention provides a kind of bad track of hard disk automatic prosthetic appliance, and this equipment specifically comprises:
First memory module, for after the automatic prosthetic appliance of bad track of hard disk starts, automatically repairs order by the first bad track of hard disk and scans hard disk; When there is bad track in hard disk, generate the bad track list comprising bad track, and by first storage area of described bad track list storage to the automatic prosthetic appliance of bad track of hard disk;
Second memory module, for after having scanned described hard disk, generate order by the first image file and mirror image is carried out to the content corresponding to the bad track in described bad track list, and the content after mirror image is stored into the second storage area of the automatic prosthetic appliance of bad track of hard disk;
First processing module, for after the content mirrors corresponding to bad track completes, automatically repairs order by the second bad track of hard disk and carries out format process to the bad track in described bad track list;
Second processing module, to revert to bad track in described bad track list for being generated order by the second image file by the content stored in the second storage area of automatic for bad track of hard disk prosthetic appliance;
Determination module, for after the content stored in the second storage area of automatic for bad track of hard disk prosthetic appliance is reverted to the bad track in described bad track list, determines that bad track of hard disk reparation completes;
Wherein, described first bad track of hard disk repairs order automatically, described first image file generates order, described second bad track of hard disk repairs order automatically and described second image file generates three storage area of demanded storage at the automatic prosthetic appliance of bad track of hard disk.
Compared with prior art, the embodiment of the present invention at least has the following advantages: in the embodiment of the present invention, by running the automatic prosthetic appliance of bad track of hard disk (for providing bad track of hard disk automatic repair function), without the need to by the bad track of hard disk fix tool under Windows system, automatically bad track detection can be carried out to hard disk, and automatically repair bad track of hard disk when bad track of hard disk being detected, bad track of hard disk repair process does not need manpower intervention.
Accompanying drawing explanation
In order to be illustrated more clearly in technical scheme of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of bad track of hard disk self-repairing method schematic flow sheet that the embodiment of the present invention one provides;
Fig. 2 is the automatic prosthetic appliance structural representation of a kind of bad track of hard disk that the embodiment of the present invention two provides.
Embodiment
Below in conjunction with the accompanying drawing in the present invention, be clearly and completely described the technical scheme in the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
For problems of the prior art, the embodiment of the present invention one proposes a kind of bad track of hard disk self-repairing method, is automatically repaired bad track of hard disk by the automatic prosthetic appliance of bad track of hard disk.Wherein, the automatic prosthetic appliance of this bad track of hard disk can be CD (bad track repairs CD automatically) or USB(UniversalSerialBUS, USB (universal serial bus)) equipment (part is used to the USB device of mini, also need to use patchcord to change).Certainly, the automatic prosthetic appliance of bad track of hard disk also can be other plug-in device.
In the embodiment of the present invention, the automatic prosthetic appliance of bad track of hard disk is at least divided into three storage areas, and these three storage areas are respectively the 3rd storage area of the first storage area of the automatic prosthetic appliance of bad track of hard disk, the second storage area of the automatic prosthetic appliance of bad track of hard disk and the automatic prosthetic appliance of bad track of hard disk.Wherein:
First storage area of the automatic prosthetic appliance of bad track of hard disk is for repairing result memory block, this first storage area is used for storage hard disk bad track statistics file, and (its content is bad track list, set forth the storing process of bad track list in subsequent process), after bad track reparation hard disk health status file (its content is the health status information of hard disk, set forth the storing process of health status information in subsequent process), Hard Disk Repair time file (its content is that bad track of hard disk repairs the deadline, sets forth bad track of hard disk and repair the storing process of deadline in subsequent process).In addition, the zoned format of the first storage area of the automatic prosthetic appliance of this bad track of hard disk can adopt VFAT(VirtualFileAllocationTable, Virtual File Allocation Table), hard disk health status file, Hard Disk Repair time file after the bad track of hard disk statistics file in the first storage area of automatic for bad track of hard disk prosthetic appliance, bad track reparation are taken out under Windows system for user.
Second storage area of the automatic prosthetic appliance of bad track of hard disk is image file memory block, this second storage area is for storing the content in bad track repair process corresponding to bad track, be stored in the second storage area by data genaration image file on bad track, concrete storing process is set forth in subsequent process temporarily.The zoned format of this second storage area can adopt ext3(Thirdextendedfilesystem, Journal File System).
3rd storage area of the automatic prosthetic appliance of bad track of hard disk is the automatic repair procedure memory block of (SuSE) Linux OS and bad track, 3rd storage area is for storing program and the script (relative program and script are for carrying out the automatic reparation of bad track) of (SuSE) Linux OS and the reparation of relevant bad track, and the concrete content that stores is set forth in subsequent process.In addition, the zoned format of the 3rd storage area can adopt ext3.
As shown in Figure 1, this bad track of hard disk self-repairing method can comprise the following steps:
Step 101, after the automatic prosthetic appliance of bad track of hard disk starts, the automatic prosthetic appliance of this bad track of hard disk is automatically repaired order by the first bad track of hard disk and is scanned hard disk.
Wherein, for needing to carry out the equipment (as PC etc.) at the hard disk place scanned, needing by BIOS(BasicInputOutputSystem, Basic Input or Output System (BIOS)) equipment of setting is that the automatic prosthetic appliance of bad track of hard disk (as USB device) preferentially starts.Based on this, upon actuation, there is not the automatic prosthetic appliance of bad track of hard disk if detected in equipment, then perform normal Booting sequence (namely starting from local kernel and root file system), repeat no more in this process embodiment of the present invention.Upon actuation, there is the automatic prosthetic appliance of bad track of hard disk if detected in equipment, then starts from the automatic prosthetic appliance of bad track of hard disk, and perform step 101.
In the embodiment of the present invention, first bad track of hard disk repairs the program and script that order is the reparation of relevant bad track automatically, and be stored in the 3rd storage area of the automatic prosthetic appliance of bad track of hard disk, and this first bad track of hard disk automatically to repair order be BADBLOCKS order based on built-in Linux operating system, for scanning hard disk.Based on this, the automatic prosthetic appliance of bad track of hard disk is scanned all subregions of hard disk by the BADBLOCKS order based on built-in Linux operating system, and it adopts read-only mode to carry out.
It should be noted that BADBLOCKS order based on built-in Linux operating system is for checking the block damaged in hard disk, and the bad track inspection by specifying hard disk unit and hard disk number to carry out hard disk, and repair accordingly.Wherein, after obtaining bad track of hard disk list by this BADBLOCKS order, by the write operation of " badblocks – wendstart ", bad track is repaired.
In the embodiment of the present invention, after the automatic prosthetic appliance of bad track of hard disk starts, the automatic prosthetic appliance of bad track of hard disk also needs to trigger LED(LightEmittingDiode, light emitting diode) beacon light know current state scan disk state for starting, know that current state scans disk state for starting to make user based on LED.
Step 102, when there is bad track in hard disk, the automatic prosthetic appliance of bad track of hard disk generates the bad track list comprising bad track, and by first storage area of bad track list storage to the automatic prosthetic appliance of bad track of hard disk.
In the embodiment of the present invention, when the automatic prosthetic appliance of bad track of hard disk is by scanning hard disk based on the BADBLOCKS order of built-in Linux operating system, can scan in hard disk whether there is bad track; When there is not bad track in hard disk, terminating bad track of hard disk and automatically repairing flow process; When there is bad track in hard disk, the automatic prosthetic appliance of bad track of hard disk generates the bad track list (for harddisk_badblock.txt) comprising bad track, and by first storage area of bad track list storage to the automatic prosthetic appliance of bad track of hard disk.
In the embodiment of the present invention, after the automatic prosthetic appliance of bad track of hard disk has scanned hard disk, when there is bad track in hard disk, the automatic prosthetic appliance of bad track of hard disk triggers LED mark current state and repairs disk state for starting, and knows that current state repairs disk state for starting to make user based on LED; When in hard disk not bad track time, it is Hard Disk Repair completion status that the automatic prosthetic appliance of bad track of hard disk triggers LED mark current state, knows that current state is for Hard Disk Repair completion status to make user based on LED.
Step 103, the automatic prosthetic appliance of bad track of hard disk is after having scanned hard disk, generate order by the first image file and mirror image is carried out to the content corresponding to the bad track in bad track list (being stored in the first storage area), and the content after mirror image is stored into the second storage area of the automatic prosthetic appliance of bad track of hard disk.
In the embodiment of the present invention, first image file generates the program and script that order is relevant bad track reparation, and be stored in the 3rd storage area of the automatic prosthetic appliance of bad track of hard disk, and this first image file generates order for the DD order based on built-in Linux operating system, for carrying out mirror image to the content corresponding to the bad track in bad track list, and the content after mirror image is stored into the second storage area of the automatic prosthetic appliance of bad track of hard disk.Based on this, content corresponding to bad track each in bad track list is carried out mirror image by the DD order based on built-in Linux operating system by bad track of hard disk automatic prosthetic appliance successively, and the content (image file) after mirror image is stored into the second storage area of the automatic prosthetic appliance of bad track of hard disk.
The effect that it should be noted that based on the DD order of built-in Linux operating system is the block copy file by specifying size, and while copy, carry out the conversion of specifying.Wherein, the process such as data backup and date restoring can be realized by this DD order.
Step 104, the automatic prosthetic appliance of bad track of hard disk, after the content mirrors corresponding to bad track completes, is automatically repaired order by the second bad track of hard disk and is carried out format process to the bad track in bad track list.
In the embodiment of the present invention, second bad track of hard disk repairs the program and script that order is the reparation of relevant bad track automatically, and be stored in the 3rd storage area of the automatic prosthetic appliance of bad track of hard disk, and the second bad track of hard disk automatically to repair order be BADBLOCKS order based on built-in Linux operating system, for carrying out format process to the bad track in bad track list.Based on this, the automatic prosthetic appliance of bad track of hard disk carries out low-level formatting by the write operation of the BADBLOCKS order based on built-in Linux operating system to bad track.
Step 105, the automatic prosthetic appliance of bad track of hard disk generates order by the second image file and the content stored in the second storage area of automatic for bad track of hard disk prosthetic appliance is reverted to bad track in bad track list.
In the embodiment of the present invention, second image file generates the program and script that order is relevant bad track reparation, and be stored in the 3rd storage area of the automatic prosthetic appliance of bad track of hard disk, and this second image file generates order for the DD order based on built-in Linux operating system, for the content stored in the second storage area of automatic for bad track of hard disk prosthetic appliance being reverted to the bad track in bad track list.Based on this, the automatic prosthetic appliance of bad track of hard disk is by reverting to the bad track in bad track list by the content stored in the second storage area of automatic for bad track of hard disk prosthetic appliance based on the DD order of built-in Linux operating system.
In the embodiment of the present invention, the automatic prosthetic appliance of bad track of hard disk generates after the content stored in the second storage area of automatic for bad track of hard disk prosthetic appliance reverts to the bad track in bad track list by order by the second image file, and the automatic prosthetic appliance of bad track of hard disk also needs the content stored in deletion second storage area.
Step 106, the reparation of bad track of hard disk automatic prosthetic appliance determination bad track of hard disk completes.
In the embodiment of the present invention, after the reparation of bad track of hard disk automatic prosthetic appliance determination bad track of hard disk completes, it is Hard Disk Repair completion status that the automatic prosthetic appliance of this bad track of hard disk also needs to trigger LED mark current state, knows that current state is for Hard Disk Repair completion status to make user based on LED.
In the embodiment of the present invention, the automatic prosthetic appliance of bad track of hard disk is after determining that bad track of hard disk reparation completes, the automatic prosthetic appliance of this bad track of hard disk can also gather the health status information of hard disk, and health status information is stored into the first storage area of the automatic prosthetic appliance of bad track of hard disk; And/or bad track of hard disk automatic prosthetic appliance determination bad track of hard disk repairs the deadline, and bad track of hard disk is repaired the first storage area that the deadline is stored into the automatic prosthetic appliance of bad track of hard disk.Wherein, the health status information of hard disk includes but not limited to one of following or combination in any: detect the bad track of hard disk, temperature, hard disk close number of times etc.
Concrete, the automatic prosthetic appliance of bad track of hard disk is after determining that bad track of hard disk reparation completes, S.M.A.R.T(Self-MonitoringAnalysisandReportingTechnology can also be started, self-monitoring, analysis and reporting techniques) hard disk detection service, to gather the health status information of hard disk, and the health status information collected is recorded in the corresponding document of the first storage area of the automatic prosthetic appliance of bad track of hard disk; In addition, the automatic prosthetic appliance of bad track of hard disk also needs in the corresponding document of the first storage area related content of bad track list being recorded to the automatic prosthetic appliance of bad track of hard disk; In addition, the automatic prosthetic appliance of bad track of hard disk can also calculate bad track of hard disk and repair the deadline, and bad track of hard disk is repaired the deadline and be recorded in the corresponding document of the first storage area of the automatic prosthetic appliance of bad track of hard disk.
It should be noted that, in the embodiment of the present invention, in order to the correlation circumstance making user know Hard Disk Repair more intuitively, the automatic prosthetic appliance of bad track of hard disk is after determining that bad track of hard disk reparation completes, also health status information (can be detected the bad track of hard disk, temperature, hard disk cuts out number of times etc.) and the bad track of hard disk reparation deadline be stored into the first storage area of the automatic prosthetic appliance of bad track of hard disk, the associated documents read in the first storage area of the automatic prosthetic appliance of bad track of hard disk are passed through to make user, directly know the bad track detecting hard disk, temperature, the information such as number of times cut out by hard disk and bad track of hard disk repairs the deadline.
In sum, in the embodiment of the present invention, by running the automatic prosthetic appliance of bad track of hard disk (for providing bad track of hard disk automatic repair function), without the need to by the bad track of hard disk fix tool under Windows system, automatically bad track detection can be carried out to hard disk, and automatically repair bad track of hard disk when bad track of hard disk being detected, bad track of hard disk repair process does not need manpower intervention, and programming automation performs.Further, under embedded Linux system, the automatic prosthetic appliance of external hard drive bad track is utilized to carry out autoscan reparation to bad track of hard disk, to provide the bad track of hard disk under embedded Linux system automatic repair function, without the need to by the bad track of hard disk fix tool under Windows system.In addition, the automatic prosthetic appliance of bad track of hard disk can also carry out bad track detection.In addition, based on the partitioned storage file of vfat form, user can be made directly to access under Windows system.
Embodiment two
Based on the inventive concept same with said method, additionally provide the automatic prosthetic appliance of a kind of bad track of hard disk in the embodiment of the present invention, as shown in Figure 2, the automatic prosthetic appliance of described bad track of hard disk specifically comprises:
First memory module 11, for after the automatic prosthetic appliance of bad track of hard disk starts, automatically repairs order by the first bad track of hard disk and scans hard disk; When there is bad track in hard disk, generate the bad track list comprising bad track, and by first storage area of described bad track list storage to the automatic prosthetic appliance of bad track of hard disk;
Second memory module 12, for after having scanned described hard disk, generate order by the first image file and mirror image is carried out to the content corresponding to the bad track in described bad track list, and the content after mirror image is stored into the second storage area of the automatic prosthetic appliance of bad track of hard disk;
First processing module 13, for after the content mirrors corresponding to bad track completes, automatically repairs order by the second bad track of hard disk and carries out format process to the bad track in described bad track list;
Second processing module 14, to revert to bad track in described bad track list for being generated order by the second image file by the content stored in the second storage area of automatic for bad track of hard disk prosthetic appliance;
Determination module 15, for after the content stored in the second storage area of automatic for bad track of hard disk prosthetic appliance is reverted to the bad track in described bad track list, determines that bad track of hard disk reparation completes;
Wherein, described first bad track of hard disk repairs order automatically, described first image file generates order, described second bad track of hard disk repairs order automatically and described second image file generates three storage area of demanded storage at the automatic prosthetic appliance of bad track of hard disk.
The automatic prosthetic appliance of this bad track of hard disk also comprises: display module 16, for after the automatic prosthetic appliance of bad track of hard disk starts, triggers LED lamp mark current state and scans disk state for starting; After the automatic prosthetic appliance of bad track of hard disk has scanned described hard disk, when there is bad track in described hard disk, triggering LED mark current state and repairing disk state for starting; When in described hard disk not bad track time, trigger LED mark current state be Hard Disk Repair completion status; After the reparation of bad track of hard disk automatic prosthetic appliance determination bad track of hard disk completes, triggering LED mark current state is Hard Disk Repair completion status.
Described first bad track of hard disk repairs order and described second bad track of hard disk automatically, and automatically to repair order be BADBLOCKS order based on built-in Linux operating system; Described first image file generates order and described second image file generates order for the DD order based on built-in Linux operating system.
In the embodiment of the present invention, described second processing module 14, also for after being generated order by the second image file and the content stored in the second storage area of automatic for described bad track of hard disk prosthetic appliance reverted to the bad track in described bad track list, delete the content stored in described second storage area.
The automatic prosthetic appliance of this bad track of hard disk also comprises:
3rd memory module 17, for after determining that bad track of hard disk reparation completes, gathers the health status information of described hard disk, and described health status information is stored into the first storage area of the automatic prosthetic appliance of bad track of hard disk; And/or, determine that bad track of hard disk repairs the deadline, and described bad track of hard disk is repaired the first storage area that the deadline is stored into the automatic prosthetic appliance of bad track of hard disk.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can be separated deployment.Above-mentioned module can merge into a module, also can split into multiple submodule further.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can carry out being distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Be only several specific embodiment of the present invention above, but the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (8)

1. a bad track of hard disk self-repairing method, is characterized in that, the method comprises:
The automatic prosthetic appliance of bad track of hard disk upon actuation, is automatically repaired order by the first bad track of hard disk and is scanned hard disk; When there is bad track in described hard disk, generate the bad track list comprising bad track, and by first storage area of described bad track list storage to the automatic prosthetic appliance of bad track of hard disk;
The automatic prosthetic appliance of described bad track of hard disk is after having scanned described hard disk, generate order by the first image file and mirror image is carried out to the content corresponding to the bad track in described bad track list, and the content after mirror image is stored into the second storage area of the automatic prosthetic appliance of bad track of hard disk;
The automatic prosthetic appliance of described bad track of hard disk, after the content mirrors corresponding to bad track completes, is automatically repaired order by the second bad track of hard disk and is carried out format process to the bad track in described bad track list;
The automatic prosthetic appliance of described bad track of hard disk generates order by the second image file and the content stored in the second storage area of automatic for described bad track of hard disk prosthetic appliance is reverted to bad track in described bad track list;
The reparation of described bad track of hard disk automatic prosthetic appliance determination bad track of hard disk completes;
Wherein, described first bad track of hard disk repairs order automatically, described first image file generates order, described second bad track of hard disk repairs order automatically and described second image file generates three storage area of demanded storage at the automatic prosthetic appliance of bad track of hard disk;
Described first bad track of hard disk repairs order and described second bad track of hard disk automatically, and automatically to repair order be BADBLOCKS order based on built-in Linux operating system; Described first image file generates order and described second image file generates order for the DD order based on built-in Linux operating system.
2. the method for claim 1, is characterized in that, described method also comprises:
After the automatic prosthetic appliance of described bad track of hard disk starts, the automatic prosthetic appliance of described bad track of hard disk triggers LED lamp mark current state and scans disk state for starting;
After the automatic prosthetic appliance of described bad track of hard disk has scanned described hard disk, when there is bad track in described hard disk, the automatic prosthetic appliance of described bad track of hard disk triggers LED mark current state and repairs disk state for starting; When in described hard disk not bad track time, it is Hard Disk Repair completion status that the automatic prosthetic appliance of described bad track of hard disk triggers LED mark current state;
After the reparation of described bad track of hard disk automatic prosthetic appliance determination bad track of hard disk completes, it is Hard Disk Repair completion status that the automatic prosthetic appliance of described bad track of hard disk triggers LED mark current state.
3. the method for claim 1, it is characterized in that, the automatic prosthetic appliance of described bad track of hard disk generates after the content stored in the second storage area of automatic for described bad track of hard disk prosthetic appliance reverts to the bad track in described bad track list by order by the second image file, and described method also comprises:
The automatic prosthetic appliance of described bad track of hard disk deletes the content stored in described second storage area.
4. the method for claim 1, is characterized in that, after the reparation of described bad track of hard disk automatic prosthetic appliance determination bad track of hard disk completes, described method also comprises:
The automatic prosthetic appliance of described bad track of hard disk gathers the health status information of described hard disk, and described health status information is stored into the first storage area of the automatic prosthetic appliance of described bad track of hard disk; And/or,
Described bad track of hard disk automatic prosthetic appliance determination bad track of hard disk repairs the deadline, and described bad track of hard disk is repaired the first storage area that the deadline is stored into the automatic prosthetic appliance of described bad track of hard disk.
5. the automatic prosthetic appliance of bad track of hard disk, it is characterized in that, first bad track of hard disk repairs order and the second bad track of hard disk automatically, and automatically to repair order be BADBLOCKS order based on built-in Linux operating system, first image file generates order and the second image file generates order for the DD order based on built-in Linux operating system, and this equipment specifically comprises:
First memory module, for after the automatic prosthetic appliance of bad track of hard disk starts, automatically repairs order by the first bad track of hard disk and scans hard disk; When there is bad track in hard disk, generate the bad track list comprising bad track, and by first storage area of described bad track list storage to the automatic prosthetic appliance of bad track of hard disk;
Second memory module, for after having scanned described hard disk, generate order by the first image file and mirror image is carried out to the content corresponding to the bad track in described bad track list, and the content after mirror image is stored into the second storage area of the automatic prosthetic appliance of bad track of hard disk;
First processing module, for after the content mirrors corresponding to bad track completes, automatically repairs order by the second bad track of hard disk and carries out format process to the bad track in described bad track list;
Second processing module, to revert to bad track in described bad track list for being generated order by the second image file by the content stored in the second storage area of automatic for bad track of hard disk prosthetic appliance;
Determination module, for after the content stored in the second storage area of automatic for bad track of hard disk prosthetic appliance is reverted to the bad track in described bad track list, determines that bad track of hard disk reparation completes;
Wherein, described first bad track of hard disk repairs order automatically, described first image file generates order, described second bad track of hard disk repairs order automatically and described second image file generates three storage area of demanded storage at the automatic prosthetic appliance of bad track of hard disk.
6. the automatic prosthetic appliance of bad track of hard disk as claimed in claim 5, is characterized in that, also comprise:
Display module, for after the automatic prosthetic appliance of bad track of hard disk starts, triggers LED lamp mark current state and scans disk state for starting; After the automatic prosthetic appliance of bad track of hard disk has scanned described hard disk, when there is bad track in described hard disk, triggering LED mark current state and repairing disk state for starting; When in described hard disk not bad track time, trigger LED mark current state be Hard Disk Repair completion status; After the reparation of bad track of hard disk automatic prosthetic appliance determination bad track of hard disk completes, triggering LED mark current state is Hard Disk Repair completion status.
7. the automatic prosthetic appliance of bad track of hard disk as claimed in claim 5, is characterized in that,
Described second processing module, also for after being generated order by the second image file and the content stored in the second storage area of automatic for described bad track of hard disk prosthetic appliance reverted to the bad track in described bad track list, delete the content stored in described second storage area.
8. the automatic prosthetic appliance of bad track of hard disk as claimed in claim 5, is characterized in that, also comprise:
3rd memory module, for after determining that bad track of hard disk reparation completes, gathers the health status information of described hard disk, and described health status information is stored into the first storage area of the automatic prosthetic appliance of bad track of hard disk; And/or, determine that bad track of hard disk repairs the deadline, and described bad track of hard disk is repaired the first storage area that the deadline is stored into the automatic prosthetic appliance of bad track of hard disk.
CN201310314880.5A 2013-07-24 2013-07-24 A kind of bad track of hard disk self-repairing method and equipment Active CN103400602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310314880.5A CN103400602B (en) 2013-07-24 2013-07-24 A kind of bad track of hard disk self-repairing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310314880.5A CN103400602B (en) 2013-07-24 2013-07-24 A kind of bad track of hard disk self-repairing method and equipment

Publications (2)

Publication Number Publication Date
CN103400602A CN103400602A (en) 2013-11-20
CN103400602B true CN103400602B (en) 2016-04-06

Family

ID=49564206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310314880.5A Active CN103400602B (en) 2013-07-24 2013-07-24 A kind of bad track of hard disk self-repairing method and equipment

Country Status (1)

Country Link
CN (1) CN103400602B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484251B (en) * 2014-12-11 2018-10-02 华为技术有限公司 A kind of processing method and processing device of hard disk failure
CN105808161A (en) * 2016-02-26 2016-07-27 四川效率源信息安全技术股份有限公司 Reading method of bad sector data of hard disk
CN108509294A (en) * 2018-03-27 2018-09-07 苏州风中智能科技有限公司 A kind of modification method for correcting of software
CN111045871A (en) * 2018-10-15 2020-04-21 深信服科技股份有限公司 Hard disk bad track detection method and system
CN113556404A (en) * 2021-08-03 2021-10-26 广东九博科技股份有限公司 Communication method and system between single disks in equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722429A (en) * 2011-12-31 2012-10-10 江门市未来之星网络科技有限公司 Processing system of hard disk maintenance equipment
CN103019885A (en) * 2012-11-26 2013-04-03 大唐移动通信设备有限公司 Method and system for monitoring embedded Linux-based hard disc bad track

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8176250B2 (en) * 2003-08-29 2012-05-08 Hewlett-Packard Development Company, L.P. System and method for testing a memory
US8462554B2 (en) * 2011-03-03 2013-06-11 Winbond Electronics Corp. Over-erase verification and repair methods for flash memory

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722429A (en) * 2011-12-31 2012-10-10 江门市未来之星网络科技有限公司 Processing system of hard disk maintenance equipment
CN103019885A (en) * 2012-11-26 2013-04-03 大唐移动通信设备有限公司 Method and system for monitoring embedded Linux-based hard disc bad track

Also Published As

Publication number Publication date
CN103400602A (en) 2013-11-20

Similar Documents

Publication Publication Date Title
CN103400602B (en) A kind of bad track of hard disk self-repairing method and equipment
CN104932965B (en) Object method for real-time monitoring and device
CN101593249A (en) A kind of apocrypha analytical approach and system
EP3767509B1 (en) System and method of inspecting archive slices for malware
CN105468482B (en) Hard disk position identification and fault diagnosis method and server equipment thereof
EP2667305B1 (en) Information processing apparatus, and control method
US8799595B1 (en) Eliminating duplicate data in storage systems with boot consolidation
CN106598796A (en) Method for testing hardware information stability in reboot
CN105022678A (en) Data backup method and apparatus for virtual machine
CH717425B1 (en) System and method for selectively restoring a computer system to an operational state.
CN104077083A (en) New added storage method, device and system
US10275396B1 (en) Techniques for data classification based on sensitive data
CN104951400A (en) Method and device for testing product
CN103092718A (en) Test data backup system and method
CN110781026A (en) Embedded equipment data storage and repair method and device and embedded equipment
CH716656A2 (en) System and method of generating and archiving metadata specific to computer forensics.
TW201335779A (en) File synchronization system and method
US20070143591A1 (en) Method for non-destructive restoration of a corrupted operating system
CN105608150A (en) Business data processing method and system
RU2697961C1 (en) System and method of assessing deterioration of data storage device and ensuring preservation of critical data
JP6528381B2 (en) Log management device, log management program, and log management method
US9946853B1 (en) Techniques for application code obfuscation
US10366076B1 (en) Systems and methods for repairing corrupted data segments in deduplicated data systems
CN101963931A (en) Hard disk testing method under extensible firmware interface
CN109508268B (en) ISE hard disk testing device and ISE hard disk sector quick erasing function testing method

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