Monday, June 27, 2011

Create a RAM Disk in Mac

Create a RAM Disk in Mac OS X 10.5, 10.6 or above
It is a command to create a 550MB RAM disk, enter it after opening terminal

diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://1165430`

Create a RAM Disk in Max OS X 10.4 or below

$ hdid -nomount ram://52428800
$ newfs_hfs /dev/disk1
$ mkdir /tmp/ramdisk1
$ mount -t hfs /dev/disk1 /tmp/ramdisk1

to ditch the RAM disk and unmount it, just type
$ hdiutil detach /dev/disk1

Here are some apps to create RAM disk
Esperance DV
Ram Disk Utility Pro

No comments:

Post a Comment