1

I created WinPE 3.0 and didn't modify it in any way. I want to attach a vdisk (.vhd file) while running WinPE but I can't attach it, no error is shown, no indication that diskpart didn't attach it, it just doesn't happen.

These are the steps that I followed:

  • WinPE booted
  • (i typed the following)
  • diskpart
  • select vdisk file=e:\myfile.vhd
  • attach vdisk

The only thing that happens is the help is shown.

The file is in place, I checked a couple of times, diskpart doesn't give anything useful.

1
  • Does list vol inside diskpart show the virtual disk?
    – dcharles
    Aug 30, 2011 at 17:49

2 Answers 2

1

You need to assign as well in diskpart otherwise it will be mounted but not have a drive letter.

http://blogs.msdn.com/b/7/archive/2009/10/08/diskpart-exe-and-managing-virtual-hard-disks-vhds-in-windows-7.aspx

3
  • i know that i need to assign it, but when i type "select vdisk" it doesn't say an error or drive selected it prints out the help for select (like i typed "select /?"), when i type attach vdisk the same typing it prints out the help without any error... Sep 1, 2011 at 8:51
  • I was able to succesfully do it with the commands listed above. However, I had to move the VHD to a local fixed disk otherwise I was getting "requested operation could not be completed due to a file system limitation" Try moving the vhd to a fixed disk location and if it works there, start trying other places.
    – Nate
    Sep 1, 2011 at 13:16
  • Did you get it to work?
    – Nate
    Sep 2, 2011 at 22:05
0

It looks like you have forgotten the quotes on both sides of the filename try that and see if that works for you should look like this SELECT VDISK FILE="C:\Example\Exam22.vhd". Do not forget to use quotes on both sides of the complete path. And when you attach it using the [attach Vdisk file name=<"xxxxx">]

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .