Re: ramdisk

From: bernard.parisse <bernard.parisse_at_wanadoo.fr>
Date: Wed, 04 Jan 2006 21:47:59 +0100

Arjan Schrijver wrote:

> Bernard Parisse wrote:
>
>> Is it possible to have a ramdisk and to add a line in /etc/fstab to
>> mount /tmp on the ramdisk? That way I could write temporary
>> files without making a write cycle each time on the SD card.
>> I tried to add ramdisk_size=1024 in default.txt but I can not find
>> something like /dev/ram to mount /tmp over.
>> Thanks...
>
>
> Hi Bernard,
>
> Ramdisk support is already built into the kernel (otherwise we
> wouldn't be able to use an initrd).
> AFAIK the device names are /dev/ram{0-9}.
>
Hi Arjan,

Thanks for your answer. It seems that I can mount /dev/ram0 on e.g.
/tmp, but
after that when I do ls /tmp I get some strange errors like
ls: /tmp/sbin: Input/output error
The device names listed in /dev are /dev/ram0 to /dev/ram15 which probably
means each /dev/ram* corresponds to a 8MB block.
I can't mount /dev/ram1 on /tmp.
Is this really a ramdisk that I can use safely or does /dev/ram0 map a
RAM sector that may be used by other apps (or the kernel)
and if I mount it and write a file there, it could be in a mapped ram
sector?

Regards,
Bernard
Received on Wed Jan 04 2006 - 16:42:36 EST

This archive was generated by hypermail 2.2.0 : Wed Jan 04 2006 - 16:43:10 EST