VMware Communities
bsamsel
Contributor
Contributor

repairing a virtual disk (using cmd line question)

i'm trying to perform a repair of my virtual disk using the command line:

vmware-vdiskmanager -R virtual_disk.vmdk

following the steps in step 3 here: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100848...

i keep my virtual machine on a drive seperate from where my workstation is installed, so i don't know the correct argument/syntax to use. when i use:

vmware-vdiskmanager -R V:\Windows 8-000002.vmdk

i get a 'diskname or some other argument is missing'.

does anyone know how this cmd line should read?

thanks!

bobby

0 Kudos
7 Replies
WoodyZ
Immortal
Immortal

If the location of "vmware-vdiskmanager" is not in the $PATH you need to change to its working directory, or use its fully qualified pathnane in the command, and then any file pathname with spaces in it needs to be placed in quotes so as an example your command would look like the following:

vmware-vdiskmanager -R "V:\Windows 8-000002.vmdk"

However make sure you're pointing to the last disk in the chain! Smiley Wink

bsamsel
Contributor
Contributor

awesome woody, that seemd to work, now lets see if that fixed my annoying access violation error thats been occuring.

thank you!

0 Kudos
Lloydbj
Contributor
Contributor

Dear sir,

I'm afraid I met a same problem with you have. I try to fix my large .vmdk file( it's over 270GB), after I run the command line :

C:\Program Files (x86)\VMware\VMware Virtual Disk Development Kit\bin>vmware-vdi
skmanager –R "D:\Temp-LS\Malware-FTP.vmdk"

It prompt :

Diskname or some other argument is missing.
VMware Virtual Disk Manager - build 774844.
Usage: vmware-vdiskmanager.exe OPTIONS <disk-name> | <mount-point>
Offline disk manipulation utility
  Operations, only one may be specified at a time:
     -c                   : create disk.  Additional creation options must
                            be specified.  Only local virtual disks can be
                            created.

And I also installed the "VMware Virtual Disk Development Kit". It almost made me mad...

Is there anyone can help me ?

Regards.

0 Kudos
a_p_
Leadership
Leadership

I'm not sure whether there were any changes with the latest version of this utility. However, you may try the version which can be downloaded from the Attachments of http://kb.vmware.com/kb/1023856

André

0 Kudos
Lloydbj
Contributor
Contributor

Did you mean that I need try the newest version of Vmware workstation? I'll have a try later.

Anyway, thanks your reply.

0 Kudos
a_p_
Leadership
Leadership

Did you mean that I need try the newest version of Vmware workstation?

No, use the version from the KB article.

André

0 Kudos
Lloydbj
Contributor
Contributor

My goodness! It's done!

Really gratitude!

0 Kudos