[Top] [All Lists]

Re: xfs_repair force_geometry

To: xfs@xxxxxxxxxxx
Subject: Re: xfs_repair force_geometry
From: Stan Hoeppner <stan@xxxxxxxxxxxxxxxxx>
Date: Mon, 13 May 2013 12:56:07 -0500
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <5190DB7F.2050505@xxxxxx>
References: <5190DB7F.2050505@xxxxxx>
Reply-to: stan@xxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
On 5/13/2013 7:24 AM, Benedikt Schmidt wrote:
> Hi,
> currently I'm looking for the correct usage of the force_geometry option
> of xfs_repair. I wasn't able to find more documentation on this option
> beside that it exists. Could please somebody explain it to me?

> For a more detailed description of my problem: I've got here a hard disk
> which is dying at the moment, so I copied all the content with dd_rescue
> to a new and bigger one. To use xfs_copy wasn't possible as the
> filesystem was already corrupted. 

This is a standalone disk which wholly contains an XFS filesystem, yes?
 The filesystem is corrupted and cannot be repaired?  And it won't mount?

> So now I've got nearly everything on
> the second hard disk (dd_rescue could'nt copy something around 6 or 7
> MB), but I can not mount the filesystem or even run xfs_repair on it, as
> it fails to find a superblock. I think the problem lies in the fact that
> the new disk has a different geometry than the previous one.

Given the fact that the filesystem is already corrupted and not
repairable, and the disk is in a state of failure, it's not surprising
you can't repair or mount after the ddrescue copy, which now contains
the same corrupted structures.

If the original can't be repaired nor mounted, why would you believe a
sector-by-sector copy could be?


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