From: Robert Nichols <rnicholsNOSPAM@comcast.net>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] yet another header reconstruction question
Date: Thu, 18 Feb 2016 06:53:04 -0600 [thread overview]
Message-ID: <na4erh$hl9$1@ger.gmane.org> (raw)
In-Reply-To: <trinity-9e9471f4-a8e1-4d5e-8897-799510e19987-1455785506815@3capp-webde-bap42>
On 02/18/2016 02:51 AM, Florian Dotzer wrote:
> I tried dd on files to replace the first 512 bytes of a file , but
> the target file was completely replaced with this command :
>
> dd if=512_bytes_with_fixed_header of=file_with_first_64_MB_of_md0 bs=512 count=1
When the target is a file, you need to include "conv=notrunc" so
that the file will not be truncated to zero length when it is
opened. That is not an issue when the target is a block device,
but there is no harm in using "conv=notrunc" there, too.
--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.
next prev parent reply other threads:[~2016-02-18 12:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1.1455706801.5962.dm-crypt@saout.de>
2016-02-18 8:51 ` [dm-crypt] yet another header reconstruction question Florian Dotzer
2016-02-18 9:34 ` Michael Kjörling
2016-02-18 10:26 ` Sven Eschenberg
2016-02-18 12:53 ` Robert Nichols [this message]
[not found] <mailman.1.1455879602.30698.dm-crypt@saout.de>
2016-02-24 8:43 ` Florian Dotzer
2016-02-24 16:24 ` Arno Wagner
2016-02-16 11:32 Florian Dotzer
2016-02-16 12:01 ` Michael Kjörling
2016-02-16 15:01 ` Arno Wagner
2016-02-16 19:41 ` Sven Eschenberg
-- strict thread matches above, loose matches on Subject: below --
2016-02-15 16:07 [dm-crypt] Yet " Florian Dotzer
2016-02-15 17:04 ` 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='na4erh$hl9$1@ger.gmane.org' \
--to=rnicholsnospam@comcast.net \
--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