TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: HENRI DERKSEN
from: A. DUMAS
date: 2018-07-31 10:33:00
subject: Re: Create NDIF disk imag

On 30/07/2018 10:11, Henri Derksen wrote:
>> Dennis Lee Bieber wrote:
>>> There is one already -- though I forget if it is /dev/shm or /run/shm
>>> [the R-Pi and the Beaglebone use different names].
>
>> Doesn't matter on Raspbian, one is an alias for the other.
>
> That may be, but I still do not know how to make a ram drive at starting up,
> and change the scratch from the SDcard to the ramdrive?
> I want to lower the amount of wear.

It already is a disk (well, a mount point), you can write to and read
from it. By "the scratch", do you mean the swap space? You could move
the swap there (Raspbian uses a swap file not swap partition, see
/etc/fstab), which I guess is possible if you have enough free memory.
Test how much memory you have with "free". Swap file configuration is in
/etc/dphys-swapfile. Of course that is completely self-defeating: swap
space gets used only when you're out of memory...

What you want is to make use of https://en.wikipedia.org/wiki/Tmpfs e.g.
as in https://www.raspberrypi.org/forums/viewtopic.php?t=208938

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.