LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2011, 11:41 PM   #1
difference
LQ Newbie
 
Registered: Sep 2011
Posts: 4

Rep: Reputation: Disabled
Unhappy 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..
 
Old 09-01-2011, 11:49 PM   #2
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Rep: Reputation: 35
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.
 
Old 09-01-2011, 11:55 PM   #3
difference
LQ Newbie
 
Registered: Sep 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank u, cross talk.. If you come across anything more that could help, please post..
 
Old 09-02-2011, 12:02 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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.
 
Old 09-02-2011, 12:13 AM   #5
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Rep: Reputation: 35
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.
 
Old 09-02-2011, 12:38 AM   #6
difference
LQ Newbie
 
Registered: Sep 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
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..
 
Old 09-02-2011, 08:21 AM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How much swap area is enough/too much? Beowulf questions tnandy Linux - Software 4 06-14-2019 03:30 PM
files recovery swap partition pavel Linux - Newbie 1 05-18-2011 07:01 AM
How to swap out (to swap area) page frames a process use? entertainyou Linux - Kernel 3 03-23-2011 09:52 PM
SWAP area ALF Linux - Software 5 12-16-2003 03:11 PM
swap area needs to be atleast 40 kB Sonderblade Linux - Hardware 1 11-18-2003 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration