Was doing regular Disk Utility checks and had this come up on my internal Mac-Data section:
It would say it repaired it and if I ran it again immediately it said it was fine. If I closed and reopen DU and ran it again however the same error message would show up.
Searching around the answer was to boot into Recovery and then run these commands:
diskutil unmountdisk /dev/disk#
fsck_apfs -oWT /dev/disk#
Tried doing that, but then kept getting: 'failed to enable crypto I/O mode for container /dev/rdisk4: Invalid argument'. I tried doing it on disk0 just as a test as well, and it gave me the same error strangely.
What is going on, and how can I fix this? The drive works okay, but I want to fix whatever is happening that's causing that error.
It would say it repaired it and if I ran it again immediately it said it was fine. If I closed and reopen DU and ran it again however the same error message would show up.
Searching around the answer was to boot into Recovery and then run these commands:
diskutil unmountdisk /dev/disk#
fsck_apfs -oWT /dev/disk#
Tried doing that, but then kept getting: 'failed to enable crypto I/O mode for container /dev/rdisk4: Invalid argument'. I tried doing it on disk0 just as a test as well, and it gave me the same error strangely.
What is going on, and how can I fix this? The drive works okay, but I want to fix whatever is happening that's causing that error.
Last edited: