need help to repair XFS partition
hch at infradead.org
Tue Jan 6 17:09:30 CST 2009
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..
More information about the xfs