How to create RAM disk?
Bill Mueller
bmueller at terrasoftsolutions.com
Mon Jul 11 15:21:35 MDT 2005
Easiest way to do it is to dd some free space into /dev/ramX and mount
it as a loop device.
Might have the syntax a bit off, but something like this should work for a
64Meg ramdisk:
dd if=/dev/ram0 of=/dev/zero bs=1k count=64k
mkfs.ext3 /dev/ram0
mkdir /mnt/my_ramdisk
mount /dev/ram0 /mnt/my_ramdisk -o loop
Google might help too, but this should get you started.
-Bill
Quoting Jeffrey Paul Burger <jeff at sedona.net>:
> I need to create a RAM disk so that I can read and write files to memory for
> faster performance. I don't seem to have tmpfs. Can anybody advise me how to
> either how to acquire tmpfs or use some other means of creating a RAM disk?
>
> Thanks!
>
> Jeff
>
> Jeffrey Paul Burger
> 2675 W. Hwy. 89A - PMB 455
> Sedona, AZ 86336
> 928-203-0170
>
> "There are only two ways to live your life.
> One is as though nothing is a miracle.
> The other is as if everything is."
> --Albert Einstein
>
>
>
> _______________________________________________
> yellowdog-general mailing list
> yellowdog-general at lists.terrasoftsolutions.com
> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
> HINT: to Google archives, try '<keywords> site:terrasoftsolutions.com'
>
--------------------------------------------
http://YDL.net - The online community for Yellow Dog Linux users
More information about the yellowdog-general
mailing list