xfs
[Top] [All Lists]

Re: need help to repair XFS partition

To: "Eric Sandeen" <sandeen@xxxxxxxxxxx>, xfs@xxxxxxxxxxx
Subject: Re: need help to repair XFS partition
From: "Gergely Soos" <sogerc1@xxxxxxxxx>
Date: Wed, 7 Jan 2009 00:54:52 +0200
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=A1vXPANlRXD1Tsj6P8+bO5tvbRmUuG1ric9NyjZlbdc=; b=tILmORS8ezbhwQRJayzstcydXXVAD3jBv3OEdpKMY7Z3NwKd+XSenWPcUNhsohZ/RI aqfy/SBPKDuIma3HVyxQ3UYv//cfBXx3kMoyFs12Pmooh9Lk9HRpOL1YcGDNfzQT5Cj7 8rwsE3BH6RzWYFb6PpW8q0jxAHGejJjuJMUkg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=nbr6d5PlprAvrM24gJSg14HFKCXYzFdXjtXe1snmCFZxhRgK9TQgImw9fzwN+ZU0yd HmNYd6Og6H1sCO44YoeBGgevsqGpmDycuDNiomltucGih4hHgOiTgN26PxP3Xja9LNv0 JBm5OSZH4B/40skZojJW/jnEsIrJhL+7bOrdc=
In-reply-to: <4963DDD2.4030501@xxxxxxxxxxx>
References: <b75ef8170901060111l52b9a803uf31dc7baa80df721@xxxxxxxxxxxxxx> <49638190.3070803@xxxxxxxxxxx> <b75ef8170901061004n75f52cffg7f810a51aca21ff@xxxxxxxxxxxxxx> <4963A706.8000500@xxxxxxxxxxx> <b75ef8170901061351madb546flbc1631bc55cd4412@xxxxxxxxxxxxxx> <4963D320.9010000@xxxxxxxxxxx> <b75ef8170901061431i68f8ebdey3ab08ea3dec9c079@xxxxxxxxxxxxxx> <4963DDD2.4030501@xxxxxxxxxxx>
On Wed, Jan 7, 2009 at 12:40 AM, Eric Sandeen <sandeen@xxxxxxxxxxx> wrote:

> Gergely Soos wrote:
> > Eric,
> > your intuition was absolutely correct. The starting point of my
> > partition was moved only not up but down 63 sectors (63*512 bytes)
> > It all makes sense, the whole partition grew 63*512 bytes = 0x7E (126)
> > inodes that is why I found the root inode on inode 0xFE instead of 0x80.
> > Now the question remains how the hell should I move it back??
> > And what kind of an idiot program moves the partition table without any
> > confirmation? That would kill any filesystem.
>
> Strangely, I've seen this before.  No idea why, or what is doing it.
>
> Hopefully you have saved copies of all the things you edited & dd'd?  So
> I'd start by putting those back.
>

Fortunately I did. And I copied them back.


>
> Then you can use a partition editor to move the start of the partition
> back where it belongs, I guess.  (w/o seeing where you found the
> superblocks, I'm not certain).
>
> Or, if I'm reading you right, do you mean that the first "XFSB" is 63
> sectors ahead of the start of hdd1?  If so, then maybe mounting /dev/hdd
> (not /dev/hdd1) just works.
>

Unfortunately it's not that simple. Actually that HDD has two partitions and
hdd2 is physically before hdd1 (they are reversed in the partition table),
so I absolutely need to move the start of the partition to the address which
is 63 sectors more than it is now.
Currently it starts at absolute byte position 5132575420 and it should start
at 5132606976.
Do you know what program is capable of doing this? I looked for MBR
documentation and in the partition table it is stored in CHS format
so it would be really hard (at least for me) to do it by hand.

Gergely


>
> -Eric
>
> > Gergely
> >
> > On Tue, Jan 6, 2009 at 11:54 PM, Eric Sandeen <sandeen@xxxxxxxxxxx
> > <mailto:sandeen@xxxxxxxxxxx>> wrote:
> >
> >     Gergely Soos wrote:
> >     > That is a good idea, I'm gonna search for the XFSB on the entire
> disk.
> >     > I will also give PhotoRec a try if nothing else works.
> >     > In the meantime, Eric, you can download the metadata from here:
> >     > http://bluepantherit.net/metadump.bz2
> >     > It would be real nice from you if you would take a closer look.
> >     >
> >     > And one more thing, xfs_check -s /dev/hdd1 prints the following:
> >     > can't seek in filesystem at bb 58701991023656163
> >     > can't read agfl block for ag 4082146910
> >     > can't seek in filesystem at bb 58702015871605112
> >
> >     ... it's basically reading garbage as block numbers, but they are
> well
> >     past the end of the device, so failing.
> >
> >     Very confused, it is.  :)
> >
> >     -Eric
> >
> >
>
>


[[HTML alternate version deleted]]

<Prev in Thread] Current Thread [Next in Thread>