[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-xfs
Subject:    Re: need help to repair XFS partition
From:       Christoph Hellwig <hch () infradead ! org>
Date:       2009-01-06 23:09:30
Message-ID: 20090106230930.GA24703 () infradead ! org
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic