GitXplorerGitXplorer
b

diskscan

public
108 stars
29 forks
20 issues

Commits

List of commits on branch master.
Verified
4773146060a1696c52c880ce65410dad2f861c08

Create cmake-single-platform.yml

bbaruch committed a year ago
Verified
0524379a5049dbc081733a1c685ea77ddc32bdfb

Remove gitter link

bbaruch committed a year ago
Unverified
43d11eac500af48e08ff85dc8f2310e74a431836

remove link to travis

bbaruch committed a year ago
Unverified
79d07b3a34cfd747ac445aaa08569b7bec0aa6c0

Remove spurious backslash from manpage

jjwilk committed 2 years ago
Unverified
e975324ee8e0667d84630d63525fd77390b0dd54

Fix Gitter badge URL

jjwilk committed 2 years ago
Unverified
88383caa04bd01bf6ac3fa288e0fe94796cb36c2

travis-ci is no longer free

bbaruch committed a year ago

README

The README file for this repository.

DiskScan -- Scan HDD/SSD for failed and near failed sectors

DiskScan is a Unix/Linux tool to scan a block device and check if there are unreadable sectors, in addition it uses read latency times as an assessment for a near failure as sectors that are problematic to read usually entail many retries. This can be used to assess the state of the disk and maybe decide on a replacement in advance to its imminent failure. The disk self test may or may not pick up on such clues depending on the disk vendor decision making logic.

diskscan vs. badblocks

badblocks is intended for a simple task, to find bad blocks in the media. diskscan is trying to say a lot more about the media, specifically it is trying not just to say where is a bad block but also what blocks are already deteriorated but still readable and also give information on the latency of reading each block which should help to give an overall assessment of the disk media.

In essence badblocks looks for fatal issues already happening and diskscan is for upcoming issues that can be fixed.

Also, badblocks is essentially obsolete in this day and age since the disks themselves will reallocate the data and there is no real need to map the bad blocks in the filesystem level anymore.

Supported Drives

This tool is focused on SAS/SATA drives that work through the SCSI interface of the kernel.

SD Cards and NVMe devices are not currently scannable with this tool.

Build

This project is using CMake, on Debian/Ubuntu it is as simple as: apt-get install cmake make libtinfo-dev libncurses5-dev zlib1g-dev python-yaml

For RedHat/SuSe based distros you need to install ninja-build first and then: yum install compat-libtermcap libtermcap-devel cmake python-yaml zlib-devel

A Makefile is provided to avoid learning the ninja commands and do the non-build stuff (install, etc.)

To do the build:

cmake . && make

Install

make install

You can control the DESTDIR when building packages and PREFIX if /usr is not right.

License

diskscan is licensed under the GPL version 3 or later.