Recover a mistaken swap-formated USB-HD


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 04-21-2013
Recover a mistaken swap-formated USB-HD

Hi!
Installing the debian wheezy by netinstall my external USB-HD (2TB) is erroneously completly formated as swap-filesystem. I was to lazy to disconnect the USB-HD, so now i could kick myself .
Is there any chance to rescue the data. I tried to find a way by using
gparted: the whole HD is swap-fs. I only check with gparted, i didn't do any format-action.
and
testdisk. analyze and deeper search

both only see swap-fs and testdisk cant find anything.
I need a helping hint, because i need urgently some of the primary stored backup-data.

thanks in advance
IMPe
# 2  
Old 04-21-2013
I'm afraid you're out of luck:
1) If set up as a swap device, chances are it has been used during install, so data, or, even worse, structural data, have been overwritten.
2) Should some of your old data blocks still reside on disk, it would be extremely difficult if not impossible to put them back to your original files in correct order, esp. as they may well be binary / compressed data.
This User Gave Thanks to RudiC For This Post:
IMPe (04-22-2013)
# 3  
Old 04-22-2013
Quote:
Originally Posted by RudiC
I'm afraid you're out of luck:
1) If set up as a swap device, chances are it has been used during install, so data, or, even worse, structural data, have been overwritten.
2) Should some of your old data blocks still reside on disk, it would be extremely difficult if not impossible to put them back to your original files in correct order, esp. as they may well be binary / compressed data.
Thanks RudiC for giving me certainty!

IMPe
# 4  
Old 04-23-2013
You might be able to use magicrescue or photorec to recover scattered files from it, but this will be patchy at best and useless at worst for the reasons Rudic gave. These tools just look at raw blocks for recognizable jpeg headers and the like -- they cannot recover fragmented or unidentifiable files.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Explain the output of swap -s and swap -l seenuvasan1985 Solaris 6 09-11-2014 06:47 PM
USB-USB cable between linux and windows computers Xterra UNIX for Dummies Questions & Answers 4 08-31-2010 04:01 PM
Swap device file and swap sapce lamoul HP-UX 6 03-04-2010 08:14 AM
swap not defined as swap dplinux Red Hat 5 10-30-2009 02:53 AM
Occasional Core Dump with hot swap USB Thumb Drive miles556 SCO 0 09-29-2009 03:38 PM
Create a formated text file msb65 Shell Programming and Scripting 5 12-09-2008 08:53 PM
awk to find a formated o/p aaysa123 Shell Programming and Scripting 5 10-17-2008 09:01 AM
processing tab-formated output of command w/bash sweede Shell Programming and Scripting 2 05-23-2008 09:17 PM
Swap config - Mirror swap or not? BG_JrAdmin Solaris 3 01-06-2008 09:25 PM
1.44mb disk formated = 1.38mb left?? G-wizz Windows & DOS: Issues & Discussions 4 01-13-2004 01:27 PM
Disk Formated with NTFS bache_gowda SuSE 4 11-19-2003 04:05 PM