I was already familiar with the diskutil command in Mac OS, which basically just returns a list of physical and logical partitions of drives connected to your Mac (both internal and external).

But today I found out about an even more useful command to see detailed disk information using Mac OS X’s Terminal: diskutil cs list.

Now, cs stands for Core Storage, which apparently is not a new technology, having been introduced back at the time of Mac OS X Lion. I must say I have not kept current with regards to this :D

Anyway, this command is basically a diskutil list on steroids. In addition to information included in the “parent” command, now you can get much more detailed information about your drives and partitions including (which was most interesting to me), disk encryption information. The output is also nicely formatted, which always helps.

This is an example output from my machine:

Daniels-MacBook-Pro:~ daniel$ diskutil cs list
CoreStorage logical volume groups (2 found)
|
+-- Logical Volume Group B659C5CD-A796-4AF6-9D8F-8CA1912F7E10
|   =========================================================
|   Name:         Macintosh HD
|   Status:       Online
|   Size:         120473067520 B (120.5 GB)
|   Free Space:   12656640 B (12.7 MB)
|   |
|   +-< Physical Volume E900E3CC-5FFA-4D23-952D-2E0F9257152E | | ---------------------------------------------------- | | Index: 0 | | Disk: disk0s2 | | Status: Online | | Size: 120473067520 B (120.5 GB) | | | +-> Logical Volume Family 08F9A013-B8BE-451B-A2AA-B9C4406414C5
|       ----------------------------------------------------------
|       Encryption Type:         None
|       |
|       +-> Logical Volume F04EDF0A-4B41-4B4B-92DD-9BAB1EFEC822
|           ---------------------------------------------------
|           Disk:                  disk1
|           Status:                Online
|           Size (Total):          120108089344 B (120.1 GB)
|           Revertible:            Yes (no decryption required)
|           LV Name:               Macintosh HD
|           Volume Name:           Macintosh HD
|           Content Hint:          Apple_HFS
|
+-- Logical Volume Group 185A02CC-AA61-4D42-9DB8-CFD7B851EE8E
    =========================================================
    Name:         Toshiba 1TB
    Status:       Online
    Size:         999860912128 B (999.9 GB)
    Free Space:   18923520 B (18.9 MB)
    |
    +-< Physical Volume E4CA2B3F-BCFF-4979-81B9-08640414AD73 | ---------------------------------------------------- | Index: 0 | Disk: disk3s2 | Status: Online | Size: 999860912128 B (999.9 GB) | +-> Logical Volume Family C2C6DCB6-E3E9-4A22-B609-6B6D55968560
        ----------------------------------------------------------
        Encryption Type:         AES-XTS
        Encryption Status:       Unlocked
        Conversion Status:       Converting (forward)
        High Level Queries:      Not Fully Secure
        |                        Passphrase Required
        |                        Accepts New Users
        |                        Has Visible Users
        |                        Has Volume Key
        |
        +-> Logical Volume D6B7ECAC-0E65-4509-B28E-721980A08DA4
            ---------------------------------------------------
            Disk:                  disk5
            Status:                Online
            Size (Total):          999489667072 B (999.5 GB)
            Conversion Progress:   1%
            Revertible:            Yes (unlock and decryption required)
            LV Name:               Toshiba 1TB
            Volume Name:           Toshiba 1TB
            Content Hint:          Apple_HFS

I guess you really never stop learning.