How to recover deleted files from a fat32 volume in Linux?
Hi all.
I accidentally deleted some precious files from an external disk formatted as fat32. I immediately unmounted the volume. Is there a way in linux (I've not a windows system at hand now) to recover the deleted files? Thank you. Code:
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes |
I'd probably start with photorec - does more than just photos.
|
If they're really precious, the first thing I'd do is mount /dev/sdb1 as read-only.
Then image it dd if=/dev/sdb1 of=myimage Then unmount /dev/sdb1 and unplug it. Now mount myimage with the loop option, and then you can safely use photorec and all the other utilities to your heart's content, happy in the knowledge that if you mess up, you still have your original disk, untouched. Good luck. |
Thank you for your advices.
@syg00 - I launched photorec and it already found ~ 200 files of about 630. Estimated time left: about 11 hours. I will see tomorrow the complete results. @tredegar - Good advice. Unfortunately I could not mirror the whole disk, because I don't have another Terabyte available. I just mounted the partition as read-only. |
I had to do the same thing many times before and I'd say testdisk is much faster and does a great job.
Only important thing is that you haven't done anything with that disk after you have deleted files on it. If so,testdisk will recover everything just the way it was and based on what you've said ( 11 more hours ) I think it'll do the job faster. |
I didn't do anything with the disk, I immediately unmounted it. Now the estimated time left is 12h25m. I'm checking the recovered files and it looks like it's doing a good job. Since I'm not in a hurry, I prefer to leave it running (it's 16:00 now in Italy, tomorrow early in the morning it should have finished). Thank you, anyway.
|
Whatever works for you,but if you find yourself in a hurry sometime give testdisk a try. ;)
|
Let it be known that photorec = testdisk ... they are one and the same, and I wish they would just stick with one name.
One that I personally recommend along with photorec is foremost: http://foremost.sourceforge.net/ You may be able to recover more with it in some cases. |
Quote:
TestDisk is data recovery software which is designed to help recover lost partitions and make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error. PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from Hard Disks and CDRom and lost pictures from digital camera memory. TestDisk can:
|
Oh, I see, well either way they are on the same site in the same package ...
|
Hi. Photorec finished the job and the result is excellent! About 95% of the lost files has been recovered. You saved my day!
@alan_ri and H_TeXMeX_H: thank you for the clarification about testdisk and photorec. Indeed the two packages are strictly related: I installed photorec using Yast in Opensuse and it installed testdisk as a requirement. Cheers! :) |
No use of mount if using dd
Quote:
|
PhotoRec is all you need
I created an account just so I could thank the people who recommended PhotoRec. I used too wide a wildcard spec when deleting old photos and wiped my entire camera card before copying it off to permanent storage. I haven't been this excited since Papa Murphy's announced $10 Tuesday 3-topping large pizzas.
Note to future visitors: If you get here like I did by searching for "recover lost photos fat32", go right now and install PhotoRec. When you get back all those lost files, be sure and donate generously. |
All times are GMT -5. The time now is 01:57 AM. |