0

I have an orphan directory on my main disk.

  1. I restart the computer in single user mode.
  2. In single user mode, the main disk / is mounted as read-only.
  3. I type /sbin/fsck -fy.
  4. fsck points the problems but does not fix them. I suppose because the disk must be unmounted or because the disk is read-only.
  5. I try to unmount the disk by using umount / or umount /dev/disk2s1, I get a Resource busy, try diskutil umount error.
  6. I try diskutil umount. I get an error telling me that diskutil cannot run from single user mode.

The main disk is APFS.

WTH is that? How am I suppose to fix the problem?

0

For Mojave and other recent os, recovery HD and disk utility are far superior for repairing the containers and volumes.

Once you try twice to repair using disk utility, I might either look at the exact output from Disk Utility or then do the additional work repairing / deleting using the fsck family of tools, but I would use terminal from recovery instead of single user mode.

Basically, you aren’t supposed to use single user mode for this anymore from what I can tell. Also consider, some errors Disk Utility will not fix. You are expected to back up your files and erase the disk at that point, reinstalling the OS and restoring from a backup.

  • I have tried to use Disk Repair from the recovery screen and it cannot fix the problem too. The message it shows is the same of fsck, something about an orphan directory. I will try terminal from recovery screen and get back here. – SpaceDog Jun 2 at 13:49
  • Might be time to erase and install, then. I’ll update my answer @SpaceDog – bmike Jun 2 at 14:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .