You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

disk error keeps returning, do I need a new Mac?

I'm trying to figure out if I need a new Mac. I keep getting the following error when I run First Aid. I can repair it but then the error appears a few hours later. My 2018 MacMini is almost 4 years old.


```


/dev/rdisk1s1: ** Checking snapshot 11 of 12 (com.apple.TimeMachine.2023-07-08-182610.local)

/dev/rdisk1s1: warning: mismatch between extentref entry reference count (0) and calculated fsroot entry reference count (-1) for extent (75965840 + 4)

/dev/rdisk1s1: warning: mismatch between extentref entry reference count (0) and calculated fsroot entry reference count (-1) for extent (76696330 + 8)

/dev/rdisk1s1: ** Checking snapshot 12 of 12 (com.apple.TimeMachine.2023-07-08-192548.local)

/dev/rdisk1s1: error: mismatch between extentref entry reference count (0) and calculated fsroot entry reference count (1) for extent (75965840 + 4)

/dev/rdisk1s1: error: mismatch between extentref entry reference count (0) and calculated fsroot entry reference count (1) for extent (76696330 + 8)

/dev/rdisk1s1: ** Checking the document ID tree.

/dev/rdisk1s1: ** Checking the fsroot tree.

/dev/rdisk1s1: ** Checking the extent ref tree.

/dev/rdisk1s1: ** Verifying volume object map space.

/dev/rdisk1s1: ** The volume /dev/rdisk1s1 was found to be corrupt and needs to be repaired.

/dev/rdisk1s1: ** Verifying allocated space.

/dev/rdisk1s1: ** Performing deferred repairs.

/dev/rdisk1s1: error: Unable to perform deferred repairs without full space verification

/dev/rdisk1s1: error: Try running fsck against the entire APFS container instead of a volume

/dev/rdisk1s1: ** The volume /dev/rdisk1s1 could not be verified completely.

/dev/rdisk1s1: Sat Jul 8 20:09:48 2023

```


smartctl from smartmontools shows the following:


```

smartctl -a disk0

smartctl 7.3 2022-02-28 r5338 [Darwin 22.5.0 x86_64] (local build)

Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org


=== START OF INFORMATION SECTION ===

Model Number:           APPLE SSD AP0512M

Serial Number:           C078504002HJRFYAB

Firmware Version:         1296.120

PCI Vendor/Subsystem ID:      0x106b

IEEE OUI Identifier:        0x000000

Controller ID:           0

NVMe Version:           <1.2

Number of Namespaces:       1

Local Time is:           Sun Jul 9 20:22:36 2023 ADT

Firmware Updates (0x02):      1 Slot

Optional Admin Commands (0x0004): Frmw_DL

Optional NVM Commands (0x0004):  DS_Mngmt

Maximum Data Transfer Size:    256 Pages


Supported Power States

St Op  Max Active  Idle RL RT WL WT Ent_Lat Ex_Lat

 0 +  0.00W   -    -  0 0 0 0    0   0


=== START OF SMART DATA SECTION ===

SMART overall-health self-assessment test result: PASSED


SMART/Health Information (NVMe Log 0x02)

Critical Warning:         0x00

Temperature:            49 Celsius

Available Spare:          100%

Available Spare Threshold:     99%

Percentage Used:          11%

Data Units Read:          355,382,704 [181 TB]

Data Units Written:        237,678,387 [121 TB]

Host Read Commands:        7,371,234,957

Host Write Commands:        3,890,298,980

Controller Busy Time:       0

Power Cycles:           449

Power On Hours:          4,191

Unsafe Shutdowns:         277

Media and Data Integrity Errors:  0

Error Information Log Entries:   0


Read 1 entries from Error Information Log failed:

GetLogPage failed: system=0x38, sub=0x0, code=745


bash-3.2$

```

