Can't boot, fsck -ya in single user says 'Disk full'
I had this same problem. After a few hours I did manage to solve it by sort of hacking the boot process. The problem is OSX detects some error upon boot and calls up fdsk to solve it. Then fsck returns error code 34 and the boot script halts the system. I tried and failed to disable the fsck call. But... I did succeed at cheating at the boot script and have fsck return a 0 exit code, which worked.. This is what I did:
Disable System Integrity Protection in Mac OS X. Instructions here.
Log in to Single-User mode (instructions here) and mount the file system as readwrite.
You need to replace /sbin/fsck with a script that returns exit 0. To do so try the following commands:
mv /sbin/fsck /sbin/fsck.backup
echo '#!/bin/bash' > /sbin/fsck
echo 'exit 0' >> /sbin/fsck
chmod +x /sbin/fsck
You might get some error messages about SIP being disabled but it did work for me. You then reboot.
Upon reboot, OS X will detect the 'problem' and call our fsck script, which will return a 0 exit code and you'll log in your system.
If you succeed I suggest you back up all your important data and reinstall OSX. If you don't, remember you don't have a proper /sbin/fsck anymore so any program relying on it (maybe Disk Utility?) might have an unexpected behavior.
Good luck.