All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: Matt Rosales <ttammar@gmail.com>
Cc: DM-Crypt mailing list <dm-crypt@saout.de>
Subject: Re: [dm-crypt] Data Corruption - hard drive or DM-crypt?
Date: Sun, 13 Sep 2009 16:29:57 +0200	[thread overview]
Message-ID: <4AAD01E5.7070006@redhat.com> (raw)
In-Reply-To: <79caf2a30909130713u7ba240eer63333941bda94421@mail.gmail.com>

Matt Rosales wrote:
> I have been experiencing data corruption on my DM-Crypt / LUKS
> system running Jaunty. Most noticeably it happens with my media (music
> dominantly), in the form of read-write errors when copying or moving
> files, and as corrupted songs that worked fine before. It is

If it is really IO errors, the problem is below dm-crypt, your
disk or other hw is probably faulty. Dm-crypt returns IO error only if it
receives failed operation from underlying device.

Also, if your disk or memory is flaky and randomly flips some bits (without IO error),
this cause at least (because of encryption) lost of encryption block
or the whole sector. (Without encryption only flipped bit is wrong and this
can be unnoticed).

Run memory test (memetest+), run some disk-level test (badblocks with write
test - see man badblocks), check syslog for previous errors etc.

Milan

  reply	other threads:[~2009-09-13 14:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-13 14:13 [dm-crypt] Data Corruption - hard drive or DM-crypt? Matt Rosales
2009-09-13 14:29 ` Milan Broz [this message]
2009-09-13 19:00 ` Arno Wagner

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=4AAD01E5.7070006@redhat.com \
    --to=mbroz@redhat.com \
    --cc=dm-crypt@saout.de \
    --cc=ttammar@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.