Bad track detection method for Ubuntu system disk

Source: Internet
Author: User
Keywords Ubuntu disk bad track detection
Tags aliyun code different disk hard hard drive html http

Linux and win are different, win under the disk detection tool to catch a lot of, it works regardless of the name from the very same cattle, not the master is * * experts, but the useful is not much. Khan &http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;

Linux, the longest disk detection tool is Smartcontrol (SMARTCTL)

But my mobile hard drive doesn't support smart, so I can only use the pig-flow method.

Cause: Hanging at a certain height of an object, free-fall-like, smashed in the 320G eaget mobile hard disk, the shell is damaged, because the reading and writing operation, so the bad track detection. (Cup!) )

First umount the mobile hard disk that has been mount

Code:

umount/dev/sd*

To detect:

Method One:

Code:

Badblocks-s-v/dev/sd*1

Method Two:

Code:

sudo e2fsck-f-c/dev/sd*1

Because the disk needs to be tested, so the speed is very slow, in the detection process, do not power off, do not read and write to the hard disk, do not remove the hard disk, not physical damage, not vibration and so on.

The hard drive also pay attention to heat dissipation.

The detection process can terminate halfway, or you can specify that the block restarts

Usage:

Code:

sudo badblock/dev last start

Wait patiently! I 320G moved the hard drive, took 2 hours, 60%, and then in order to write this article, the cup was pressed by Ctrl + C

Luckily you can specify the block to start

When you see:

Pass completed, 0 bad blocks found.

Congratulations!! There is no bad way. If >0, then you also have a cup. Find the software to fix it quickly!!

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.