sodcalculator

10 Tech How-To

Fix Error Code 36 on Mac: Finder, Disk, and Terminal Fixes

Guide 10-60176 · Updated · Step by step

Error code 36 on a Mac is a Finder-level error that appears when copying, moving, or reading files, typically stating “The Finder can’t complete the operation because some data in “[filename]” can’t be read or written.” The fix is to clear the file’s extended attributes, repair disk permissions, or use the Terminal to copy the file, depending on the cause. This guide walks through each method in order, from the quickest to the most thorough.

What Error Code 36 Actually Means

Error 36 is a legacy macOS error code that the Finder reports when it encounters a problem reading or writing a file’s metadata or data forks. In modern macOS, the most common trigger is a corrupted or incompatible extended attribute, especially the com.apple.quarantine attribute or a com.apple.FinderInfo entry. These attributes store extra data like “downloaded from the internet” flags, custom icons, or Spotlight comments.

Another frequent cause is a file that has been partially downloaded, transferred from a non-HFS/APFS drive (like a Windows-formatted USB stick), or synced through a cloud service that doesn’t preserve all metadata. The Finder’s copy engine is strict about metadata; when it can’t write an attribute to the destination, it aborts the entire operation and shows error 36.

Quick Fix: Clear Extended Attributes with xattr

The single most effective fix is to remove the problematic extended attributes from the file or folder. This works for most cases and takes less than a minute.

  1. Open the Terminal app (in /Applications/Utilities/).
  2. Type xattr -c (that’s a space after the “c”).
  3. Drag the problem file or folder from Finder into the Terminal window. The path will appear automatically.
  4. Press Return. You won’t see any confirmation if it succeeds.
  5. Try copying or moving the file again.

The -c flag clears all extended attributes. If you want to see what attributes are present before clearing them, run xattr -l /path/to/file first. If you’d rather remove only the quarantine attribute specifically, use xattr -d com.apple.quarantine /path/to/file.

Use Finder’s Get Info to Remove the Quarantine Flag

If you prefer not to use Terminal, a GUI-only approach works for files flagged as downloaded from the internet:

  1. Locate the file in Finder.
  2. Right-click (or Control-click) and select Get Info.
  3. Look for the “Open with” section and the “General” section. If there’s a line saying “This file was downloaded from the internet,” click the X next to that message (or the “Open Anyway” button on first launch).
  4. Close the Info window and try the copy again.

This only removes the quarantine attribute, not other metadata. If error 36 persists, move to the xattr command above.

Repair Disk Permissions and the Disk Itself

Sometimes error 36 is not about the file’s attributes but about the destination volume having a corrupted directory entry or permission issue. macOS includes a built-in repair tool:

  1. Open Disk Utility (in /Applications/Utilities/).
  2. Select the disk or volume that contains the destination folder (or the source, if the copy fails immediately).
  3. Click First Aid, then Run.
  4. Let it complete. It may take several minutes on large drives.

On modern macOS (10.11 and later), “Repair Disk Permissions” is no longer a separate button; First Aid handles both the file system structure and permissions. If First Aid finds and fixes errors, retry the copy. For external drives, try a different USB port or cable—a flaky connection can cause read/write errors that surface as error 36.

Copy with Terminal to Bypass Finder’s Metadata Checks

If the Finder consistently fails but you still need the data, the Terminal’s cp command copies the file’s data fork without insisting on preserving every extended attribute. This is a reliable workaround:

  1. Open Terminal.
  2. Type cp -R (the -R copies folders recursively).
  3. Drag the source file or folder into the window.
  4. Type a space, then drag the destination folder into the window.
  5. Press Return. The copy will proceed; you’ll see no output on success.

If you also want to preserve as much metadata as possible, use ditto instead: ditto /source /destination. Ditto is more forgiving than Finder but still tries to copy extended attributes. If ditto fails, plain cp will usually succeed. After copying, verify the file opens correctly—if it’s a document, open it; if it’s an app, try launching it.

Common Causes and Prevention

Error 36 most often appears in these scenarios:

  • Downloaded files: Safari and Chrome add the quarantine attribute to every download. If the download was interrupted, the attribute can be corrupt.
  • Files from Windows or Linux drives: NTFS and ext4 don’t store macOS extended attributes. When macOS writes a file to an exFAT or FAT32 drive, it may create a hidden ._ file to hold attributes. If that sidecar file is missing or corrupt, error 36 can occur.
  • Cloud-synced folders: Dropbox, OneDrive, and Google Drive sometimes strip or alter metadata during sync, leaving the local copy in an inconsistent state.
  • Large files over 4 GB on FAT32: FAT32 has a 4 GB per-file limit. Copying a larger file to such a drive will fail, though usually with a different error message.

To prevent recurrence, avoid interrupting transfers, eject external drives properly, and consider using APFS or exFAT for drives shared between Macs and PCs.

When the File Is on a Network Volume or Time Machine

If error 36 occurs when copying from a network share (SMB, AFP) or from a Time Machine backup, the cause is often the network protocol or the backup snapshot structure. For network volumes:

  • Try connecting with a different protocol (e.g., switch from SMB to AFP if the server supports it, or vice versa).
  • Copy the file to your Desktop first, then to the final destination.
  • Ask the server administrator to check for disk errors on the server side.

For Time Machine, do not modify the backup contents directly. Instead, use the Time Machine interface to restore the file to your Mac, then copy it from there. Directly copying from a backup bundle often triggers error 36 because of the special metadata used to track versions.

Frequently Asked Questions

Will clearing extended attributes delete my file’s custom icon or tags?

Yes, xattr -c removes all extended attributes, including custom icons, color tags, and “downloaded from” flags. The file’s content itself is untouched. If you only want to remove the quarantine flag, use xattr -d com.apple.quarantine instead.

Does error 36 mean my file is corrupted?

Not necessarily. The file’s data may be perfectly fine; only the metadata is causing the Finder to refuse the operation. After clearing attributes or using Terminal to copy, the file usually opens normally. If it doesn’t, the file itself may be damaged, and you’d need a backup.

Why does error 36 happen on one Mac but not another?

Different macOS versions handle extended attributes differently. An older Mac running macOS Mojave may ignore an attribute that macOS Sonoma rejects. Similarly, the destination drive’s format matters—APFS and HFS+ support attributes fully, while exFAT and FAT32 have limited support.

Can I prevent error 36 when copying from a Windows-formatted drive?

Use exFAT instead of NTFS for drives you share between Mac and Windows. macOS can read NTFS but not write to it without third-party software. When copying from an NTFS drive, first copy the file to your Mac’s internal drive, then to the final destination. This often avoids the metadata conflict.

What if the Terminal copy also fails?

If cp fails, the file’s data fork is likely damaged. Try using dd to read the raw bytes, or open the file in its original application and “Save As” to create a fresh copy. If the file is irreplaceable, consider data recovery software, but stop using the drive immediately to avoid overwriting.

Is error 36 the same as error -36 or error 36 in older macOS?

Yes, the numeric code is the same. Older macOS versions (before OS X Lion) used error -36 for “bad data” in the resource fork. Modern macOS displays it as error 36, but the underlying meaning—metadata read/write failure—is consistent.

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 →