How To Tips

How to Create RAM Disk in Mac OS Tutorial


How to Create RAM Disk in Mac OS
How to Create RAM Diskn Mac OS

Need to make a ultra-quick RAM Disk in Mac OS X? We have you secured with a summon line trap that will produce a RAM plate of any size of your picking. These guidelines have been overhauled to bolster all forms of OS X, from advanced discharges to more established ones as well, so regardless of what you’re running on the Mac, you’ll get a quick RAM circle running in the blink of an eye by any means.

Do remember that RAM plates are transitory, and a reboot will bring about the information on the RAM Disk to tidy up (simply like RAM). So also, launching the RAM plate will expel it, and delete all information put on the RAM Disk. This makes RAM Disk fitting for impermanent circumstances, reserves, and circumstances where you require quick plate read and write speeds.

How to Create RAM Diskn Mac OS

How to Create RAM Disk in Mac OS X 10.8, 10.9, 10.10

From OS X Yosemite, Mountain Lion, OS X Mavericks, and apparently past, a basic ultra quick RAM plate can be made with the accompanying summon string:

diskutil erasevolume HFS+ ‘RAM Disk’ `hdiutil connect – nomount ram://1165430`

That case will make a 600MB RAM plate, the number on the closures the extent of the RAM circle.

To compute the measure of the RAM circle to make, or to create your own, utilization the accompanying recipe:

Size of RAM plate coveted * 2048 = add up to indicate

Utilizing the above illustration, that would be:

569*2048 = 1165430

You can simply switch this with division too, maths fun eh:

1165430/2048 = 569

How to Create RAM Diskn Mac OS

Simple enough formula, and that applies to generating RAM disks in all versions of OS X.

Here’s a 128MB RAM disk for example:

diskutil erasevolume HFS+ ‘RAM Disk’ `hdiutil attach -nomount ram://262144`

I use a smaller RAM disk like that sometimes for cache files in OS X, it’s quite nice.

As usual with the command line, be sure to use proper syntax and to put commands onto a single line.

How to Create RAM Diskn Mac OS

How to Create RAM Disk in Mac OS X 10.5, 10.6, 10.7

Thesenstructions are to create a RAM diskn OS X 10.5 Leopard, Snow Leopard, Lion,f you have troubles with the below commands for earlier version of Mac OS, try the following to create a 550mb RAM disk:

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

This has been tested and worksn OS X 10.5.8, and 10.6.3, note that to remove the RAM disk you can simply ejectt from the desktop as you would any other disk.

 

Thesenstructions are to make a RAM diskn OS X 10.5 Leopard, Snow Leopard, Lion,f you have issues with the underneath commands for prior rendition of Mac OS, try the following to create a 550mb RAM disk:

diskutil erasevolume HFS+ “ramdisk” `hdiutil append – nomount ram://1165430`

This has been tried and works in OS X 10.5.8, and 10.6.3, note that to evacuate the RAM disk you can simply eject it from the desktop as you would in any other Disk.

How to Create RAM Diskn Mac OS

How to Create RAM Disk in Mac OS X 10.4 and earlier

Prior variants of OS X handle RAM plate creation a bit in an unexpected way, butt’s still conceivable.

Here’s the original tip, sent in from one of our readers about creating an ultra-fast RAM disk in Mac OS X, as Stephen Adelson writes: “Back in Mac OS 9 and earlier you could make a RAM disk, a temporary disk that was super fast because it was read from system memory, or RAM, and not a relatively slow moving hard drive. In Mac OS X the feature has been removed from an easy GUInterface, but you can get the same effect and create your own RAM disk directly by typing the following commands in any terminal window.”

Here’s the first tip, sent in from one of our perusers about making a ultra-quick RAM disk in Mac OS X, as Stephen Adelson writes: “Back in Mac OS 9 and earlier you could make a RAM disk, a temporary disk that was super fast because it was read from system memory, or RAM, and not a relatively slow moving hard drive. In Mac OS X the feature has been removed from an easy GUInterface, but you can get the same effect and create your own RAM disk directly by typing the following commands in any terminal window.”

How to Create RAM Diskn Mac OS

Let’s follow Stephen’snstructions below to create a to make a RAM disk in Mac OS X:

Type the following exactly in the Terminal (the $ represents a bash prompt and is not to be typed):
$ 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

Much appreciated Stephen for the immense tip!

This has been updated to work with OS X Yosemite, OS X Mavericks, OS X Mountain Lion, Lion, Snow Leopard, Leopard, and Tiger. Basically, if it’s a Mac running a version of OS X, the above tricks will work for you to create a RAM disk.

 

 

 

Source

Article: How to Create RAM Disk in Mac OS Tutorial

Jojit Dela Pena | Graphic Designer in Dubai

Final Thoughts

Overall Score 0
Readers Rating
0 votes
0

1 Comment on How to Create RAM Disk in Mac OS Tutorial

Leave a Reply