public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to mount /tmp as tmpfs?
@ 2013-01-06 21:59 Nikos Chantziaras
  2013-01-06 22:19 ` Canek Peláez Valdés
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nikos Chantziaras @ 2013-01-06 21:59 UTC (permalink / raw
  To: gentoo-user

It seems that mounting /tmp as a tmpfs filesystem isn't just a matter of 
adding an fstab entry.  Sometimes, on bootup, I get error messages:

   fusermount: error: /tmp/dsflkjslfjsdlsomegarbledname doesn't exist

Or something like that (it scrolls by very fast and openrc doesn't seem 
to log anything.)

Is there a safe way to mount /tmp early on?  It seems that mounting it 
through fstab is mounting it too late and files have already been 
created in it (which are then lost when mounting it.)



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] How to mount /tmp as tmpfs?
  2013-01-06 21:59 [gentoo-user] How to mount /tmp as tmpfs? Nikos Chantziaras
@ 2013-01-06 22:19 ` Canek Peláez Valdés
  2013-01-06 22:20 ` Volker Armin Hemmann
  2013-01-06 22:21 ` Mark Knecht
  2 siblings, 0 replies; 4+ messages in thread
From: Canek Peláez Valdés @ 2013-01-06 22:19 UTC (permalink / raw
  To: gentoo-user

On Sun, Jan 6, 2013 at 3:59 PM, Nikos Chantziaras <realnc@gmail.com> wrote:
> It seems that mounting /tmp as a tmpfs filesystem isn't just a matter of
> adding an fstab entry.  Sometimes, on bootup, I get error messages:
>
>   fusermount: error: /tmp/dsflkjslfjsdlsomegarbledname doesn't exist
>
> Or something like that (it scrolls by very fast and openrc doesn't seem to
> log anything.)
>
> Is there a safe way to mount /tmp early on?  It seems that mounting it
> through fstab is mounting it too late and files have already been created in
> it (which are then lost when mounting it.)

Why is /tmp being mounted by fusermount? Can you show us yout fstab
/tmp entry? Mine looks like:

tmpfs		/tmp		tmpfs		defaults,nosuid,size=100%	0 0

It's mounted like this:

# mount|grep /tmp
tmpfs on /tmp type tmpfs (rw,nosuid,relatime,size=6008324k)

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] How to mount /tmp as tmpfs?
  2013-01-06 21:59 [gentoo-user] How to mount /tmp as tmpfs? Nikos Chantziaras
  2013-01-06 22:19 ` Canek Peláez Valdés
@ 2013-01-06 22:20 ` Volker Armin Hemmann
  2013-01-06 22:21 ` Mark Knecht
  2 siblings, 0 replies; 4+ messages in thread
From: Volker Armin Hemmann @ 2013-01-06 22:20 UTC (permalink / raw
  To: gentoo-user; +Cc: Nikos Chantziaras

Am Sonntag, 6. Januar 2013, 23:59:21 schrieb Nikos Chantziaras:
> It seems that mounting /tmp as a tmpfs filesystem isn't just a matter of
> adding an fstab entry.  Sometimes, on bootup, I get error messages:
> 
>    fusermount: error: /tmp/dsflkjslfjsdlsomegarbledname doesn't exist
> 
> Or something like that (it scrolls by very fast and openrc doesn't seem
> to log anything.)
> 
> Is there a safe way to mount /tmp early on?  It seems that mounting it
> through fstab is mounting it too late and files have already been
> created in it (which are then lost when mounting it.)

tmpfs                   /var/tmp/portage tmpfs          rw,size=8G      0 0
tmpfs                   /tmp            tmpfs           rw,size=1G      0 0

have that in fstab and never got errors.

-- 
#163933


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] How to mount /tmp as tmpfs?
  2013-01-06 21:59 [gentoo-user] How to mount /tmp as tmpfs? Nikos Chantziaras
  2013-01-06 22:19 ` Canek Peláez Valdés
  2013-01-06 22:20 ` Volker Armin Hemmann
@ 2013-01-06 22:21 ` Mark Knecht
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Knecht @ 2013-01-06 22:21 UTC (permalink / raw
  To: Gentoo User

On Sun, Jan 6, 2013 at 1:59 PM, Nikos Chantziaras <realnc@gmail.com> wrote:
> It seems that mounting /tmp as a tmpfs filesystem isn't just a matter of
> adding an fstab entry.  Sometimes, on bootup, I get error messages:
>
>   fusermount: error: /tmp/dsflkjslfjsdlsomegarbledname doesn't exist
>
> Or something like that (it scrolls by very fast and openrc doesn't seem to
> log anything.)
>
> Is there a safe way to mount /tmp early on?  It seems that mounting it
> through fstab is mounting it too late and files have already been created in
> it (which are then lost when mounting it.)
>
>

Interesting question.

Have you perused these older threads, or possibly others like it? It
looks a _lot_ more involved than just an fstab entry.

http://forums.gentoo.org/viewtopic-t-371889-highlight-tmpfs.html

http://forums.debian.net/viewtopic.php?t=16450


HTH,
Mark


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-06 22:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-06 21:59 [gentoo-user] How to mount /tmp as tmpfs? Nikos Chantziaras
2013-01-06 22:19 ` Canek Peláez Valdés
2013-01-06 22:20 ` Volker Armin Hemmann
2013-01-06 22:21 ` Mark Knecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox