From owner-freebsd-questions@FreeBSD.ORG Fri Jun 12 13:15:41 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CB88106566B for ; Fri, 12 Jun 2009 13:15:40 +0000 (UTC) (envelope-from z.szalbot@lcwords.com) Received: from relay.lc-words.com (relay.lc-words.com [62.121.130.110]) by mx1.freebsd.org (Postfix) with ESMTP id D0D6A8FC08 for ; Fri, 12 Jun 2009 13:15:39 +0000 (UTC) (envelope-from z.szalbot@lcwords.com) Received: from localhost (localhost [127.0.0.1]) by relay.lc-words.com (Postfix) with ESMTP id 1D70CB803F; Fri, 12 Jun 2009 15:13:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lcwords.com; s=mainlcwords; t=1244812434; bh=0CMSnYaBl1uqNSpXENX6vr+BI81P/3QXLw0GkFj/zPM=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=JrNdx7NliaucZkuMT+5GNW2g+7X1EEBLq0rMj7JqJENNwwYV/Q7XGEdpI0ImbHBlp P1geLg0oZv0X2U57djeMDXJlc88XLhAZsKVOU+e1Q2ry+2zrgDhUF/i7X0l9EgqO0l wn3rfbdWj8n6gdu0kFVmdsTxSuaxbohz8ytEMEsk= Received: from relay.lc-words.com ([127.0.0.1]) by localhost (relay.lc-words.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 54183-03; Fri, 12 Jun 2009 15:13:53 +0200 (CEST) Received: from [127.0.0.1] (aejo234.neoplus.adsl.tpnet.pl [79.186.248.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: z.szalbot@lcwords.com) by relay.lc-words.com (Postfix) with ESMTPSA id 8FA9DB803D; Fri, 12 Jun 2009 15:13:53 +0200 (CEST) Message-ID: <4A3254F7.9060908@lcwords.com> Date: Fri, 12 Jun 2009 15:15:35 +0200 From: Zbigniew Szalbot User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Wojciech Puchar References: <4A31F0A2.3060704@lcwords.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Cc: freebsd-questions@freebsd.org Subject: Re: ramdisk creation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2009 13:15:41 -0000 Wojciech Puchar pisze: >> >> So (1) I need to create an entry in /etc/fstab >> md /var/amavisd/tmp mfs rw,-s512m 2 0 > > If you have FreeBSD 7.* use tmpfs filesystem > > tmpfs /var/amavisd/tmp tmpfs rw,size=536870912 0 0 > > It's filesystem designed for this. Works well. Thanks Wojtek - I appreciate it. I do have 7.2 so I can use it but having already added md to the system, I wonder if there is any advantage of replacing it with tmpfs. If there is, what is the best way to change it? Would I just unmount /var/amavisd/tmp and then proceed with the tmpfs thing? Thank you! Zbigniew Szalbot