Windows 8 and 8.1 Forums


Windows 8.1 Defrag the parameter is incorrect 0x80070057

  1. #1


    Posts : 8
    Windows 8.1

    Windows 8.1 Defrag the parameter is incorrect 0x80070057


    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
    Click image for larger version

    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 System SpecsSystem Spec

  2. #2


    India
    Posts : 1,034
    Windows 7 x64/ Windows 8.1 x64


    Hi artins, Welcome.

    This might be able to help. This is another thread with same issue. You can go through that.

    SSD defrag issues in Windows 8.1 RTM

    In this thread you will find a tutorial, you can check that as well. Here is the link. Optimize Drives Schedule - Change in Windows 8
      My System SpecsSystem Spec

  3. #3


    Posts : 8
    Windows 8.1


    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 System SpecsSystem Spec

  4. #4


    Posts : 2,191
    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 System SpecsSystem Spec

  5. #5


    Posts : 8
    Windows 8.1


    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 System SpecsSystem Spec

  6. #6


    Posts : 8
    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 System SpecsSystem Spec

  7. #7


    Posts : 2,191
    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:

    Click image for larger version
      My System SpecsSystem Spec

  8. #8


    Posts : 8
    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
      My System SpecsSystem Spec

  9. #9


    Posts : 2,191
    Windows 8.1


    Quote Originally Posted by artins90 View Post
    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 System SpecsSystem Spec

  10. #10


    Posts : 8
    Windows 8.1


    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 System SpecsSystem Spec

Page 1 of 2 12 LastLast
Windows 8.1 Defrag the parameter is incorrect 0x80070057
Related Threads
My external 3T disk runs fine on Windows 7. When I connected (first time) to my Windows 8.1 desktop (EFI/EUFI BIOS) it detects the drive but gets parameter incorrect msg. In the System eventlog there were many entries with error Event ID 51. Windows didn't stop trying to access the disk. PC...
Windows 8.1 Installation Error: 0x80070057
I am creating an image vhd using windows 7 Enterprise booting from USB to install Windows 8. The laptop is a 64 bit machine. I do create the image but when I try to customize and format the disk it generates the above error. I haven't successfully found a forum that will point to me what is...
error code 0x80070057 in Installation & Setup
Hi recently my laptop got crashed and was not starting then i decided to install windows 7 while booting the process is dead slow and al last it was ending up showing an error 0x80070057 pls help me . Im not getting what to do.
Good afternoon, I'm running a dual display setup with a 19" widescreen and a 17" 4:3, and have recently upgraded to Windows 8. Prior to upgrading, my 17" display was set at 1280x1024, and the 19" at 1440x900. After upgrading, the 19" has defaulted to a "native" 1024x768 (which is obviously...
Hi there to activate Enterprise version of Windows you can get a prompt box to enter your product key by using in elevanted or administrator mode the cmd SLUI.EXE 3 Important you need the 3 parameter or you won't get the window where you can enter the product key I wasted 20 mins on this...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook