LD42 - No Disk Space Mac OS

broken image


  1. L4d2 - No Disk Space Mac Os Catalina
  2. L4d2 - No Disk Space Mac Os 11
  3. L4d2 - No Disk Space Mac Os Pro
  4. No Disk Space Virus

If you have some basic unix skills, deleting files should be easy otherwise you may be risking data loss by trying this method.

As soon as you have created a backup, restart your Mac and check if it has freed up the disk space. Other Ways to Clear the Startup Disk. Whether you like it or not, your Mac will create junk every time you use it. But you should not hate it for doing that. Your Mac is only doing its job. On macOS High Sierra, with SSD formate with APFS, i've got: diskutil info -all Device Identifier: disk0 Device Node: /dev/disk0 Whole: Yes Part of Whole: disk0 Device / Media Name: APPLE SSD SM0512L Volume Name: Not applicable (no file system) Mounted: Not applicable (no file system) File System: None Content (IOContent): GUIDpartitionscheme OS Can Be Installed: No Media Type: Generic.


Boot to single user mode holding cmd-s after powering on the computer. KB HT1492 and type the following command making sure there is a space before -uw and the /


mount -uw /

L4d2 - No Disk Space Mac Os Catalina


Now you are free to delete whatever you want (including system files, be careful!) Your home folder is located at /Users/


I've found that when the computer gets in this bad of shape, the following commands free up a few GB nicely.


rm -rf '/Library/Application Support/iDVD'

rm -rf '/Library/Application Support/Garageband'


Most people rarely use this additional content and it can easily be reinstalled from the original install discs or iLife disc. It should give you about 3GB of space back, plenty enough to boot the computer and get back to a GUI for you to move your media off onto an external hard drive.

Apr 17, 2011 12:49 AM

L4d2 - No Disk Space Mac Os 11

TIL about Purgeable Disk Space in OSX, and after hours of struggling, how to reclaim it.

Mac

What is Purgeable Space?

Purgeable Disk Space is a 'feature' of more recent versions of OSX. It is storage on your hard drive that the operating system sets aside for files that it thinks you might access again in the future.

An example of files that are moved to purgeable space is files that you send to your remote iCloud storage. Presumably, you are sending files to the cloud to free up space on your local machine… if there is space available locally on disk, though, OSX will keep these files around in purgeable space which speeds up accessing the files again from your local machine.

In my opinion, it's a bit of a silly assumption on behalf of the OS to keep files around that the user is asking to send to remote storage.

I ran in to issues with purgeable space when trying to partition my hard drive for a Windows installation. I had over 40GB of my hard drive confined to purgeable space, and even though that storage counts as 'free' from an OSX perspective, it is still technically allocated. This prevented me from being able to pull in as many GB in to my Windows partition as I needed.

Even though I haven't experienced it, I have also heard of folks running in to issues installing games or downloading large files onto their machines, and hitting the purgeable space wall.

There has to be a way to reclaim purgeable space from the OS, right?

How to Free Purgeable Space

It isn't as easy as it sounds.

There are apps like cleanmymac3 which offer to clean purgeable space on your machine (for a fee) but I wanted to find a way to reclaim this space without the need for a paid service.

Purgeable space is freed when you ask the operating system to store a new file that exceeds the amount of true free space left on disk.

L4d2 - No Disk Space Mac Os Pro

For example, if I have 15GB of space left on my disk, 5GB is truly 'free' and 10GB is purgeable, If I create a file that is 6GB large, I will use up the rest of the 'free' space and 1GB of purgeable. Super arcade boy in defender of planet earth mac os.

Once the file that reclaimed the purgeable space is deleted, the space goes back to being truly free, instead of purgeable again!

So the trick is to create enough large files locally that all of the purgeable space is reallocated to support the new large files. After deleting those files, your space will return to a truly free state, instead of returning to purgeable.

One important caveat that I learned while attempting this solution: if you create a big file locally, and duplicate it over and over again with cmd+c/cmd+v or cmd+d, your disk space will not be properly filled up. This is an OSX trick to try and conserve hard disk space for duplicate files, by just creating new references to the original file instead of brand new copies of the file itself.

This is a good feature in most scenarios, just not in our immediate case where we actually want to fill up our disk as fast as possible.

See my step-by-step instructions for creating large files and duplicating them in the next section:

Step by Step Instructions:

  1. Open your terminal by searching for terminal in spotlight (open spotlight with cmd+spacebar)

  2. In the terminal, execute mkdir ~/largefiles
    • This creates a new folder called 'largefiles' in your home directory.
  3. In the terminal, execute dd if=/dev/random of=~/largefiles/largefile bs=15m
    • This will create a new file called 'largefile' in your largefiles folder, which contains the random output from /dev/random.
    • NOTE: this command will cause your terminal to appear like it is frozen… that is expected, as the command is running!
  4. After a few minutes (around 5), hit ctrl+c in the terminal window to kill the command from step 3.

  5. In the terminal, run the command cp ~/largefiles/largefile ~/largefiles/largefile2
    • This will copy the largefile that was created in step 3 to a new file called 'largefile2'.
    • Remember, this is different than just running cmd+d or cmd+c/cmd+v on the file… it's forcing the file to be copied over in its entirety, filling up more space on disk.
  6. Continue to run the copy command from step 5, changing the name of the copy destination from largefile2 to something different each time.
    • Change the copy destination name to something like largefile3, largefile4, etc…
    • You should continue to run this command until you see a OSX message appear that says 'disk is critically low'.
  7. After you see the disk critically low message from OSX, execute rm -rf ~/largefiles/
    • This will delete all of the largefiles from your system.
    • Make sure you empty the trash bin as well, or the files will just sit in there taking up space!
  8. Open disk utility by searching for disk utility in spotlight
    • You should see either no amount of purgeable space, or a very small amount of purgeable space remaining in your hard drive snapshot!

No Disk Space Virus

The procedure above was inspired from this stack overflow post.

I hope the above was helpful! Feel free to reach out to me if you're still having trouble freeing the purgeable space on your mac.





broken image