Delete troublesome files from unmounted external drive

Running 10.13.6 with an external 8TB seagate drive.

The drive will not mount. Tried all the usual things. Disk utility sees it but won't mount it.

First aid responds with unable to fix it.

Ran fsck_hfs with the result:

/dev/rdisk3: fsck_hfs started at Mon Aug 10 21:24:43 2020

/dev/rdisk3: /dev/rdisk3: ** /dev/rdisk3

/dev/rdisk3:    Executing fsck_hfs (version hfs-407.50.6).

/dev/rdisk3: ** Checking Journaled HFS Plus volume.

/dev/rdisk3:    The volume name is Backup2

/dev/rdisk3: ** Checking extents overflow file.

/dev/rdisk3: ** Checking catalog file.

/dev/rdisk3:    Incorrect block count for file .store.db

/dev/rdisk3:    (It should be 6679 instead of 7529)

/dev/rdisk3:    Incorrect block count for file 2.indexPositions

/dev/rdisk3:    (It should be 4097 instead of 73866)

/dev/rdisk3:    Invalid sibling link

/dev/rdisk3: (4, 737097)

/dev/rdisk3: ** Rebuilding catalog B-tree.

/dev/rdisk3: ** The volume Backup2 could not be repaired.

/dev/rdisk3: fsck_hfs completed at Tue Aug 11 09:49:54 2020


I have left this running for 3 days with the same result.

I believe that the files .store.db and 2.indexPositions are the ones corrupted


The questions are:

If these files are deleted will that resolve the issue?

Is it possible to delete these files on an unmounted disk?


A long shot, I know, but worth the inquiry before I erase the thing!


Cheers

Tim

iMac 27″, macOS 10.13

Posted on Aug 10, 2020 8:05 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 15, 2020 11:28 PM

Thanks to all who replied.

More as a matter of inquiry than anything else I purchased Disk Warrior.

While Disk Utility indicated a problem with 2 files, DW had hundreds! 46 files had overlapped, sharing the same physical address.


After many hours it rebuilt the directory and everything was fixed!


It did remind me of the good ol days in single digit Mac OS. Rebuilding the directory was a common thing to do, a few key combinations and away it would go, fixing all that ailed one. I figure that directories then were a lot smaller than now.


It was all a great learning experience and continues to be so thanks to all of you, especially BDAqua.

I am going to learn the commands on single usage.

I am instigating another backup site, maybe iCloud. The bushfires last summer were a wake up as to the fragility of the physical world..


Thanks again

Tim

Similar questions

10 replies
Question marked as Top-ranking reply

Aug 15, 2020 11:28 PM in response to timfromthirroul

Thanks to all who replied.

More as a matter of inquiry than anything else I purchased Disk Warrior.

While Disk Utility indicated a problem with 2 files, DW had hundreds! 46 files had overlapped, sharing the same physical address.


After many hours it rebuilt the directory and everything was fixed!


It did remind me of the good ol days in single digit Mac OS. Rebuilding the directory was a common thing to do, a few key combinations and away it would go, fixing all that ailed one. I figure that directories then were a lot smaller than now.


It was all a great learning experience and continues to be so thanks to all of you, especially BDAqua.

I am going to learn the commands on single usage.

I am instigating another backup site, maybe iCloud. The bushfires last summer were a wake up as to the fragility of the physical world..


Thanks again

Tim

Aug 10, 2020 8:16 PM in response to timfromthirroul

Hi Tim, you must mount R& W to Restart with the Command and S keys held down, and enter the following commands:


mount -uw /

chown root /

chmod 1775 /

exit


You must repair the HD, if Disk Utility or fsck should fail to repair it, your best bet is DiskWarrior from Alsoft, you'll need the USB stick boot from if you don't have another boot drive...


Your best bet is DiskWarrior...


http://www.alsoft.com/DiskWarrior

Aug 14, 2020 5:57 AM in response to BDAqua

Thank you for your reply. Single user mode wasn't successful. I thought it was only useful for internal drives. I have a USB external drive.


I guess there is not way of accessing files on an unmounted drive.


I will try Disk Warrior and let you know how it goes.

I realise that just erasing it would be the cheapest option but I look on it as a learning experience!


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.

Delete troublesome files from unmounted external drive

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