diskutil

Search diskutil

How to Show All Drive Devices in Disk Utility for MacOS

Aug 16, 2019 - 9 Comments
How to show all disk devices in Mac Disk Utility

You can adjust a setting in Disk Utility for Mac to see all device disks and drives connected to a Mac. This will make it so that you can view the containing drive (like “Apple SSD”) rather than simply the partition or volume that is accessible by the user facing part of the file system … Read More

How to View FileVault Progress When Encrypting a Mac Disk

Feb 8, 2017 - 1 Comment
Check Filevault encryption progress

Using Filevault on a Mac encrypts the entire hard drive and helps protect personal data from theft or unauthorized snooping. It’s a great security feature that many users enable when they’re first setting up their Mac, but some users may enable it or disable it later as well. There’s certainly nothing wrong with that, but … Read More

How to Erase a Disk from Command Line in Mac OS X

Aug 30, 2016 - 46 Comments
Erase disk from command line of Mac OS

Some Mac users may require the ability to erase a disk or erase a hard drive from the command line on Mac OS, a task which is typically performed through the Disk Utility application from the GUI. The command line approach to disk erasure in macOS is a bit different and it requires precise syntax … Read More

How to Find a Disk ID & Device Node Identifier in Mac OS X Command Line

Aug 9, 2016 - 6 Comments
diskutil list and find disk ID identifier information on Mac

If you need to find the disk ID or disk node identifier (like /dev/disk0s2) of a volume attached to a Mac for one reason or another, perhaps the easiest way to obtain this information from the command line is with the diskutil utility.

How to Secure Erase Free Space on Mac Drives with OS X El Capitan

Apr 28, 2016 - 20 Comments
Erase free space on a Mac drive from the command line

Many Mac users running a modern version of OS X El Capitan have noticed the Secure Erase Free Space feature has gone missing from Disk Utility. What the “Erase Free Space” feature did (and still does in prior versions of Mac OS X) was overwrite the free space on a drive to prevent file recovery, … Read More

How to Verify (& Repair) a Disk from the Command Line of Mac OS X

Jan 27, 2014 - 8 Comments
Repair Disk from the Command Line

The Disk Utility app bundled with Mac OS X has a command line equivalent which offers advanced users the ability to perform disk maintenance from the terminal, including disk verification and repairs. This allows for a variety of helpful troubleshooting abilities, including the possibility to remotely issue disk repairs though SSH, or through Single User … Read More

Mount & Unmount Drives from the Command Line in Mac OS X

May 13, 2013 - 52 Comments
Mount and unmount drives from the command line in Mac OS X

You can mount and unmount drives, volumes, and disks from the command line of MacOS and Mac OS X. For many users, the easiest way to unmount a drive in Mac is to either just drag a volume into the Trash, use the eject keys, disconnect the drive, or use one of the force eject … Read More

Deleting the Mac OS X 10.7 Lion “Recovery HD” Partition

Jun 30, 2011 - 43 Comments
diskutil list

If you want to remove the Mac OS X 10.7 Lion “Recovery HD” partition, you’ll need to do a little bit of work because it’s a hidden partition. Hidden means it’s not just a matter of using your dual boot to go into 10.6 and then deleting it with Disk Utility. Quick side note for … Read More

Repair Disk Permissions from the Command Line in Mac OS X

Aug 10, 2010 - 10 Comments
Use Disk Utility to erase free space on a Mac hard drive

In some situations, you may need to repair a Macs disk permissions but be unable to access the Disk Utility app, perhaps due to remote management or because of a problem with something in OS X. Fortunately there’s another method you can use to repair disk permissions in Mac OS X, accessible through the command … Read More

List All Mounted Drives and their Partitions from the Terminal

Dec 1, 2009 - 5 Comments

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 approach will display all disks, drives, volumes, and containers on any drive connected to the Mac, including boot volumes, hidden volumes (like the Recovery partition), empty volumes, unformatted … Read More

Subscribe to OSXDaily

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

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site