From owner-freebsd-fs@FreeBSD.ORG Sun Jun 10 13:50:22 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 05AB616A468; Sun, 10 Jun 2007 13:50:22 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.freebsd.org (Postfix) with ESMTP id 7F35D13C448; Sun, 10 Jun 2007 13:50:21 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from ednmsw510.dsto.defence.gov.au (ednmsw510.dsto.defence.gov.au [131.185.68.11]) by digger1.defence.gov.au (8.13.8/8.13.8) with ESMTP id l5ADOog0020363; Sun, 10 Jun 2007 22:54:50 +0930 (CST) Received: from ednex510.dsto.defence.gov.au (ednex510.dsto.defence.gov.au) by ednmsw510.dsto.defence.gov.au (Clearswift SMTPRS 5.2.9) with ESMTP id ; Sun, 10 Jun 2007 23:04:40 +0930 Received: from obelix.dsto.defence.gov.au ([203.6.60.208]) by ednex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Sun, 10 Jun 2007 23:04:40 +0930 Received: from obelix.dsto.defence.gov.au (localhost [127.0.0.1]) by obelix.dsto.defence.gov.au (8.13.8/8.13.8) with ESMTP id l5ADYRLp024033; Sun, 10 Jun 2007 21:34:27 +0800 (WST) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by obelix.dsto.defence.gov.au (8.13.8/8.13.8/Submit) id l5ADYRKj024032; Sun, 10 Jun 2007 21:34:27 +0800 (WST) (envelope-from wilkinsa) Date: Sun, 10 Jun 2007 21:34:27 +0800 From: "Wilkinson, Alex" To: freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org Message-ID: <20070610133427.GA24008@obelix.dsto.defence.gov.au> Mail-Followup-To: freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: Organisation: Defence Science Technology Organisation User-Agent: Mutt/1.5.15 (2007-04-06) X-OriginalArrivalTime: 10 Jun 2007 13:34:40.0849 (UTC) FILETIME=[1909A410:01C7AB64] X-TM-AS-Product-Ver: SMEX-7.0.0.1526-3.6.1039-15226.001 X-TM-AS-Result: No-1.528400-8.000000-31 Content-Transfer-Encoding: 7bit Cc: Subject: Re: file(1) cannot detect UFS2? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 13:50:22 -0000 0n Sun, Jun 10, 2007 at 12:41:31AM +0200, Ivan Voras wrote: >I'm trying to use file(1) to detect file system type on partitions, and >so far it's working for any file system I've cared to try (the usual MS >and Linux list) *except* UFS2. Not sure if what you're doing *has* to be done with file(1). However, you can what you want like so: #dumpfs ad0s1a | head -1 magic 19540119 (UFS2) time Sun Jun 10 21:30:45 2007 -aW IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.