Re: Bug#949307: ITP: disk-filltest -- Simple Tool to Detect Bad Disks by Filling with Random Data

2020-01-21 Thread Timo Bingmann
On 21/01/2020 12.40, Jonathan Dowland wrote:
> On Sun, Jan 19, 2020 at 06:30:01PM +0100, Sudip Mukherjee wrote:
>> The simple tool disk-filltest can help, together with S.M.A.R.T. monitoring, 
>> to
>> check disks periodically and thus be forewarned about coming failures. The
>> function of disk-filltest is simple:
>>
>> * Write files random- to the current directory until the disk is 
>> full.
> 
> How does this compare to f3read and f3write, from the "f3" package?

Very good question. And the answer is simplicity.

f3 is targeted at detected "fake" flash disks which pretend to be larger
than they are. There is a lot of code around that, handling file system
and detecting flash disks and stuff like that. Yes, f3 too writes a
random sequence and checks it. But then tries to locate the maximum
valid size and so on.

f3 is 3992 lines of C code according to my loc-counting tool.
disk-filltest is 380 lines and does not try to do anything fancy.

Best,
Timo



Re: Bug#949307: ITP: disk-filltest -- Simple Tool to Detect Bad Disks by Filling with Random Data

2020-01-21 Thread Jonathan Dowland
On Sun, Jan 19, 2020 at 06:30:01PM +0100, Sudip Mukherjee wrote:
> The simple tool disk-filltest can help, together with S.M.A.R.T. monitoring, 
> to
> check disks periodically and thus be forewarned about coming failures. The
> function of disk-filltest is simple:
> 
> * Write files random- to the current directory until the disk is full.

How does this compare to f3read and f3write, from the "f3" package?


-- 
Jonathan Dowland



Bug#949307: ITP: disk-filltest -- Simple Tool to Detect Bad Disks by Filling with Random Data

2020-01-19 Thread Sudip Mukherjee
Package: wnpp
Severity: wishlist
Owner: Sudip Mukherjee 
X-Debbugs-Cc: debian-devel@lists.debian.org

* Package name: disk-filltest
  Version : 0.8
  Upstream Author : Timo Bingmann 
* URL : https://panthema.net/2013/disk-filltest/
* License : GPL-3
  Programming Lang: C
  Description : Simple Tool to Detect Bad Disks by Filling with Random Data 

The number of hard disk produced in the last five years is huge. Of course,
this is the same number of hard disks that will most probably fail in the next
five years, possibly with catastrophic consequences for the particular user or
business.
 
The simple tool disk-filltest can help, together with S.M.A.R.T. monitoring, to
check disks periodically and thus be forewarned about coming failures. The
function of disk-filltest is simple:

* Write files random- to the current directory until the disk is full.

* Read the files again and verify the pseudo-random sequence written.

* Any write or read error will be reported, either by the operating system or
  by checking the pseudo-random sequence.

* Optionally, delete the random files after a successful run.


--
Regards
Sudip