From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 26 13:32:16 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 E89341065675 for ; Fri, 26 Dec 2008 13:32:16 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from mail-bw0-f19.google.com (mail-bw0-f19.google.com [209.85.218.19]) by mx1.freebsd.org (Postfix) with ESMTP id 43E938FC22 for ; Fri, 26 Dec 2008 13:32:16 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by bwz12 with SMTP id 12so10350023bwz.19 for ; Fri, 26 Dec 2008 05:32:15 -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=S4YTyNRoUwozM+zo41RxnT7GUJgUz4BukdjxidwBLp8=; b=Dlpbq/fb+PFDT9QmYd0vXHATVEsHBbMQUgnXxq3VyWMbrJUKH8fHasFb0PpQ6O5C9p pFaKmPj4bFZaFZ2XYkmHdFEQ+MYfIl922eCzBrVse8/IN4gbVCUIN+C7QLxNMLCHBU2o 85FXhRkVZn+MBDHNWc1Wiq7x/gfBYUK1OXYMg= 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=l38yOnndctmcTLjDBXBjv7BLzyB22YTD8+Qf/YKT/O7YQRtEi57PcMO7aDmcdFqoRN PuUmTSOXPr4NYcybiLFBYBnYhDTb5W1RuBNSHnS9P5unUQ7900h3MlJSE+huuVVWHfDS 76t+/m5Qng1EaTncTuWt0+JIQ96gCaUFIeSyw= Received: by 10.103.225.11 with SMTP id c11mr3842164mur.24.1230298334908; Fri, 26 Dec 2008 05:32:14 -0800 (PST) Received: by 10.103.137.8 with HTTP; Fri, 26 Dec 2008 05:32:14 -0800 (PST) Message-ID: Date: Fri, 26 Dec 2008 11:32:14 -0200 From: "Carlos A. M. dos Santos" To: Sean In-Reply-To: <4954DA22.5000904@gothic.net.au> 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 13:32:17 -0000 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. -- cd /usr/ports/sysutils/life make clean