Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to mount /tmp as tmpfs?
Date: Sun, 06 Jan 2013 22:21:51
Message-Id: CADPrc81LOGWRJuQidQ78cfun6nqM3RkmU46QYiYG8+ZOK19LCQ@mail.gmail.com
In Reply to: [gentoo-user] How to mount /tmp as tmpfs? by Nikos Chantziaras
1 On Sun, Jan 6, 2013 at 3:59 PM, Nikos Chantziaras <realnc@×××××.com> wrote:
2 > It seems that mounting /tmp as a tmpfs filesystem isn't just a matter of
3 > adding an fstab entry. Sometimes, on bootup, I get error messages:
4 >
5 > fusermount: error: /tmp/dsflkjslfjsdlsomegarbledname doesn't exist
6 >
7 > Or something like that (it scrolls by very fast and openrc doesn't seem to
8 > log anything.)
9 >
10 > Is there a safe way to mount /tmp early on? It seems that mounting it
11 > through fstab is mounting it too late and files have already been created in
12 > it (which are then lost when mounting it.)
13
14 Why is /tmp being mounted by fusermount? Can you show us yout fstab
15 /tmp entry? Mine looks like:
16
17 tmpfs /tmp tmpfs defaults,nosuid,size=100% 0 0
18
19 It's mounted like this:
20
21 # mount|grep /tmp
22 tmpfs on /tmp type tmpfs (rw,nosuid,relatime,size=6008324k)
23
24 Regards.
25 --
26 Canek Peláez Valdés
27 Posgrado en Ciencia e Ingeniería de la Computación
28 Universidad Nacional Autónoma de México