Page 1 of 1

Need help for cmd disk to Vhdx

Posted: Thu Dec 24, 2020 8:22 am
by badak
Hi everyone

i try to create a commande line for convert a windows physical disk to a simple VHDX file on my USB disk, someone can help me and give some samples ?

thank you

Re: Need help for cmd disk to Vhdx

Posted: Thu Dec 24, 2020 8:54 am
by yaroslav (staff)
Hi,

Welcome to StarWind Forum. I have no samples, but here is a help page that might be helpful https://www.starwindsoftware.com/v2v-he ... rface.html.

Re: Need help for cmd disk to Vhdx

Posted: Thu Dec 24, 2020 9:22 am
by badak
Thank you for your answer but of course i have already checked the help page.

Re: Need help for cmd disk to Vhdx

Posted: Thu Dec 24, 2020 9:55 am
by yaroslav (staff)
Try V2V_ConverterConsole.exe convert in_file_name="\\?\PhysicalDisk1" out_file_name="d:\disk.vhdx" out_file_type=ft_vhdx_thick

Re: Need help for cmd disk to Vhdx

Posted: Thu Dec 24, 2020 10:14 am
by badak
unfortunately, i have always the same error on 2 different computers "Error create input image 25" ........... :-( some idea ?

C:\Program Files\StarWind Software\StarWind V2V Converter>V2V_ConverterConsole.exe convert in_file_name="\\?\PhysicalDisk0" out_file_name="e:\disk.vhdx" out_file_type=ft_vhdx_thick
Opening log file 'logs\V2VConsole_Log-20201224-111341.log'.
Error create input image 25

***********
The log file name: 'logs\V2VConsole_Log-20201224-111341.log' (PID 3608)
12/24 11:13:41.704 235c Facility ???INFO: main: SetDllDirectory: C:\Program Files\StarWind Software\StarWind V2V Converter\lib
12/24 11:13:41.708 235c Facility ???INFO: main: File Version: 9.0.0.202
12/24 11:13:41.708 235c Facility ???INFO: RunConsole: Version MajorVersion 10, MinorVersion 0, BuildNumber 19042
12/24 11:13:41.708 235c Facility ???INFO: RunConsole: V2V_ConverterConsole.exe convert in_file_name="\\?\PhysicalDisk0" out_file_name="e:\disk.vhdx" out_file_type=ft_vhdx_thick
12/24 11:13:41.709 235c Facility ???INFO: CCommandLineManager::AddParametersForConvertCommand: in_file_name=\\?\PhysicalDisk0
12/24 11:13:41.709 235c Facility ???INFO: CCommandLineManager::AddParametersForConvertCommand: out_file_name=e:\disk.vhdx
12/24 11:13:41.709 235c Facility ???INFO: CCommandLineManager::AddParametersForConvertCommand: out_file_type=ft_vhdx_thick
12/24 11:13:41.720 235c Facility ???WARNING: LocalDisk::CreateInputImage: Extension -
12/24 11:13:41.722 235c Facility ???ERROR: RunConsole: Error create input image - 25
***********

Re: Need help for cmd disk to Vhdx

Posted: Thu Dec 24, 2020 11:57 am
by yaroslav (staff)
Greetings,

That was a sample command. Please make sure to put the right variables (i.e., disk name and disk path) into it.
You can also try conversion through GUI.

Re: Need help for cmd disk to Vhdx

Posted: Sat Dec 26, 2020 9:43 am
by badak
ok i found, error was in the disk name, sorry for this...
thank you very much :)

Re: Need help for cmd disk to Vhdx

Posted: Sat Dec 26, 2020 4:30 pm
by yaroslav (staff)
You are always welcome :)