I’m using macOS Big Sur and accidentally deleted private/var/folders
while trying to clean up my storage. Now I’m stuck at the Apple logo on the boot up page (the white bar won’t move). I’ve found some solutions from similar questions which did not work for me. I guess the old commands don't work in Big Sur.
Under single-user mode I tried:
/sbin/mount -uw /
It returned:
Volume could not be mounted:resource busy failed with75
I’ve also tried reinstalling macOS but it failed and automatically returned to recovery mode. Sadly I just deleted my back-up a few weeks ago so Time Machine won’t work.
Is there any other way to fix the problem?
/private/var/folders
) are on a separate "Data" volume, not the root ("/
") volume. I haven't worked with it in Single-user mode, but in Recovery, you should be able to mount the volume with a " - Data" suffix in Disk Utility, then run something likemkdir /Volumes/Macintosh\ HD\ -\ Data/private/var/folders
(note: tab-completion of filenames is your friend). – Gordon Davisson Mar 14 '21 at 00:04