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:
$2048$ memory blocks correspond to 1MB. Thus,XXXXX
=YYYY
* 2048 whereYYYY
is the size in MB.
E.g.
ram://2048
will create 1MB RAM diskram://2097152
--> 1 GBram://4194304
--> 2 GBram://8388608
--> 4 GB
- TmpDisk:: Open Source RAM disk management app.
- Ultra RAM Disk installs as a menu bar item that allows you to create RAM disks when needed.
- RAMDisk: is an app for creating as well as backing up RAM disks, to allow you to save their contents as well as restore RAM disks when you restart your Mac.
- RAMDiskCreator
Update in 2021: it seems that TmpDisk is the only GUI option now. At least, for me.