1 |
On Friday 21 August 2009 09:00:58 Song Zhiwei wrote: |
2 |
> 2009/8/21 Nikos Chantziaras <realnc@×××××.de>: |
3 |
> > On 08/21/2009 08:20 AM, Song Zhiwei wrote: |
4 |
> >> Hi all, |
5 |
> >> |
6 |
> >> I am trying to install gentoo to an embedded system and I'd like to |
7 |
> >> mount /var to RAM as tmpfs. How can I do it? I tried to add mount |
8 |
> >> command into 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 |
11 |
> > there 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 |
19 |
> > as a 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 |
You can't, simple as that. |
25 |
|
26 |
The portage data base is there. You'd have to move it elsewhere along with the |
27 |
cache. Details in the portage documentation. |
28 |
|
29 |
-- |
30 |
alan dot mckinnon at gmail dot com |