SUMMARY : filesystem to ram

From: jean.schuller <Jean.Schuller_at_IReS.in2p3.fr>
Date: Fri, 24 Sep 1999 14:50:26 +0200 (MET DST)

        Hi managers,

        I got so fast a lot of answers. All pointed to use mfs .

        Thanks a lot to :

Luchini Marco, David A. Massaro.

Thanks also to Fliguer Miguel who wrote about mfs :
The mfs command builds a memory file system (mfs), which is a UFS file
system in virtual memory, and mounts it on the specified mount-node. When
the file system is unmounted, mfs exits and the contents of the file system
are lost. If mfs is sent a signal while running, for example during system
shutdown, it attempts to unmount its corresponding file system. The
parameters for mfs are almost the same as those for newfs. For a memory file
system, the special-device file provides only a set of configuration
parameters, including the size of the virtual memory segment to allocate. If
the special-device file is omitted, you must specify the segment size.
The special-device file is usually the primary swap area, because that is
where the file system is backed up when free memory gets low and the
memory supporting the file system has to be paged.

  You can enable /tmp as a memory file system by adding an entry in the
  /etc/fstab file. For example, the following line creates a 10 Megabyte
  memory file system, mounted on /tmp:

       -s20480 /tmp mfs rw 1 0

  Note that the contents of a memory file system are lost whenever a
reboot or unmount is performed

 
And finaly Robert Carsey says :
Look into the MFS file system -- man 8 mfs should give you a good feel...
heres a snippit:

You can enable /tmp as a memory file system by adding an entry in the
  /etc/fstab file. For example, the following line creates a 10 Megabyte
  memory file system, mounted on /tmp:

       -s20480 /tmp mfs rw 1 0




        Many thanks

        JEAN

-----------------------------------------------------------------------------
jean.schuller_at_ires.in2p3.fr _/ _/_/_/ _/_/_/ _/_/_/_/
                                _/ _/ -/ _/ _/ _/
                               _/ _/_/_/-/ _/_/_/ _/_/_/_/
                              _/ _/ -/ _/ _/
                             _/ _/ _/ _/_/_/ _/_/_/_/
local call: 0388106630 Institut de Recherches Subatomiques
foreign call: (33)388106630 Boîte Postale 28
local fax : 0388106234 23, Rue du Loess
foreign fax : (33)388106234 F-67037 STRASBOURG CEDEX - France
-----------------------------------------------------------------------------
Received on Fri Sep 24 1999 - 12:48:55 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT