First Aid unable to repair corrupted external hard drive

I have an M1 macbook Air using Sonoma 14.4/ For over a year I have used an external G-tech drive for Time Machine. Recently, I noticed this disk would not mount. I was unable to mount it using disk utility and was also unable to repair it using First AiD. Here are the details from First Air. Do I have to retrive the data and erase the disk. Or is there some other way I can repair the disk. Thanks

Running First Aid on “Container disk5”




Checking storage system and repairing if necessary and if possible


Performing fsck_apfs -y -x /dev/disk4s2


Checking the container superblock.


Checking the checkpoint with transaction ID 2839287.


Checking the space manager.


Checking the space manager free queue trees.


Checking the object map.


Checking volume /dev/rdisk5s2.


Checking the APFS volume superblock.


The volume G-tech was formatted by diskmanagementd (1934.140.4) and last modified by apfs_kext (2236.120.8.0.1).


Checking the object map.


error: btn: oid (2014971), xid (2839286), type (0x40000003), subtype (0xb), flags (0x4) level (2)


error: btn: invalid key order: minkey is less than index 0 (should be equal)


minkey        : 18 04 00 00 00 00 00 00 7d 37 12 00 00 00 00 00 


index 0 key   : 1b 54 e8 00 00 00 00 00 34 3e 24 00 00 00 00 00 


index 1 key   : 46 5f e8 00 00 00 00 00 52 ec 25 00 00 00 00 00 


Checking if the parent's minkey can be updated...


error: btn: oid (2269478), xid (2839287), type (0x40000002), subtype (0xb), flags (0x5) level (3)


error: btn: unable to repair minkey


Object map is invalid.


The volume /dev/rdisk5s2 with UUID 2B19479B-7692-4D06-B8D8-B3F1D6C5EB47 was found to be corrupt and cannot be repaired.


Verifying allocated space.


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


Storage system check exit code is 8.


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

Posted on Apr 19, 2024 7:08 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 19, 2024 9:27 AM

It's important to understand that the Disk Utility does NOT test a drive for physical damage; it only scans & (attempts to) repair the drive's partition schemes / directory structures. ... so what we don't know yet, is if this issue is a more serious drive failure at this point in time. This is where an excellent drive diagnostics tool, DriveDx, will come in handy. If nothing else, it will become a valuable tool in your diagnostics "toolbox".


HWTech, a valued forum member, sums this up with the following quote from one of his posts:


"First off, First Aid will lie to users these days. Always click "Show Report" to manually scroll back through the report looking for any unfixed errors. In fact you should always run First Aid on the hidden Container in order to scan the complete APFS container since all APFS volumes within the container share the same file system. If there are any unfixed errors listed, then you will need to run First Aid while booted to Internet Recovery Mode, otherwise you will need to erase the drive before reinstalling macOS & restoring from backup. For an Intel Mac, I would erase the whole physical drive (do not erase the internal physical drive on an Apple Silicon Mac). Within Disk Utility you may need to click "View" and select "Show All Devices" before the physical drive and hidden Container appears on the left pane of Disk Utility." Credit: HWTech ASC (2023)

Similar questions

3 replies
Question marked as Top-ranking reply

Apr 19, 2024 9:27 AM in response to angry69

It's important to understand that the Disk Utility does NOT test a drive for physical damage; it only scans & (attempts to) repair the drive's partition schemes / directory structures. ... so what we don't know yet, is if this issue is a more serious drive failure at this point in time. This is where an excellent drive diagnostics tool, DriveDx, will come in handy. If nothing else, it will become a valuable tool in your diagnostics "toolbox".


HWTech, a valued forum member, sums this up with the following quote from one of his posts:


"First off, First Aid will lie to users these days. Always click "Show Report" to manually scroll back through the report looking for any unfixed errors. In fact you should always run First Aid on the hidden Container in order to scan the complete APFS container since all APFS volumes within the container share the same file system. If there are any unfixed errors listed, then you will need to run First Aid while booted to Internet Recovery Mode, otherwise you will need to erase the drive before reinstalling macOS & restoring from backup. For an Intel Mac, I would erase the whole physical drive (do not erase the internal physical drive on an Apple Silicon Mac). Within Disk Utility you may need to click "View" and select "Show All Devices" before the physical drive and hidden Container appears on the left pane of Disk Utility." Credit: HWTech ASC (2023)

Apr 19, 2024 9:06 AM in response to angry69

First, it is important to know that sometimes First Aid Repair may have to be run multiple times before getting an ok result. If that is not possible then the simple solution is to replace the disk with a new one. Then when you reset Time Machine to store the data to the new disk, it will initially create a new full backup so your data will again be secure. Problem solved.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

First Aid unable to repair corrupted external hard drive

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