How do you make filesystems in OSX? Mac OSX doesn't have the mkfs command.


2 Answers 2


You can use Disk Utility (diskutil from command-line).

For example:

diskutil eraseDisk JHFS+ VolumeName /dev/disk2

Refer to the manual page.


On BSD-derived Unix systems, newfs is more commonly used than mkfs.

Under Mac OS X, you would use newfs_type as the command, where type is one of hfs, msdos, exfat or udf. There are man pages for all of these. As the other answer mentions, you can use diskutil to create filestems but by using the newfs variants you can set specific filesystem parameters unavailable via diskutil.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .