Event ID 257
The volume (C:) was not optimized because an error was encountered:
The parameter is incorrect. (0x80070057)
I have Windows 8.1 64 Bit (HDD) and lately I noticed the above event in my Event Viewer. I get every day 3 or 4 of these errors. Anyone found a solution to this ?
- SFC /SCANNNOW didn't solve the problem: Resource Protection did not find any integrity violations.
Solutions that I did not try but might work
Basic steps to use diskpart to assign a drive letter to the system partition
Open an elevated command prompt.
Type diskpart and press Enter. You leave the standard command prompt and enter the diskpart utility. (Nothing exciting happens, don't worry.)
Type list disk and press Enter to get a listing of the disks on the system. (More accurately, the disks visible to diskpart.) Figure out which disk contains the partition you want to assign a drive letter to.
Type select disk X, where X is the applicable disk number.
Type list partition and press Enter to get a listing of recognized partitions on disk X (from step 4). Your desired partition will the listed there. If not, go outside and enjoy nature.
Type select partition Y, where Y is the applicable partition number.
Type assign letter=Z, where Z is the drive letter you wish to assign. Diskpart should reply: DiskPart successfully assigned the drive letter or mount point.
Once the system recognizes the drive letter (a reboot may help; as I mentioned, I did not reboot before the trim worked, but did have to wait awhile), you should be able to defrag/trim.
To unassign the drive letter:
A. Carry out steps 1 - 6 above.
B. Type remove and press Enter. Diskpart should reply: DiskPart successfully removed the drive letter or mount point.
I hope this helps.
I am not entirely sure why it helped, but after I had the same issue (0x80070057 during defrag, chkdsk reports no errors) reseting the journal seemed to fix it.
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
fsutil usn deletejournal /D C:
fsutil usn createjournal m=1000 a=100 C:
Maybe it helps someone else as well.
The answers are from here