Get the App
SLTechnology News&Howtos  ›  Servers  › 

Application method of Badblocks instruction under Linux

Shulou Source: shulou.com Published: 2022-06-01 16:55:39 10月04日 Update

This article mainly explains "the application method of Badblocks instruction under Linux". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the idea of Xiaobian and go deep into it slowly to study and learn "the application method of Badblocks instruction under Linux" together.

9.1 badblocks command: check disk for bad sectors

Syntax: badblocks[required parameters][optional parameters][disks][disk blocks][boot blocks]

Badblocks command is used to check the disk, specify the disk device and disk block number to check the bad track of the disk, and carry out the corresponding repair. Badblocks are part of the e2fsprogs package.

Parameter Description: The specific description of the necessary parameters is as follows:

the parameters

functions

-s

Show inspection progress

-v

Display detailed processing information at runtime

-w

Do write detection

Selectivity parameters are specified as follows:

the parameters

functions

-b

Number of bytes for a specified chunk

-o

Write the test results to the specified file

[Disk]

Specify disk to detect

[Number of disks]

Number of specified disks

[Start Block]

Specifies the starting block for detection

Examples of implementation:

Example 692 Detecting bad tracks on a disk.

Detects bad track information for the specified disk/dev/fd 0H720, where the specified block size is 720 bytes.

Thank you for reading, the above is "Linux Badblocks instruction application method" of the content, after the study of this article, I believe we have a deeper understanding of the application method of Linux Badblocks instruction, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Tags: Disk instruction detection block parameter method application check learning necessity information content byte example selectivity selection function size that is ideas Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Xiaomi OPPO Reno Linux MySQL