public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to mount /var to RAM as tmpfs
@ 2009-08-21  5:20 Song Zhiwei
  2009-08-21  5:41 ` [gentoo-user] " Nikos Chantziaras
  0 siblings, 1 reply; 4+ messages in thread
From: Song Zhiwei @ 2009-08-21  5:20 UTC (permalink / raw
  To: gentoo-user

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.

Regards,
Zhiwei



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

* [gentoo-user]  Re: How to mount /var to RAM as tmpfs
  2009-08-21  5:20 [gentoo-user] How to mount /var to RAM as tmpfs Song Zhiwei
@ 2009-08-21  5:41 ` Nikos Chantziaras
  2009-08-21  7:00   ` Song Zhiwei
  0 siblings, 1 reply; 4+ messages in thread
From: Nikos Chantziaras @ 2009-08-21  5:41 UTC (permalink / raw
  To: gentoo-user

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.




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

* Re: [gentoo-user] Re: How to mount /var to RAM as tmpfs
  2009-08-21  5:41 ` [gentoo-user] " Nikos Chantziaras
@ 2009-08-21  7:00   ` Song Zhiwei
  2009-08-21  8:25     ` Alan McKinnon
  0 siblings, 1 reply; 4+ messages in thread
From: Song Zhiwei @ 2009-08-21  7:00 UTC (permalink / raw
  To: gentoo-user

2009/8/21 Nikos Chantziaras <realnc@arcor.de>:
> 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?


>
>
>



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

* Re: [gentoo-user] Re: How to mount /var to RAM as tmpfs
  2009-08-21  7:00   ` Song Zhiwei
@ 2009-08-21  8:25     ` Alan McKinnon
  0 siblings, 0 replies; 4+ messages in thread
From: Alan McKinnon @ 2009-08-21  8:25 UTC (permalink / raw
  To: gentoo-user

On Friday 21 August 2009 09:00:58 Song Zhiwei wrote:
> 2009/8/21 Nikos Chantziaras <realnc@arcor.de>:
> > 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



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

end of thread, other threads:[~2009-08-21  8:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-21  5:20 [gentoo-user] How to mount /var to RAM as tmpfs Song Zhiwei
2009-08-21  5:41 ` [gentoo-user] " Nikos Chantziaras
2009-08-21  7:00   ` Song Zhiwei
2009-08-21  8:25     ` Alan McKinnon

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