AstonJ

AstonJ

Mac users - any unaccounted 'used' disk space on your drives?

I’m not sure if this is a Big Sur issue or whether I’ve just noticed it, but on looking at my hard drive usage it says I have used 465.03 GB:

On that disk there is:

  • Applications (41.18 GB)
  • Library (2.89 GB)
  • System (24.89 GB)
  • Users (225.59 GB)

= 294.55 GB

…which leaves 170.48 GB unaccounted for.

I’ve looked at hidden files on the root level too, but they’re just 5 GB or so, so that still leaves 165 GB of disk space that seems to have vanished into thin air :rofl:

What’s the situation on your drive?

(You can select a folder/drive and press ‘CMD + I’ to show info (you can also select a number of folders and do the same.)

Marked As Solved

AstonJ

AstonJ

They’ve just got back to me and asked me to run:

tmutil deletelocalsnapshots  /System/Volumes/Data

Which has dropped my used space to 345.76 GB

And separately:

  • 46.83 Applications
  • 1.21 GB - Library
  • 28.16 GB - System
  • 268.82 - Users

Looks like you were right about the snapshots @NobbZ :+1:

Marking the as the solution in case it helps anyone else in future…

Also Liked

ohm

ohm

What does a

$ diskutil list

give you?

NobbZ

NobbZ

I’m not a mac user, though it says something about ~160GiB beeing purgeable.

How does it usually account for backups?

Also it seems as if APFS supports snapshots, how are those accounted?

As a ZFS user who uses snapshotting a lot in automated ways, I usually do not see the snapshots in a filemanager, but only by using the specialised ZFS tools.

Lets say du -sh ~ tells me that ~ were 230 GB, df -h ~ only says 209G due to compression, while a zfs list tells me this:

$ zfs list -o name,used,available,referenced,compressratio rpool/safe/home/nmelzer
NAME                      USED  AVAIL     REFER  RATIO
rpool/safe/home/nmelzer   302G  72.5G      209G  1.18x

As you can see, this subvolume refers to 209 G directly, while it has an overall size of 302G. The additional ~80G come from differences in the snapshots I keep for that volume.

Perhaps something similar is going on for your APFS?

NobbZ

NobbZ

Windows “Snapshots” are totally different, they are just files copied from one location to another. Snapshots on the filesystem level are totally different from that, They mark blocks on your harddisk as immutable and will only change a copy of them and pretend the immutable copy has been overwritten, but still keep a reference to it.

You can then either drop those old references or roll back to them.

On BTRFS or ZFS I can create a snapshot worth 500 GiB of data in split seconds, and then copy this snapshot over to my backup system. And the nice thing is, the system can stay active in that time.

Lets consider a postgres or mysql database, usually if you just do a cp of the data folder and move use it as backup, then the database itself will probably be corrupted due to the serialised copy. eg. the index file has been copied after the table itself, and the index has been changed since then.

The snapshout of BTRFS and ZFS though is atomic. All files are fixed in time. If you snapshot and copy this snapshot as a backup, you can restart a database using that snapshot, and it will recover from it similar to how it would recover from a power outage, as all files still are coherent in their state.

Where Next?

Popular Macos topics Top

AstonJ
When I purchased this Mac it was fast. However some months on and it is noticeably slower now, and where I notice it most is on starting ...
New
AstonJ
I’m not sure if this is a Big Sur issue or whether I’ve just noticed it, but on looking at my hard drive usage it says I have used 465.0...
New
siddhant3030
I have a new MacBook Pro which I’m connecting to an external monitor. I know why it is heating but I want to know if anyone having the sa...
New
DevotionGeo
Since we’re talking about Mac, which of the filesystems should I use on an external hard drive (non-SSD), which I’ll be using with my Mac...
New
AstonJ
Just wasted hours trying to figure out why my Apple Magic keyboard 2 started lagging after the latest macOS upgrade - tried SMC and PRAM ...
New
abhimohata
I am intending to show an alert message in macOS through a C++ based application. I am using CFUserNotificationDisplayAlert for the same....
New
dav
I’m searching for a tool that can (anonymously) collect crash reports from users of my macOS app (not iOS). Previously I used Fabric whic...
New
devovipul
I have JAR application ready. i have apple account also. Please give me steps to signed app upload i try But getting error as below : A...
New
leamas
Dear forum, New on macos. Need to create a .pkg file on the command line. The tooling seems to be pkgbuild(1) and productbuild(1). My pr...
New
WillKuo
For my iOS e2e test, sometimes the test is blocked by the Mac pop-up window alert. The possible pop-up as follows: Java Access Pop-up ...
New

Other popular topics Top

Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
dasdom
No chair. I have a standing desk. This post was split into a dedicated thread from our thread about chairs :slight_smile:
New
AstonJ
SpaceVim seems to be gaining in features and popularity and I just wondered how it compares with SpaceMacs in 2020 - anyone have any thou...
New
AstonJ
Thanks to @foxtrottwist’s and @Tomas’s posts in this thread: Poll: Which code editor do you use? I bought Onivim! :nerd_face: https://on...
New
AstonJ
I have seen the keycaps I want - they are due for a group-buy this week but won’t be delivered until October next year!!! :rofl: The Ser...
New
AstonJ
We’ve talked about his book briefly here but it is quickly becoming obsolete - so he’s decided to create a series of 7 podcasts, the firs...
New
PragmaticBookshelf
Author Spotlight James Stanier @jstanier James Stanier, author of Effective Remote Work , discusses how to rethink the office as we e...
New
PragmaticBookshelf
Build efficient applications that exploit the unique benefits of a pure functional language, learning from an engineer who uses Haskell t...
New
First poster: bot
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig. General-purpose programming language and toolchain for maintaini...
New
New