Windows 8.1 Defrag the parameter is incorrect 0x80070057

artins90

New Member
Messages
8
I tried to upgrade to windows 8 through the store and if failed horribly, the pc refused to boot a an error code I that don't remember so I decided to wipe everything and install Windows 8.1 from a usb drive. Everything was fine for the past week and a half until 2 days ago when the disk defragmentation tool decided to stop working, I ran the tool many times after installing 8.1 and it has always worked but now I get a 0x80070057 error which should mean that the size of my partition is wrong. I did a chkdsk /r /f that took 2 hours to complete and it didn't find any errors and I also ran a sfc /scannow with no luck.

Here is a screenshot
Capture.PNG

After spending some time googling for the issue I found out that there are many Windows 8.1 users with the same issue and on the microsoft forums no one seems to be able to fix this. From what I understand this seems to be related to the size values of the partition which according to the defragger are wrong but the tool was working before and I didn't edit the partition in any way.
 

My Computer

System One

  • OS
    Windows 8.1

My Computer

System One

  • OS
    Windows 7 x64/ Windows 8.1 x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Self Made
    CPU
    Intel i5 2500K @ 3.3GHz
    Motherboard
    Asus Z68 V Pro
    Memory
    16GB DDR 3
    Graphics Card(s)
    HIS 6870 ICEq edition
    Monitor(s) Displays
    Samsung 22" Display
    Screen Resolution
    1920X1080
    Hard Drives
    WD 1 TB
    Seagate 2 TB
    WD 320 GB
    PSU
    coolermaster 750 W
    Case
    Coolermaster HAF 912
    Keyboard
    TVS Gold
    Mouse
    Samsumg
    Internet Speed
    4 Mbps
    Browser
    Google Chrome
    Antivirus
    AVG 2013 IS
I went through the thread you linked but the problem is slightly different, I'm running a mechanical drive and the partition that causes the error is the main system partition C: not the recovery partition
 

My Computer

System One

  • OS
    Windows 8.1
So you updated to 8.1 and it worked for a few weeks. So, what could have happened during that time? A failed system backup? New system restore points created? Not sure but I would try the following on a hunch because your defrag results sure look healthy to me.

Manually turn off system restore, delete all restore points, turn back on, manually create a new restore point.

This will delete all restore points and backup references in the admin catalog so be advised of same:

From an elevated Windows Power Shell command prompt; wbadmin delete catalog

Just wild guesses...
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    PC/Desktop
    CPU
    Intel G2020
    Motherboard
    ASRock B75M-DGS R2.0
    Memory
    8GBs @ 1333 MHz
    Hard Drives
    Samsung 840 EVO
    PSU
    400w
    Internet Speed
    57/11
I just tried to run it after deleting the system restore, I clean my hardrive frequently deleting all restore points except the latest one and I've already tried to revert to the latest restore point but it didn't fix the defrag problem so nothing went lost, after deleting and disabling system restore it made it through till pass 4 and then it stopped, I checked the event log and it listed the defrag error as usual
 

My Computer

System One

  • OS
    Windows 8.1
Going through the event viewer I spotter 2 cryptographic service errors could they be related to the defrag error?
Event 513 CAPI2
Cryptographic Services failed while processing the OnIdentity() call in the System Writer Object.

Details:
AddLegacyDriverFiles: Unable to back up image of binary SmartDefragDriver.


System Error:
The system cannot find the file specified.
 

My Computer

System One

  • OS
    Windows 8.1
Event 513 CAPI2
Cryptographic Services failed while processing the OnIdentity() call in the System Writer Object.

Details:
AddLegacyDriverFiles: Unable to back up image of binary SmartDefragDriver.

Those are assocated with a Win 8.1 backup using Macrium Reflect Free. They are a know issue and can be ignored. However, I still have a funny feeling that, somehow, your issue may be related to a previous attempt to force a defrag on the system reserved (recovery) partition. If I am correct, here is a simple test to see if that corruption exists:

Get a blank USB drive and try to create a recovery drive. This will attempt to access the Recovery Partition to create your Recovery Drive. If this fails, then your Recovery Partition is damaged. If your Recovery Drive is successfully created, then the partition is probably OK. Do the test and report the results please:

Screenshot (17).png
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    PC/Desktop
    CPU
    Intel G2020
    Motherboard
    ASRock B75M-DGS R2.0
    Memory
    8GBs @ 1333 MHz
    Hard Drives
    Samsung 840 EVO
    PSU
    400w
    Internet Speed
    57/11
I've never installed Macrium on this PC, the recovery drive failed on the first attempt during the format phase but then on the second try it worked fine, I hope my usb drive isn't dying lol
 

My Computer

System One

  • OS
    Windows 8.1
I've never installed Macrium on this PC, the recovery drive failed on the first attempt during the format phase but then on the second try it worked fine, I hope my usb drive isn't dying lol

OK then, maybe those messages are being generated by some other function or a failed System Image attempt. Anyway, I would ignore them for now and focus on your defrag issue. Here is what I think might be happening and here is what I think you should try next. However, if you don't wish to try it, then I'm out of ideas so here goes:

First off, I noticed the failure message after your command line run; however, you did not ever state that the message was also received when you invoked a defarg on C via the normal user interface. You said it got to pass 4 and just stopped/hung; correct? If so, given this is a 1TB drive, I would start that function again before bedtime and wake up in the morning to see if it ever completed, and if it is hung in the same spot after 8 hours, then I would say you have a legitimate issue. I can tell you first hand, that a large spindle drive, could take hours to complete and, many times, may appear to be stuck while doing so.

You might also want to diasble all startup programs (including your AV software) if you decide to do this overnight attempt. BTW, I guess your Recovery Partition is OK after all. Good luck in finding a solution but I somehow feel the old saying "patience is a virtue" may really apply here.
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    PC/Desktop
    CPU
    Intel G2020
    Motherboard
    ASRock B75M-DGS R2.0
    Memory
    8GBs @ 1333 MHz
    Hard Drives
    Samsung 840 EVO
    PSU
    400w
    Internet Speed
    57/11
Actually it didn't hang it just reverted to showing the fragmentation percentage and recorded the error in the event log. Do you think this error could cause other problems in the future like making my partition corrupted? I have installed auslogics disk defragger for now and it works I guess I'll have to wait for either Microsoft to solve the issue but I doubt they'll fix it the thread on their site is still unanswered, I appreciate your help so I'll give you a thumbs up for the effort :).
 

My Computer

System One

  • OS
    Windows 8.1
Thank you but I hesitate to venture any more guessing at this point. Good luck.
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    PC/Desktop
    CPU
    Intel G2020
    Motherboard
    ASRock B75M-DGS R2.0
    Memory
    8GBs @ 1333 MHz
    Hard Drives
    Samsung 840 EVO
    PSU
    400w
    Internet Speed
    57/11
Back
Top