5

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

5

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.

5

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

For example:

diskutil eraseDisk JHFS+ VolumeName /dev/disk2

Refer to the manual page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.