Stop receiving "Your disk is almost full" notification

I'm receiving a "Your disk is almost full" notification, and I'm desperate for a method to turn it off. Every time I close it, it pops back up within 10 seconds. Every time. I'm running with about 3GB of free space on a 128GB hard drive, and I'm fine with that. I've been managing for the past 3 years with 1-5 GB of free space and I have no performance issues. I just want to stop receiving the notification. Anyone know how?

MacBook Pro, macOS Sierra (10.12.1)

Posted on Nov 1, 2016 12:29 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 29, 2018 2:58 PM

I found you can change the threshold for the warning with a terminal command. Open a new terminal window and type the following command. The integer at the end is the minimum number of free GB before it will warn you about low space, so 10 GB here, set it to whatever you want.


defaults write com.apple.diskspaced minFreeSpace 10


Then run these two commands to reload the daemon (or just restart your mac)


launchctl unload -w /System/Library/LaunchAgents/com.apple.diskspaced.plist
launchctl load -w /System/Library/LaunchAgents/com.apple.diskspaced.plist


You can also completely disable the warning with this command


launchctl unload -w /System/Library/LaunchAgents/com.apple.diskspaced.plist


Hope this works for you it fixed the issue for me 🙂


Source Silencing "Your disk is almost full" notification - Ask Different

126 replies

Dec 15, 2016 4:42 PM in response to ngartke

Drives me insane, too. Apple has always had the tendency to assume the user doesn't understand the risks and consequences of doing things it doesn't like, which is absurd to me. Get out of my way and let me hang myself if I want to. Anyway... I found something that may help, though I'm still testing it out to see if the change sticks.


Note to anyone who stumbles across this: DO NOT DO THIS. YOU WILL KILL ALL THE PUPPIES. If you actually understand what I'm describing below and realize that tweaking internal system settings can result in HORRIBLE THINGS HAPPENING, well, you'll understand why I added this note. DON'T DO IT. (Or, ya know, whatever.)


Take a look at the output from `defaults export com.apple.ncprefs - | grep -2 diskspaced` -- com.apple.diskspaced is part of the StorageManagement framework, and can be found at /System/Library/PrivateFrameworks/StorageManagement.framework/Versions/A/Resourc es/diskspaced.


I tried toggling notifications for one of my apps and watching the flags value for it, but (seriously) after changing notification settings then changing back, the flags value is not the same. So, I have no idea if changing the flags value will actually result in no more notifications, this is wildly outside normal documented stuff to dig into, but hey, if you're up for doing things that will upset half the people who replied to this thread... 🙂


I set my com.apple.diskspaced flags to 4117, based on values I found for other disabled apps. This is probably entirely wrong, but worst case scenario it just doesn't stop notifying. Kinda hard to imagine notification center not gracefully handling an unexpected value here, seeing as how that's Developer 101.


Good luck!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Stop receiving "Your disk is almost full" notification

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.