Disk bad track scanning method, system and device and computer storage device

A scanning method and disk technology, which is applied to the alignment of magnetic tracks on the disk, detection of faulty computer hardware, computing, etc., can solve the problems that the results of disk scanning and the speed of full disk scanning cannot be guaranteed at the same time

CN110209519APending Publication Date: 2019-09-06SANGFOR TECH INC
3 Cites 1 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2019-09-06

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a disk bad track scanning method which comprises the following steps: firstly, scanning a block of a first layer in a disk, entering a second layer when the block of the firstlayer is a first fault block, scanning a target block with finer granularity corresponding to the first fault block, determining a second fault block in the target block, and otherwise, continuing toscan the block of the first layer. Therefore, according to the scheme, coarse-grained scanning is firstly carried out on the disk, that is, blocks of the first layer are scanned, if the blocks of thefirst layer break down, fine-grained scanning is carried out on the blocks of the first layer, that is, the second layer is skipped into, the target blocks corresponding to the broken blocks of the first layer are determined in the second layer, and the target blocks are scanned to determine the broken blocks in the target blocks. Coarse-grained scanning can save the scanning time of faultless blocks, and fine-grained scanning can increase the accuracy of faulty blocks, so that the full-disk scanning rate is increased, and the accuracy of a scanning result is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to disk detection technology, more specifically, to a disk bad track scanning method, system, device and computer-readable storage medium. Background technique

[0002] Various problems may occur when the disk is used for a long time, and bad sectors of the disk are the most common problems. After the disk has bad sectors, it will increase the risk that the business system cannot run well. Therefore, a mechanism for scanning and detecting disk bad sectors is required in the business system.

[0003] At present, in order not to affect the normal use of the business system, the disk bad sectors are usually detected offline. Scan the disk when the business system is shut down or the disk is separated from the business system. Scanning usually scans the disk from the beginning to the end according to a certain scan block size, and the scan block is the granularity of the scan. When the scanning block is small, it is fine-grained sc...

Examples

Embodiment Construction

[0059] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0060] The embodiment of the invention discloses a disk bad track scanning method, system, device and computer-readable storage medium to solve the problem in the prior art that the disk scanning result and the full disk scanning speed cannot be guaranteed at the same time.

[0061] see figure 1 , a method for scanning disk bad sectors provided by an embodiment of the present invention, specifically comprising:

[0062] S101. Scan the blocks of the first layer in ...