![]() ![]() The basic syntax for erasing a disk from the command line in macOS is as follows:ĭiskutil eraseDisk FILE_SYSTEM DISK_NAME DISK_IDENTIFIERįor example, let’s say you have used “diskutil list” to show all of mounted drives on a Mac from the command line, and you have determined the appropriate drive to erase is identified as /dev/disk6s2, you want the disk name to be “Emptied” and you want the new disk file system format type to be Mac OS Extended Journaled (JHFS+), the syntax would be the following:ĭiskutil eraseDisk JHFS+ Emptied /dev/disk6s2 To erase a disk from the command line on the Mac, we’ll use the familiar “diskutil” command with the eraseDisk verb and other appropriate flags to specify options for how we want to erase the disk, and to identify which disk is to be erased. It can be found with Spotlight, Launchpad, or in the /Applications/Utilities/ folder. ![]() To get started, you’ll need to launch the Terminal application on the Mac which gives access to the command line. How to Erase a Disk from the Command Line of Mac OS ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |