The dir /tmp is just a symlink to /var/tmp, i created /rd (ramdisk) and
mounted /dev/ram0 to it and it worked without a problem
bernard.parisse schrieb:
> 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
>
> _______________________________________________
> H1900-port mailing list
> H1900-port_at_handhelds.org
> https://handhelds.org/mailman/listinfo/h1900-port
>
Received on Wed Jan 04 2006 - 16:58:22 EST
This archive was generated by hypermail 2.2.0 : Wed Jan 04 2006 - 16:58:34 EST