This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RESOLVED: Dynamic disk volume question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]