create-ram-disk is a tiny little Mac command-line tool that creates, formats and
mounts a RAM disk of the given name and size. It wraps the built-in tools
hdiutil
and diskutil
in a slightly more friendly manner, and does cleanup
if the commands fail for some reason.
create-ram-disk is licensed under three-clause BSD. The license document can be found here.
- Clone create-ram-disk using
$ git clone git://github.com/iKenndac/create-ram-disk.git
. - Open the project and build away!
$ create-ram-disk -name <RAM disk name> -size <size> [-wait <seconds>]
-
-name
The name of the RAM disk. Will be used as the mount point and the volume's label. -
-size
The size of the RAM disk. Value must be a nonzero integer followed byMB
orGB
, such as500MB
or2GB
. -
-wait
A positive number of seconds to wait for/Volumes
to become available. Can be helpful if executing at startup.