sodcalculator

10 Tech How-To

Invalid MS-DOS Function Error: Fixes That Work

Guide 10-60922 · Updated · Step by step

The “Invalid MS-DOS function” error (error code 53) appears when Windows tries to access a drive, file, or device using an outdated MS-DOS system call that the current file system or driver does not support. This usually happens on removable drives, network shares, or after a Windows update, and the fix typically involves updating drivers, changing the drive letter, or running a disk check.

What Causes the Invalid MS-DOS Function Error

This error is a holdover from the days when MS-DOS managed file operations. Windows still supports many legacy system calls for compatibility, but modern file systems (NTFS, exFAT, FAT32) and hardware drivers sometimes reject those old requests. Common triggers include:

  • USB flash drives or external hard drives formatted with an incompatible file system
  • Network drives mapped with an old protocol (SMB 1.0 vs. SMB 2.0/3.0)
  • Outdated or corrupted storage drivers after a Windows feature update
  • Drive letter conflicts or a drive that is not properly initialized
  • Antivirus or security software blocking legacy file operations

How the Error Works in Windows

When you double-click a file or run a command that accesses a drive, Windows sends a request to the file system driver. If that driver does not recognize the function code (like 0x35 for device I/O control), it returns error 53. The message may appear in File Explorer, Command Prompt, or a third-party program. It is not a sign of data loss; it is a communication failure between the OS and the storage device.

First Fixes to Try

  1. Restart the computer. A simple reboot clears temporary driver glitches.
  2. Try a different USB port. Front-panel ports sometimes have power or driver issues.
  3. Connect the drive to another computer. If it works there, the problem is local.
  4. Run the hardware troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters, then run “Hardware and Devices.”

Update or Reinstall Storage Drivers

Outdated or corrupted drivers are the most common cause. Open Device Manager (right-click the Start button), expand “Disk drives” and “Universal Serial Bus controllers.” Right-click the problematic device and select “Update driver > Search automatically.” If that fails, right-click and choose “Uninstall device,” then restart—Windows will reinstall the driver. For network drives, update the network adapter driver under “Network adapters.”

Check the Drive’s File System and Format

If the drive is formatted with an old file system like FAT16, Windows may not handle it well. Right-click the drive in File Explorer, select “Properties,” and look at the “File system” line. If it says FAT or FAT32, you can convert it to NTFS using Command Prompt (as administrator): convert E: /fs:ntfs (replace E: with your drive letter). This will not erase data, but backup first. If the drive is brand new or empty, reformatting to NTFS or exFAT is a reliable fix.

Run Disk Check and SFC

Corrupted file system structures can also trigger error 53. Open Command Prompt as administrator and run:

  • chkdsk E: /f /r (replace E: with the drive letter) to fix file system errors and bad sectors.
  • sfc /scannow to repair Windows system files.
  • DISM /Online /Cleanup-Image /RestoreHealth to fix Windows image issues.

These commands may take a while. If chkdsk reports errors that it cannot fix, the drive may be failing—back up data immediately.

Change the Drive Letter or Re-add Network Drive

A drive letter conflict can cause Windows to send the wrong function call. To change a drive letter: open Disk Management (right-click Start > Disk Management), right-click the drive, select “Change Drive Letter and Paths,” then assign a new letter. For network drives, disconnect and remap: in File Explorer, right-click the network drive and select “Disconnect,” then map it again with a new letter using “Map network drive.” If you are using an old SMB 1.0 connection, enable SMB 1.0 in Windows Features (not recommended for security) or upgrade the server to SMB 2.0+.

Disable Antivirus or Security Software Temporarily

Some security programs intercept file operations and block legacy calls. Temporarily disable your antivirus (or its real-time protection) and test the drive. If the error goes away, add an exception for the drive or the specific program. Do not keep your antivirus disabled; re-enable it after testing.

Frequently Asked Questions

Will I lose data if I run chkdsk?

Chkdsk can repair file system errors without deleting your files, but if it finds severe corruption, it may move damaged data to a folder called found.000. Always back up important files before running it.

Why does the error only happen on USB drives?

USB drives often use older controllers and drivers. After a Windows update, the driver stack may change, and the old MS-DOS function call is no longer recognized. Updating the USB controller driver or using the “Safe Removal” option before unplugging can help.

Can I fix this without formatting the drive?

Yes, in most cases. Driver updates, chkdsk, and changing the drive letter resolve the issue without formatting. Formatting is a last resort because it erases all data.

Does this error mean my hard drive is dead?

Not necessarily. Error 53 is a software-level communication error. If chkdsk reports bad sectors or the drive makes clicking noises, then hardware failure is possible. Otherwise, it is usually a driver or file system problem.

Is this error related to the “Invalid function” error in Command Prompt?

Yes, they are the same error (code 53). It appears when a command tries to use a function that the device driver does not support, such as using copy on a network path that does not support certain operations.

Prevention and Long-Term Tips

  • Keep Windows and drivers updated via Windows Update.
  • Use “Safely Remove Hardware” before unplugging USB drives.
  • Format new drives with NTFS (Windows) or exFAT (cross-platform).
  • Avoid using old network protocols unless absolutely necessary.
  • Run chkdsk periodically on external drives.

If none of these steps work, the issue may be with the drive’s controller or the motherboard’s USB port. Test the drive on another computer to isolate the problem. If it fails everywhere, the drive may need professional data recovery, but that is rare for this specific error.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →