Re: How to convert /tmp to memfs after install

From: Bob Bailin (72027.3605_at_compuserve.com)
Date: 10/18/05


Date: Tue, 18 Oct 2005 15:09:59 GMT


<third@whasup.com> wrote in message news:dj2ob6$evg$1@reader2.panix.com...

[...]

> Try this one:
>
> mount -F memfs -o swapmax=SIZE_IN_BYTES /dev/mem MOUNT_POINT

"/dev/mem": a crucial bit of info left out of the man page.

After first mistyping the 'swapmax' option as 'swapmem', I see that
/etc/mount is a script that calls the appropriate mount binary, in this case
for memfs it's 'mount.svr5':

# mount -F memfs -o swapmem=64000 /dev/mem /tmp
UX:memfs mount.svr5: ERROR: illegal option: swapmem=64000
UX:memfs mount.svr5: TO FIX: Usage:
mount.svr5 [-F memfs] [generic_options] [-r] [-o {swapmax=xx | global_swapmax=xx
}, rootmode=xx] special mount_point

Does 'special' have to be /dev/mem, or is this parameter ignored?
According to this test:

# mount -F memfs -o swapmax=64000 /dev/tty /tmp
# df -v
Mount Dir Filesystem blocks used free %used
/ /dev/root 5426356 3993352 1433004 74%
/stand /dev/boot 81918 12806 69112 16%
/proc /proc 0 0 0 -
/dev/fd /dev/fd 0 0 0 -
/dev/_tcp /dev/_tcp 0 0 0 -
/system/pr /processorfs 0 0 0 -
/tmp /dev/tty 128 0 128 0%

it seems to be ignored. Therefore, the /etc/mount script should be
modified to supply a dummy '/dev/mem' argument when -F is memfs,
if only to avoid bogus filesystem entries in df -v listings.

Bob