delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/28/17:25:58

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <SNT123-DS45368C79C56F51E1E2B46CFD60@phx.gbl>
From: "Rob" <robbosch AT msn DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RESOLVED: Dynamic disk volume question
Date: Mon, 28 Sep 2009 15:25:39 -0600
MIME-Version: 1.0
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

In order to reference raw dynamic disk partitions I had to do the following.
This only works under XP.  Under Windows 7 it appears that the
HarddiskDmVolumes no longer exists and I could not find its equivalent.  

- Map a drive letter to the dynamic disk volume of interest (I recommend you
use diskpart)
- Launch winobj.exe (from SysInternals) and then browse under GLOBAL?? to
find out the shortcut that this drive letter maps.  It will be something
like /Device/HarddiskDmVolumes/SERVERNAMEDg0/VolumeX where SERVERNAME is the
name of the server where the Dynamic Volume was created and X is a number
(e.g. Volume1).  This tells you the volume number to use.
- Remove your drive letter assignment.  I recommend using diskpart, select
the volume and then enter "remove all"
- Now you can access the raw partition by referencing
//?/GLOBALROOT/Device/HarddiskDmVolumes/PhysicalVolumes/RawVolumeX where X
is from the second step. 

So using dd might look something like this:

dd if=/cygdrive/f/imagename.img
of='//?/GLOBALROOT/Device/HarddiskDmVolumes/PhysicalDmVolumes/RawVolume1'

There must be an easier way to know what raw volume is what, maybe some way
to get the available disk space or something similar?  You can probable even
do an ls on it to determine if it is the one you want.  You can probably
access the raw partition without removing the drive letter too.  I did this
just to be safe.

This method gives you a viable way to restore images to dynamic disks using
dd and cygwin.

I'm still wondering how this works under Windows 7...so if anyone knows,
please post! 

Rob


--
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