macOS disk I/OHigh

Disk I/O Error on macOS: Causes and Fixes

This article helps diagnose and fix Disk I/O errors on macOS caused by read/write issues on HDD or SSD. Covers both software and hardware causes.

Medium

What Does a Disk I/O Error Mean on macOS

A Disk I/O (Input/Output Error) occurs when the macOS operating system cannot perform a read or write operation to the physical storage drive (SSD or HDD). In the console or system logs, this may appear as:

disk0s2: I/O error
disk1: Input/output error
I/O error on disk

Such an error is typically accompanied by:

  • Application freezes or crashes.
  • Inability to open or save files.
  • Slow system or application performance.
  • A "Could not complete the I/O operation" message when copying files.

The error indicates a problem at the level of interaction between the file system (APFS, HFS+) and the hardware storage device.

Common Causes

  1. File system corruption — improper shutdown, write failures, virus attacks.
  2. Hardware drive failure — SSD/HDD wear, controller failure, bad sectors.
  3. Cable or connector issues (especially for external drives) — oxidation, physical damage.
  4. Driver or cache conflicts — following a macOS update or third-party software installation.
  5. Drive overheating — leads to temporary controller malfunctions.
  6. Improper drive disconnection — e.g., using an external drive without safe ejection.

Solutions

Method 1: Using First Aid in Disk Utility

The built-in First Aid (diskutil) utility checks and repairs file system inconsistencies.

  1. Open Disk Utility (/Applications/Utilities/Disk Utility.app).
  2. In the left column, select the physical disk (e.g., "Apple SSD AP0256J"), not the partition (volume).
  3. Click the First Aid button and confirm to run.
  4. Wait for completion. If First Aid cannot fix the error, it will suggest creating a new partition (this will result in data loss).

⚠️ Important: For the system (startup) disk, First Aid may not launch. In this case, restart into Recovery Mode (Cmd+R at startup) and run First Aid from there.

Method 2: Checking and Repairing via Terminal (fsck)

If First Aid doesn't help, use the fsck (file system check) command in Recovery Mode.

  1. Restart your Mac while holding Cmd+R until the Apple logo appears.
  2. From the top menu, select Utilities → Terminal.
  3. Identify the disk identifier with:
    diskutil list
    
    Example output:
    /dev/disk0 (internal, physical):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *512.1 GB   disk0
       1:                        EFEF 512.1 GB   disk0s1
       2:                 Apple_APFS Container disk1         512.1 GB   disk0s2
    
    In this case, the system volume is inside the APFS container disk1. For APFS, the fsck_apfs command is applied to the container.
  4. For APFS, run:
    fsck_apfs -y /dev/disk1
    
    For HFS+ (older systems):
    fsck_hfs -y /dev/disk0s2
    
    The -y flag automatically answers "yes" to repair prompts.
  5. If the command finds and fixes errors, restart your Mac normally.

Method 3: Checking Drive Health (SMART)

I/O errors are often related to SSD/HDD wear. Check SMART attributes.

  1. Install smartmontools via Homebrew (if you don't have Homebrew, install it from the official site):
    brew install smartmontools
    
  2. Find the disk identifier (disk0, disk1, etc.) using diskutil list.
  3. Run:
    sudo smartctl -a /dev/disk0
    
  4. Look for in the output:
    • SMART overall-health self-assessment test result: PASSED — good.
    • Reallocated_Sector_Ct — count of reallocated sectors. >0 is a warning.
    • Current_Pending_Sector — sectors pending reallocation. >0 means the drive is likely to fail soon.
    • Media and Data Integrity Errors — media integrity errors.

If health is FAILED or reallocated sector counts are high, the drive needs replacement.

Method 4: Reset SMC and NVRAM (for Intel Macs)

Sometimes I/O errors are related to power management or cache issues.

SMC Reset (System Management Controller):

  1. Shut down your Mac.
  2. For a T2-chip MacBook: hold Ctrl+Option+Shift (left side) for 7 seconds, then press and hold the power button for another 7 seconds. Release all buttons, wait a few seconds, and turn on.
  3. For Mac mini/iMac: unplug the power cable for 15 seconds, then reconnect.

NVRAM Reset:

  1. Turn on your Mac and immediately hold Option+Cmd+P+R for about 20 seconds (on Macs with a T2 chip, hold until you hear the second startup chime or see the Apple logo).

Method 5: Reinstall macOS

If the error is caused by corrupted system files, reinstall macOS without erasing the disk.

  1. Restart into Recovery Mode (Cmd+R).
  2. Select Reinstall macOS.
  3. Follow the instructions. The process installs a new copy of the system over the old one, preserving user data.
  4. After reinstalling, run First Aid on the system disk again.

Method 6: Hardware Diagnostics and Drive Replacement

If all software methods fail and SMART shows errors:

  1. Create a bootable external macOS installer (via Create Installer).
  2. Boot from it and check if the error reproduces. If it doesn't — the problem is with the main internal drive.
  3. For MacBook: SSD replacement may require soldering (newer models) or a simple module swap (older ones). Contact an authorized service provider.
  4. For Mac desktop: check SATA/PCIe cable connections, try a different port.

Prevention

  • Regular backups using Time Machine or third-party solutions.
  • Safe ejection of external drives via the Finder icon or diskutil eject.
  • Temperature control — avoid using Mac on soft surfaces, clean ventilation grilles.
  • Keep macOS and firmware updated — Apple regularly releases updates fixing disk driver issues.
  • Avoid interrupting write operations (power loss, forced reboot during copying).
  • Periodic disk health checks with smartctl (every 3-6 months).

Frequently Asked Questions (FAQ)

What if First Aid won't run on the system disk?

Restart into Recovery Mode (Cmd+R) and run First Aid from there. This allows checking the disk that isn't in use by the running system.

Can a virus cause a Disk I/O error?

On macOS, malware rarely directly damages the file system, but it can overload the disk with intensive operations, leading to failures. Install antivirus software and scan your system.

How to distinguish between hardware and software errors?

  • Hardware: SMART attributes degrade, errors occur on different partitions/disks, the drive makes unusual noises (clicks, grinding for HDDs).
  • Software: Error occurs on a specific file/folder, after software crashes, First Aid often helps.

Can I continue using a disk with I/O errors?

Not recommended. This can lead to irreversible data damage, sudden drive failure, and data loss. At minimum, immediately back up your data.

Is formatting the disk necessary to fix it?

Formatting (erasing) is a last resort that guarantees all data will be lost. First, try all recovery methods. If you must format the disk, restore data from a backup.

F.A.Q.

What is a Disk I/O error on Mac?
Can Disk I/O errors be fixed without data loss?
Why does the error appear after a macOS update?
Should I contact a service center?

Hints

Back up your data
Run First Aid in Disk Utility
Perform check in Recovery Mode
Use Terminal for fsck (if First Aid didn't help)
Check drive health (SMART)
Reinstall macOS (last resort)
FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community