Re: RAM disk

Risto Sainio <[email protected]> Wed, 20 Feb 2008 17:26:18 +0100
Newsgroups gmane.os.netbsd.ports.hpcmips
Message-ID <[email protected]>
Scott Lawrence wrote:

> On Mon, Feb 18, 2008 at 8:16 AM, David Brownlee <[email protected]> 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