[Top] [All Lists]

Re: need help to repair XFS partition

To: "Christoph Hellwig" <hch@xxxxxxxxxxxxx>, "Eric Sandeen" <sandeen@xxxxxxxxxxx>, xfs@xxxxxxxxxxx
Subject: Re: need help to repair XFS partition
From: "Gergely Soos" <sogerc1@xxxxxxxxx>
Date: Wed, 7 Jan 2009 01:26:11 +0200
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=LGqQJitjGlodA3iK0nHd4hmLpJ6vUb20vk4bTCGMkyU=; b=d0/K88bpurTiuuz5JyErf961vWO6PJ6DAc2/H5JOHxLUUV6I5hzHZGwxaS2QPi0aRQ EF3H1/6YhDzX7JrUhPCGAiQtsUaBSVKtckvfrdFb8GYmiRy2/4tMsBXsirGp0z4t58cj +6ba3fp7/Qfk2wEbEq9dGb9uqW2jv0eE1yJjI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=TeFQtcLAPhSFlZ4gN6E2+M2ACm9ff/kuRvLSYZHKaRjQkgQWdzhWldFd5Mt3VSjB+O mhvMX4kNFtvxZct3oVomdsL8h9ymxSMYGKs/SBBBIrntxZDy4HdESErd7a6WX2a9DQze UXJOS17FACdBFrPueAYajimNnZW27h/ojumKo=
In-reply-to: <20090106230930.GA24703@xxxxxxxxxxxxx>
References: <b75ef8170901060111l52b9a803uf31dc7baa80df721@xxxxxxxxxxxxxx> <49638190.3070803@xxxxxxxxxxx> <b75ef8170901061004n75f52cffg7f810a51aca21ff@xxxxxxxxxxxxxx> <4963A706.8000500@xxxxxxxxxxx> <b75ef8170901061351madb546flbc1631bc55cd4412@xxxxxxxxxxxxxx> <4963D320.9010000@xxxxxxxxxxx> <b75ef8170901061431i68f8ebdey3ab08ea3dec9c079@xxxxxxxxxxxxxx> <4963DDD2.4030501@xxxxxxxxxxx> <b75ef8170901061454v76081ca8x6f87e4bf14eb8491@xxxxxxxxxxxxxx> <20090106230930.GA24703@xxxxxxxxxxxxx>
I want to thank everybody for the help, especially for Eric.
The solution was:
fdisk /dev/hdd
then go to expert mode (x)
print the partition table (p)
move the beginning of the partition (b) - where I increased the start number
by 63
write to disk and exit (w)
Reboot and everything is fine.
I'm so happy :)


PS: I made a typo in my previous letter. Instead of 5132575420 I should have
written 5132574720 in case anybody wonders...

On Wed, Jan 7, 2009 at 1:09 AM, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:

> 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..

[[HTML alternate version deleted]]

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