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

Mac OS X  |  Desktop Enhancements  |  Themes  |  Ram Disk Creator  |  Just create a ram disk using OSX itself

Ram Disk Creator

Ram Disk Creator

create RAM disks

Version:  1.0.1

   [ Views: 466 ]

Just create a ram disk using OSX itself

Feedback Type:  Commentary

Contributed by: kasbo Saturday, April 01 2006 @ 04:23 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   

2 of 2 users found this helpful.

Rate this Commentary

Was this Commentary helpful? Yes | No

Comments

0 comments |

No user comments.