How To Recover Data From Corrupt Harddrive in Linux - Max
How To Recover Data From Corrupt Harddrive in Linux - Max
Tutorial on how to successfully recover data from a Severely Corrupted hard drive in Ubuntu
Linux using Testdisk and Photorec.
A “professional” repair shop attempted recovery of data from this Windows Laptop drive, but
failed. Using Testdisk in Linux I recovered about 70% of the drive. (Could have been more, but it
was crippling my system and running horrifically slow)
Find out drive number with GUI tools, Gparted, or “fdisk -l”
sudo smartctl -a /dev/sdx
sudo testdisk /dev/sdx
Take a backup image if you have enough disk space spare on your system
sudo photorec image.dd (or /dev/sdx)
find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) -exec cp '{}' /destination/ \;
Wallpaper: http://quidsup.net?i=NeonPacman
Catégorie
Science et technologie
==============================================================================
=
50 commentaires
Linux4UnMe
il y a 3 ans
It's pretty sad when supposed "professionals" at a repair shop fail at drive recovery and some
guy comes along using Linux / open source tools and easily solves the issue :D
20
Ograws
Ograws
il y a 2 ans
+Linux4UnMe If only I had have known about this before I could have fixed a client's hard drive
which got corrupted :P
1
Darren Moore
Darren Moore
il y a 3 ans
Nice tutorial Quidsup ... best i have seen........... I use these recovery tools quite often . But
GeeZus it irritates me how you lose ALL file names.
I recently recovered 93,000 + photo's , 200+ movies and over 500 short home
video's .................32 hrs to recover it all ......... over 9 yrs of a family's life, for a little ol Granny.
It was both a case of Happiness and joy at having gotten the photo's back ................ And stress
and anguish coz the poor ol dear didn't know what to do next. How do you put them back into
folders and photo albums. ALL the info that was with them is gone. She mentioned that it would
take her years to get it all sorted
And some types of movies get broken down into their VOB sections ..............you try putting
them back together !!! especially when there are no file names
surely someone out there can improve this wonderful software further
4
quidsup
quidsup
il y a 3 ans
@Darren Moore Its due to the loss of the File Allocation Table. The data recovery tools can see a
file but without the FAT table they have no idea what it's called.
It was like that 20+ years ago doing file recovery in DOS.
Cheers
1
Loathian Penguin
Loathian Penguin
il y a 3 ans
@Darren Moore Been there before and ended up using batch renaming programmes such as
pyrenamer or metamorphose2. I just renamed all the photos by date taken based on exif data
and sorted em chronologically. Should help the wee gran get her photos into folders without too
much cutting and pasting ;-)
now, regarding backing up the harddrive to multiple usb sticks, theres a few possible solutions,
one would be to just splice the file into many smaller files, you could do this manually using
some software or by doing something like.. rar file splicing (common feature in rar applications,
like for example winrar)
Kathphlox
Kathphlox
il y a 2 ans
Oh... how I remember DOS many years ago, very simple just to load a prog.. then later trying to
bring in a bot from a friends computer to an IRC channel 10 years ago gave me the sweats.. now
this just scares me because I don't understand it.. all those instructions mean something in plain
language.. it would be good if someone would define them.. If you know what they mean, you
can understand better and remember them and what they do.. an old granny just saying ;)
2
Zohair Khan
Zohair Khan
il y a 1 an
I am surprised to know about your interest in such thing.
Ricardo Portela da Silva
Ricardo Portela da Silva
il y a 3 ans
Hello, great tutorial!. thanks. Please, could you help me ?
I already try recover from a Windows machine, but no sucess
I got these error message executing command below:
sudo ntfsfix /dev/sde
Mounting volume... ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 1024 usa_ofs: 0
usa_count: 65535: Invalid argument
Record 0 has no FILE magic (0x0)
Failed to load $MFT: Input/output error
FAILED
Attempting to correct errors... ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 1024
usa_ofs: 0 usa_count: 65535: Invalid argument
Record 0 has no FILE magic (0x0)
Failed to load $MFT: Input/output error
FAILED
Failed to startup volume: Input/output error
Checking for self-located MFT segment... ntfs_mst_post_read_fixup_warn: magic: 0x00000000
size: 1024 usa_ofs: 0 usa_count: 65535: Invalid argument
OK
ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 1024 usa_ofs: 0 usa_count: 65535:
Invalid argument
Record 0 has no FILE magic (0x0)
Failed to load $MFT: Input/output error
Volume is corrupt. You should run chkdsk.
1
Dale McCarthy
Dale McCarthy
il y a 1 an
No partitions found when i run testdisk?any help please. also getting a lot of input/output errors
in dd_rescue
2
osityan
osityan
il y a 3 ans
If you need the files just get a quote from data recovery guy.com, they're pretty cheap or some
other data recovery company
1
Dr Revolution
Dr Revolution
il y a 1 an
my external drive has been corrupted i think i tried test disk on windows and it coundt find any
partitions .. what are my options
1
Ryan S
Ryan S
il y a 3 ans (modifié)
I had to do an emergency backup of an SD card containing a RPi image, using a Windows
machine as the card was required for something ASAP. Turns out the image was corrupted and I
lost some very important data. I can't mount the file at all on any of my linux machines.
Could I use this tool to obtain data from an .img file?
1
Aditya Yavagal
Aditya Yavagal
il y a 1 an
hey quidsup can u help me I hv a serious prblm with my laptop hard disk
1
Johnny Webb
Johnny Webb
il y a 6 mois
I have the SAME HDD! Linux wrote over my partition and rooted it, and all my stuff is gone...
Can I still recover my stuff or is it stuck on that Linux partition now?
1
EnderCrypt
EnderCrypt
il y a 4 mois
possibly, the more 'empty space' there is on the harddrive, the more you MIGHT be able to
recover
wherever linux has put files on the drive, you wont really be able to recover things from
All*Robin
All*Robin
il y a 1 an
On the 2nd run, when I've retrieved the crucial data, I would just try to dd the whole drive to
another.
1
LinuxTutorials
LinuxTutorials
il y a 3 ans
As usual, Excelent!
3
reedy
reedy
il y a 3 ans
one of your best quids -- one of your best
4
Alvin Lee
Alvin Lee
il y a 3 ans
OMG. I really should get back to using Linux.
2
Ghulam Murtaza
Ghulam Murtaza
il y a 9 mois
Hy
Casper S?
Casper S?
il y a 8 mois
This works fine on macOS too. All Unix platforms with the supported tools - hell with the
Windows subsystem for Linux you might even get it working on Windows
1
Leandro Aude
Leandro Aude
il y a 10 mois
Brit, right?
1
Mario Sergio
Mario Sergio
il y a 1 semaine
I've broken my android phone. I've lost it and when I found it, it was inside my wash machine. So
the mobile is not turning on. If this process do you think is possible to recovery something? ;)
dharrunsingh dharrunsingh
dharrunsingh dharrunsingh
il y a 5 mois
What the heck I don't know, smartctl is not working for me
slidingdownthehill
slidingdownthehill
il y a 3 ans
hey there,
i use testdisk when pushed it's quite useful.
as for the file naming well that is another matter.
i did toy with the idea of writing a script to pull the info from the doc and rename them - using....
another utiliy (fileprop?)... wonder if you'd thought of that.