L
L
lhav2011-06-22 14:07:06
macOS
lhav, 2011-06-22 14:07:06

Ramdisk in Mac OS X

At one time on Windows, I used a similar option.

What is the easiest way to implement the same thing in Mac OS X, and how justified is it to use it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
msa, 2011-06-22
@lhav

on 512M:
diskutil erasevolume HFS+ "ramdisk" $(hdiutil attach -nomount ram://1165430)

D
d0znpp, 2012-06-08
@d0znpp

the value 1165430 is in blocks, the calculation is made by multiplying the number of KB that the disk requires by 2048.
1Gb = 1024 * 2048 = 2097152

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question