Skip to main content
WinFsp-MemFs-Extended is invoked using the memefs command with various options to configure the RAM disk behavior.

Usage syntax

memefs OPTIONS

Required options

At minimum, you must specify either a mount point (-m) for disk mode or a UNC prefix (-u) for network mode.

Command-line flags

-s MaxFsSize

Type: Integer (64-bit) Default: 0 (unlimited) Description: Specifies the maximum total memory size for the filesystem in bytes. If not specified or set to 0, the filesystem has no memory limit.
memefs -s 1073741824 -m R:
This creates a 1GB RAM disk. You can specify the value in bytes or use hexadecimal notation (e.g., 0x40000000).

-m MountPoint

Type: String Default: None Description: Specifies the drive letter or mount point for the RAM disk. Use * to automatically select an available drive letter. Required if no UNC prefix is specified.
memefs -s 1073741824 -m R:
memefs -s 1073741824 -m *

-i

Type: Flag (no value) Default: Case-sensitive Description: Enables case-insensitive file system behavior. When enabled, files like README.txt and readme.txt are treated as the same file.
memefs -s 1073741824 -m R: -i

-f

Type: Flag (no value) Default: Disabled Description: Enables flush and purge cache on cleanup. This ensures that file system buffers are flushed and purged when files are closed.
memefs -s 1073741824 -m R: -f

-F FileSystemName

Type: String Default: System default Description: Specifies the file system name reported to Windows. This affects how the file system appears in system properties and tools.
memefs -s 1073741824 -m R: -F NTFS

-l VolumeLabel

Type: String Default: None Description: Sets an optional volume label name for the RAM disk. This label appears in File Explorer and system tools.
memefs -s 1073741824 -m R: -l "Ram Disk"

-u \Server\Share

Type: String (UNC path) Default: None Description: Specifies a UNC prefix for network mode. Use a single backslash in the actual command. When specified, the filesystem operates in network mode instead of disk mode.
memefs -s 1073741824 -u \\Server\\RamDisk

-S RootSddl

Type: String (SDDL) Default: None Description: Specifies Security Descriptor Definition Language (SDDL) for root directory permissions. Use file rights like FA (File All Access). Generic rights like GA are not supported.
memefs -s 1073741824 -m R: -S "D:P(A;;FA;;;WD)"

-d DebugFlags

Type: Integer Default: 0 (no debug output) Description: Enables debug logging with specified flags. Use -1 to enable all debug logs.
memefs -s 1073741824 -m R: -d -1

-D DebugLogFile

Type: String (file path) Default: None Description: Specifies a file path for debug log output. Use - to output to stderr.
memefs -s 1073741824 -m R: -D C:\Logs\memefs.log
memefs -s 1073741824 -m R: -D -

-?

Type: Flag (no value) Description: Displays usage information and exits.
memefs -?

Common flag combinations

Basic RAM disk

memefs -s 2147483648 -m R:

Case-insensitive RAM disk with volume label

memefs -s 1073741824 -m R: -i -l "RAM Drive"

NTFS-compatible RAM disk

memefs -s 1073741824 -m R: -i -F NTFS -l Ram

Network RAM disk with UNC path

memefs -s 1073741824 -u \\Server\\Share -i

Build docs developers (and LLMs) love