Creating NTFS partitions

Dec 2, 2011 at 3:37 AM

I've been playing around with the DiscUtils and am able to make fat drives with no problems. However, what I really need to be able to do is make NTFS drives. While researching the docs on how to do this I stumbled on something that has me puzzled.

On the VolumeInfo.Identity Property page I see this remark:

"The stability of the identity depends the disk structure. In some cases the identity may include a simple index, when no other information is available. Best practice is to add disks to the Volume Manager in a stable order, if the stability of this identity is paramount."

I'm wanting to create many (100's possible) of NTFS VHD drives and mount them in a folder.  What is that saying to me?

Also, what exactly is the string? This particular line:

LogicalVolumeInfo lvi = vm.GetVolume(vm);

What does styring 'vm' look like?  Is it any identifying string for the drive of my choosing?

 Thanks!  

Scott

Coordinator
Dec 3, 2011 at 3:43 PM

The format is fairly complex - for the most part just treat it as an opaque string.

You probably want to use vm.GetLogicalVolumes() or vm.GetPhysicalVolumes() - you only need the vm.GetVolume(identity) call if you already know the identity of the volume you want.

 

Cheers,

Ken