Closed 2Shirt closed 3 years ago
Create RAMDisk: hdiutil attach -nomount ram://size
(returns disk path e.g. /dev/disk2
)
Where size = MiB ( (1024^2) / 512) or MiB2048
Format RAMDisk: diskutil eraseVolume HFS+ 'RAM Disk' path-to-disk
Combined example (128MiB): diskutil eraseVolume HFS+ 'RAM Disk' $(hdiutil attach -nomount ram://262144)
Addressed in the nebulous commit: 5b4139e3c807ac3ac2f56b2bbd5590f4e1a04c79