xfs
[Top] [All Lists]

XFS_repair, move copy etc...

To: linux-xfs@xxxxxxxxxxx
Subject: XFS_repair, move copy etc...
From: "Matthew Klassen" <matt@xxxxxxxxxxx>
Date: Sun, 02 Jan 2005 23:15:52 -0500
Sender: linux-xfs-bounce@xxxxxxxxxxx
This post is a bit late... I think that I should have asked before I tried it, 
but anyway I'm not just wondering if anyone can explain why this didn't work 
and what I should have done 
to keep all my data. 
I have a 60Gig and a 20Gig drive.  The 60Gig had a 40Gig XFS partition which 
was located at the end of the drive.  I wanted to resize the xfs partition to 
the full 60Gigs, but I 
didn't have anywhere to copy the data while I was creating the drive.  So after 
trying a number of different ways to grow the XFS partition I found out that I 
couldn't grow it unless 
I grew the partition first.  But to grow the partition you have to extend it 
from the end of the partition, not from the begining, so it meant that I would 
have to move the partition 
forward on the drive.  But the problem was that xfs_copy wouldn't copy because 
the destination drive was too small.  So I had this genuis idea that I would do 
a dd copy from the 
second partition to the first partition which would end up writing over the 
second partition, all just using the same drive. 
[***first***][******Second*******] 
[******Second********]*********] 
However when this finished it wouldn't mount and after a number of attempts at 
recovery, I could only get about 1/10th of the actually data restored :( 
<id10t>  
 
So my question is, how should have I done this?  What else could I have done to 
save that data?  I didn't want to delete anything off the other 20Gig drive so 
I wouldn't be able to 
move that data around.   
 
Thanks 
 
Matt 


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