Insert external files into VHD system

Nov 19, 2012 at 12:54 PM

Hi there, i been trying discutils and i can't find a way to insert files from the external filesystem into the virtual ntfs one, are there any chance of doing this, thanks in advance, 


long tamanoDisco = tamanoEnMB * 1024 * 1024;

using (Stream vhdStream = File.Create(@nombreArchivo))               

                Disk discoVirtual =
Disk.InitializeDynamic(vhdStream, Ownership.None, tamanoDisco);


                    VolumeManager vm = new DiscUtils.VolumeManager(discoVirtual);

                    using (NtfsFileSystem fs =
NtfsFileSystem.Format(vm.GetLogicalVolumes()[0], "PIA"))