Subject: Re: dump_lfs issue
To: Michael L. Hitch <mhitch@lightning.msu.montana.edu>
From: Juan RP <juan@xtrarom.org>
List: current-users
Date: 05/01/2007 00:52:05
On Mon, 30 Apr 2007 16:33:39 -0600 (MDT)
"Michael L. Hitch" <mhitch@lightning.msu.montana.edu> wrote:
> On Mon, 30 Apr 2007, Konrad Schroder wrote:
>
> > If you did use -A, you may have to search the disk for superblocks. I
> > don't have a tool that does this, but something like
>
> There's a scan_ffs command in 4.0 or later that is supposed to search
> for FFSv1, FFSv2, and LFS superblocks.
Yeah... it should find the LFS partition, at least on my test seems to
work fine:
$ scan_ffs -l vnd0
Disk: vnd
Total sectors on disk: 7581696
# size offset fstype [fsize bsize cpg/sgs]
X: 16384 0 4.2BSD 512 4096 1 # [FFSv1]
X: 16384 16384 4.2BSD 512 4096 0 # [FFSv2]
X: 1048576 32768 4.2BSD 1024 8192 1 # [FFSv1]
X: 1048576 1081344 4.2BSD 1024 8192 0 # [FFSv2]
X: 1048576 2129920 4.4LFS 1024 8192 282 # [LFSv2]
X: 4403200 3178496 4.2BSD 2048 16384 0 # [FFSv2]
$
And of course the offset/size/fsize/bsize values are ok.
--
http://plog.xtrarom.org/
Juan RP's blog - NetBSD/pkgsrc news in Spanish