Confusing Diskutil List result?

Joined
Jul 27, 2011
Messages
96
Reaction score
0
Points
6
I have a macbook pro with a 250 GB SSD in it. The diskutil list command gives a confusing result for me. It somehow shows a 98 GB disk. Does anyone know what this is? The result is pasted below.

/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 250.8 GB disk0s2

/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.8 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 98.0 GB disk1s1
2: APFS Volume Preboot 19.6 MB disk1s2
3: APFS Volume Recovery 518.1 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4

Screen Shot 2018-07-01 at 18.35.42.png
 
Joined
Oct 16, 2010
Messages
18,166
Reaction score
1,910
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2020 27" i9 5K nano iMac, 1TB(partitioned) SSD, GB, macOS 15.3.1 Sequoia
Maybe have a read and look here and it might help explain things better:
https://www.macobserver.com/tips/deep-dive/resize-your-apfs-container/

Or try some of the other hits with a seb search like this:
https://www.google.com/search?q=APF...hesized&ie=utf-8&oe=utf-8&client=firefox-b-ab

Or google how the new Apple APFS "container" stuff actually works.

Is there some special information you were looking for???


EDIT:
BTW: Maybe this can help as well and check the options:
diskutil list
diskutil manipulates the structure of local disks. It provides information about, and allows the administration of, the partitioning schemes, layouts, and formats of disks. This includes hard disks, solid state disks, optical discs, disk images, APFS volumes, CoreStorage volumes, and AppleRAID sets. It generally manipulates whole volumes instead of individual files and directories.
Verbs

Each verb is listed with its description and individual arguments.

list [-plist]

[internal | external] [physical | virtual] [device]
List disks, including internal and external disks, whole disks and partitions, and various kinds of virtual or offline disks.

If no argument is given, then all whole disks and their partitions are listed.
etc. etc.
https://www.dssw.co.uk/reference/diskutil.html




- Patrick
======
 
Last edited:
OP
R
Joined
Jul 27, 2011
Messages
96
Reaction score
0
Points
6
Thanks Patrick. What I am trying to understand is why is there a 98 GB volume on my drive.

Maybe have a read and look here and it might help explain things better:
https://www.macobserver.com/tips/deep-dive/resize-your-apfs-container/

Or try some of the other hits with a seb search like this:
https://www.google.com/search?q=APF...hesized&ie=utf-8&oe=utf-8&client=firefox-b-ab

Or google how the new Apple APFS "container" stuff actually works.

Is there some special information you were looking for???


EDIT:
BTW: Maybe this can help as well and check the options:
etc. etc.
https://www.dssw.co.uk/reference/diskutil.html




- Patrick
======
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,246
Reaction score
1,834
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
It appears that you have unformatted space on the drive. Did you at one time have another partition on the drive, maybe a Boot Camp partition? Removing a Boot Camp partition from a drive formatted to APFS can cause problems even when using the Boot Camp Assistant to remove the partition.
 
OP
R
Joined
Jul 27, 2011
Messages
96
Reaction score
0
Points
6
That's exactly what I did. Is there any way to make my disk like the day operating system was first installed other than making a clean install?

It appears that you have unformatted space on the drive. Did you at one time have another partition on the drive, maybe a Boot Camp partition? Removing a Boot Camp partition from a drive formatted to APFS can cause problems even when using the Boot Camp Assistant to remove the partition.
 
Last edited:
Joined
Jan 1, 2009
Messages
16,379
Reaction score
4,735
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
I believe that is how APFS manages partitions now. The 98GB showing is the space you are presently USING in the container of all space in the drive, and is named "Macintosh HD" as usual for macOS. That number will change as you use more or less space. I just looked at my own system and on a 1Tb drive I see exactly the same, except that my Macintosh HD is showing with a size that matches what Get Info on the drive shows as "Used." So, using your data, you seem to have a 250GB drive of which 98GB is used and the rest is free. (Ignoring the Reboot, Recovery and VM volumes, which match mine exactly because they are system "volumes" of the container.). From another website:
“Space sharing” is one new feature some people will benefit from today. Traditionally, if you created multiple volumes (partitions) on one physical disk, you had to decide up front how much space each volume would get. So, you might create five different 100 GB volumes on a 500 GB drive. If any of those volumes needed more than 100 GB of space, you’d have to manually resize the volumes. However, if one volume just needed 20 GB of space, you’d have 80 GB of space wasted—unless you resized the volume and then allocated that space to another volume. With APFS, you could create five volumes on a 500 GB drive and not worry about how much each one needs. The volumes will share space. As long as the total space used by those five volumes is less than the 500 GB of total available space, things will just work.
That is from https://www.howtogeek.com/327328/apfs-explained-what-you-need-to-know-apples-new-file-system/ if you want to read more about APFS.

If you create a new volume, it will share space. If you create a new partition, it will take away the partition from the shared space. Normally, you do NOT want to take space away from the sharing scheme. chscag's comment is not correct because he is thinking in the old HFS+ format way to doing business. Diskutil has been modified for APFS drives to show what you are seeing.
 
