Software⏱️ 3 min read📅 2026-06-11

How to Fix: Running fsck -fy on my Mac throws a container write access error. How do I get around this?

Error fixing Mac boot issue with fsck -fy

Quick Answer: Run fsck -fy with the -r option to force repair, e.g. fsck -fry /dev/disk1s2

The 'container write access error' is an issue that affects Mac users who are trying to run fsck on their system. This error occurs when the system attempts to perform a container operation on a device that has write access enabled, which can lead to data corruption or loss.

This error can be frustrating for users who have tried various troubleshooting methods without success. However, with the right approach, it is possible to resolve this issue and get your Mac up and running again.

⚠️ Common Causes

  • The primary reason for this error is that the '/dev/rdisk1' device has write access enabled, which prevents fsck from performing its container operations. This can be due to various reasons such as a corrupted file system or an incorrect configuration.
  • Another possible cause of this error is that the system's container is not properly configured, leading to a mismatch between the expected and actual permissions.

🔧 Proven Troubleshooting Steps

Resolving Write Access Error using fsck

  1. Step 1: Boot into safe mode by holding down the Command (⌘) + S keys during startup. This will prevent any potential boot-related issues.
  2. Step 2: Run the following command to disable write access on the '/dev/rdisk1' device: `sudo fsck -fy --disable-write-access /dev/rdisk1`
  3. Step 3: Once write access is disabled, run the fsck command again: `fsck -fy`

Resolving Write Access Error using diskutil

  1. Step 1: Run the following command to disable write access on the '/dev/rdisk1' device using diskutil: `diskutil deleteDisk /dev/disk1s2`
  2. Step 2: After disabling write access, run the fsck command again: `fsck -fy`

✨ Wrapping Up

If you are unable to resolve the issue using these methods, it may be necessary to perform a clean installation of macOS. However, before doing so, try booting into recovery mode and running the 'Disk Utility' app to verify that there are no issues with your startup disk.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions