Existing users, log in.  New users, create a free account.  Lost password?

Mac OS X  |  System / Utilities  |  Tweaks / Enhancements  |  ramBunctious X  |  Just use OSX itself to create a ram disk

ramBunctious X

ramBunctious X

RAM disk customized for desired speed, security.

Version:  2.0.1

   [ Views: 931 ]

Just use OSX itself to create a ram disk

Feedback Type:  Commentary

Contributed by: kasbo Saturday, April 01 2006 @ 04:25 AM PST

Product Platform: MacOSX

Used Product For: Have Not Tried

It seems really silly to pay somebody to do this when you can just use OSX's built-in functionality. Create a plain-text file with the following commands in it:

#!/bin/sh
NUMSECTORS=524288
# 64mb = 131072
# 128mb = 262144
# 256mb = 524288
# 512mb = 1048576
# 1gb = 2097152
mydev=`hdid -nomount ram://$NUMSECTORS`
newfs_hfs $mydev
mkdir /tmp/ramdrive
mount -t hfs $mydev /tmp/ramdrive

Save the file with a name like 'mkramdisk.sh', and give it executable permissions:

chmod 755 mkramdisk.sh

Run it. Voila. This script is right out of the man page for hdid. You can also read about doing this at

http://www.kernelthread.com/mac/osx/arch_fs.html

K   

5 of 5 users found this helpful.

Rate this Commentary

Was this Commentary helpful? Yes | No

Comments

1 comments |

Just use OSX itself to create a ram disk - nicerobot

Can the same technique be used to make the disk appear as though it is a CD/DVD-ROM drive?
I'd love to be able to "burn" to a RAM disk.

Reply to This

Tuesday, November 28 2006 @ 02:19 PM PST