Subject: Re: dump_lfs issue
To: Marcin Michal Jessa <lists@yazzy.org>
From: Konrad Schroder <perseant@hhhh.org>
List: current-users
Date: 05/01/2007 10:52:44
On Tue, 1 May 2007, Marcin Michal Jessa wrote:

> Any idea how to figure out the number of super-blocks out of following 
> results? :
>
> # scan_lfs -v /dev/xbd0i
[...]
> LFSv2 at 6141936 size 61440000, last mounted on
> offset: 18374220 n: 317440 id 46274b81,394d76d0 size: 0
[...]

Earlier you said that the partition as described by "disklabel" looks like 
this:

> i:  61440000  65945600     4.4LFS   2048 16384 28704  # (Cyl.  32200 - 62199)

so the entry at 6141936 looks promising.  I think that you will want to 
add 16 to that to get the sector offset of the superblock, i.e., your fsck 
command will be

 	fsck_lfs -n -b 6141952 /dev/rxbd0i

to double-check (and remove "-n" to really clean it up).

Take care,
 						Konrad Schroder
 						perseant@hhhh.org