From owner-freebsd-questions@FreeBSD.ORG Sat Mar 19 14:54:33 2005 Return-Path: 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 E15AF16A4CF for ; Sat, 19 Mar 2005 14:54:33 +0000 (GMT) Received: from ns1.tiadon.com (SMTP.tiadon.com [69.27.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E89643D2F for ; Sat, 19 Mar 2005 14:54:33 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [69.27.131.0] ([69.27.131.0]) by ns1.tiadon.com with Microsoft SMTPSVC(6.0.3790.211); Sat, 19 Mar 2005 08:57:51 -0600 Message-ID: <423C3D23.4090600@daleco.biz> Date: Sat, 19 Mar 2005 08:54:27 -0600 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Munn References: <423C36ED.4060207@umd.edu> In-Reply-To: <423C36ED.4060207@umd.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Mar 2005 14:57:51.0884 (UTC) FILETIME=[061664C0:01C52C94] cc: freebsd-questions@freebsd.org Subject: Re: file system type X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 14:54:34 -0000 Robert Munn wrote: > Is there any way of detecting the type of file system on a disk, > specifically UFS2 or UFS1? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > > You mean as an operator, or as a programmer? Obviously, as an operator, mount(8) gives you this information after a brief visual parsing. I'm not a C programmer, but a quick lookup with apropos(1) yields the following: getvfsbyname(3) - get information about a file system HTH, Kevin Kinsey