Centos hard disk read/write detection

Source: Internet
Author: User

1. Install badblocks
Yum install-y e2fsprogs

2. Check
Read test:
Badblocks-s-v/dev/sdb
Read/write test: (slow)
Badblocks-s-w-v/dev/sdb

Badblocks usage
Syntax:
Badblocks [-svw] [-B <block size>] [-o <output file>] [disk device] [number of disk blocks] [start block]
Parameters:
-B <block size> specifies the disk block size, in bytes.
-O <output file> writes the check result to the specified output file.
-C <check block count> The number of blocks for each detection. The default value is 16. Adding this quantity can increase the efficiency of the detection block and increase the memory consumption.
-S shows the progress during the check.
-V displays detailed information during execution.
-W performs a write test during the check.
[Disk device] specifies the disk device to be checked.
[Number of disk blocks] Total number of blocks of the specified disk device.
[Start block] specifies the block from which the check starts.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.