On Friday 21 August 2009 09:00:58 Song Zhiwei wrote:
> 2009/8/21 Nikos Chantziaras <[email protected]>:
> > On 08/21/2009 08:20 AM, Song Zhiwei wrote:
> >> Hi all,
> >>
> >> I am trying to install gentoo to an embedded system and I'd like to
> >> mount /var to RAM as tmpfs. How can I do it? I tried to add mount
> >> command into the file /etc/conf.d/rc-extra, but it didnot work.
> >
> > Mount points are specified in /etc/fstab.  I mount my /var/tmp/portage
> > there with:
> >
> >  none  /var/tmp/portage  tmpfs  defaults  0 0
> >
> > You can look-up the tmpfs mount options to specify the amount of RAM.
> > Default is half the RAM in the system.
> >
> > With that being said, your system will break horribly if you mount /var
> > as a tmpfs.  /var is supposed to survive reboots.
>
> This is the question. How to mount /var as a tmpfs and the system will
> not break?

You can't, simple as that.

The portage data base is there. You'd have to move it elsewhere along with the 
cache. Details in the portage documentation.

-- 
alan dot mckinnon at gmail dot com

Reply via email to