Subject: Re: dump_lfs issue
To: Juan RP <juan@xtrarom.org>
From: Marcin Michal Jessa <m.jessa@gmail.com>
List: current-users
Date: 05/01/2007 01:28:30
On 5/1/07, Juan RP <juan@xtrarom.org> wrote:
> 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.
Yes, thanks a bunch guys. I am still running the command as my file
systems are a few hundred gigs of size and it takes some time to run
it.
Using Juan's example, how do I calculate the block size to use with
fsck_lfs -b ?
Would that be as simple as using the bsize value?
How is that different from running disklabel on the device ?
Disklabel of this XENU says following (the file system in question is i ):
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 409600 0 4.2BSD 1024 8192 40960 # (Cyl. 0 - 199)
b: 10240000 409600 swap # (Cyl. 200 - 5199)
c: 412764160 0 unused 0 0 # (Cyl. 0 - 201544)
d: 412764160 0 unused 0 0 # (Cyl. 0 - 201544)
e: 20480000 10649600 4.2BSD 2048 16384 27560 # (Cyl. 5200 - 15199)
f: 4096000 31129600 4.2BSD 2048 16384 27560 # (Cyl. 15200 - 17199)
g: 10240000 35225600 4.4LFS 2048 16384 25896 # (Cyl. 17200 - 22199)
h: 20480000 45465600 4.2BSD 2048 16384 27560 # (Cyl. 22200 - 32199)
i: 61440000 65945600 4.4LFS 2048 16384 28704 # (Cyl. 32200 - 62199)
j: 285378560 127385600 4.4LFS 2048 16384 28840 # (Cyl. 62200 - 201544)