List All Mounted Drives and their Partitions from the Terminal

Dec 1, 2009 - 4 Comments

list mounted drives

To list all mounted drives and their accompanying partitions from the Terminal, type the following command:

diskutil list

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
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
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
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
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

4 Comments

» 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 for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

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