Page 1 of 1

Error doing command line conversion

Posted: Fri May 06, 2022 2:27 pm
by mb31
I'm writing a script to create vhdx of a server we have and copy the data to a shared drive.
I'm able to get it to work with the \\?\PhysicalDrive0, but anything else gives me error opening image 25.

This is the command it runs.

This one runs fine
"C:\Program Files\StarWind Software\StarWind V2V Converter\V2V_ConverterConsole.exe" convert in_file_name="\\?\PhysicalDrive0" out_file_name="\\Shared\Mdrive.vhdx" out_file_type="ft_vhdx_thin"

This gives me

error opening image 25

"C:\Program Files\StarWind Software\StarWind V2V Converter\V2V_ConverterConsole.exe" convert in_file_name="m:\" out_file_name="\\Shared\Mdrive.vhdx" out_file_type="ft_vhdx_thin"

When doing the list volumes command, it shows,

Hard Disk2 M:\ \\?\Volume{e4c589a5-85b1-47e8-89f2-94295971903d}\
Hard Disk3 R:\ \\?\Volume{88e83ddb-6b85-4d8c-b6b0-2879890a8f84}\
Hard Disk5 Q:\ \\?\Volume{25960fc7-b9ea-48c2-8cb7-63cb67899394}\


I tried using "Hard Disk2" "M:\" and "\\?\Volume{e4c589a5-85b1-47e8-89f2-94295971903d}\"
none seem to be working.

Not sure where to go from here, any help would be appreciated, thanks!

Re: Error doing command line conversion

Posted: Mon May 09, 2022 6:59 am
by yaroslav (staff)
Greetings,

Please note the V2V converter is not backup software.
Please try converting to a thick disk. Please also try referring to a drive in the conventional format. Please refer to this page https://www.starwindsoftware.com/v2v-he ... rface.html.

Re: Error doing command line conversion

Posted: Wed Jun 01, 2022 4:58 pm
by istinson
Was this ever resolved? Currently getting the same error message, On a very similar use case.

Re: Error doing command line conversion

Posted: Wed Jun 01, 2022 7:20 pm
by yaroslav (staff)
Did you try listing the volumes with V2V_ConverterConsole.exe list object=ot_disks?
Note that the command you were using in a different thread is for converting a VM disk not the physical volume.

Re: Error doing command line conversion

Posted: Fri Jan 05, 2024 6:11 am
by Outplayed1958
I just find out the answer and I register this account just to post it here!

The error was due to escaping char in CMD, so you need to make the end a double slash to pass in the param correctly

Using yours as an example:

Code: Select all

Hard Disk5 Q:\ \\?\Volume{25960fc7-b9ea-48c2-8cb7-63cb67899394}\
The line should be:

Code: Select all

"C:\Program Files\StarWind Software\StarWind V2V Converter\V2V_ConverterConsole.exe" convert in_file_name="\\?\Volume{25960fc7-b9ea-48c2-8cb7-63cb67899394}\\" out_file_name="\\Shared\Qdrive.vhdx" out_file_type="ft_vhdx_thin"
Notice the volume ID is \\?\Volume{25960fc7-b9ea-48c2-8cb7-63cb67899394}\\

This will fix your issue, have fun!

Jason

p.s. @yaroslav (staff) please read the OP question carefully, your answer showed you haven't even try to run your cmd product to convert a volume, god bless your heart.

Re: Error doing command line conversion

Posted: Fri Jan 05, 2024 9:40 am
by yaroslav (staff)
Thanks for your comment. Yup, missed that backslash.
Thanks!