[ltp] swap problem (!)

leo linux-thinkpad@linux-thinkpad.org
Sun, 27 Mar 2005 23:25:59 +0200


Matthias Posseldt wrote:

Thanks, I was able to rescue all those data that were necessary.

best regards

leo

>It may be possible if you didn't use the swap partition yet. First do a 
>complete backup of your partition (dd if=/dev/hdx of=somelargefile.img) 
>and then operate on this image to try to restore your data on the 
>partition.
>
>Ext3 contains some superblocks which are entry points to the directory 
>structure. If one of them is destroyed, it is possible to use a 
>different superblock to restore the filesystem. That can be done with 
>fsck.ext3. Read the manual pages and the documentation on the internet 
>for further information.
>
>And, that is most important, be very careful when booting rescue CDs and 
>the like. They almost always activate the swap partitions and use them. 
>That will destroy your data. So boot these CDs with a "noswap" option 
>or the like.
>
>Regards,
>Matthias
>
>  
>