Joined
Jan 1, 2009
Messages
16,379
Reaction score
4,735
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
Just to be clear, here is what diskutil reports on my APFS drive:

2018-07-03 04.16.28 am.png
And Get Info shows I have used 643.98 GB of the drive Macintosh HD, which has a capacity of 1Tb.
 
Joined
Jan 1, 2009
Messages
16,379
Reaction score
4,735
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
One final thought. That article I referenced also says this:
To add a new volume, click the “New Volume” button. This will add new volumes to the larger APFS container. They’ll appear just like normal volumes or partitions in Finder and elsewhere on the system, but they’ll share space with all the other volumes in the APFS container.

Don’t use the “Partition” button to add a new partition unless you want to add a new, non-APFS volume to your system. Adding a new partition will take space away from the APFS container. However, it is mandatory when adding a Windows volume for Boot Camp, for example.
So, unless you are making a Windows partition in Boot Camp, or have some specific need for a fixed, not-sharing partition, use the volume approach. That way the space sharing will optimize the use of the overall container of the drive. Basically, let macOS manage the space for you instead of doing it the old manual way of partitioning.
 
OP
R
Joined
Jul 27, 2011
Messages
96
Reaction score
0
Points
6
Everything is completely clear now. I cannot thank you enough.

One final thought. That article I referenced also says this: So, unless you are making a Windows partition in Boot Camp, or have some specific need for a fixed, not-sharing partition, use the volume approach. That way the space sharing will optimize the use of the overall container of the drive. Basically, let macOS manage the space for you instead of doing it the old manual way of partitioning.
 
Joined
Oct 16, 2010
Messages
18,166
Reaction score
1,910
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2020 27" i9 5K nano iMac, 1TB(partitioned) SSD, GB, macOS 15.3.1 Sequoia
They’ll appear just like normal volumes or partitions in Finder and elsewhere on the system, but they’ll share space with all the other volumes in the APFS container.
… … …
Adding a new partition will take space away from the APFS container.


I'd say that may take a bit for some of us to actually understand and actually remember if the time comes…

But I dare say the English and the description could also be phrased a bit better and what's actually the difference.

Will do some more reading some time later, and probably much later for this user. :Smirk:




- Patrick
======
 
Joined
Jan 1, 2009
Messages
16,379
Reaction score
4,735
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
Well, let me try to make it simpler for you, Patrick.

Imagine, if you will, that somehow partitions could be dynamically changed in size on-the-fly as you added things to them or deleted things from them. That's what APFS does inside what is called the "container" on the volumes it controls.

If you let APFS control the entire drive it will create a "container" of the drive. If you then create a new volume, it will look and act like a separate partition, i.e., it will show up as a mounted drive to Finder, but will be able to share space efficiently with the other volumes in the APFS container. But it will not be a fixed size drive as the size of the actual volume will change as you add/delete things on it. The sum of all such volumes cannot be larger than the total of the container.

So, for example, if you have a 250GB drive and let APFS manage it, you can have, let's say, three volumes in the container with each of them appearing to you through Finder as a "drive" to which you can write or from which you can read. And as you do that, the actual "size" of the volume will be automatically updated. So let's say those three volumes are called "A", "B", and "C". A has 50GB on it, B has 100 GB and C has 25GB on it. That totals to 175GB, leaving 75GB "free" space in the container. So, if you do a Get Info on A, you would see 50GB used, 75GB available. B would report 100GB used, 75 Available and C would report 25GB Used 75 Available. The 75 Available is actually to be shared amongst the three, but APFS will manage that for the user without any user intervention. Add 50GB of stuff to C for example, and it would simply change to 75GB Used, 25GB Available, with all three "drives" showing the same 25 GB available. Now if you delete 20 GB of that stuff from B, it will show 80GB Used, and all three volumes will show 45GB available.

But if you use the older technology and create a partition on the APFS drive, that partition will reduce the size of the container by that fixed amount of storage you put in that other partition. So if you had a 250GB drive and created three drives as partitions, not volumes, you would have to decide in advance how much space to give each drive and if you didn't use all of the space on one, it would NOT be available to the others unless you did a reformat/repartition to make that change.

Finally, another advantage of APFS is that if you no longer need those added volumes, you can just delete them from the container and the space is automatically recovered and made available to the remaining volumes. What was in the volume is gone, of course, but the space that those items were taking is automatically recovered into the container.

In the case of the two diskutil reports already posted, the OP has a 251GB drive, with two partitions. The first is the EFI partition taking up 250MB of the storage, and mounted at /dev/disk0 and the remaining 250.8GB shown as an APFS container named disk1. The rest of the drive is mounted at /dev/disk1 and is an APFS container of that 250.8 GB. In that 250.8GB container are four volumes: Macintosh HD takes up 98 GB, Preboot is 19.6MB, Recovery is 519.1MB and VM is 1.1 GB. Those last three volumes are system volumes and are needed by the OS. So, taking all that into account, his remaining available space is 151.16GB (250.8 - .0196 - .5191 - 1.1). That's what Get Info should show on Macintosh HD.

My report is the same, except that I have a 1TB drive, so the numbers are different.

