Restore VHD to an logical drive

Hi,

I want to know a solution:

I had have installed on testworkstation

on physicaldisk 0:

partition 0 C:  Windows Server 2012

parition 1 D: Windows 7

than I made a "backup" with disk2vhd only for partition 1/drive D:

After a coupe of month I want to restore the backup only to partition 1/drive D:

I tried vhd2disk but this tool seems to be only for physical disks and would overwrite also partition c.

Is there a tool like vhd2partition?

Or have I to use vhd mount and robocopy with acls?

Thanks in advance

June 29th, 2015 9:32pm

Hi Thoma,

Based on my research, the most convenient way is mounting the VHD and copying the data as you mentioned.

If there is anything else regarding this issue, please feel free to post back.

Best Regards,

Anna Wang

Free Windows Admin Tool Kit Click here and download it now
July 1st, 2015 2:37am

VHD is the direct HDD partition for WIndows. You can attach this VHD direct via Disk management. 

like this. 

1) 

2)

Click to 'Attach VHD' then select your VHD to attach as a partition.

July 1st, 2015 2:51am

thanks for explanation == "vhd Mount"
this way is known,

but how should I copy the ACLs?

Are there better tools as robocopy for this purpose?

Free Windows Admin Tool Kit Click here and download it now
July 1st, 2015 7:01am

Do you mean that you want to copy VHD with the permissions of old place?
July 1st, 2015 7:32am

If yes maybe this link will help you: https://ye110wbeard.wordpress.com/2012/02/20/ensuring-your-vhd-file-has-proper-ntfs-permissions-with-powershell/

Free Windows Admin Tool Kit Click here and download it now
July 1st, 2015 7:37am

no.

It is an OLD OS D: partition. There was win7 installed and saved to vhd.

I want to recover only this partition D: and preserve the existing C: partition on HDD.


That means I have to copy the structure of filesystem (files and dirs with every ACL) from the mounted vhd to the partition d: of the physical hdd.
  • Edited by Thoma Wednesday, July 01, 2015 8:24 AM
July 1st, 2015 8:22am

Hi Thom,

To copy folder with the structure and the NTFS permission, please refer to these options in the robocopy cmd:

/MIR: Mirrors the directory tree
/Copyall Copy Data, Attributes, Time Stamps, ACLs, Owner Info, and Auditing Info
/Log:<Path and Name of Log File> Useful when you want to see the failures. Default overwrites existing logfile use /Log+: to append existing log

For more detailed information, please refer to this article:

https://technet.microsoft.com/en-us/library/cc733145.aspx?f=255&MSPPError=-2147217396

Best Regards,

Anna Wang

Free Windows Admin Tool Kit Click here and download it now
July 8th, 2015 10:35pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics