Gentoo Archives: gentoo-user

From: Song Zhiwei <songzw@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How to mount /var to RAM as tmpfs
Date: Fri, 21 Aug 2009 07:01:01
Message-Id: e8dc92830908210000j6ffa8457s7e49db8ccf8efba8@mail.gmail.com
In Reply to: [gentoo-user] Re: How to mount /var to RAM as tmpfs by Nikos Chantziaras
1 2009/8/21 Nikos Chantziaras <realnc@×××××.de>:
2 > On 08/21/2009 08:20 AM, Song Zhiwei wrote:
3 >>
4 >> Hi all,
5 >>
6 >> I am trying to install gentoo to an embedded system and I'd like to mount
7 >> /var to RAM as tmpfs. How can I do it? I tried to add mount command into
8 >> the file /etc/conf.d/rc-extra, but it didnot work.
9 >
10 > Mount points are specified in /etc/fstab.  I mount my /var/tmp/portage there
11 > with:
12 >
13 >  none  /var/tmp/portage  tmpfs  defaults  0 0
14 >
15 > You can look-up the tmpfs mount options to specify the amount of RAM.
16 > Default is half the RAM in the system.
17 >
18 > With that being said, your system will break horribly if you mount /var as a
19 > tmpfs.  /var is supposed to survive reboots.
20
21 This is the question. How to mount /var as a tmpfs and the system will
22 not break?
23
24
25 >
26 >
27 >

Replies

Subject Author
Re: [gentoo-user] Re: How to mount /var to RAM as tmpfs Alan McKinnon <alan.mckinnon@×××××.com>