public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Gergely Soos <sogerc1@gmail.com>
Cc: Eric Sandeen <sandeen@sandeen.net>, xfs@oss.sgi.com
Subject: Re: need help to repair XFS partition
Date: Tue, 6 Jan 2009 18:09:30 -0500	[thread overview]
Message-ID: <20090106230930.GA24703@infradead.org> (raw)
In-Reply-To: <b75ef8170901061454v76081ca8x6f87e4bf14eb8491@mail.gmail.com>

On Wed, Jan 07, 2009 at 12:54:52AM +0200, Gergely Soos wrote:
> 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.

If you want to mount the partitions once you can creat a loop device
ontop of you disk device and use the -o option, e.g.


losetup -o 5132606976 /dev/loop0 /dev/hdd1

and then mount /dev/loop0.  But that's not really something I'd want
to use for a longer time..

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

  reply	other threads:[~2009-01-06 23:09 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
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 [this message]
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=20090106230930.GA24703@infradead.org \
    --to=hch@infradead.org \
    --cc=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