Determining File System of volume
Solution 1:
In the upper image, a drive is highlighted. This drive is using a "GUID Partition Map". In the lower image, a partition on the drive is highlighted. I see the file system is "Mac OS Extended (Journaled)". The label is "HD710A".
User Gordon Davisson has suggested the following (in a comment):
One source of confusion: "Mac OS Extended (Journaled)" is the user-friendly name for Journaled HFS+ (sometimes abbreviated JHFS+). You can get a list of name equivalences with
diskutil listFilesystems
.
Below is the output from diskutil listFilesystems
when entered in a Big Sur (macOS 11.2) Terminal application window.
Formattable file systems
These file system personalities can be used for erasing and partitioning.
When specifying a personality as a parameter to a verb, case is not considered.
Certain common aliases (also case-insensitive) are listed below as well.
-------------------------------------------------------------------------------
PERSONALITY USER VISIBLE NAME
-------------------------------------------------------------------------------
Case-sensitive APFS APFS (Case-sensitive)
(or) APFSX
APFS APFS
(or) APFSI
ExFAT ExFAT
Free Space Free Space
(or) FREE
MS-DOS MS-DOS (FAT)
MS-DOS FAT12 MS-DOS (FAT12)
MS-DOS FAT16 MS-DOS (FAT16)
MS-DOS FAT32 MS-DOS (FAT32)
(or) FAT32
HFS+ Mac OS Extended
Case-sensitive HFS+ Mac OS Extended (Case-sensitive)
(or) HFSX
Case-sensitive Journaled HFS+ Mac OS Extended (Case-sensitive, Journaled)
(or) JHFSX
Journaled HFS+ Mac OS Extended (Journaled)
(or) JHFS+
The Disk Utility application does not always display all partitions and/or volumes. The drive in your example probably has an "FAT32" formatted EFI partition and may have a "Mac OS Extended (Journaled)" formatted macOS Recovery partition.
To get a better idea of all partitions and volumes, you should enter the command diskutil list
in a Terminal application window. Additional information can be obtained by using the diskutil info device
command, where device
can be an identifier or label.
Note: After using the Disk Utility application to perform a drive operation, you may need to quit (or Force Quit) and open the Disk Utility to see the correct results.
Also, the Disk Utility and diskutil
commands show cached information about unmounted volumes. For example, if you were to use the newfs_msdos
command to format and change the label of an unmounted EFI volume, the Disk Utility and diskutil command would not show the change until after the EFI partition was mounted or macOS was restarted.
Update:
After reading the addition input provided when the OP edited the question, I can add the information being sought can be output by entering the following commands. Here, device
should to be replaced by either an identifier or label.
diskutil info -plist device | grep -A1 -e FilesystemName -e Content
These commands can be placed in a function, as shown below.
fs() { diskutil info -plist $1|grep -A1 -e FilesystemName -e Content; }
The
Content
is the name assigned by macOS to the partition type stored in the drive partition table. TheFilesystemName
is the name assign by macOS to volume format.
Here is an example from a 2011 iMac with a Windows 10, High Sierra, Ubuntu triple boot setup. Below is the output from diskutil list
.
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Microsoft Basic Data Coelacanth 100.0 GB disk0s2
3: Microsoft Basic Data COELACANTH2 48.9 GB disk0s3
4: Apple_HFS Marlin 250.0 GB disk0s4
5: Apple_Boot Recovery HD 650.0 MB disk0s5
6: Apple_HFS Linux HFS+ ESP 209.7 MB disk0s6
7: Linux Filesystem 82.7 GB disk0s7
8: Linux Swap 16.4 GB disk0s8
9: Apple_HFS UBUNTU 939.5 MB disk0s9
10: Microsoft Basic Data REFIND 134.2 MB disk0s10
The commands below will provide the desired information for all the partitions.
for i in {1..10};do echo disk0s$i;fs disk0s$i;done
The output is given below. The no FilesystemName
match was found identifier disk0s7
because normally macOS can not mount ext4
formatted Linux partitions.
disk0s1
<key>Content</key>
<string>EFI</string>
--
<key>FilesystemName</key>
<string>MS-DOS FAT32</string>
disk0s2
<key>Content</key>
<string>Microsoft Basic Data</string>
--
<key>FilesystemName</key>
<string>NTFS</string>
disk0s3
<key>Content</key>
<string>Microsoft Basic Data</string>
--
<key>FilesystemName</key>
<string>ExFAT</string>
disk0s4
<key>Content</key>
<string>Apple_HFS</string>
--
<key>FilesystemName</key>
<string>Journaled HFS+</string>
disk0s5
<key>Content</key>
<string>Apple_Boot</string>
--
<key>FilesystemName</key>
<string>Journaled HFS+</string>
disk0s6
<key>Content</key>
<string>Apple_HFS</string>
--
<key>FilesystemName</key>
<string>HFS+</string>
disk0s7
<key>Content</key>
<string>Linux Filesystem</string>
disk0s8
<key>Content</key>
<string>Linux Swap</string>
--
<key>FilesystemName</key>
<string>Linux Swap</string>
disk0s9
<key>Content</key>
<string>Apple_HFS</string>
--
<key>FilesystemName</key>
<string>Journaled HFS+</string>
disk0s10
<key>Content</key>
<string>Microsoft Basic Data</string>
--
<key>FilesystemName</key>
<string>MS-DOS FAT16</string>
Here is another example from a VirtualBox virtual machine with a Big Sur and Windows 10 dual boot setup. Below is the output from diskutil list
.
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *274.9 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 224.3 GB disk0s2
3: Microsoft Basic Data BOOTCAMP 50.4 GB disk0s3
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +224.3 GB disk1
Physical Store disk0s2
1: APFS Volume BigSurNVMe - Data 2.3 GB disk1s1
2: APFS Volume Preboot 292.5 MB disk1s2
3: APFS Volume Recovery 613.6 MB disk1s3
4: APFS Volume VM 1.1 MB disk1s4
5: APFS Volume BigSurNVMe 15.1 GB disk1s5
6: APFS Snapshot com.apple.os.update-... 15.1 GB disk1s5s1
7: APFS Volume MyStuff 802.8 KB disk1s7
The commands below will provide the desired information for all the physical partitions.
for i in {1..3}; do echo disk0s$i;fs disk0s$i;done
The output is given below. The no FilesystemName
match was found identifier disk0s2
because this partition has an APFS container.
disk0s1
<key>Content</key>
<string>EFI</string>
--
<key>FilesystemName</key>
<string>MS-DOS FAT32</string>
disk0s2
<key>Content</key>
<string>Apple_APFS</string>
disk0s3
<key>Content</key>
<string>Microsoft Basic Data</string>
--
<key>FilesystemName</key>
<string>NTFS</string>
The command below will provide the desired information for all the APFS volumes.
for i in {1..5} 5s1 7; do echo disk1s$i;fs disk1s$i;done
The output is given below. These volumes reside in an APFS container and therefore do have a partition type stored in a drive partition table. Internally, macOS uses the UUID of 41504653-0000-11AA-AA11-00306543ECAC
for the Context
. Eventually, macOS has not assigned a name to this UUID.
disk1s1
<key>Content</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
--
<key>FilesystemName</key>
<string>APFS</string>
disk1s2
<key>Content</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
--
<key>FilesystemName</key>
<string>APFS</string>
disk1s3
<key>Content</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
--
<key>FilesystemName</key>
<string>APFS</string>
disk1s4
<key>Content</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
--
<key>FilesystemName</key>
<string>APFS</string>
disk1s5
<key>Content</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
--
<key>FilesystemName</key>
<string>APFS</string>
disk1s5s1
<key>Content</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
--
<key>FilesystemName</key>
<string>APFS</string>
disk1s7
<key>Content</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
--
<key>FilesystemName</key>
<string>Case-sensitive APFS</string>