xfs
[Top] [All Lists]

Re: need help to repair XFS partition

To: Gergely Soos <sogerc1@xxxxxxxxx>
Subject: Re: need help to repair XFS partition
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Tue, 6 Jan 2009 18:09:30 -0500
Cc: Eric Sandeen <sandeen@xxxxxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <b75ef8170901061454v76081ca8x6f87e4bf14eb8491@xxxxxxxxxxxxxx>
References: <b75ef8170901060111l52b9a803uf31dc7baa80df721@xxxxxxxxxxxxxx> <49638190.3070803@xxxxxxxxxxx> <b75ef8170901061004n75f52cffg7f810a51aca21ff@xxxxxxxxxxxxxx> <4963A706.8000500@xxxxxxxxxxx> <b75ef8170901061351madb546flbc1631bc55cd4412@xxxxxxxxxxxxxx> <4963D320.9010000@xxxxxxxxxxx> <b75ef8170901061431i68f8ebdey3ab08ea3dec9c079@xxxxxxxxxxxxxx> <4963DDD2.4030501@xxxxxxxxxxx> <b75ef8170901061454v76081ca8x6f87e4bf14eb8491@xxxxxxxxxxxxxx>
User-agent: Mutt/1.5.18 (2008-05-17)
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..

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