From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MeO7R-0004zz-3K for garchives@archives.gentoo.org; Fri, 21 Aug 2009 07:01:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5224AE02FD; Fri, 21 Aug 2009 07:00:59 +0000 (UTC) Received: from mail-gx0-f207.google.com (mail-gx0-f207.google.com [209.85.217.207]) by pigeon.gentoo.org (Postfix) with ESMTP id 34007E02FD for ; Fri, 21 Aug 2009 07:00:59 +0000 (UTC) Received: by gxk3 with SMTP id 3so699524gxk.14 for ; Fri, 21 Aug 2009 00:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=XGkzWIcJpoQ1salonxiwe13PizdooCHDzKnBFgWZpgI=; b=c7XjDkoqYmZTEXrJYew/utSm9J7MmaTy3diCfvifow2guf5NCQQbLTfKjLaCD+MQx0 wU5CJEe/oku1a15ximIbMyyGgUnPES7KFO10sIYIUbZABN8YHD2NmP5P7Q53dWHBl7FX I0EsSMVb+ZLJTKUP+Oti7Bnu+NatjnPsfxk8U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=lP06+5mKXv/zyZrwq3BZNWyYuzbAPNNMhyiR6GTgaHrDQSpBOwrcMDH54neuAwpBtE WbsDa3Nyt47aWylgdT3LLCcP5AFfkz0jX6gIpHlBU6zdlmLkwUwQeXPI3W2guL1YuGvG SnAjGop1tefEv2+CtlMwWqo/x1anPF9sAPb9I= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.91.74.3 with SMTP id b3mr674499agl.36.1250838058804; Fri, 21 Aug 2009 00:00:58 -0700 (PDT) In-Reply-To: References: Date: Fri, 21 Aug 2009 15:00:58 +0800 Message-ID: Subject: Re: [gentoo-user] Re: How to mount /var to RAM as tmpfs From: Song Zhiwei To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: dfc0f370-7c65-4686-af1c-986b3bd95b7c X-Archives-Hash: 7035e901227826ff43b54ad761464fd3 2009/8/21 Nikos Chantziaras : > 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 moun= t >> /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. =A0I mount my /var/tmp/portage = there > with: > > =A0none =A0/var/tmp/portage =A0tmpfs =A0defaults =A00 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 a= s a > tmpfs. =A0/var is supposed to survive reboots. This is the question. How to mount /var as a tmpfs and the system will not break? > > >