X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=ZMcUSMNfsL9YfSd2 EI2TavbBl5psOsUGFwCVYZctWQG0Y1UBIZ9nPhCLdSfFpA6vVO2vTeIOa9M9wnLG pssXjQ6ZmO6GY9hJcT8fIgR30wlU+wsDBNYW0Ju/Y6HU9hISZknxl6JwYoXgYSCy EiQiML+wGXU6zfg7Wt5CS29kCzo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=0LEOrFFSxbvVOZ7jASs8oi iQGyM=; b=sEL1WfgbIxMIqgdoWWvPQy6VbPngDDM976qsgLxR0tIH3QkzNF2+Gn nG9qsuMOpL8UKXk4vyVgzM103RygjzddL9DE0LDU0O4zX3nNFlspzsKze3BrSqtz A9z7n6NP91hZQXZ71uVJzqpm//uA/iu9l4r5UoPeFE/wdGxRyaCYc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.5 required=5.0 tests=AWL,BAYES_99,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Date: Thu, 3 Sep 2015 05:19:15 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <122670706.20150903051915@yandex.ru> To: Clint Olsen , cygwin AT cygwin DOT com Subject: Re: Is a disk image created within dd "safe"? In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 > unreliable? Bootable? Likely. 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? > Example: > $ 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 read it. 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 options. 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, Andrey Repin Thursday, September 3, 2015 04:50:29 Sorry for my terrible english... -- 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