This is the mail archive of the
mailing list for the Cygwin project.
Re: Is a disk image created within dd "safe"?
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Clint Olsen <clint dot olsen at gmail dot com>, cygwin at cygwin dot com
- Date: Thu, 3 Sep 2015 05:19:15 +0300
- Subject: Re: Is a disk image created within dd "safe"?
- Authentication-results: sourceware.org; auth=none
- References: <CA+imRYKfrvgVWUSh4=9tsF=QxjKGfPoiE-nRfVF7rbWO1v-b8A at mail dot gmail dot com> <CA+imRYLmnThTV-7=JQ_viDLk65HeO+2sUdxN+ThGkML6=k=iQw at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot com
Greetings, Clint Olsen!
> I'm also interested in generating images to preserve the entire disk.
> What I'm wondering is whether doing this on a live system through
> Cygwin would produce a safe, bootable disk image or if the the APIs
> that Cygwin has to use or having the disk mounted would make this
Safe? not even in the slightest.
And as Eric pointed out, this has nothing to do with Cygwin.
> A friend speculated that dd might complain about open files or
> some-such thing.
You don't have files on a block device level. >.< Tell your friend to
speculate something better.
> I went and tried it on /dev/sda and it seemed to work
> without complaining.
With conv=noerror ?
I'm wondering, what did you expect?
> $ dd if=/dev/sda of=/path/to/NAS/sda.img bs=512 conv=noerror,sync
bs=4k at least.
NTFS uses 4k clusters by default, there's no reason to use smaller chunks to
Actually, even bigger chunks may greatly speed up the read.
conv is just bogus. You are trying to create a mess of the image with these
You don't want any padding.
You don't want errors ignored.
Writing disk image to NAS uncompressed is even more questionable.
Consider piping it through some archiver.
> It would be great if something like this would work since dd is so
> ubiquitous that I could restore a drive in a number of ways and not
> lock me into something proprietary.
It wouldn't work. Not directly. For a number of reasons.
If you still intend to do it, at the very least consider using ERUNT for
registry snapshots. That will let you have a consistent registry copy even if
the one in image would turn up damaged.
With best regards,
Thursday, September 3, 2015 04:50:29
Sorry for my terrible english...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple