This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Is a disk image created within dd "safe"?
- From: Clint Olsen <clint dot olsen at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 2 Sep 2015 14:57:06 -0700
- Subject: 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>
Hi:
I currently use Cygwin and rsync to provide Time Machine-like
functionality to a NAS on my home network. This works fine for user
data.
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
unreliable?
A friend speculated that dd might complain about open files or
some-such thing. I went and tried it on /dev/sda and it seemed to work
without complaining.
Example:
$ dd if=/dev/sda of=/path/to/NAS/sda.img bs=512 conv=noerror,sync
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.
Thanks,
-Clint
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple