List All Mounted Drives and their Partitions from the Terminal

Dec 1, 2009 - 5 Comments

list mounted drives

To list all mounted drives and their accompanying partitions from the Terminal on Mac OS X, you can use the diskutil command with the list flag.

This is easily done at the command line by typing the following command:

diskutil list

Hit return to see the results, showing all mounted volumes, drives, and their respective partitions.

This will give you feedback like the following, listing out the mounted drives, their volume names, the size of the drive and partitions, their partition types, and their identifier location:

$ diskutil list
0: GUID_partition_scheme *121.3 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 120.5 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
0: Apple_partition_scheme *21.0 MB disk1
1: Apple_partition_map 32.3 KB disk1s1
2: Apple_HFS Sample-OSXDaily-Drive 1.2.6 20.9 MB disk1s2

This is also demonstrated in the screenshot shown above with a much more accurate representation of formatting, when it is printed in your own terminal it will display nicely in tables, making it easily scannable and readable.

Note that all partitions are shown through this command, including hidden partitions like the Recovery HD, the EFI partition, and partition map and scheme information.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: David Mendez in Command Line, How to, Mac OS X, Tips & Tricks


» Comments RSS Feed

  1. Bill sheehan says:

    Diskutil does not show ALL mounted drives. Diskutil only shows local disks.

    To see all mounted partitions, use df (or df -h for human-readable partition sizes.)

  2. Fedir says:

    +1 pour df -h

  3. […] output is obviously much shorter than the full output of diskutil list which we showed […]

Leave a Reply


Shop on and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks


iPhone / iPad