Entire "Users" folder is missing when booted into Recovery Mode
I posted this in the Apple Discussions forums, but have yet to get an answer that applies to the depth of which this situation currently exists.
My Mac's hard drive (running Mojave) suffered some corruption recently, and I found myself unable to boot into the system. I am able to boot into Recovery Mode, and my intent was to rescue the important data sitting in /Users/(my username), but to my surprise, the entire /Users/ folder is just not there when I try to access it via Terminal.
Steps taken:
- Boot into Recovery Mode.
- Open up Terminal.
- Navigate to /Volumes/(my OS drive name)/
- Type ls to see directory tree. I see every other folder I am expecting to see (I think), except for /Users/. It simply is not there.
What I have tried:
- Navigating to literally every partition and folder I can think of to find where /Users/ might be instead.
- Doing "chflags nohidden" on the drive does nothing.
- I don't believe I have FileVault on, so I don't think anything in that category would apply to my situation.
I can only come up with two possible conclusions:
- The hard drive corruption annihilated ONLY the /Users/ directory (unlikely, I assume???)
- Recovery Mode is hiding /Users/ in a way that I cannot figure out, and this is apparently not documented anywhere on the internet. I have seen other sites/posts talking about /Users/ being hidden, but they were not referring to situations similar to mine, and were resolved with simple (somewhat obvious) steps. They were not like what I am experiencing.
In the meantime, preparing for the worst, I have ordered an external drive enclosure so that I can pull the drive out of my computer and view its contents on another computer.
I am very hesitant to reinstall MacOS right now, because IF /Users/ has been compromised in the corruption, I don't want to do anything further that will prevent it from being recovered somehow. In other words, I am trying not to write any new data to the drive at all.
Thanks for any help or suggestions in advance.
Solution 1:
This is normal. When you boot in to Recovery, whether it be from your local drive or via the Internet, you’re booting a completely different instance of macOS.
If you want to view the /Users directory, you’ll first have to mount the internal drive to a directory (i.e. /Volumes) then you can navigate to it.
As for corruption of your drive, it is better to get an enclosure or a USB to SATA adapter, mount it on a “full blown” version of macOS so you can make an image of the drive and work off of that rather than risk further data loss.
Solution 2:
I was able to use Disk Drill recovery software set to "deep scan" on the entire contents of the physical drive - and somehow, the software was able to reveal the Users folder. Thankfully, I was able to extract everything I needed from there (as well as files I didn't even want anymore, but that's a small price to pay).
I cannot offer any explanations for why nothing else seemed to work in getting the Users folder to be visible in Terminal/sudo, whether in Recovery Mode or after taking the drive to another computer, regardless of many different ways of initiating chflags -R nohidden
on the ENTIRE partition, trying extremely convoluted chmod
settings, verifying permissions, manually searching every folder I could imagine, mounting the partition in every way I know how, even trying to mount OTHER partitions on the physical disk that clearly were unrelated to the partition in question. I'm sure I'm forgetting a handful of other things that I tried along the way as well - and trust me when I say I tried everything I could find, even beyond the suggestions on this site, and I tried them correctly, with nearly 20 years of Mac experience under my belt. That's not to say I am a perfect human by any means (obviously), but I am also not a fumbling noob when it comes to this stuff.
I have no doubt that in time, someone will see this thread and have a definitive answer for the troubles I experienced. I absolutely encourage that person to offer their knowledge to the world, because whatever the true solution was, it is not well documented knowledge as of the time of this writing. Either that, or it was something so specific to my situation that it proved crippling and against the normal workings of macOS as a whole.
Solution 3:
I ran into this same issue with Big Sur, and I was able to figure out why my Users
directory was empty, so I thought I'd post.
I had my "Macintosh HD" drive mounted as /Volumes/Macintosh HD
, but /Volumes/Macintosh HD/Users
was empty. It turns out that there is a separate "Macintosh HD - Data" partition that also needs to be mounted. I used diskutil apfs unlock "Macintosh HD - Data"
and entered my password, and then I found my missing Users
directories in /Volumes/Macintosh HD - Data/Users
.