LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 01-25-2010, 04:32 AM   #1
parasiempresk
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Rep: Reputation: 0
Unhappy Can I use Linux to recover files from corrupted hard drive?


So I have a simpledrive 1tb and it's not being recognized by neither PC or MAC.. both computers ask me to initialize/format it!!

On a different forum I was told that I could use Linux to retrieve the files.. I tried UBUNTU? but it didnt even show the drive when I plugged it it.

I would like to know if I using Linux will help me recover my files?
and if so where could I get the ISO?

hope you can help, thanks.
 
Old 01-25-2010, 04:35 AM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
Use testdisk / photorec :

http://www.cgsecurity.org/
 
1 members found this post helpful.
Old 01-25-2010, 07:43 AM   #3
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
what does 'dmesg' show when you connect the disk ? In case the drive is detected, you can consider 'debugfs' to recover lost data. This can work in most cases.
 
Old 01-25-2010, 07:53 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by parasiempresk View Post
and if so where could I get the ISO?
Here---and everywhere......
First you have to chose a distribution---I would start with anything in the top ten on the "hit list" at http://distrowatch.com

You might try searching Google for a distro that includes testdisk and photorec and comes in a LiveCD
 
Old 01-25-2010, 07:57 AM   #5
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Use my new one
it'll be a good test
http://linux.softpedia.com/get/Syste...86-54010.shtml

post here
http://www.linuxquestions.org/questi...0/#post3839136
 
Old 01-25-2010, 03:06 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,013
Blog Entries: 1

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Hi,

'TestDisk' will meet your needs. 'PhotoRec' is another recovery tool.

'TestDisk' is on 'SystemRescueCD', 'UBCD' and 'RIP'


The above links and others can be found at 'Slackware-Links'. More than just Slackware® links!
 
Old 01-25-2010, 10:37 PM   #7
parasiempresk
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
ok so When i go to disk management it tells me the drive is unnallocated.

-------

Im using "testdisk" from the link that @Linux.tar.gz gave me and i chose Intel? [i dont remeber what it asked me] then i chose to analize it, but it couldn't find a partiotion so i chose "deeper search" [it took HOURS]

now it tells me:
structure: Ok.
Use left/Right arrow keys to CHANGE partition characteristics:
*=primary bootable P=Primary L=Logical E=extended D=deleted
KEYS A:add partition, L= Load Backup, T= Change Type, P:List files
ENTER to continue
NTFS found using backup sector!, 1000GB/931GiB

I do not what to do to start I dont know what's the difference between the characteristics...
I want to choose 'list files' but i don't know if I should..

help =S
 
Old 01-26-2010, 07:25 AM   #8
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
Good point that the ntfs was found.

You will need another disk in order to recover files with photorec.
Filenames will be lost.

Then you can try to recover the partition with testdisk, pushing enter.
 
1 members found this post helpful.
Old 01-26-2010, 09:57 AM   #9
parasiempresk
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
so far everything's gone smooth =]
I recovered the most important files but i still got some left in the drive but can't copy them because my computer doesn't have enough space..

hopefully i'll find a way to get to another hard drive and copy them.

but for now this case is closed.




















..or is it?
 
Old 01-26-2010, 10:02 AM   #10
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
so parasiempresk
whic Linux distro did you use?
Quote:
Im using "testdisk" from the link that @Linux.tar.gz gave me
 
0 members found this post helpful.
Old 01-26-2010, 10:04 AM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,013
Blog Entries: 1

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Hi,

If solved then please mark it as [Solved] via the 'Thread Tools'.
 
Old 01-26-2010, 10:53 AM   #12
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,468

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
EDIT:
Sorry, removed wrong reply

Last edited by repo; 01-26-2010 at 10:59 AM.
 
Old 01-27-2010, 09:25 AM   #13
parasiempresk
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
@linus72 i used testdisk http://www.cgsecurity.org/ that's it.

but today I woke up, turned on my computer.. and the pc recognized my drive again! just like before.. unbelieveble almost a month after the last time I was able to open it.

thanks everyone, you all should work fixing computers lol..
 
Old 02-22-2010, 03:11 AM   #14
anthonyc
LQ Newbie
 
Registered: Mar 2009
Location: Netherlands
Distribution: Mandriva, Suse, Ubuntu
Posts: 2

Rep: Reputation: 0
I had a similar problem. Upgraded a fine working Mandriva 2007 system to 2010 version and it decided to clear the data from /home despite not being asked to format it. I used testdisk from a Gparted live CD (actually a multi-mini-distro cover DVD from Linux Magazine, December 2009) very successfully last evening. It wasn't a completely intuitive experience but I soon worked out how to tell the photorec program to find what it could and save the results on an external HD. I now have several directories full of files to sift through for the few I actually wanted to recover (sigh!). If I can make time, will repeat the exercise and write a quick "how to" for the benefit of others. Btw, from the testdisk readme (I think it was), I obtained a list of live distros that include it - Knoppix is also a carrier.

Last edited by anthonyc; 02-22-2010 at 04:32 AM.
 
  


Reply

Tags
deleted, drive, external, file, format, hard, linux, partition, photorec, recovery, xp


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
Unable to recover files in corrupted raid1 array trostr Linux - Server 0 05-03-2009 05:42 PM
Recover files from hard drive crawford69 Linux - General 8 03-23-2007 01:14 AM
LXer: How to recover lost files after you accidentally wipe your hard drive LXer Syndicated Linux News 1 08-29-2006 03:47 AM
Linux Working ... Windows says corrupted Hard Drive ZenXIII Linux - Newbie 8 10-21-2003 01:43 AM
How can I recover hard drive on NT and Linux Lynn Linux - Software 1 03-20-2001 01:06 PM


All times are GMT -5. The time now is 06:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration