Subject: Re: dump_lfs issue (solved)
To: Konrad Schroder <perseant@hhhh.org>
From: Marcin Michal Jessa <lists@yazzy.org>
List: current-users
Date: 05/01/2007 21:56:42
--Apple-Mail-2-26223660
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
On May 1, 2007, at 7:52 PM, Konrad Schroder wrote:
> 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).
>
I would like to thank you a lot for the help you provided, Konrad.
The fsck_lfs went well and I was able to backup the file system to a
directory with
# dump_lfs -0 -f- /dev/xbd0i | (cd /home/mail; restore xf -)
I could run plain fsck on the file system without specifying the
super-block number
after I ran fsck_lfs -b 6141952 /dev/rxbd0i
I am converting the file system to FFS now. LFS seems to need some
more time to mature before it can be used.
Thanks a lot again!
Marcin.
--Apple-Mail-2-26223660
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=ISO-8859-1
<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; "><BR><DIV><DIV>On May 1, 2007, at =
7:52 PM, Konrad Schroder wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">On Tue, 1 May 2007, Marcin Michal Jessa =
wrote:</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> =
<BLOCKQUOTE type=3D"cite"><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; ">Any idea how to figure out =
the number of super-blocks out of following results? :</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "># =
scan_lfs -v /dev/xbd0i</DIV> </BLOCKQUOTE><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">[...]</DIV> =
<BLOCKQUOTE type=3D"cite"><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; ">LFSv2 at 6141936 size =
61440000, last mounted on</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">offset: =
18374220 n: 317440 id 46274b81,394d76d0 size: 0</DIV> </BLOCKQUOTE><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">[...]</DIV><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: =
14px; "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">Earlier you said that the =
partition as described by "disklabel" looks like this:</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><BR></DIV> <BLOCKQUOTE =
type=3D"cite"><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; ">i:<SPAN =
class=3D"Apple-converted-space">=A0 </SPAN>61440000<SPAN =
class=3D"Apple-converted-space">=A0 </SPAN>65945600 <SPAN =
class=3D"Apple-converted-space">=A0 =A0 </SPAN>4.4LFS <SPAN =
class=3D"Apple-converted-space">=A0 </SPAN>2048 16384 28704<SPAN =
class=3D"Apple-converted-space">=A0 </SPAN># (Cyl.<SPAN =
class=3D"Apple-converted-space">=A0 </SPAN>32200 - 62199)</DIV> =
</BLOCKQUOTE><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">so the entry at 6141936 looks promising.<SPAN =
class=3D"Apple-converted-space">=A0 </SPAN>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</DIV><DIV style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; =
"><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><SPAN class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </SPAN>fsck_lfs -n -b 6141952 =
/dev/rxbd0i</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">to double-check (and remove "-n" to really clean it =
up).</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; min-height: 14px; =
"><BR></DIV></BLOCKQUOTE><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>I would like to thank you a =
lot for the help you provided, Konrad.</DIV></DIV><DIV>The fsck_lfs went =
well and I was able to backup the file system to a directory with<FONT =
class=3D"Apple-style-span" face=3D"Arial" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: =
12.8px;"></SPAN></FONT></DIV><DIV><FONT class=3D"Apple-style-span" =
face=3D"Arial" size=3D"3"><SPAN class=3D"Apple-style-span" =
style=3D"font-size: 12.8px;"># dump_lfs -0 -f- /dev/xbd0i | (cd =
/home/mail; restore xf -)</SPAN></FONT><BR><FONT =
class=3D"Apple-style-span" face=3D"Arial" =
size=3D"3"></FONT></DIV><DIV><FONT class=3D"Apple-style-span" =
face=3D"Arial" size=3D"3"><FONT class=3D"Apple-style-span" =
size=3D"3"><SPAN class=3D"Apple-style-span" style=3D"font-size: =
12.8px;">I could run plain fsck on the file system without specifying =
the super-block number</SPAN></FONT></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial" size=3D"3"><FONT =
class=3D"Apple-style-span" size=3D"3"><SPAN class=3D"Apple-style-span" =
style=3D"font-size: 12.8px;">=A0a</SPAN></FONT><SPAN =
class=3D"Apple-style-span" style=3D"font-size: 12.8px;">fter I ran=A0<FONT=
class=3D"Apple-style-span" face=3D"Helvetica" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: 12px;">fsck_lfs =
-b=A0=A06141952 /dev/rxbd0i=A0</SPAN></FONT></SPAN></FONT></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>I am converting the file =
system to FFS now. LFS seems to need some more time to mature before it =
can be used.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Thanks a lot =
again!</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV>Marcin.<BR><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV></BODY></HTML>=
--Apple-Mail-2-26223660--