Underallocation Detected on Main device (10.13 PB4)

Discussion in 'macOS High Sierra (10.13)' started by yaroslavm, Aug 15, 2017.

  1. yaroslavm macrumors newbie

    yaroslavm

    Joined:
    Jun 19, 2016
    #1
    Hey guys,

    There is a lot of APFS erroneous-free-space talk on these forums, wonder if that is something that is related.

    Just moved from a 10.12 HFS+ install to a 10.13 PB4 APFS one. When running Disk Utility—both via Rescue mode and live mode—this is what I get:

    /dev/rdisk1s1: ** Checking volume.
    /dev/rdisk1s1: ** Checking the container superblock.
    /dev/rdisk1s1: ** Checking the EFI jumpstart record.
    /dev/rdisk1s1: ** Checking the space manager.
    /dev/rdisk1s1: ** Checking the object map.
    /dev/rdisk1s1: ** Checking the APFS volume superblock.
    /dev/rdisk1s1: ** Checking the object map.
    /dev/rdisk1s1: ** Checking the fsroot tree.
    /dev/rdisk1s1: ** Checking the snapshot metadata tree.
    /dev/rdisk1s1: ** Checking the extent ref tree.
    /dev/rdisk1s1: ** Checking the snapshots.
    /dev/rdisk1s1: ** Verifying allocated space.
    /dev/rdisk1s1: error: Underallocation Detected on Main device: (28794938+1) bitmap address (31111)
    /dev/rdisk1s1: Space Verification failed.
    /dev/rdisk1s1: ** The volume /dev/rdisk1s1 could not be verified completely.


    1. Does anyone else get this?
    2. Do you think it may be related to the problems a lot of people were having with the free space not being returned, etc.?

    Already reported to Apple, but I wonder if that is something everyone is seeing.
     
  2. Erdbeertorte macrumors demi-goddess

    Joined:
    May 20, 2015
    #2
    I just tried this in live mode on my boot volume with DB6 and the MacBook froze completely. :oops:

    Had to do a force shut down by holding the power button.
     
  3. yaroslavm thread starter macrumors newbie

    yaroslavm

    Joined:
    Jun 19, 2016
    #3
    That's okay, for some reason fsck_apfs takes around 10x the time compared to fsck_hfs, just wait it out.
     
  4. Erdbeertorte macrumors demi-goddess

    Joined:
    May 20, 2015
    #4
    In know everything is slowing down very much while doing this. But this time everything besides the power button got unresponsive.
    --- Post Merged, Aug 15, 2017 ---
    I tried it again with all external drives removed and waited about 10 minutes. It always freezes at "Checking the fsroot tree.".

    From Recovery that didn't happen but I got a strange "Warning.... BSD whatever error" and several of those with the same text after "Checking the snapshots." and "Verifying allocated space.".

    I waited again some minutes but nothing happened after the last warning. At least it didn't freeze and I was able to restart normally.

    Seems something got messed up in my file system or it's a bug in the new beta. Also I have a BOOTCAMP partition on the same drive.

    But I never noticed any problem with my Mac and Boot Camp also works.
     
  5. yaroslavm thread starter macrumors newbie

    yaroslavm

    Joined:
    Jun 19, 2016
    #5
    Fixed in Beta 7.
     
  6. andrewkendall macrumors member

    Joined:
    Apr 30, 2005
    #6
    I'm still seeing this in GM Candidate 17A362a.
     
  7. yaroslavm thread starter macrumors newbie

    yaroslavm

    Joined:
    Jun 19, 2016
    #7
    Hm, was fixed for me. Can you try a Rescue mode Disk Check?

    In any case, try to report the bug, I guess.
     
  8. andrewkendall macrumors member

    Joined:
    Apr 30, 2005
    #8
    Thank you. Yep, tried rescue mode. No luck.

    Have reported to Apple. Wanted to open this thread back up to see if anyone else was also having the issue after the GM as it seems to be one of the only places discussing this error.

    I'm expecting to have to reinstall once the final GM is out as this GM candidate is still labelled beta, we'll see if the final release on the 25th makes any difference.
     
  9. robokop macrumors newbie

    Joined:
    Sep 25, 2017
    #9
    --- Post Merged, Sep 25, 2017 ---
    I upgraded from 10.12 to 10.13 today. After that completed I decided to try and convert my external drive from hfs to apfs. The attempt failed and I got the same errors. I don't know the cause but I have been running first aid and with that the volume mounts and files are available but a reboot causes the volume to not mount again and I have to run first aid again. I will try rerunning that to see if it clears up
     
  10. robokop macrumors newbie

    Joined:
    Sep 25, 2017
    #10
    Now I found out the Time Machine cannot use the APFS. So the attempt to reconfigure my external device was in vein. I have since reformatted the device back to HFS+
     
  11. wmertens macrumors newbie

    wmertens

    Joined:
    Apr 4, 2017
    #11
    I have the same issue on the release candidate. I'd like to not worry about it, because it was returning error code 0, but then freshly downloaded files were not showing up in finder. Only after rebooting did they show up. Grrr.

    I tried doing first aid from recovery mode but that had the same result.
    --- Post Merged, Sep 27, 2017 ---
    Turns out that after you run First Aid live, Finder is unhappy. Just restarting Finder seems to fix it.
     
  12. andrewkendall, Sep 27, 2017
    Last edited: Sep 27, 2017

    andrewkendall macrumors member

    Joined:
    Apr 30, 2005
    #12
    I saw exactly the same thing with Finder after running First Aid. It happens even if you don't have the 'Underallocation Detected on Main device' error. I've been rebooting all machines after I run First Aid just to make sure, had me worried for a moment.

    I couldn't find a fix for the 'Underallocation Detected on Main device' error so I ended up making a Time Machine backup, erasing the Macintosh HD and then restoring. No more errors with the drive now and it's benchmarking faster too, so seems worth the effort.
     
  13. schrepfler macrumors newbie

    schrepfler

    Joined:
    Sep 27, 2017
    Location:
    Gibraltar
    #13
    I’ve bumped at a similar situation during install of final release of High Sierra. Left the computer for a whole day to install, was hanging with the Apple sign. Rebooted it and it now won’t start. When entering Restore mode and diskutil this is what I get back when I try the first aid utility:
    What’s left? Fsck is not very helpful
     

    Attached Files:

Share This Page