CN103400602A - Automatic hard disk bad track repairing method and equipment - Google Patents

Automatic hard disk bad track repairing method and equipment Download PDF

Info

Publication number
CN103400602A
CN103400602A CN2013103148805A CN201310314880A CN103400602A CN 103400602 A CN103400602 A CN 103400602A CN 2013103148805 A CN2013103148805 A CN 2013103148805A CN 201310314880 A CN201310314880 A CN 201310314880A CN 103400602 A CN103400602 A CN 103400602A
Authority
CN
China
Prior art keywords
hard disk
bad track
prosthetic appliance
automatic prosthetic
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.)
Granted
Application number
CN2013103148805A
Other languages
Chinese (zh)
Other versions
CN103400602B (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

Images

Abstract

The invention discloses an automatic hard disk bad track repairing method and equipment. The method comprises the following steps of: scanning a hard disk through an automatic first hard disk bad track repairing command when the automatic hard disk bad track repairing equipment is started; when a hard disk has a bad track, generating a bad track list containing the bad track, and storing the bad track list into a first storage region; carrying out mirror imaging on the content corresponding to the bad track in the bad track list through a first mirror image document generating command, and storing the content after the mirror imaging to a second storage region; carrying out formatting treatment on the bad track in the bad track list through an automatic second hard disk bad track repairing command; restoring the storing content in the second storage region into the bad track of the bad track list through a second mirror image document generating command, and determining the finish of repairing of the hard disk bad track by the automatic hard disk bad track repairing equipment. According to the method and the device, the hard disk is automatically subjected to bad track detection, when being detected, the hard disk bad track is automatically repaired, and the hard disk bad track repairing process does not need human interference.

Description

A kind of bad track of hard disk self-repairing method and equipment
Technical field
The present invention relates to communication technical field, relate in particular to a kind of bad track of hard disk self-repairing method and equipment.Background technology
The reason that hard disk produces bad track comprises: dust, vibrations, static, high temperature, illegal shutdown (being abnormal power-down), internal memory very little so that application software to the frequent access of hard disk etc.Hard disk, after bad track occurring, can cause the sector of some bad hard disk unavailable, and can have influence on other available hard disk 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 bad track of hard disk is repaired for this reason.Under the Windows system, the DiskGenius(fdisk is repaired) be that a fdisk and data are recovered software, the inspection and repair function that it supports bad track of hard disk, minimize the corrupted data that reduces in repairing the bad track process.In addition, under the Windows system, HDD Regenerator(hard disk regenerator) be a instrument that can repair bad track of hard disk, it can be by the corrupted information reparation that not can read, and existing information is unaffected.
In realizing process of the present invention, the inventor finds in prior art to exist at least following problem:
While repairing bad track of hard disk, hard disk need to be removed from veneer, and by the PC(Personal Computer of Windows, personal computer are installed) hard disk is carried out to the bad track reparation, it faces the dismounting hard disk and builds the complex process such as environment.In addition, the reparation software under Windows is not mostly supported Linux ext2/3/4 file system type, therefore in the bad track repair process, needs the monoblock hard disk is formatd to reparation.
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 hard disk is carried out to the bad track detection, 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, after startup, is automatically repaired order by the first bad track of hard disk hard disk is scanned; When in described hard disk, having bad track, generate the bad track list that comprises 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 completing described hard disk scanning, by first mirror, as the file generated order, the corresponding content of bad track in described bad track list is carried out to mirror image, and the content after mirror image is stored into to 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 corresponding content mirror image of bad track completes, is automatically repaired order by the second bad track of hard disk the bad track in described bad track list is formatd to processing;
The automatic prosthetic appliance of described bad track of hard disk generates order by the second image file the content of storing in the second storage area of the automatic prosthetic appliance of described bad track of hard disk is reverted to the bad track in described bad track list;
The automatic prosthetic appliance of described bad track of hard disk determines that the bad track of hard disk reparation completes;
Wherein, described the first bad track of hard disk is repaired order automatically, described first mirror automatically repairs order as file generated order, described the second bad track of hard disk and described the 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:
The first memory module, after at the automatic prosthetic appliance of bad track of hard disk, starting, automatically repair order by the first bad track of hard disk hard disk scanned; When in hard disk, having bad track, generate the bad track list that comprises 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 second memory module, for after described hard disk scanning is completed, by first mirror, as the file generated order, the corresponding content of bad track in described bad track list is carried out to mirror image, and the content after mirror image is stored into to the second storage area of the automatic prosthetic appliance of bad track of hard disk;
The first processing module, after at the corresponding content mirror image of bad track, completing, automatically repair order by the second bad track of hard disk the bad track in described bad track list formatd to processing;
The second processing module, for generating and order the content that the second storage area of the automatic prosthetic appliance of bad track of hard disk is stored to revert to the bad track in described bad track list by the second image file;
Determination module, after the content of storing for the second storage area by the automatic prosthetic appliance of bad track of hard disk reverts to the bad track in described bad track list, determine that the bad track of hard disk reparation completes;
Wherein, described the first bad track of hard disk is repaired order automatically, described first mirror automatically repairs order as file generated order, described the second bad track of hard disk and described the 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 has the following advantages at least: in the embodiment of the present invention, by the operation automatic prosthetic appliance of bad track of hard disk (be used to providing bad track of hard disk automatic repair function), without the bad track of hard disk fix tool by under the Windows system, can automatically to hard disk, carry out the bad track detection, and when bad track of hard disk being detected, automatically repair bad track of hard disk, the bad track of hard disk repair process does not need manpower intervention.
The accompanying drawing explanation
In order to be illustrated more clearly in technical scheme of the present invention, in below describing embodiment, the accompanying drawing of required use is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
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, the technical scheme in the present invention is clearly and completely described, obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment that obtains, belong to the scope of protection of the invention.
Embodiment mono-
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, by the automatic prosthetic appliance of bad track of hard disk, bad track of hard disk is repaired automatically.Wherein, the automatic prosthetic appliance of this bad track of hard disk can be CD (bad track is repaired CD automatically) or USB(Universal Serial BUS, USB (universal serial bus)) equipment (use the USB device of mini for part, also need to use patchcord conversion).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 divided into three storage areas at least, and these three storage areas are respectively 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 3rd storage area of the automatic prosthetic appliance of bad track of hard disk.Wherein:
The first storage area of the automatic prosthetic appliance of bad track of hard disk is for repairing the result store district, (its content is the bad track list to this first storage area for storage hard disk bad track statistics file, in subsequent process, set forth the storing process of bad track list), after the bad track reparation hard disk health status file (its content is the health status information of hard disk, the storing process of elaboration health status information in subsequent process), hard disk file repair time (its content is that bad track of hard disk is repaired the deadline, sets forth the storing process that bad track of hard disk is repaired the 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(Virtual File Allocation Table, Virtual File Allocation Table), for the user, under the Windows system, hard disk health status file, hard disk file repair time after the bad track of hard disk statistics file in the first storage area of the automatic prosthetic appliance of bad track of hard disk, bad track reparation are taken out.
The second storage area of the automatic prosthetic appliance of bad track of hard disk is the image file memory block, this second storage area is for storing the corresponding content of bad track repair process bad track, be about to data generation image file on bad track and be stored in the second storage area temporarily, concrete storing process is set forth in subsequent process.The zoned format of this second storage area can adopt ext3(Third extended file system, Journal File System).
The 3rd storage area of the automatic prosthetic appliance of bad track of hard disk is (SuSE) Linux OS and the automatic repair procedure of bad track memory block, program and script (relative program and script are for carrying out the automatic reparation of bad track) that the 3rd storage area is repaired for storing (SuSE) Linux OS and relevant bad track, specifically store content and 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 started, the automatic prosthetic appliance of this bad track of hard disk was automatically repaired order by the first bad track of hard disk hard disk is scanned.
Wherein, the equipment at the hard disk place of scanning for needs (as PC etc.), need by BIOS(Basic Input Output System Basic Input or Output System (BIOS)) to be that the automatic prosthetic appliance of bad track of hard disk (as USB device) is preferential start the equipment of setting.Based on this,, after startup, there is not the automatic prosthetic appliance of bad track of hard disk in equipment if detect, and carries out the normal flow process (namely starting from local kernel and root file system) that starts, and in this process embodiment of the present invention, repeats no more., after startup, there is the automatic prosthetic appliance of bad track of hard disk in equipment if detect, and from the automatic prosthetic appliance of bad track of hard disk, starts, and performs step 101.
In the embodiment of the present invention, the first bad track of hard disk is repaired program and the script that order is repaired for 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 is repaired order automatically for the BADBLOCKS order based on built-in Linux operating system, for hard disk is scanned.Based on this, the automatic prosthetic appliance of bad track of hard disk scans 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 the block of BADBLOCKS order for checking that hard disk damages based on built-in Linux operating system, and by specifying hard disk unit and hard disk number to carry out the bad track inspection of hard disk, and repair accordingly.Wherein, after by this BADBLOCKS order, obtaining the bad track of hard disk list, by the write operation of " badblocks – w end start ", 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(Light Emitting Diode, light emitting diode) beacon light is known current state for starting to scan disk state, so that the user knows that based on the LED lamp current state is for starting to scan disk state.
Step 102, when in hard disk, having bad track, the automatic prosthetic appliance of bad track of hard disk generates the bad track list that comprises 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 scans hard disk by the BADBLOCKS order based on built-in Linux operating system, can scan in hard disk and whether have bad track; When in hard disk, not having bad track, finish bad track of hard disk and automatically repair flow process; When in hard disk, having bad track, the automatic prosthetic appliance of bad track of hard disk generates the bad track list (for harddisk_badblock.txt) that comprises 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 scanning completes to hard disk at the automatic prosthetic appliance of bad track of hard disk, when in hard disk, having bad track, the automatic prosthetic appliance of bad track of hard disk triggers the LED beacon light and knows current state for starting to repair disk state, so that the user knows that based on the LED lamp current state is for starting to repair disk state; When in hard disk not during bad track, the automatic prosthetic appliance of bad track of hard disk triggers the LED beacon light, and to know current state be the hard disk Recovery completion state, so that the user knows that based on the LED lamp current state is the hard disk Recovery completion state.
Step 103, the automatic prosthetic appliance of bad track of hard disk is after scanning completes to hard disk, by first mirror, as the file generated order, the corresponding content of bad track in bad track list (being stored in the first storage area) is carried out to mirror image, and the content after mirror image is stored into to the second storage area of the automatic prosthetic appliance of bad track of hard disk.
In the embodiment of the present invention, program and script that first mirror is repaired for relevant bad track as the file generated order, and be stored in the 3rd storage area of the automatic prosthetic appliance of bad track of hard disk, and this first mirror is the DD order based on built-in Linux operating system as the file generated order, for the corresponding content of the bad track of bad track list is carried out to mirror image, and the content after mirror image is stored into to the second storage area of the automatic prosthetic appliance of bad track of hard disk.Based on this, the automatic prosthetic appliance of bad track of hard disk carries out mirror image by the DD order based on built-in Linux operating system successively by the corresponding content of each bad track in the bad track list, and the content after mirror image (image file) is stored into to the second storage area of the automatic prosthetic appliance of bad track of hard disk.
It should be noted that the effect based on the DD order of built-in Linux operating system is by specifying file of block copy of size, and in copy, carry out the conversion of appointment.Wherein, by this DD order, can realize the processes such as data backup and data recovery.
Step 104, the automatic prosthetic appliance of bad track of hard disk, after the corresponding content mirror image of bad track completes, is automatically repaired order by the second bad track of hard disk the bad track in the bad track list is formatd to processing.
In the embodiment of the present invention, the second bad track of hard disk is repaired program and the script that order is repaired for 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 is repaired order automatically for the BADBLOCKS order based on built-in Linux operating system, for the bad track to the bad track list, formats processing.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 the content of storing in the second storage area of the automatic prosthetic appliance of bad track of hard disk is reverted to the bad track in the bad track list.
In the embodiment of the present invention, the second image file generates program and the script that order is repaired for relevant bad track, 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 and is the DD order based on built-in Linux operating system, and the content of storing for the second storage area by the automatic prosthetic appliance of bad track of hard disk reverts to the bad track in the bad track list.Based on this, the automatic prosthetic appliance of bad track of hard disk reverts to the bad track in the bad track list by the DD order based on built-in Linux operating system by the content of storing in the second storage area of 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 reverted to the bad track in the bad track list by the second image file generation order by the content of storing in the second storage area of the automatic prosthetic appliance of bad track of hard disk, the automatic prosthetic appliance of bad track of hard disk also needed to delete the content of storing in the second storage area.
Step 106, the automatic prosthetic appliance of bad track of hard disk determines that the bad track of hard disk reparation completes.
In the embodiment of the present invention, after the automatic prosthetic appliance of bad track of hard disk determines that the bad track of hard disk reparation completes, it is the hard disk Recovery completion state that the automatic prosthetic appliance of this bad track of hard disk also needs to trigger LED beacon light knowledge current state, so that the user knows that based on the LED lamp current state is the hard disk Recovery completion state.
In the embodiment of the present invention, the automatic prosthetic appliance of bad track of hard disk is after definite 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 to the first storage area of the automatic prosthetic appliance of bad track of hard disk; And/or the automatic prosthetic appliance of bad track of hard disk determines that bad track of hard disk repairs the deadline, and bad track of hard disk is repaired to the first storage area that the deadline stores the automatic prosthetic appliance of bad track of hard disk into.Wherein, the health status information of hard disk includes but not limited to one of following or combination in any: the bad track, temperature, the hard disk that detect hard disk are closed number of times etc.
Concrete, the automatic prosthetic appliance of bad track of hard disk is after definite bad track of hard disk reparation completes, can also start S.M.A.R.T(Self-Monitoring Analysis and Reporting Technology, self-monitoring, analysis and reporting techniques) hard disk detection service, to gather the health status information of hard disk, and the health status information that will collect 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 the related content of bad track list 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 can also calculate bad track of hard disk and repair the deadline, and bad track of hard disk is repaired in the corresponding document of the first storage area that the deadline is recorded to 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 make the user, know more intuitively the correlation circumstance that hard disk is repaired, the automatic prosthetic appliance of bad track of hard disk is after definite bad track of hard disk reparation completes, also health status information (can be detected to the bad track of hard disk, temperature, hard disk cuts out number of times etc.) and bad track of hard disk repair the first storage area that the deadline stores the automatic prosthetic appliance of bad track of hard disk into, so that the user is by the associated documents in the first storage area that reads the automatic prosthetic appliance of bad track of hard disk, directly know the bad track that detects hard disk, temperature, hard disk cuts out information and the bad track of hard disk reparation deadlines such as number of times.
In sum, in the embodiment of the present invention, by the operation automatic prosthetic appliance of bad track of hard disk (be used to providing bad track of hard disk automatic repair function), without the bad track of hard disk fix tool by under the Windows system, can automatically to hard disk, carry out the bad track detection, and when bad track of hard disk being detected, automatically repair bad track of hard disk, and the bad track of hard disk repair process does not need manpower intervention, and programming automation is carried out.Further, under embedded Linux system, utilize the automatic prosthetic appliance of external hard drive bad track to carry out the 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 bad track of hard disk fix tool by under the Windows system.In addition, the automatic prosthetic appliance of bad track of hard disk can also carry out the bad track detection.In addition, based on the partitioned storage file of vfat form, can make user's directly access under the Windows system.
Embodiment bis-
Based on the inventive concept same with said method, in the embodiment of the present invention, also provide a kind of bad track of hard disk automatic prosthetic appliance, as shown in Figure 2, the automatic prosthetic appliance of described bad track of hard disk specifically comprises:
The first memory module 11, after at the automatic prosthetic appliance of bad track of hard disk, starting, automatically repair order by the first bad track of hard disk hard disk scanned; When in hard disk, having bad track, generate the bad track list that comprises 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 second memory module 12, for after described hard disk scanning is completed, by first mirror, as the file generated order, the corresponding content of bad track in described bad track list is carried out to mirror image, and the content after mirror image is stored into to the second storage area of the automatic prosthetic appliance of bad track of hard disk;
The first processing module 13, after at the corresponding content mirror image of bad track, completing, automatically repair order by the second bad track of hard disk the bad track in described bad track list formatd to processing;
The second processing module 14, for generating and order the content that the second storage area of the automatic prosthetic appliance of bad track of hard disk is stored to revert to the bad track in described bad track list by the second image file;
Determination module 15, after the content of storing for the second storage area by the automatic prosthetic appliance of bad track of hard disk reverts to the bad track in described bad track list, determine that the bad track of hard disk reparation completes;
Wherein, described the first bad track of hard disk is repaired order automatically, described first mirror automatically repairs order as file generated order, described the second bad track of hard disk and described the 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, after at the automatic prosthetic appliance of bad track of hard disk, starting, trigger LED lamp sign current state for starting to scan disk state; After the automatic prosthetic appliance of bad track of hard disk completes described hard disk scanning, when in described hard disk, having bad track, trigger the LED beacon light and know current state for starting to repair disk state; When in described hard disk not during bad track, triggering the LED beacon light, to know current state be the hard disk Recovery completion state; After the automatic prosthetic appliance of bad track of hard disk determined that the bad track of hard disk reparation completes, triggering LED beacon light knowledge current state was the hard disk Recovery completion state.
Described the first bad track of hard disk is automatically repaired order and described the second bad track of hard disk and is automatically repaired order and be the BADBLOCKS order based on built-in Linux operating system; Described first mirror generates the DD order of ordering as based on built-in Linux operating system as file generated order and described the second image file.
In the embodiment of the present invention, described the second processing module 14, after bad track in also reverting to described bad track list for the content by the second image file generation order, the second storage area of the automatic prosthetic appliance of described bad track of hard disk being stored, delete the content of storing in described the second storage area.
The automatic prosthetic appliance of this bad track of hard disk also comprises:
The 3rd memory module 17, for after definite bad track of hard disk reparation completes, gather the health status information of described hard disk, and described health status information is stored into to the first storage area of the automatic prosthetic appliance of bad track of hard disk; And/or, determine the bad track of hard disk reparation deadline, and stored into to the first storage area of the automatic prosthetic appliance of bad track of hard disk the described bad track of hard disk reparation deadline.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) the described method of execution 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 be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Above disclosed be only several specific embodiment of the present invention, still, 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 (10)

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, after startup, is automatically repaired order by the first bad track of hard disk hard disk is scanned; When in described hard disk, having bad track, generate the bad track list that comprises 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 completing described hard disk scanning, by first mirror, as the file generated order, the corresponding content of bad track in described bad track list is carried out to mirror image, and the content after mirror image is stored into to 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 corresponding content mirror image of bad track completes, is automatically repaired order by the second bad track of hard disk the bad track in described bad track list is formatd to processing;
The automatic prosthetic appliance of described bad track of hard disk generates order by the second image file the content of storing in the second storage area of the automatic prosthetic appliance of described bad track of hard disk is reverted to the bad track in described bad track list;
The automatic prosthetic appliance of described bad track of hard disk determines that the bad track of hard disk reparation completes;
Wherein, described the first bad track of hard disk is repaired order automatically, described first mirror automatically repairs order as file generated order, described the second bad track of hard disk and described the second image file generates three storage area of demanded storage at the automatic prosthetic appliance of bad track of hard disk.
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 started, the automatic prosthetic appliance of described bad track of hard disk triggered LED lamp sign current state for starting to scan disk state;
After the automatic prosthetic appliance of described bad track of hard disk completed described hard disk scanning, when in described hard disk, having bad track, the automatic prosthetic appliance of described bad track of hard disk triggered the LED beacon light and knows current state for starting to repair disk state; When in described hard disk not during bad track, the automatic prosthetic appliance of described bad track of hard disk triggers the LED beacon light, and to know current state be the hard disk Recovery completion state;
After the automatic prosthetic appliance of described bad track of hard disk determined that the bad track of hard disk reparation completes, it was the hard disk Recovery completion state that the automatic prosthetic appliance of described bad track of hard disk triggers LED beacon light knowledge current state.
3. the method for claim 1, is characterized in that,
Described the first bad track of hard disk is automatically repaired order and described the second bad track of hard disk and is automatically repaired order and be the BADBLOCKS order based on built-in Linux operating system; Described first mirror generates the DD order of ordering as based on built-in Linux operating system as file generated order and described the second image file.
4. the method for claim 1, it is characterized in that, after the automatic prosthetic appliance of described bad track of hard disk reverted to the bad track in described bad track list by the second image file generation order by the content of storing in the second storage area of the automatic prosthetic appliance of described bad track of hard disk, described method also comprised:
The content of storing in described the second storage area of the automatic prosthetic appliance deletion of described bad track of hard disk.
5. the method for claim 1, is characterized in that, after the automatic prosthetic appliance of described bad track of hard disk determined that the bad track of hard disk reparation completes, described method also comprised:
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 to the first storage area of the automatic prosthetic appliance of described bad track of hard disk; And/or,
The automatic prosthetic appliance of described bad track of hard disk is determined the bad track of hard disk reparation deadline, and is stored into to the first storage area of the automatic prosthetic appliance of described bad track of hard disk the described bad track of hard disk reparation deadline.
6. the automatic prosthetic appliance of bad track of hard disk, is characterized in that, this equipment specifically comprises:
The first memory module, after at the automatic prosthetic appliance of bad track of hard disk, starting, automatically repair order by the first bad track of hard disk hard disk scanned; When in hard disk, having bad track, generate the bad track list that comprises 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 second memory module, for after described hard disk scanning is completed, by first mirror, as the file generated order, the corresponding content of bad track in described bad track list is carried out to mirror image, and the content after mirror image is stored into to the second storage area of the automatic prosthetic appliance of bad track of hard disk;
The first processing module, after at the corresponding content mirror image of bad track, completing, automatically repair order by the second bad track of hard disk the bad track in described bad track list formatd to processing;
The second processing module, for generating and order the content that the second storage area of the automatic prosthetic appliance of bad track of hard disk is stored to revert to the bad track in described bad track list by the second image file;
Determination module, after the content of storing for the second storage area by the automatic prosthetic appliance of bad track of hard disk reverts to the bad track in described bad track list, determine that the bad track of hard disk reparation completes;
Wherein, described the first bad track of hard disk is repaired order automatically, described first mirror automatically repairs order as file generated order, described the second bad track of hard disk and described the second image file generates three storage area of demanded storage at the automatic prosthetic appliance of bad track of hard disk.
7. the automatic prosthetic appliance of bad track of hard disk as claimed in claim 6, is characterized in that, also comprises:
Display module, after at the automatic prosthetic appliance of bad track of hard disk, starting, trigger LED lamp sign current state for starting to scan disk state; After the automatic prosthetic appliance of bad track of hard disk completes described hard disk scanning, when in described hard disk, having bad track, trigger the LED beacon light and know current state for starting to repair disk state; When in described hard disk not during bad track, triggering the LED beacon light, to know current state be the hard disk Recovery completion state; After the automatic prosthetic appliance of bad track of hard disk determined that the bad track of hard disk reparation completes, triggering LED beacon light knowledge current state was the hard disk Recovery completion state.
8. the automatic prosthetic appliance of bad track of hard disk as claimed in claim 6, is characterized in that,
Described the first bad track of hard disk is automatically repaired order and described the second bad track of hard disk and is automatically repaired order and be the BADBLOCKS order based on built-in Linux operating system; Described first mirror generates the DD order of ordering as based on built-in Linux operating system as file generated order and described the second image file.
9. the automatic prosthetic appliance of bad track of hard disk as claimed in claim 6, is characterized in that,
Described the second processing module, after bad track in also reverting to described bad track list for the content by the second image file generation order, the second storage area of the automatic prosthetic appliance of described bad track of hard disk being stored, delete the content of storing in described the second storage area.
10. the automatic prosthetic appliance of bad track of hard disk as claimed in claim 6, is characterized in that, also comprises:
The 3rd memory module, for after definite bad track of hard disk reparation completes, gather the health status information of described hard disk, and described health status information is stored into to the first storage area of the automatic prosthetic appliance of bad track of hard disk; And/or, determine the bad track of hard disk reparation deadline, and stored into to the first storage area of the automatic prosthetic appliance of bad track of hard disk the described bad track of hard disk reparation deadline.
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 true CN103400602A (en) 2013-11-20
CN103400602B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484251A (en) * 2014-12-11 2015-04-01 华为技术有限公司 Method and device for processing faults of hard disk
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050276A1 (en) * 2003-08-29 2005-03-03 Shidla Dale J. System and method for testing a memory
US20120224432A1 (en) * 2011-03-03 2012-09-06 Chung-Meng Huang Over-erase verification and repair methods for flash memory
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050276A1 (en) * 2003-08-29 2005-03-03 Shidla Dale J. System and method for testing a memory
US20120224432A1 (en) * 2011-03-03 2012-09-06 Chung-Meng Huang Over-erase verification and repair methods for flash memory
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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484251A (en) * 2014-12-11 2015-04-01 华为技术有限公司 Method and device for processing faults of hard disk
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

Also Published As

Publication number Publication date
CN103400602B (en) 2016-04-06

Similar Documents

Publication Publication Date Title
CN103400602B (en) A kind of bad track of hard disk self-repairing method and equipment
CN106951345B (en) Consistency test method and device for disk data of virtual machine
CN104932965B (en) Object method for real-time monitoring and device
CN105468482B (en) Hard disk position identification and fault diagnosis method and server equipment thereof
CN101593249A (en) A kind of apocrypha analytical approach and system
CH716436A2 (en) System and method of checking archive parts for malware.
CN106598796A (en) Method for testing hardware information stability in reboot
CN102541704B (en) Testing method for RAID (redundant array of independent disk) cards
CN103364650A (en) Testing system and testing method
CN106919477B (en) Virtual disk analysis method and system
CH717425B1 (en) System and method for selectively restoring a computer system to an operational state.
CN111596930A (en) Root file system mirror image manufacturing method and device, storage medium and embedded device
US20070143591A1 (en) Method for non-destructive restoration of a corrupted operating system
TW201335779A (en) File synchronization system and method
CN103092718A (en) Test data backup system and method
US10768852B2 (en) Batch automatic test method for solid state disks and batch automatic test device for solid state disks
US6438714B1 (en) Method and apparatus for testing large arrays of storage devices
CN110321067B (en) System and method for estimating and managing storage device degradation
CN112860325A (en) Automatic and rapid hardware drive preassembling method and system in diskless environment
CN101963931A (en) Hard disk testing method under extensible firmware interface
CN101714113B (en) Testing method of virtual magnetic disc equipment
CN113656049A (en) Operating system deployment method and device, electronic equipment and storage medium
US9946853B1 (en) Techniques for application code obfuscation
CN105630523A (en) Computer BIOS data recovery system and method
CN101739413A (en) File copying method and file copying device

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