public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: Gergely Soos <sogerc1@gmail.com>
Cc: xfs@oss.sgi.com
Subject: Re: need help to repair XFS partition
Date: Tue, 06 Jan 2009 10:06:40 -0600	[thread overview]
Message-ID: <49638190.3070803@sandeen.net> (raw)
In-Reply-To: <b75ef8170901060111l52b9a803uf31dc7baa80df721@mail.gmail.com>

Gergely Soos wrote:
> Greetings
> 
> I heard that people compliment XFS for being the fastest FS these days
> so I thought I give it a try.
> What I did was that I converted my old 107GB FAT32 partition to XFS (I
> created an XFS over it) and I wanted to use it as /home
> Everything went as it should, I moved the files from my old /home then I
> restarted (cleanly!) under windows.
> When I got back from windows I was no longer able to mount the XFS
> partition.

Which partition was it?  I wonder if a gpt label got re-written over it
or something.

> xfs_repair only said that the superblock is invalid and attempts to find
> secondary superblocks but all candidates fail.
> So I created a file on another computer with the exact same size as the
> partition on my computer and created an XFS on it.

> Then I extracted the first 512 bytes and copied to my HDD using dd. But
> it complained about the UUID so I corrected it using khexedit.

Did you keep the original first 512 bytes?  It would be worth looking
at; try hexdump -C on it (the original) and send that if you have it.

> Then xfs_db complained that it cannot find the root inode so I wrote a
> little perl script to search it.
> You can find it in myxfs.tar.bz2. It seems that it found the root inode
> because after I corrected the address using khexedit
> xfs_db started complaining about the realtime bitmap inodes, so I
> corrected those too (using inode numbers rootino+1 and rootino+2).
> And this is where I'm stuck.
> The mount still fails, dmesg says that it cannot find the root inode,
> xfs_repair says the same old thing, xfs_check says a lot of things,
> most of them are messages like this: can't seek in filesystem at bb
> <some numbers> or: ag bad magick number.
> That exceeds my knowledge.
> Please help me restore the partition, It contains lots of programmes I
> wrote over the years and some of them are not backed up,
> some of them are, but only an older version. I also have personal stuff
> on it like my bill records that I cannot recover from anywhere else.
> myxfs.tar.bz2 contains the perl script I mentioned above and the inodes
> it found. The one staring with ri is the root inode,
> the files starting with sb are the suspected superblocks (I also took
> one of those at random and corrected the three inode numbers
> with khexedit but the result is the same) and the file backup_bootsect
> contains the original superblock that was on the disk after I came back
> from windows xp. It does not look like anything to me...
> The numbers after ri and sb are the starting address in bytes of the
> inode on the disk.
> I would also attach the output of xfs_metadump which I created after I
> corrected the three inode numbers in the superblock but even bzip-ed
> it is more than 3MB and the administrator of this list does not accept it.

As Chris suggested, I would find a spare 100G somewhere and make a dd
image now, so you have something to experiment with + a backup if things
go wrong.

It sounds like something under windows clobbered your filesystem, I
guess, unless it's the gpt thing I mentioned, it's very strange.

-Eric

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  parent reply	other threads:[~2009-01-06 16:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-06  9:11 need help to repair XFS partition Gergely Soos
2009-01-06  9:27 ` Chris Wedgwood
2009-01-06 16:06 ` Eric Sandeen [this message]
2009-01-06 18:04   ` Gergely Soos
2009-01-06 18:40     ` Eric Sandeen
2009-01-06 18:46     ` Eric Sandeen
     [not found]       ` <b75ef8170901061351madb546flbc1631bc55cd4412@mail.gmail.com>
2009-01-06 21:54         ` Eric Sandeen
2009-01-06 22:31           ` Gergely Soos
2009-01-06 22:40             ` Eric Sandeen
2009-01-06 22:54               ` Gergely Soos
2009-01-06 23:09                 ` Christoph Hellwig
2009-01-06 23:26                   ` Gergely Soos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49638190.3070803@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=sogerc1@gmail.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox