public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: Jaap Struyk <japie@deserver.nl>
Cc: xfs@oss.sgi.com
Subject: Re: ways to restore data from crashed disk
Date: Fri, 08 Jun 2007 10:58:12 -0500	[thread overview]
Message-ID: <46697C94.40401@sandeen.net> (raw)
In-Reply-To: <4668D51F.8010804@deserver.nl>

Jaap Struyk wrote:
> Eric Sandeen schreef:
> 
>> when you are talking about sizes, do you mean space used (du) or max
>> offset (ls -l?)  max offset should be the same for your image file as
>> for your original device... 120G.
> 
> ls -l
> But I don't know what tot trust anymore, if I look with gparted at my
> partitions the old disk gaves me a partition of 140G with 106G used space.
> My new disk has a partition of 200G with 166G used space.
> If I create a new xfs partition it has about 10% used space (according
> to gparted, I suspect thats the size of the logfiles?) so from the 166G
> on the new disk 146G is the "real" used space so that should be the size
> of the image file. (nomather what ls -l tells me)
> Is this correct?

Ok.  repair is trying to read a superblock at:

superblock read failed, offset 103376846848, size 2048, ag 11, rval 0

103376846848 bytes... or about 96 MB (base 2) (or 103 base 10)

if ls -l on your image file is not at least that big, of course it can't
read it.  And if that's smaller than your filesystem, then the image
isn't right...

from your db output:

xfs_db> sb 0
xfs_db> p
magicnum = 0x58465342
blocksize = 4096
dblocks = 36710528

it looks like the original filesystem was bigger than your image:

4096*36710528
150366322688 <-- 140 MB

so it looks like your image file is not correct... I'm not familiar with
the tool you're using, is it somehow compressing a sparse file or
something like that?

-Eric

  reply	other threads:[~2007-06-08 15:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-31 10:50 ways to restore data from crashed disk Jaap Struyk
2007-05-31 13:37 ` Eric Sandeen
2007-06-07 18:12   ` Jaap Struyk
2007-06-07 18:56     ` Jaap Struyk
2011-05-26 12:39       ` Robert
2007-06-07 19:28     ` Eric Sandeen
2007-06-08  4:03       ` Jaap Struyk
2007-06-08 15:58         ` Eric Sandeen [this message]
2007-06-09  7:50           ` Jaap Struyk

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=46697C94.40401@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=japie@deserver.nl \
    --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