Click to See Complete Forum and Search --> : Recovering a deleted photo
hongman
03-18-2005, 02:19 PM
Hi all
Ok, this is the situation. I had a photo of my gf's 8 week pregnant tummy, on a CompactFlash card. I MOVED it to my desktop but then I accidentally clicked 'Delete', so it bypassed the Trash Can.
Is there anyway I can recover this photo from either the CF Card or the HDD?
Thanks
Hong
probably, but it will depend on what file system you are using if you try to recover i of of linux.
there is software available specifically to recover deleted files from CF cards. A quick Google should return some results.
there are a few projects on SourceForge for recovering deleted files from some *nix file systems -- keep in mind that if the disk it was deleted from was subsequentally written to then chances are it is toast.
hlrguy
03-18-2005, 02:38 PM
Windows
http://www.sharewareconnection.com/filerecovery-for-compactflash.htm
Linux, scroll down to "Undeleting Images"
http://www.math.unibas.ch/~winkel/cplx/comp/digicam.html
Hope it works.
hlrguy
hongman
03-18-2005, 03:03 PM
Thanks.
I think it IS Fat16, but not 100%.
I cannot use my windows machine, it hasnt got USB so it looks like it has to be either from the CF card plugged into my Linux box OR directly off my HDD (ext3).
I havnt written anything to the card since. I was wondering, is the file still recoverable off the card if I MOVED it off, as opposed to deleting straight from the CF Card?
I am also having trouble with that 'Undeleting Images' hlrguy. I'm still quite new to this Linux!
Any firther help would be gratefully received.
Hong
hlrguy
03-18-2005, 03:46 PM
More your /etc/mtab with the CF mounted. For example, my CF reader is /dev/sdd1. You can see which it is by looking at your mtab table before and after you plug it in.
You want to do this as root. In a console
su - root
mkdir /tmp/rescue
<enter password> EDIT:Move Up One Line:edit
dd if=dev/sdd1 of=/tmp/rescue/rescuefile
detach the attached .txt file and then do this. I attached it as txt since it has to be that format for the forum.
Note: you will have to have perl installed on your system.
again, as root,
mv undelete.txt undelete
chmod 755 undelete
./undelete /tmp/rescue/rescuefile
then, under /root/undeleted/ all .jpg files should be there. I just tried the above, it worked for me. It takes a while to make the image and then do the undelete, so be patient. Undelete, 128 MByte card, 3.2 GHz took 24 minutes.
hlrguy