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 1MeMt5-0007j5-81 for garchives@archives.gentoo.org; Fri, 21 Aug 2009 05:42:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A16F4E028C; Fri, 21 Aug 2009 05:42:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 827A2E028C for ; Fri, 21 Aug 2009 05:42:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id A2B7B671A1 for ; Fri, 21 Aug 2009 05:42:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.041 X-Spam-Level: X-Spam-Status: No, score=-3.041 required=5.5 tests=[AWL=-0.442, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PbeqRz8tRKFM for ; Fri, 21 Aug 2009 05:41:59 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 1682767184 for ; Fri, 21 Aug 2009 05:41:57 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1MeMsq-00067d-AR for gentoo-user@gentoo.org; Fri, 21 Aug 2009 07:41:52 +0200 Received: from athedsl-380847.home.otenet.gr ([79.131.39.173]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Aug 2009 07:41:52 +0200 Received: from realnc by athedsl-380847.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Aug 2009 07:41:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: How to mount /var to RAM as tmpfs Date: Fri, 21 Aug 2009 08:41:33 +0300 Organization: Lucas Barks Message-ID: References: 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 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-380847.home.otenet.gr User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090815 Thunderbird/3.0b3 In-Reply-To: Sender: news X-Archives-Salt: 9d6bc228-9abb-4dbc-a131-c0f0682bc2c3 X-Archives-Hash: 0c52aab86f535ab8b72698506bcd780c 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.