VMware Cloud Community
GodfatherX64
Enthusiast
Enthusiast
Jump to solution

vmkfstools -k , vm not booting

hi i need your help

im facing a problem

the c (boot) drive in the vm is thin provisioned

it got bigger so i used sdelete -z c:

turned off the vm

issued vmkfstools -k <vm drive>.vmdk (not the one with flat)

in the middle of it, i accidentally issued ctrl+c

then issued the vmkfstools command again

finished

tried to boot it , it wont boot

tried repairing with windows iso

it shows that it is free

tried to expand the vmdk and boot , nothing

is there a way to fix it

i dont have backup unfortunately

thanks in advanced every one

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
GodfatherX64
Enthusiast
Enthusiast
Jump to solution

thanks guys, fixed it

put the vmdk into another bootable vm

recover the vmdk partitions with partition wizard

put the vmdk back to the bad vm

boot into win server 2016 iso

select repair your computer

open cmd

type diskpart

type list vol

type select vol x   << x is the sys reserved vol

type active

type copy f:\BootMgr c:\ at the command prompt. One of two things will happen:

If the file Bootmgr already exists on C:, type N to avoid overwriting it.

If the file Bootmgr doesn't already exist on C:, it will automatically be copied.

type Bootrec /Fixmbr at the command prompt.

type Bootrec /Fixboot at the command prompt.

type Bootrec /rebuildBCD at the command prompt.

If BootRec /RebuildBCD succeeds, it will list any installations of Windows that it found. Press Y to accept and add them to the BCD.

The server is now configured to boot from the proper partition. Close the command prompt and reboot the system into normal mode

View solution in original post

Reply
0 Kudos
1 Reply
GodfatherX64
Enthusiast
Enthusiast
Jump to solution

thanks guys, fixed it

put the vmdk into another bootable vm

recover the vmdk partitions with partition wizard

put the vmdk back to the bad vm

boot into win server 2016 iso

select repair your computer

open cmd

type diskpart

type list vol

type select vol x   << x is the sys reserved vol

type active

type copy f:\BootMgr c:\ at the command prompt. One of two things will happen:

If the file Bootmgr already exists on C:, type N to avoid overwriting it.

If the file Bootmgr doesn't already exist on C:, it will automatically be copied.

type Bootrec /Fixmbr at the command prompt.

type Bootrec /Fixboot at the command prompt.

type Bootrec /rebuildBCD at the command prompt.

If BootRec /RebuildBCD succeeds, it will list any installations of Windows that it found. Press Y to accept and add them to the BCD.

The server is now configured to boot from the proper partition. Close the command prompt and reboot the system into normal mode

Reply
0 Kudos