public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Stefan Smietanowski <stesmi@stesmi.com>
To: Spam Magnet <spam.wax@gmail.com>
Cc: Timothy Shimmin <tes@sgi.com>, Eric Sandeen <sandeen@sandeen.net>,
	xfs@oss.sgi.com
Subject: Re: XFS: SB validate failed
Date: Tue, 03 Jun 2008 22:23:51 +0200	[thread overview]
Message-ID: <4845A857.3090905@stesmi.com> (raw)
In-Reply-To: <3607657a0806031239l6d788868u2f5654efcabf4abc@mail.gmail.com>

Spam Magnet wrote:
> On Tue, Jun 3, 2008 at 2:59 PM, Stefan Smietanowski <stesmi@stesmi.com> wrote:
>> Spam Magnet wrote:
>>>> (The healthy disk image also doesn't have any XFS but it has: 'S f x'
>>>> (capital s))
>>> Correcting my mistake:
>>>
>>> The healthy image file does have the X F S B at 10000000  (octal) as
>>> fdisk had reported:
>>> Pt#          Device  Info     Start       End   Sectors  Id  System
>>>  8: 2gb-ubuntu.img1            4096   3915599   3911504   a  SGI xfs
>>>
>>> 4096*512=2097152 (10000000 octal):
>>> $ od -t c 2gb-ubuntu.img | grep 10000000
>>> 10000000   X   F   S   B  \0  \0 020  \0  \0  \0  \0  \0  \0  \a   u 350
>>>
>>> I tried to see if I can find do the same thing for jaz7.img:
>>> Pt#    Device  Info     Start       End   Sectors  Id  System
>>>  8: jaz7.img1            3072   2091007   2087936   a  SGI xfs
>>>
>>> $ od -t c jaz7.img | grep 6000000
>>> 6000000  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
>>>
>>> I guess all those zeros are not good signs.
>> Wait a moment. Aren't jaz sectors 2k each?
>>
>> Try at 3072*2048 instead.
>>
>> // Stefan
>>
> 
> I think they are but I used -u option of fdisk:
> $ fdisk -ul jaz7.img
> Disk jaz7.img (SGI disk label): 255 heads, 63 sectors, 0 cylinders
> Units = sectors of 1 * 512 bytes
> ----- partitions -----
> Pt#    Device  Info     Start       End   Sectors  Id  System
>  8: jaz7.img1            3072   2091007   2087936   a  SGI xfs
>  9: jaz7.img2               0      3071      3072   0  SGI volhdr
> 11: jaz7.img3               0   2091007   2091008   6  SGI volume
> 
> which lists partitions in sector units. As oppose to:
> 
> $ fdisk -l jaz7.img
> 
> Disk jaz7.img (SGI disk label): 255 heads, 63 sectors, 0 cylinders
> Units = cylinders of 16065 * 512 bytes
> 
> ----- partitions -----
> Pt#    Device  Info     Start       End   Sectors  Id  System
>  8: jaz7.img1               1       130   2087936   a  SGI xfs
>  9: jaz7.img2               0         0      3072   0  SGI volhdr
> 11: jaz7.img3               0       130   2091008   6  SGI volume

I'd give it a shot regardless as I don't remember if the sector size is
actually IN the partition table and if it's NOT then it'll show the
native blocksize of the device, which is 512bytes!

Just try it, what do you have to lose? I mean do the od ..
Worst case you get garbage or zeroes.

// Stefan

  reply	other threads:[~2008-06-03 20:23 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-29 17:05 XFS: SB validate failed Spam Magnet
2008-05-29 17:19 ` Eric Sandeen
2008-05-29 19:55   ` Spam Magnet
2008-05-29 20:02     ` Eric Sandeen
2008-05-29 21:00       ` Spam Magnet
2008-05-29 21:06         ` Eric Sandeen
2008-05-29 21:46           ` Spam Magnet
2008-05-29 22:19             ` Eric Sandeen
2008-05-29 22:25             ` Stefan Smietanowski
2008-05-30  5:28             ` Timothy Shimmin
2008-05-30 17:19               ` Spam Magnet
2008-05-30 17:59                 ` Stefan Smietanowski
2008-05-30 23:26                   ` Hamid
2008-05-31  0:19                     ` Stefan Smietanowski
2008-05-31  0:22                       ` Stefan Smietanowski
2008-06-01  7:35                       ` Hamid
2008-06-01 10:46                         ` Stefan Smietanowski
2008-06-03 17:36                           ` Spam Magnet
2008-06-03 17:56                             ` Spam Magnet
2008-06-03 18:59                               ` Stefan Smietanowski
2008-06-03 19:39                                 ` Spam Magnet
2008-06-03 20:23                                   ` Stefan Smietanowski [this message]
2008-06-05 16:16                                     ` Spam Magnet
2008-06-02  2:08                 ` Timothy Shimmin

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=4845A857.3090905@stesmi.com \
    --to=stesmi@stesmi.com \
    --cc=sandeen@sandeen.net \
    --cc=spam.wax@gmail.com \
    --cc=tes@sgi.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