To me, it's more of a paradigm shift than a traumatic change. Just think of "container" as the drive overall and "volume" as a dynamically managed partition within the container. To Finder, any volume will be shown as a Drive, unless it is a hidden system drive (Preboot, Recovery and VM). But any user created volume will just look like a drive to the user.
 
Last edited:

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,246
Reaction score
1,834
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
Thanks for the explanation Jake. You are correct in that my "thinking" was based on the way diskutil displayed information before the implementation of APFS. However, I have to admit.. the average user is going to find all that hard to understand.

I am a bit concerned though in that member "rolanddes" has admitted to having a boot camp partition previously on the drive and then removed it. There are several anecdotal threads in other forums regarding the removal of a boot camp partition from a APFS formatted drive using the boot camp assistant and the problems that then occurred. It will be interesting to see if member "rolanddes" still has access to the entire drive.
 
Joined
Jan 1, 2009
Messages
16,379
Reaction score
4,735
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
Well, Charlie, in Post #1 he says it's a 250GB drive, and diskutil shows 250GB for the container, so I believe he has access to all of the drive. The quickest way to check is to do a Get Info on the Macintosh HD drive and see how much is Available. If it's the 150GB I calculated, then he is good to go.

Now, if the drive is physically larger than the 250GB he said it was, then it may be that there is space "missing" but as of now, with his statement, I think his full 250GB drive is available to the container..
 
Joined
Oct 16, 2010
Messages
18,166
Reaction score
1,910
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2020 27" i9 5K nano iMac, 1TB(partitioned) SSD, GB, macOS 15.3.1 Sequoia
Well, let me try to make it simpler for you, Patrick.

Thanks Jake, every bit helps, but I do understand a lot of the way the APFS works.

But didn't realize there was such a difference between "Adding" a volume or "Partitioning" with a APFS drive.

Now, where are the utilities to stretch the storage to double the capacity??? :Smirk: Hey, anyone recall the old RamDoubler of eons ago??? ;D


EDIT:
Gee, I almost forgot that most have and use virtually the same RAM "doubling" since Mavericks 10.9.x.
https://www.cnet.com/news/memory-compression-brings-ram-doubler-to-os-x-mavericks/




- Patrick
======
 
Last edited:

Slydude

Well-known member
Staff member
Moderator
Joined
Nov 15, 2009
Messages
17,930
Reaction score
1,352
Points
113
Location
North Louisiana, USA
Your Mac's Specs
M1 MacMini 16 GB - Sequoia, iPhone 14 Pro Max, 2015 iMac 16 GB Monterey
Yes I recall Ram Doubler fondly. We're both skewing a little old there aren't we? Wouldn't a better analogy be Disk Doubler? After all it was designed to give the user an alternative to buying more expensive disk space.

There was another utility that actually provided more space by changing the minimumum block size. Don't remember the name of that one though.
 
Joined
Oct 16, 2010
Messages
18,166
Reaction score
1,910
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2020 27" i9 5K nano iMac, 1TB(partitioned) SSD, GB, macOS 15.3.1 Sequoia
There was another utility that actually provided more space by changing the minimumum block size. Don't remember the name of that one though.


Wasn't that what Apple termed "HFS Plus" , now known as "HFS+"????
Actually it just saved wasting storage space I believe as the drive sizes were increasing so drastically.





- Patrick
======
 

Slydude

Well-known member
Staff member
Moderator
Joined
Nov 15, 2009
Messages
17,930
Reaction score
1,352
Points
113
Location
North Louisiana, USA
Your Mac's Specs
M1 MacMini 16 GB - Sequoia, iPhone 14 Pro Max, 2015 iMac 16 GB Monterey
The software I am thinking of was a third-party app that worked at the drive level. It was supposed to make all fines take up less space. IIRC DisK Doubler on the other dand did not compress system files.

The software I'm thinking of behaved similarly to some of the "stacker" programs that some windows users were using at the time. Still trying to think of the name though.
 
Joined
Oct 16, 2010
Messages
18,166
Reaction score
1,910
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2020 27" i9 5K nano iMac, 1TB(partitioned) SSD, GB, macOS 15.3.1 Sequoia
Still trying to think of the name though.


"Stuffit" perhaps...???




- Patrick
======
 
Joined
Oct 16, 2010
Messages
18,166
Reaction score
1,910
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2020 27" i9 5K nano iMac, 1TB(partitioned) SSD, GB, macOS 15.3.1 Sequoia
Still trying to think of the name though.


"Stuffit" perhaps...or maybe "Compact Pro"...???




- Patrick
======
 

Slydude

Well-known member
Staff member
Moderator
Joined
Nov 15, 2009
Messages
17,930
Reaction score
1,352
Points
113
Location
North Louisiana, USA
Your Mac's Specs
M1 MacMini 16 GB - Sequoia, iPhone 14 Pro Max, 2015 iMac 16 GB Monterey
I know it wasn't Stuffit but I'm still searching the old memory banks. Compact Pro just doesn't sound right. If I keep search maybe this "file not found" error will go away.
 


Write your reply...

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top