From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 26 22:26:28 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EF8F106567A for ; Fri, 26 Dec 2008 22:26:28 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id C8CB38FC29 for ; Fri, 26 Dec 2008 22:26:27 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2068222ywe.13 for ; Fri, 26 Dec 2008 14:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=oFktB4zGzZwcFCy0bygvT386FW8vE41JQKw/BTcsoS8=; b=Lhv6WF/jIxKHFjYcixBgkVBVN+QRUHceyq9U8ntn79RoEF4nMZR2LWI5GVq4jBMPBO RFvwLRXztiaoGzSG5AG7eZjTipt/R76CPCU75QFNVzHuiQYq6DizqtlogP6EJxpBM2i0 UQ3wBAr3HKnrlGnRE2i5Ob1NtNkY56E3uFo4k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VMVHTfSH0RH04Ml7pCmpCw0xvio+EjrHSISI1SFkaohxadaHM+78VvViUEeSpp+GzX VKkg0E/fSLPWodTF6TZvXTPX7+aFiIfq8YFlybB8GmPM/4s/SvbAUomTXxhITRgCpRtc eDKzdLIDcAAml+TsvHXZ01BulYe2X+sVoZCRM= Received: by 10.90.104.20 with SMTP id b20mr5530097agc.109.1230329059037; Fri, 26 Dec 2008 14:04:19 -0800 (PST) Received: by 10.90.73.9 with HTTP; Fri, 26 Dec 2008 14:04:18 -0800 (PST) Message-ID: Date: Sat, 27 Dec 2008 01:04:18 +0300 From: pluknet To: "Carlos A. M. dos Santos" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081226011402.GP4100@albert.catwhisker.org> <20081226012224.2fbd579a@gluon> <20081226014956.GR4100@albert.catwhisker.org> <20081226063542.GA20518@shark.localdomain> <20081226063946.GX4100@albert.catwhisker.org> <4954DA22.5000904@gothic.net.au> Cc: hackers@freebsd.org Subject: Re: How to quickly determine if UFS2 FS is "clean" from command line? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2008 22:26:28 -0000 2008/12/26 Carlos A. M. dos Santos : > On Fri, Dec 26, 2008 at 11:20 AM, Sean wrote: >> Carlos A. M. dos Santos wrote: >>> >>> Be warned that file(1) resides at /usr/bin and depends on >>> /usr/share/misc/magic*, so it may not be available in early boot >>> stages, when /usr is not mounted yet. The following combination will >>> suffice, and depends only on /sbin and /stand: >>> >>> /sbin/ffsinfo -l 1 /usr/local | /rescue/sed -n 's/^clean *int8_t >>> *\(.*\)/\1/p' >>> >> >> Except FreeBSD hasn't had /stand for a long while, and there's no >> /rescue/sed (at least on 6.x and 7.x). Also, /stand was only ever populated >> on install and there's no guarantees it was ever up to date. > > Humm, 8.0 has /rescue/sed. > It's was added there over a year ago, but not in stable. -- wbr, pluknet