11
8
I am using a command like so to create a ram disk:
diskutil erasevolume HFS+ "ram disk" `hdiutil attach -nomount ram://307200`
This works succesfully, and I get a /Volumes/ram disk mounted on my system that I can use that is mounted from /dev/disk5 or some such place.
I would like to be able to control where this goes, to be able to mount to /tmp/my_dir or where-ever. I have tried many combinations of changing parameters in hdiutil and diskutil without success. What is the right way to do this?
Use a symbolic link to make it appear where you desire. – martineau – 2012-08-02T17:21:33.363
I figured out a way to get this done, but I had to do it in more than one step in a bash script – Derek – 2012-08-02T18:12:40.747
You can accept your own answer here (and share the details with the rest of us in the process ;-). – martineau – 2012-08-03T17:32:11.757