$ diskutil list
$ hdiutil attach -nomount -nobrowse ram://120000 # 120000 * 512bytes
$ newfs_hfs /dev/disk* # <- * is number generated by previous command
$ mount -t hfs -v /dev/disk* /tmp/ramdisk # <- * is number generated by previous command
$ umount /tmp/ramdisk
$ hdiutil detach /dev/disk* # <- * is number generated by previous command