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 1NkzlJ-0006xl-4Z for garchives@archives.gentoo.org; Fri, 26 Feb 2010 12:57:45 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61897E091B; Fri, 26 Feb 2010 12:57:10 +0000 (UTC) Received: from outbound.icp-qv1-irony-out2.iinet.net.au (outbound.icp-qv1-irony-out2.iinet.net.au [203.59.1.107]) by pigeon.gentoo.org (Postfix) with ESMTP id AD336E091B for ; Fri, 26 Feb 2010 12:57:09 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAOtTh0vLzgmV/2dsb2JhbACbEHO7HIR5BIMW X-IronPort-AV: E=Sophos;i="4.49,546,1262534400"; d="scan'208";a="611547339" Received: from unknown (HELO moriah.localdomain) ([203.206.9.149]) by outbound.icp-qv1-irony-out2.iinet.net.au with ESMTP; 26 Feb 2010 20:57:06 +0800 Received: from localhost (localhost [127.0.0.1]) by moriah.localdomain (Postfix) with ESMTP id A958D1C2DBC2 for ; Fri, 26 Feb 2010 20:57:06 +0800 (WST) X-Virus-Scanned: amavisd-new at localdomain Received: from moriah.localdomain ([127.0.0.1]) by localhost (moriah.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YaPX9drUSkD0 for ; Fri, 26 Feb 2010 20:57:03 +0800 (WST) Received: from [192.168.44.2] (rattus [192.168.44.2]) by moriah.localdomain (Postfix) with ESMTP id 9E4381C2D2E6 for ; Fri, 26 Feb 2010 20:57:03 +0800 (WST) Subject: Re: [gentoo-user] What is the proper fstab line for shm memory (tmpfs) From: William Kenworthy To: gentoo-user@lists.gentoo.org In-Reply-To: <201002261328.52839.volkerarmin@googlemail.com> References: <1267186392.8861.9.camel@rattus> <201002261328.52839.volkerarmin@googlemail.com> Content-Type: text/plain Organization: Home in Perth! Date: Fri, 26 Feb 2010 20:57:03 +0800 Message-Id: <1267189023.8861.14.camel@rattus> 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 X-Mailer: Evolution 2.26.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: 092b0838-42d7-465b-b8e7-85165b2d1521 X-Archives-Hash: 2e7539f75cc36884975b086fa5697fc1 On Fri, 2010-02-26 at 13:28 +0100, Volker Armin Hemmann wrote: > On Freitag 26 Februar 2010, William Kenworthy wrote: > > I have a number of systems with different shm lines in fstab - but which > > is correct? - I think they all work, but which is best (and why)? The > > main use I am concerned about is a PXE system with root over nfs where I > > am putting the portage tmp and some other stuff in tmpfs for speed. > > > > tmpfs /dev/shm tmpfs defaults 0 0 > > shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 > > none /dev/shm tmpfs defaults 0 0 > > > > I suspect the middle line is correct. > > > > BillK > > I have > > shm /dev/shm tmpfs nodev,nosuid,noexec > 0 0 > > for ages in fstab. If it is wrong, I am living a lie for years now. Thanks, the reason I am not sure is I often copy fstab between machines to speed up configuration, and I suspect the lines with "defaults" trace back to circa 1989 (my first gentoo - over dialup modem with 7 days of downloading/compiling on a 200Mhz K6 :) or whenever tmpfs appeared in the kernel. BillK