public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant Edwards <grant.b.edwards@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: OT: Fighting bit rot
Date: Tue, 8 Jan 2013 19:53:41 +0000 (UTC)	[thread overview]
Message-ID: <kchtg5$dku$1@ger.gmane.org> (raw)
In-Reply-To: CAA2qdGUn8pf4WKsKugFeY20aXrciyQiwpigGVs+5xkjW4hbBsQ@mail.gmail.com

On 2013-01-08, Pandu Poluan <pandu@poluan.info> wrote:
> On Jan 8, 2013 11:20 PM, "Florian Philipp" <lists@binarywings.net> wrote:
>>
>
> -- snip --
>
>>
>> Hmm, good idea, albeit similar to the `md5sum -c`. Either tool leaves
>> you with the problem of distinguishing between legitimate changes (i.e.
>> a user wrote to the file) and decay.
>>
>> When you have completely static content, md5sum, rsync and friends are
>> sufficient. But if you have content that changes from time to time, the
>> number of false-positives would be too high. In this case, I think you
>> could easily distinguish by comparing both file content and time stamps.
>>
>> Now, that of course introduces the problem that decay could occur in the
>> same time frame as a legitimate change, thus masking the decay. To
>> reduce this risk, you have to reduce the checking interval.
>>
>> Regards,
>> Florian Philipp
>
> IMO, we're all barking up the wrong tree here...
>
> Before a file's content can change without user involvement, bit rot must
> first get through the checksum (CRC?) of the hard disk itself. There will
> be no 'gradual degradation of data', just 'catastrophic data loss'.

When a hard drive starts to fail, you don't unknowingly get back
"rotten" data with some bits flipped.  You get either a "seek error"
or "read error", and no data at all.  IIRC, the same is true for
attempts to read a failing CD.

However, if you've got failing RAM that doesn't have hardware ECC,
that often appears as corrupted data in files.  If a bit gets
erroneously flippped in a RAM page that's being used to cache file
data, and that page is marked as dirty, then the erroneous bits will
get written back to disk just like the rest of them.

-- 
Grant Edwards               grant.b.edwards        Yow! ... he dominates the
                                  at               DECADENT SUBWAY SCENE.
                              gmail.com            



  parent reply	other threads:[~2013-01-08 19:55 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-07 20:11 [gentoo-user] OT: Fighting bit rot Florian Philipp
2013-01-07 21:07 ` Paul Hartman
2013-01-07 22:05   ` Florian Philipp
2013-01-07 21:33 ` Michael Mol
2013-01-07 22:10   ` Florian Philipp
2013-01-07 23:20 ` Alan McKinnon
2013-01-08  7:27   ` Florian Philipp
2013-01-08  7:55     ` Alan McKinnon
2013-01-08 16:16       ` Florian Philipp
2013-01-08 16:42         ` Alan McKinnon
2013-01-08 17:41         ` Pandu Poluan
2013-01-08 19:02           ` Florian Philipp
2013-01-09  2:55             ` Pandu Poluan
2013-01-08 19:53           ` Grant Edwards [this message]
2013-01-08 20:30             ` [gentoo-user] " Florian Philipp
2013-01-08 21:45             ` Alan McKinnon
2013-01-08 22:15               ` Grant Edwards
2013-01-08 23:37                 ` Alan McKinnon
2013-01-09  2:47                   ` Grant Edwards
2013-01-09  8:31                     ` Alan McKinnon
2013-01-09 14:48                       ` Grant Edwards
2013-01-09 15:36                         ` Holger Hoffstaette
2013-01-09 16:32                           ` Pandu Poluan
2013-01-09 16:42                           ` Grant Edwards
2013-01-09 20:52                         ` Alan McKinnon
2013-01-09 20:53                         ` Alan McKinnon
2013-01-08 15:29     ` Grant Edwards
2013-01-08 15:42       ` Michael Mol
2013-01-08 16:28         ` Florian Philipp
2013-01-08 17:35     ` [gentoo-user] " Volker Armin Hemmann
2013-01-08 19:06       ` Florian Philipp
2013-01-08 20:57         ` Joshua Murphy
2013-01-08 21:49         ` Alan McKinnon
2013-01-08 19:11       ` [gentoo-user] " James
2013-01-09  4:40         ` Volker Armin Hemmann
2013-01-09 15:17           ` walt
2013-01-09 18:57             ` Volker Armin Hemmann
2013-01-09  0:12     ` [gentoo-user] " Randy Barlow
2013-01-07 23:31 ` William Kenworthy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='kchtg5$dku$1@ger.gmane.org' \
    --to=grant.b.edwards@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox