VMware Communities
Jacalo
Contributor
Contributor
Jump to solution

Reason: The specified virtual disk needs repair. Running on MAC

I NEED HELP.

So i am new to mac and am a nood. I am running the latest version of vmware fusion , os and windows 7.

So my computer crashed and i had to force shut down. Vmware was running at the time with windows 7, now when i try to run windows 7 i get this:

Cannot open the disk '/Users/username/Documents/Virtual Machines.localized/Windows 7.vmwarevm/Windows 7.vmdk' or one of the snapshot disks it depends on.

Reason: The specified virtual disk needs repair.

I went online and tried the two ways that the forms said to fix, went to the terminal and tried to fix the vmdk but kept getting drive needs to be mounted?, then i tried using an older version of vmwares support program and that didnt work.

So i eaither need to know how to fix the vmdk or get it to mont so i dont get that error, or if there is a way to trasfer my programs from that crashed windows to another windows i have installed, (Aso 7)

0 Kudos
1 Solution

Accepted Solutions
continuum
Immortal
Immortal
Jump to solution

the path you used seems to be badly formatted - use quotes around filenames with spaces and don't mix slashes with backslashes

don't know - this forum software does not display paths nicely so you may have it right - just doublecheck again




_________________________

VMX-parameters- WS FAQ -[ MOAcd|http://sanbarrow.com/moa241.html] - VMDK-Handbook

You also find me in the support crew of PHD Virtual Backup


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

View solution in original post

0 Kudos
8 Replies
continuum
Immortal
Immortal
Jump to solution

Hi

try to repair the vmdk with vmware-vdiskmanager

The version you have is buggy - so please read

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=102385...




_________________________

VMX-parameters- WS FAQ -[ MOAcd|http://sanbarrow.com/moa241.html] - VMDK-Handbook

You also find me in the support crew of PHD Virtual Backup


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
Jacalo
Contributor
Contributor
Jump to solution

i tried that, tht was the other of the two ways. So i put it in and restarted my computer and tried to run the windows again and it did the same thing. do i need to run it or something? because after putting it in restarting the computer i just tried running the fusion again...there a middle step im missing or something?

0 Kudos
Jacalo
Contributor
Contributor
Jump to solution

Just retried it and then i tried running windows, same error, then i tried opening terminal and following that fix, got same thing there

"Last login: Mon Jul 12 16:27:17 on console

Alia-Healths-MacBook-Pro:~ aliahealth$ /Library/Application\ Support/VMware\ Fusion/vmware-vdiskmanager –R /Users/aliahealth/Documents/Virtual\ Machines.localized/Windows\ 7.vmwarevm/Windows\ 7.vmdk

Diskname or some other argument is missing.

VMware Virtual Disk Manager - build 232708.

Usage: vmware-vdiskmanager 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.

-d : defragment the specified virtual disk. Only

local virtual disks may be defragmented.

-k : shrink the specified virtual disk. Only local

virtual disks may be shrunk.

-n <source-disk> : rename the specified virtual disk; need to

specify destination disk-name. Only local virtual

disks may be renamed.

-p : prepare the mounted virtual disk specified by

the volume path for shrinking.

-r <source-disk> : convert the specified disk; need to specify

destination disk-type. For local destination disks

the disk type must be specified.

-x <new-capacity> : expand the disk to the specified capacity. Only

local virtual disks may be expanded.

-R : check a sparse virtual disk for consistency and attempt

to repair any errors.

-D : make disk deletable. This should only be used on disks

that have been copied from another product.

Other Options:

-q : do not log messages

Additional options for create and convert:

-a <adapter> : (for use with -c only) adapter type

(ide, buslogic, lsilogic). Pass lsilogic for other adapter types.

-s <size> : capacity of the virtual disk

-t <disk-type> : disk type id

Options for remote disks:

-h <hostname> : hostname of remote server

-u <username> : username for remote server

-f <filename> : file containing password

-P <port> : optional TCP port number (default: 902)

-S : specifies that the source disk is remote, by default

the remote options are assumed to refer to the

destination.

Disk types:

0 : single growable virtual disk

1 : growable virtual disk split in 2GB files

2 : preallocated virtual disk

3 : preallocated virtual disk split in 2GB files

4 : preallocated ESX-type virtual disk

5 : compressed disk optimized for streaming

6 : thin provisioned virtual disk - ESX 3.x and above

The capacity can be specified in sectors, KB, MB or GB.

The acceptable ranges:

ide adapter : http://1MB, 950.0GB

scsi adapter: http://1MB, 950.0GB

ex 1: vmware-vdiskmanager -c -s 850MB -a ide -t 0 myIdeDisk.vmdk

ex 2: vmware-vdiskmanager -d myDisk.vmdk

ex 3: vmware-vdiskmanager -r sourceDisk.vmdk -t 0 destinationDisk.vmdk

ex 4: vmware-vdiskmanager -x 36GB myDisk.vmdk

ex 5: vmware-vdiskmanager -n sourceName.vmdk destinationName.vmdk

ex 6: vmware-vdiskmanager -r sourceDisk.vmdk -t 4 -h esx-name.mycompany.com \

-u username -f passwordfile "[storage1]/path/to/targetDisk.vmdk"

ex 7: vmware-vdiskmanager -k myDisk.vmdk

ex 8: vmware-vdiskmanager -p <mount-point>

(A virtual disk first needs to be mounted at <mount-point>)" (Colored that in to point it out)

that is exactlywhat my terminal says once i hit enter. Hope this information helps, remember i have the older version of the vmwear-vdiskmanager.

0 Kudos
continuum
Immortal
Immortal
Jump to solution

the path you used seems to be badly formatted - use quotes around filenames with spaces and don't mix slashes with backslashes

don't know - this forum software does not display paths nicely so you may have it right - just doublecheck again




_________________________

VMX-parameters- WS FAQ -[ MOAcd|http://sanbarrow.com/moa241.html] - VMDK-Handbook

You also find me in the support crew of PHD Virtual Backup


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
Jacalo
Contributor
Contributor
Jump to solution

the first part of the path is copied right from the form that explains how to do that and the other part is from dragging the file from its location to the terminal so it is automatically put in, anyways i tried it again and still not working. Any thing specific you see about the path that looks wrong, the computers name is alia health. The path is at the top of the quoted terminal above.

0 Kudos
Jacalo
Contributor
Contributor
Jump to solution

As i was typing my response to you it hit me, maybe the part i copied and pasted from the form was wrong or not exactly right for my computer so i located my disk manager and dragged and dropped it to the terminal and then dragged and dropped my windows 7 file, tried that, and it didnt work however i got a slightly diffrent message so i tried to mess around with with the spaced between the file paths of the two files and it worked. THANKS SO MUCH! That would have sucked if i lost what was on there, now if you dont mind ans one more question of mine, how can i back up what i have now, so incase something like this happens again, so i can just revert back to the backup? can i do that even?

0 Kudos
WoodyZ
Immortal
Immortal
Jump to solution

how can i back up what i have now, so incase something like this happens again, so i can just revert back to the backup? can i do that even?

The best way to insure a proper backup is to shutdown, not suspend, the target Virtual Machine and close Fusion and then manually copy the target Virtual Machine Package to a safe location.

0 Kudos
Jacalo
Contributor
Contributor
Jump to solution

and that will save all the programs and documents and stuff i have on the windows ?

0 Kudos