List Info

Thread: Re: RAM disk




Re: RAM disk
user name
2008-02-20 10:26:18
Scott Lawrence wrote:

> On Mon, Feb 18, 2008 at 8:16 AM, David Brownlee
<absnetbsd.org> wrote:
> 
>>        The simplest option is probably to mount a
tmpfs filesystem and
>>        copy the files you want to it, then copy
things back when done.
>>
>>        eg:
>>
>>        # mkdir /ramdisk
>>        # mount -t tmpfs tmpfs /ramdisk
> 
> 
> mount_tmpfs: tmpfs on /ramdisk: Operation not supported
by device
> 
> 
> 
>>
>>        # cp -R /somedir /ramdisk
>>
>>        the tmpfs will grow and shrink as necessary,
so watch out if you
>>        put too much data on there and use up all
your ram...
>>
> 
> Understood
> 
> this seems like the solution for me.
> 
> I'll try out the other things you suggested asap.
> 
> -s
> 
> 
Scott

I think the 4.0 kernel does not have TMPFS configured as
default, so you
need to compile the kernel with option TMPFS


risto


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )