Skip to content

Instantly share code, notes, and snippets.

@htr3n
htr3n / macos-ramdisk.md
Last active October 11, 2024 05:16
Creating RAM disk in macOS

Built-in

diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`

where XXXXX is the size of the RAM disk in terms of memory blocks.

Notes: