Linux RAM Disks

Ram disks are virtual disks that use RAM as super fast storage, with the "side effect" that they are not reboot persistent. Modern computers have a lot of RAM, and sometime one may need a super fast disk storage of a limited size to speed up some disk intensive tasks. On Linux you can mount some ram into a folder, and this is very convenient for transparently using ramfs in places where nobody thought about it before.

My little quick reference:

Mount ramfs to a folder

$ sudo mount -t ramfs /dev/ram0  ~/tmp/ram

Remeber to chown and chmod to specify access permissions

Verify mounted ram disks (to check availability)

$ mount | grep ram

Check ramdisk details

$ sudo tune2fs -l /dev/ram0

And this is how the RAM disk will look like on your Ubuntu desktop once mounted:
Ram Disk

References:
Linux Ramdisk mini-HOWTO
Using the RAM disk block device with Linux


No Responses to “Linux RAM Disks”  

  1. No Comments

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Calendar

August 2009
M T W T F S S
« Jul   Sep »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening