You are currently offline, waiting for your internet to reconnect

Common Cause of "Error Performing Inpage Operation" Explained

This article was previously published under Q141117
This article has been archived. It is offered "as is" and will no longer be updated.
When copying files from a diskette on a Windows computer, you mayoccasionally experience an "Error performing inpage operation".

In this scenario, this error usually indicates physical problems on thediskette media, and is probably unrelated to paging operations involvingthe Windows paging file, despite the wording of the error message.
Copy utilities commonly use the CopyFile() Win32 API to copy files.

For small files (where small is arbitrarily defined in the Windows source code as less than 256 kilobytes) the Windows CopyFile() API doesnot actually open the source file and read from it using the CreateFile()and ReadFile() APIs as might be expected.

Instead, the CopyFile() API creates a File Mapping and maps the file intovirtual memory. Data is then read from the file by simply accessing thismemory. As the memory is accessed, the required portions of the file arepaged into memory on demand. This leverages the paging functionality of theWindows Virtual Memory Manager, but introduces the jargon of Paging intothis particular file copy scenario.

Consequently, if I/O errors occur while processing a CopyFile() API for a"small" file, they will not be reported as File I/O Errors. Instead, asthese errors are detected in what is effectively a paging operation (albeitunrelated to the Windows paging file), they will be reported as "Errorperforming inpage operation".

Additionally, errors caused by network connectivity can cause these errors.Mismatched MTU sizes or truncation of a packet at a router can result inthis error when files larger than the largest packet size are copied overthe network. In essence, the network connection is the media that has thephysical problem.
For more information on memory-mapped files, refer to the following:
  • Helen Custer's "Inside Windows NT", Section 6.2.1, "Sharing Memory".
  • The Win32 Programmer's Reference, Volume 2, Chapter 47, "File Mapping".
prodnt copy scopy xcopy robocopy winfile file manager

Article ID: 141117 - Last Review: 12/04/2015 12:36:19 - Revision: 2.1

Microsoft Windows NT Server 4.0, Terminal Server Edition, Microsoft Windows 2000 Server, Microsoft Windows 2000 Advanced Server, Microsoft Windows 2000 Professional Edition, Microsoft Windows 2000 Datacenter Server, Microsoft BackOffice Server 4.0, Microsoft Windows NT Server 4.0 Enterprise Edition, Microsoft Windows NT Advanced Server 3.1, Microsoft Windows NT Server 3.5, Microsoft Windows NT Server 3.51, Microsoft Windows NT Server 4.0 Standard Edition, Microsoft Windows NT Workstation 3.1, Microsoft Windows NT Workstation 3.5, Microsoft Windows NT Workstation 3.51, Microsoft Windows NT Workstation 4.0 Developer Edition, Microsoft Windows NT Advanced Server 3.1

  • kbnosurvey kbarchive kbnetwork KB141117