From owner-freebsd-questions Sat Sep 21 7: 4:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 028DA37B401 for ; Sat, 21 Sep 2002 07:04:14 -0700 (PDT) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29A8943E65 for ; Sat, 21 Sep 2002 07:04:13 -0700 (PDT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.5/8.12.5) with ESMTP id g8LE44mC085651; Sat, 21 Sep 2002 16:04:05 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.5/8.12.5/Submit) id g8LE43Oa085650; Sat, 21 Sep 2002 16:04:03 +0200 (CEST) Date: Sat, 21 Sep 2002 16:04:03 +0200 (CEST) Message-Id: <200209211404.g8LE43Oa085650@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG, webmaster@forsetti.com Reply-To: freebsd-questions@FreeBSD.ORG, webmaster@forsetti.com Subject: Re: Using MFS for the first time In-Reply-To: <3D8C77AC.7080006@forsetti.com> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.6-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Matt Smith wrote: > Oliver Fromme wrote: > > [...] > > /dev/null /tmp mfs rw,nosuid,nodev,-s=204800,-m=0,-T=minimum 0 0 > > What is the /dev/null component in the MFS line below? I have seen the > swap slice used, but never /dev/null. For that matter, I don't even > really know what that component does -- why do I need to list a device > for a RAM disk? Could someone fill in my knowledge gap? The device column isn't really used for anything when mounting an MFS, _except_ that the mount_mfs command uses the disklabel of that device to initialize some filesystem configuration parameters. It is customary to use the swap partition, but you don't have to. In certain situations you cannot specify a swap partition, because you don't have one (e.g. when you're running swapless, or when your swap is accessed via NFS, or when you're using swap files instead of swap partitions). Under certain circumstances it is also nice to be able to specify the MFS line independent of the actual disk hardware (SCSI, APATI) and where the FreeBSD slice and the swap partition are located. Therefore you can use the -T option to specify a parameter set which is used for the initialization of the MFS. Look at /etc/disktab for the known parameter sets. It doesn't really matter which one you take; the size is irrelevant (it's specified by the -s option). "minimum" is one of them. If you use the -T option, the device (first column in fstab) is meaningless, so you can specify /dev/null or whatever else you like. I think all of that is explained in the mount_mfs(8) and disktab(5) manual pages. Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message