How to delete corrupted files from an inaccessible exFAT external hard drive on a Mac using terminal commands?
One of my external hard drives stopped working yesterday. I know which files got corrupted and even the path names to that group of files -- is there a way I can use terminal commands to delete those files even though the drive is inaccessible in Finder?
- This hard drive is in the exFAT format. I use a MacBook Air that's running Sequoia 15.3.2.
- Disk Utility recognizes that the external drive is plugged in, but says it's not mounted.
- When I tried to run first aid on it I got the "found incomplete directory entry" message for pretty much all of the (thousands of) files that are in my Final Cut library.
- Trying to repair it using my husband's Windows PC didn't work either. The PC could view the drive and see the first level of files and folders, but wasn't able to open any of them.
- EaseUS Data Recovery Wizard didn't work (to be fair, I didn't let it finish. It said it was going to take 22 hours. After 5 hours it still said "0 files found" so I stopped the process)
- I tried assessing the health of the drive using DriveDx but it's not able to run diagnostics on the drive even after installing the SAT SMART driver and adjusting the security settings to allow kernel extensions. This must be a DriveDx issue because I have two of the exact same hard drive models and it can't run diagnostics on the functioning one either, not just the corrupted one.
- I tried to create an image of the disk but it didn't get past "reading whole disk (unknown partition: 0)".
Trying to avoid going through the trouble of passing this off to a professional company (maybe I've done too much damage at this point anyways?). Hopefully that's all the necessary info that can help determine what other options I have.
I'm thinking if I use terminal to delete my Final Cut library then that should solve the issue? But I'm not sure if that's actually how that works and I'm too scared that I'm going to accidentally delete something I shouldn't.
Thanks so much for your help!!
[Re-Titled By Moderator]
MacBook Air 13″, macOS 15.3