Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Linux disc recovery tools?

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
SiriusHardware



Joined: Tue Sep 25, 2012 7:41 pm
Posts: 65

PostPosted: Mon Oct 29, 2012 6:42 pm    Post subject: Linux disc recovery tools? Reply with quote

I have here an (originally) NTFS formatted USB memory stick which has been corrupted (boot record damaged, perhaps). At any rate, Windows CHKDSK reports that its format is now RAW.

To see if recovery of the data on it was feasible I downloaded and ran the trial version of DiskInternals' 'NTFS Recovery' utility (again, Windows) and it seems to think there is a good prospect of recovering a few JPEG images and word documents from the stick.

Of course, to do that, it wants me to buy a key for 99usd, in order to make the programme fully functional.

Now, certainly, if the recovery of this information was a matter of life and death then 100usd would be a fair price to pay, but the information on this stick does not (I am told) fall into that critical category - it's more a case of it having sentimental value.

So I thought I might as well ask: Is there a comparable, trustworthy disc recovery tool out there in Linux-Land? A simple 'un-deleter' is not enough - it needs to be something which can trawl through the stick at sector level looking for bits of file, threading them back together and generating new names for them.

I've done a search through the forums but didn't find anything on this - apologies if I missed it. You could say that I could have just Googled this but for every genuine tool or utility out there in the wild there seem to be a dozen items of Malware posing as similar utilities - so I'd prefer word of mouth advice based on experience.
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2431

PostPosted: Mon Oct 29, 2012 7:58 pm    Post subject: Reply with quote

For self study:
http://www.howtoforge.com/ntfs-disk-recovery
http://www.howtogeek.com/howto/13706/recover-deleted-files-on-an-ntfs-hard-drive-from-a-ubuntu-live-cd/
http://www.makeuseof.com/tag/fix-corrupted-windows-ntfs-filesystem-ubuntu/

But your best bet: http://www.sysresccd.org/
Back to top
View user's profile Send private message
johnhudson
LXF regular


Joined: Wed Aug 03, 2005 2:37 pm
Posts: 870

PostPosted: Mon Oct 29, 2012 10:12 pm    Post subject: Reply with quote

http://www.sysresccd.org/SystemRescueCd_Homepage will do pretty well anything you might need and has excellent documentation.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8455
Location: Warrington, UK

PostPosted: Tue Oct 30, 2012 8:45 am    Post subject: Reply with quote

testdisk for recovering partition tables, photorec (part of testdisk) for recovering files. Both are on System Rescue CD.

For safety, use dd to make an image of the disk and run the tools on that to avoid further corruption.

Code:
dd if=/dev/sdN of=buggereddisk.img

_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
SiriusHardware



Joined: Tue Sep 25, 2012 7:41 pm
Posts: 65

PostPosted: Tue Oct 30, 2012 6:23 pm    Post subject: Reply with quote

nelz wrote:
testdisk for recovering partition tables, photorec (part of testdisk) for recovering files. Both are on System Rescue CD.

For safety, use dd to make an image of the disk and run the tools on that to avoid further corruption.

Code:
dd if=/dev/sdN of=buggereddisk.img


Thanks for the responses:- As you suggested, I used PhotoRec which is indeed contained within the rescue CD recommended by the others, although I downlaoded it directly as a standalone. PhotoRec's name is somewhat misleading as it suggests that the program will only recover photos - in fact it is a lot more powerful than that and 'knows' about hundreds of different file formats including office documents, all of which it will try to recover.

The interface is typically bare-bones but it did manage to recover quite a bit of the lost data along with a lot of broken files which may simply be broken because they were on the stick and intentionally deleted / overwritten by the owner prior to his saving the files he wrote and then lost due to corruption.

What was recovered included quite a few JPEG images which are obviously of a familiy nature and so I am sure the owner of the stick will be very pleased that they have been recovered,

Thanks for the info about making an image with DD- I'll follow that up as well - maybe I can recover more if I allow testdisk to try to fix the image - I didn't dare try it on the original.

Anyway: Windows 0, Linux 1 Very Happy
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8455
Location: Warrington, UK

PostPosted: Tue Oct 30, 2012 8:37 pm    Post subject: Reply with quote

The name is historical, the program was originally developed to recover lost photos frm a memory card. In fact, it recovers all types of files, not only the large number of supported types.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1668
Location: Guisborough

PostPosted: Tue Oct 30, 2012 9:50 pm    Post subject: Reply with quote

TestDisk also runs in Windows. So I'd say it was a draw.
_________________

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
Back to top
View user's profile Send private message MSN Messenger
SiriusHardware



Joined: Tue Sep 25, 2012 7:41 pm
Posts: 65

PostPosted: Tue Oct 30, 2012 10:56 pm    Post subject: Reply with quote

Ram wrote:
TestDisk also runs in Windows. So I'd say it was a draw.


It does, but it looks like a Linux programme even when running under Windows and refers to the drives by linux-style names, so I think that makes it a 89th-minute strike for Linux. Smile
Back to top
View user's profile Send private message
wyliecoyoteuk
LXF regular


Joined: Sun Apr 10, 2005 11:41 pm
Posts: 3444
Location: Birmingham, UK

PostPosted: Wed Oct 31, 2012 9:39 am    Post subject: Reply with quote

Ram wrote:
TestDisk also runs in Windows. So I'd say it was a draw.


From a windows liveCD?
_________________
The sig between the asterisks is so cool that only REALLY COOL people can even see it!

*************** ************
Back to top
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1668
Location: Guisborough

PostPosted: Wed Oct 31, 2012 10:04 am    Post subject: Reply with quote

wyliecoyoteuk wrote:
Ram wrote:
TestDisk also runs in Windows. So I'd say it was a draw.


From a windows liveCD?


Yes, if you can find it.

But in this case it was for a USB stick so didn't need a LiveCD.
_________________

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
Back to top
View user's profile Send private message MSN Messenger
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast