xfs
[Top] [All Lists]

Re: mkswap'ed an xfs partition

To: Robert Thralls <rob_thralls@xxxxxxxxx>
Subject: Re: mkswap'ed an xfs partition
From: Chris Wedgwood <cw@xxxxxxxx>
Date: Sat, 14 Jan 2006 22:47:45 -0800
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20060114235656.14359.qmail@web36404.mail.mud.yahoo.com>
References: <20060114235656.14359.qmail@web36404.mail.mud.yahoo.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Sat, Jan 14, 2006 at 03:56:56PM -0800, Robert Thralls wrote:

> I typed "mkswap /dev/hda4" instead of "mkswap /dev/sda4" and applied
> it to an xfs storage partition! I have no experience repairing
> xfs. I have not mounted or done anything else with this partition
> yet.  Is there a way to recover everything or at least a list of
> everything that was lost?  Could I just do a "mkfs.xfs /dev/hda4"
> and pretend it never happened?

try xfs_repair

presumably SB0 is intack (as I don't think swap uses this) if not it
will scan for another one which should take a while

hopefully this will get most if not all of your filesystem back


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