Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've seen a lot of guides on how to do physical -> VHD, but is there any way to easily move a VHD image to a physical disk easily? Or should I just attach the disk and go to town with GNU DD?

share|improve this question

4 Answers 4

up vote 5 down vote accepted

The dd approach works, but only if the destination physical disk can be trashed and entirely overwritten, and is at least as big as the maximum growth size of the virtual disk. This can also end up taking a long time if the virtual disk isn't "full".

An alternative approach is to use an imaging tool like Ghost or ImageX to efficiently capture the file contents of the virtual disk's partitions into some sort of extractable archive files and then extract their contents onto a partitioned physical disk.

share|improve this answer

Attach the VHD to a virtual machine (you can use MS Virtual PC, VirtualBox or any other virtualization software that supports VHD). Then boot the VM with the Acronis True Image ISO mounted in a virtual CD drive and create TIB image, then boot the physicl computer with the same CD (this time burned on a disk) and recover the TIB image to the physical HDD using Sector-by-sector.

This supports the recovery of multiple partitions from the same image.

share|improve this answer

Sorry about my english, but you also can use a linux live CD and copy with a "dd" line command from a VHD to a Physical drive.

share|improve this answer
    
Isn't it what OP said in his question? –  gronostaj Aug 14 '14 at 12:17
    
No. That is what OP asked about in the question. On another note: I would guess that if this does work with VHD files, it might only work on some VHD files... not dynamic VHD files? –  TOOGAM Feb 10 at 1:57

The following operations are performed on knoppix (live linux) from terminal.

  su 
  modprobe nbd
  qemu-nbd -r -c /dev/nbd0 -f vpc <vhd_file_name>

if VHDX fromat

  qemu-nbd -c /dev/nbd0 -f VHDX <vhdx_file_name>
  ddrescue -v -f /dev/nbd0 /dev/sda  >>>> image to /dev/sda writing

only one partition writing

  qemu-nbd -P 2 -r -c /dev/nbd2 -f vpc <vhd_file_name> 
  ddrescue -v -f /dev/nbd2 /dev/sda2 >>>> part2 of image to /dev/sda2 writing

partition mount

  qemu-nbd -P 2 -r -c /dev/nbd2 -f vpc <vhd_file_name> >>> -P 2 part2 of image 
  mount /dev/nbd2 /mnt 

unmount and disconnect image file

  unmount /mnt 
  qemu-nbd -d /dev/nbd2
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.