MOUNT_TMPFS(8) System Manager's Manual MOUNT_TMPFS(8)

mount_tmpfsmount a tmpfs volume

mount_tmpfs [-o options] [-i | -e] [-n max_nodes] [-s max_mem_size] directory

The mount_tmpfs command creates a new tmpfs (in-memory file system) volume and attaches it to the global file system namespace at the location indicated by directory.

The options are as follows:

options
Options passed to mount(2) are specified with the -o option followed by a comma separated string of options. See the mount(8) man page for possible options and their meanings.
Make the volume case-insensitive (default).
Make the volume case-sensitive.
max_nodes
Set the maximum number of nodes available to the file system to max_nodes.
max_mem_size
Set the maximum total file system size to max_mem_size bytes, unless suffixed with one of k, m, g, or t, which denote kilobyte, megabyte, gigabyte and terabyte respectively.

The mount_tmpfs utility exits 0 on success, and >0 if an error occurs.

mount(2), unmount(2), mount(8), umount(8)

The mount_tmpfs utility first appeared in macOS 11.

September 16, 2020 Mac OS X