Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Dec 2008 11:32:14 -0200
From:      "Carlos A. M. dos Santos" <unixmania@gmail.com>
To:        Sean <sean@gothic.net.au>
Cc:        hackers@freebsd.org
Subject:   Re: How to quickly determine if UFS2 FS is "clean" from command line?
Message-ID:  <e71790db0812260532h33b1cc2bn963048c79282c1ca@mail.gmail.com>
In-Reply-To: <4954DA22.5000904@gothic.net.au>
References:  <20081226011402.GP4100@albert.catwhisker.org> <20081226012224.2fbd579a@gluon> <20081226014956.GR4100@albert.catwhisker.org> <20081226063542.GA20518@shark.localdomain> <20081226063946.GX4100@albert.catwhisker.org> <e71790db0812260331x3c166de2u80db2f6aa7e2f8fa@mail.gmail.com> <4954DA22.5000904@gothic.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 26, 2008 at 11:20 AM, Sean <sean@gothic.net.au> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e71790db0812260532h33b1cc2bn963048c79282c1ca>