Share via

optimize drives The parameter is incorrect. (0x80070057)

Anonymous
2013-07-21T15:58:57+00:00

cant optimize one of my storage drives. its starts of analyzing drive then just never actually does a defrag.

in event viewer im getting this error for the drive in question: "was not optimised because an error was encountered: The parameter is incorrect. (0x80070057)".

the drive passes error checking with no problems.

any help would be greatly appreciated

Windows for home | Previous Windows versions | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2014-04-01T17:24:55+00:00

This issue is officially corrected by Microsoft. Go here to get the Hotfix:HotFix for Event Log Error 257

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2014-02-10T19:48:47+00:00

I finally found a solution that worked for me here:

http://social.technet.microsoft.com/Forums/en-US/6d782ade-f4de-43bf-8cea-647828b35757/strange-defrag-error-0x80070057?forum=winserverfiles

Open an Administrator command prompt and make use of fsutil:

fsutil usn deletejournal /D <volume pathname>

fsutil usn createjournal m=<max-value> a=<alloc-delta> <volume pathname>

Eg :

fsutil usn deletejournal /D C:

fsutil usn createjournal m=1000 a=100 C:

After using these commands I was able to defragment C: without an error showing up in the event viewer. I'm not sure if this is a permanent or temporary fix, and someone mentioned in that thread that it didn't work with a server so YMMV.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

47 additional answers

Sort by: Most helpful
  1. Anonymous
    2013-11-06T00:06:49+00:00

    I get the same error in the Event Viewer:

    The volume Windows (C:) was not optimized because an error was encountered: The parameter is incorrect. (0x80070057)

    but I only have HDDs, no SSD. None of the solutions in this thread have worked for me. The error only pops up on my C: drive and CHKDSK and SMART tests don't show any problems. Anyone else have other suggestions?

    Your hidden partitions (which can be viewed in Disk manager) are being defragged which should not happen, just right click your drive(s) (SSD or HDD)

    Uncheck optimize these partition, just optimize drives that have a letter assigned to them

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2013-10-27T18:59:57+00:00

    I have to say the "advice" given in this thread, even by supposedly knowledgeable MS people, is abominable!

    The problem is that (for the first time for me, after Win 8.1 update), the attempt to optimize (aka Trim) the SSD System Reserved Partition, under Windows 8.1 with defrag, whether automatically or manually, whether using command line prompt or Task Scheduler: SIMPLY WON'T WORK.

    I have read across the internet about this and no-one has provided a reasonable solution.

    I did not have this problem until updating a fresh Win8.0-from-DVD- Pro 64 bit installation to Win8.1 through the MS "store."

    Please, MS, someone there who knows what's going on, fix this.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2013-08-13T15:03:07+00:00

    tried all the above, finally reinstalled os and it still it has the same problem.

    cant understand it as Error checking on the drive checks out ok

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments