LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Recovery of files caught in swap area (https://www.linuxquestions.org/questions/linux-newbie-8/recovery-of-files-caught-in-swap-area-900657/)

difference 09-01-2011 11:41 PM

Recovery of files caught in swap area
 
I just installed Linux Mint 11, 32 bit in my system which was already running on windows 7. When it asked for SWAP partition during installation, I just directed one of my drives for it, but the drive already had my documents and files, and now, the drive is not visible to me in either in windows environment, or in linux environment. I installed linux using manual partition. Is there a way by which I can reclaim my docs in the drive, even by reinstalling Linux? Please reply if you can do anything for the problem. I need it asap.. :)

crosstalk 09-01-2011 11:49 PM

I can't help you recover your data (maybe testdisk can help, or PhotoRec), but I can offer 1 piece of advice: do not run anything (except Windows, which doesn't use a swap partition) on that computer until it's recovered, or you may lose data that'd otherwise be recoverable.

I hope you get your data recovered.

difference 09-01-2011 11:55 PM

Thank u, cross talk.. If you come across anything more that could help, please post.. :)

kbp 09-02-2011 12:02 AM

The first step is to turn the machine off - the less activity on the system the better. Then try to recover your data, there are plenty of tools available ranging from forensic to file recovery - TestDisk seems to be popular so may be your best bet.

crosstalk 09-02-2011 12:13 AM

Okay, I think I need to expand upon what I said:

I told you to shut off Linux because, as far as I know, most Linux distributions automatically detect and use swap partitions (your install certainly uses that swap partition). Swap, if you don't know, is used to extend the apparent memory of the system -- running with that partition active will almost certainly overwrite data.

To recover your data, you'll either have to use Windows, or you'll need an OS that does not automatically use swap. The only one I know of off the top of my head is called BackTrack (which contains lots of computer forensics tools, if I remember correctly), but I don't know how hard it is to use.

Others with more experience can help you recover your data -- I just needed to clear up what I said earlier.

Good luck, hope you don't lose any important data.

difference 09-02-2011 12:38 AM

Thank you kbp and crosstalk. As I am new to this OS thing, I dont have much idea. TestDisk is not able to detect my hard drive and it exited normally. Please help. Thanks in advance..

yancek 09-02-2011 08:21 AM

Quote:

When it asked for SWAP partition during installation, I just directed one of my drives for it
Any Linux installation will ask for a partition to use for swap, it won't use the whole drive. It's not clear exactly what you did but it would help if you posted drive/partition information so we could see if you do in fact have a swap partition or if you still have windows partitions. I don't know how you are running testdisk but, if it is from a Linux CD, just open a terminal and log in as root and type: fdisk -l(lower case Letter L in the command) and post that output here. If you use the Mint CD, use sudo fdisk -l.


All times are GMT -5. The time now is 04:49 PM.