```

MacBook Pro 13″

Posted on Jul 9, 2023 5:04 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 8, 2023 10:23 AM

This was consistently reproducible until sometime recently. I am currently on 13.5.2 and the problem has disappeared. I see that the version of Disk Utility I am using is 22.6. It's modification date is Sep 2 as is the date for Time Machine.app so maybe there was a bug and the new version of one or both fixed it.

Similar questions

10 replies
Question marked as Top-ranking reply

Sep 8, 2023 10:23 AM in response to George Colpitts

This was consistently reproducible until sometime recently. I am currently on 13.5.2 and the problem has disappeared. I see that the version of Disk Utility I am using is 22.6. It's modification date is Sep 2 as is the date for Time Machine.app so maybe there was a bug and the new version of one or both fixed it.

Jul 9, 2023 7:54 PM in response to George Colpitts


1) Startup in macOS Recovery Mode, open Disk Utility and run First Aid.

see > Repair a storage device in Disk Utility on Mac - Apple Support


Note: If you’re checking your startup disk or startup volume, restart your computer in macOS Recovery. See the Apple Support article About macOS Recovery on Intel-based Mac computers. Next, select Disk Utility in the macOS Recovery window, then click Continue. If you check your startup volume (Macintosh HD), make sure you also check your data volume (Macintosh HD - Data).


Then post a screenshot or copy and paste the Disk Utility report.

________________________________


2) Get and run EtreCheckPro on your 2018 Mac mini.

see > https://etrecheck.com/en/index.html


Then post the EtreCheckPro report using the following instructions,

at > How to use the Add Text Feature When Post… - Apple Community

________________________________


3) Third-party Utilities, AV-ware, Cleaning-ware, Optimizing-ware and VPN's can reek all sorts of havoc on macOS and should be avoided.


macOS has built in Security and is self Cleaning, it does not need help to stay safe, clean and fast.

see > macOS - Security - Apple

Jul 9, 2023 8:58 PM in response to den.thed

Backup your data:

Backup now, or forever hold your peace - … - Apple Community


Run http://www.binaryfruit.com/ DriveDX to make sure your hard drive isn't in poor health.


If the hard drive is healthy, get a copy of Alsoft Disk Warrior to repair the directory of your computer.

Notice the number of unsafe shutdowns. That's indicative of a machine whose directory has never had a chance to really repair itself.

Sep 8, 2023 10:41 AM in response to George Colpitts

George Colpitts wrote:

This was consistently reproducible until sometime recently. I am currently on 13.5.2 and the problem has disappeared. I see that the version of Disk Utility I am using is 22.6. It's modification date is Sep 2 as is the date for Time Machine.app so maybe there was a bug and the new version of one or both fixed it.

It still does not replace the requirement to backup your data religiously. It is not a question of if storage will fail, but when. Bug or no bug, many systems are not always reproducible when reporting errors. The complexity of such systems is such, that inconsistancy in reporting errors is to be expected, and when errors do happen, they are to be taken seriously.

Backup now, or forever hold your peace - … - Apple Community


If one day you get a flashing question mark boot over a floppy disk or folder, then more often than not, the drive is toast. Data recovery may still be possible with the right tools, but nothing substitutes having a separate, current, tested backup.

Sep 24, 2023 6:12 PM in response to DuaneEH

DuaneEH

It sounds like your hard drive is close to failure. Please start a new topic thread so we can give you more focused attention.

Please indicate if you have a working backup on a drive that has no errors.

Please do not reply to threads unless you have solutions to offer, or questions about the approach taken. It is very difficult to follow multiple problems from multiple people on the same thread.

Jul 13, 2023 1:31 PM in response to a brody

a brody wrote:

Run http://www.binaryfruit.com/ DriveDX to make sure your hard drive isn't in poor health.

The OP already has the SSD's health report. The SSD has 121TB written which is a lot, but should still be within the lifetime limits of the SSD, but Apple doesn't publish those specifications.


If the hard drive is healthy, get a copy of Alsoft Disk Warrior to repair the directory of your computer.
Notice the number of unsafe shutdowns. That's indicative of a machine whose directory has never had a chance to really repair itself.

FYI, Disk Warrior does not support APFS volumes yet AFAIK. Alsoft only just recently started working on APFS file system repairs. As far as the "Unsafe Shutdowns" listed for the SSD, I have seen that with much higher values while supporting our organization's thousands of Macs. I usually ignore that attribute. I don't see anything concerning in the SSD's health report.


The problem is that First Aid is not repairing the errors. First Aid tends to pass even when errors remain unfixed.


Since the errors shown in the screenshot are only in reference to TM backup snapshots, these errors are irrelevant since they should disappear once the affected APFS snapshots are deleted. If there are unfixed errors on the main APFS "Data" volume, then the OP will need to take the more drastic option below.


If First Aid is unable to repair the errors and the errors are on the "Data" volume instead of a snapshot, then the SSD must be erased before reinstalling macOS & restoring from a backup. Currently that is the only way to resolve APFS file system issues which First Aid is unable to repair. If the errors come back quickly after the SSD has been erased, then it likely indicates a hardware issue of some sort with the Logic Board which will be an expensive repair (doesn't matter if it is the SSD or the memory causing the problem).


Sep 24, 2023 1:14 PM in response to George Colpitts

Base Variables:

Ventura 13.6.

DiskUtil 22.6.

Time Machine 1.3.

2018 Mac Mini.

1TB SSD.


I can reproduce this problem every day. I have deleted the 'bad' files with tmutil. I have deleted all the snapshots. I have reinstalled Ventura from the Web. Twice. With and without deleting the snapshots first.


I have made Time Machine run manually and not automatically. Prior to and after deleting all snapshots. I tried that after finding a suggestion TM in manual mode would delete the snapshots after several hours. That did not work after 48 hours.


Something still produces this error 3 times out of 10.


When I started looking for an answer I had the error on 12 of 23 snapshots.


Checking snapshot 11 of 23 (com.apple.TimeMachine.2023-09-19-025307.local)


.........


Checking snapshot 21 of 23 (com.apple.TimeMachine.2023-09-19-143233.local)

Checking snapshot 22 of 23 (com.apple.TimeMachine.2023-09-19-153237.local)

warning: mismatch between extentref entry reference count (0) and calculated fsroot entry reference count (-1) for extent (157469158 + 4)

warning: mismatch between extentref entry reference count (0) and calculated fsroot entry reference count (-1) for extent (157548727 + 4)

Checking snapshot 23 of 23 (com.apple.TimeMachine.2023-09-19-163321.local)

error: mismatch between extentref entry reference count (0) and calculated fsroot entry reference count (1) for extent (157469158 + 4)

error: mismatch between extentref entry reference count (0) and calculated fsroot entry reference count (1) for extent (157548727 + 4)


......


Performing deferred repairs.

error: missing/invalid physical extent (183005506 + 1) with refcnt -1 at snapshot 2640258

Skipped 12/12 repairs of this type in total.

Deferred repairs skipped.

The container /dev/disk0s2 could not be verified completely.

Storage system check exit code is 8.

Storage system verify or repair failed. : (-69716)


In my search for an answer I see the issue goes back several OS generations on multiple machines. Apple should have fixed this long, long ago.


I cannot recall ever seeing this error on my 2012 MacBook Pro. Which I replaced with the Mini about 9 months ago. It ran TM every hour.

disk error keeps returning, do I need a new Mac?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.