Linux hard disk detection

Source: Internet
Author: User
Linux hard disk detection badblocks function description: check the damaged blocks in the disk device. Syntax: badblocks [-svw] [-B & lt; block size & gt;] [-o & lt; output file & gt;] [disk device] [number of disk blocks] [start Block] Supplementary Note: the disk device to be checked must be specified when executing the command, and... linux hard disk detection badblocks function description: check the damaged blocks in the disk device. Syntax: badblocks [-svw] [-B <区块大小> ] [-O <输出文件> ] [Disk device] [number of disk blocks] [start Block] Supplementary Note: the disk device to be checked and the number of disk blocks of the device must be specified during command execution. Parameter:-B <区块大小> Disk block size, in bytes. -O <输出文件> Write the check result to the specified output file. -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. Hdparm syntax: hdparm [-CfghiIqtTvyYZ] [- <快取分区> ] [-A <0 or 1>] [-c] [-d <0 or 1>] [-k <0 or 1>] [-K <0 or 1>] [-m <分区数> ] [-N <0 or 1>] [-p] [-P <分区数> ] [-R <0 or 1>] [-S <时间> ] [-U <0 or 1>] [-W <0 or 1>] [-X <传输模式> ] [Device] Note: hdparm can be detected to display and set parameters of the IDE or SCSI hard disk. Hdparm-t/dev/hda (IDE hard disk) hdparm-t/dev/sda (SATA, SCSI, hard RAID card array) hdparm-t/dev/md0 (soft RAID device) test results should be greater than 40 MB/s under no-load conditions, and equal to 20 MB/s under load conditions should be normal, if the test result is extremely low, you need to use a dedicated hard disk detection tool to test whether the disk is faulty. Fsck checks the file system and tries to fix the error. Syntax: fsck [-aANPrRsTV] [-t <文件系统类型> ] [File system...] Supplementary Note: When a file system error occurs, you can use the fsck command to try to fix it. Parameter:-a automatically fixes the file system and does not ask any questions. -A checks all file systems listed in the file according to the/etc/fstab configuration file. -N: if no command is executed, only the actions that will be performed are listed. -P checks all file systems at the same time when used with the "-A" parameter. -R uses the interactive mode to ask questions when performing repair, so that users can confirm and determine the handling method. -R when used with the "-A" parameter, the file system that skips the/directory is not checked. -S executes the check job in sequence rather than simultaneously. -T <文件系统类型> Specifies the file system type to be checked. -T when the fsck command is executed, the title information is not displayed. -V shows the command execution process.
Related Article

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.