Please display results for these commands:
bcdedit | find "osdevice"
DISM /image:X:\ /cleanup-image /revertpendingactions
(replace X with the drive letter for the partition)
(reboot)
bootrec /fixboot
bootrec /scanos
bootsect /nt60 sys
(reboot)
Why should I execute bootrec? isn't it for MBR disks? I could if you want me to run windows this way.
------------------------------
result from first command:
G:\>bcdedit | find "osdevice"
osdevice partition=C:
result from second command:
G:\>dism /image:c:\ /cleanup-image /revertpendingactions
Deployment Image Servicing and Management tool
Version: 10.0.19041.1
Image Version: 10.0.19042.662
The scratch directory size might be insufficient to perform this operation. This can cause unexpected behavior.
Use the /ScratchDir option to point to a folder with sufficient scratch space. The recommended size is at least 1024 MB.
Reverting pending actions from the image...
Error: 1009
An error occurred reverting the pending actions from the image.
For more information, review the log file.
The DISM log file can be found at X:\windows\Logs\DISM\dism.log
G:\>dism /image:c:\ /scratchdir:c:\scratch /cleanup-image /revertpendingactions
Deployment Image Servicing and Management tool
Version: 10.0.19041.1
Image Version: 10.0.19042.662
Reverting pending actions from the image...
Error: 1009
An error occurred reverting the pending actions from the image.
For more information, review the log file.
The DISM log file can be found at X:\windows\Logs\DISM\dism.log
G:\>
-------------------------
I have scratchdir as c:\scratch that's how I created it. And at first i didn't specify the scratchdir directory, second try i did.
Maybe you will see something in the log from dism atached.