xfs
[Top] [All Lists]

Re: mkswap'ed an xfs partition

To: Robert Thralls <rob_thralls@xxxxxxxxx>
Subject: Re: mkswap'ed an xfs partition
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Sun, 15 Jan 2006 00:41:31 -0600
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20060114235656.14359.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <20060114235656.14359.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)
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?
kernel 2.6.15, gentoo, xfsprogs-2.6.25

don't mkfs it! I -think- that mkswap just stamps a signature onto the front of the disk; I'm guessing that xfs_repair can recover from this. You could dd hda4 into an image file if you have room, to test it there first.

-Eric

                
---------------------------------
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!

[[HTML alternate version deleted]]



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