Mac disk full error but plenty of space

8

1

Recently, I could not boot my MacBook because it lacked enough free space. I booted into single user mode and freed up about 85GB. After doing so, it booted fine and I have been using it with no issues since, until… today when I tried to restart, I experienced the same issue. The Apple logo appears and the white progress bar gets about 90% of the way and then it shuts down.

Here’s what I’ve tried so far:

  • Reset NVRAM with Option+Cmd+P+R
  • Booted into recovery mode and attempted to run disk repair which failed with exit code 8.
  • Booted into single user mode and ran fsck-fy which returned an error: “Invalid node structure; Invalid sibling link; Rebuilding catalog B-tree. Disk full error”

The df command shows that the drive is at 64% capacity, which to me means I should have plenty of free space.

Any suggestions as to what I could try next? I’m not super savvy with issues like these, just good at Googling, so I’m wondering if I should just give in and take it somewhere as I don’t want to make things worse if it’s actually recoverable.

Output of df and df -i:

Output of <code>df</code> and <code>df -i</code>

Lauren

Posted 2017-10-14T19:13:11.343

Reputation: 83

I don't know about Mac but in Linux df -i will show you inode information. When you run out of inodes (i.e. df -i shows 100% usage), filesystem reports it's full, even if it has empty blocks still available (plain df reports moderate usage). I'm not sure it can cause errors you reported, still it's worth to check it out. Plenty of small files will consume plenty of inodes and relatively little space. Something may generate these files like crazy but for now it's impossible to say what it may be. If you're not sure then [edit] your question and add the relevant output of df and df -i. – Kamil Maciorowski – 2017-10-14T20:54:19.483

Thanks! I’ve edited and added the output. To me, if I’m understanding the output correctly, then it’s showing plenty of free inodes, right? – Lauren – 2017-10-14T21:19:24.257

Both outputs contain inode information. Yes, there are plenty of them free on root_device. At the moment I cannot help you further, I have no experience with Macs. – Kamil Maciorowski – 2017-10-14T21:26:56.477

What model MacBook are you using? – JakeGould – 2017-10-15T18:55:52.270

Answers

3

Your fsck returned volume structure errors that disk utility can't repair.

You can use a utility like DiskWarrior to repair the directory structure.

Otherwise, an easier (but longer) method is to backup, erase the partition then restore the backup (the erase will setup a new file system with no damage). This works best via cloning the files (not the partition itself, that would preserve the issue) while booted from another operating system.

Another erase method would be to backup with time machine, boot to the Recovery disk (command-R during boot) and use disk utility to erase the partition. Use the installer to reinstall your OS then when it prompts you to restore a backup afterwards restore the time machine backup.

Cory T

Posted 2017-10-14T19:13:11.343

Reputation: 111

1Thank you. I was holding out hope for a quick fix. But, after spending an entire day on it, I got impatient and ended up doing what you suggested---erasing the drive, which of course worked. – Lauren – 2017-10-16T17:03:14.610

can I repair the disk using a linux box? – aeid – 2019-05-10T00:14:52.250

I haven't tried it but hfsutils does have an hfsck binary and hfsprogs has fsck.hfsplus but I haven't used either one. If I end up having filesystem issues from any HFS device I've always used macOS based utilities to address it. But if you could make an image of the drive you could try to use one of the aforementioned binaries to try and repair the IMAGE (not the original disk, at least not until you've had success on the disk image since it's expendable). – Cory T – 2019-05-10T01:56:55.350