Creating a RAM Disk on a Mac Mini M1

Create an 8GB RAM Disk
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://16384000`

The size argument is calculated as MEGABYTES * 2048. So if you want a 256mb ram disk…. 256 * 2048 = 524288

Leave a comment

Your email address will not be published. Required fields are marked *