DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] LUKS linux encrypted file system causing file corruption
Date: Mon, 30 Nov 2015 15:16:46 +0100	[thread overview]
Message-ID: <20151130141646.GA15869@tansi.org> (raw)
In-Reply-To: <CAEsQMm9GSHSGeMd5yKpemTrXMW-f3_6AF4Fzgd4Ds6Hx5nrBtg@mail.gmail.com>

Hi Sumit,

There are several possibilities. After you have made sure
that noting is chanmging the source during the copying,
the remaning possibilitiy is data corruption.

The first thing is to get an idea how many bytes are 
different.

  cmp -b file1 file2 | wc 

does that. Please run this (may take long) and post the 
results.

One of the usual suspects in data corruption is RAM. 
You ma want to run a memory-check overnight, just to 
be sure. See FAQ Item 4.3 and 4.4:

  https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions


Regards,
Arno



On Mon, Nov 30, 2015 at 10:19:34 CET, Sumit Kumar wrote:
> <http://stackoverflow.com/questions/33993264/luks-linux-encrypted-file-system-causing-file-corruption#>
> I am having a LUKS encrypted Linux file system (dmCrypt). When I copy a
> huge file, around 5 GB of file, from un-encrypted linux file system to LUKS
> encrypted linux file system then the target copied file MD5 changed.
> 
> I am not sure does it corrupting the file as the MD5 changed?
> 
> I am using CentOS 6.5 and working on VMs not on physical machine.
> 
> Any help will be greatly appreciated .
> 
> -- 
> Thanks & Regards
> *Sumit Kumar*

> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt


-- 
Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email: arno@wagner.name
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier

      parent reply	other threads:[~2015-11-30 14:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-30  9:19 [dm-crypt] LUKS linux encrypted file system causing file corruption Sumit Kumar
2015-11-30 12:47 ` Ralf Ramsauer
2015-12-02  8:04   ` Ritesh Raj Sarraf
2015-12-02 12:22     ` Arno Wagner
2015-11-30 14:16 ` Arno Wagner [this message]

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=20151130141646.GA15869@tansi.org \
    --to=arno@wagner.name \
    --cc=dm-crypt@saout.de \
    /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