delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/09/02/17:57:23

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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=Lb
omhLY67O/IQg9nEHU4yxsiQDrD5HV2tVKUpX0XjUND5p8e3Mwgz1qQW1hDxuRDzy
I4ZTsQMnh2BJRJrDEcvId3558ZD0B7UWPvzb/kok0G5l8LXpif70sMMUDZgbhk1s
2Bysii8g16vGENd55AlVLIq0J3FsyBlzA+deflYv0=
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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=/NQZrDqO
uufuP5Ug6uEmcksetUA=; b=WbNs1/7rYCPwjH5gwm67Bq4MjT0stQfLQuhUJOpT
Z3OM2MSCwil4V38txQK3kJ/cspC7Wrp10tHbdclEfDlJuGykyeRSO6EyWk6OadZp
MfIQ4p6PuA4hYmuhdDYylg/aTNOXLk4vIu07aw/wh9j7p5+Ft6CoeJvPp82WIUlu
4ms=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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: No, score=2.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-qg0-f41.google.com
MIME-Version: 1.0
X-Received: by 10.140.132.71 with SMTP id 68mr64390549qhe.64.1441231026687; Wed, 02 Sep 2015 14:57:06 -0700 (PDT)
In-Reply-To: <CA+imRYKfrvgVWUSh4=9tsF=QxjKGfPoiE-nRfVF7rbWO1v-b8A@mail.gmail.com>
References: <CA+imRYKfrvgVWUSh4=9tsF=QxjKGfPoiE-nRfVF7rbWO1v-b8A AT mail DOT gmail DOT com>
Date: Wed, 2 Sep 2015 14:57:06 -0700
Message-ID: <CA+imRYLmnThTV-7=JQ_viDLk65HeO+2sUdxN+ThGkML6=k=iQw@mail.gmail.com>
Subject: Is a disk image created within dd "safe"?
From: Clint Olsen <clint DOT olsen AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019