How to: Recover files from your pendrive for free.
Hi there,I know I havent updated my blog lately, and after only a few posts
, but today I will give you an informative guide on how to recover files for free with linux based software (i find the windows file recovery software a bit junky).
tools needed:
blank cd/dvd whatever ubuntu needs nowadays
computer that has usb port and dvd/cd drives (unless your using a DIFFERENT pen drive with ubuntu)
iso image of ubuntu
internet connection
first some points to make sure you understand
- DO NOT WRITE TO THAT PENDRIVE IT MAY OVERWRITE THE DATA YOUR TRYING TO RECOVER.
- THIS IS NOT 100% GUARANTEED TO WORK
- I TAKE NO LIABILITY IF THINGS GO WRONG, I MAY HELP IF YOUASK FOR HELP ON THE COMMENT
I dont like being rude but nor do I like being blame when things go wrong.
ok, first burn the image to a blank cd/dvd or make a bootable pen drive, I wont say how here but I will may write a tutorial here if I feel like it or there is big demand for the tutorial.
boot into ubuntu with whatever media your using and make sure you have access to the internet by clicking applications > accessories>terminal

then type ping google and you shpuld see something similar but not exact to this
ad@prometheus:~$ ping google.com
PING google.com (74.125.67.100) 56(84) bytes of data.
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=1 ttl=54 time=134 ms
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=6 ttl=54 time=130 ms
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=11 ttl=54 time=130 ms
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=16 ttl=54 time=132 ms
^C
— google.com ping statistics —
16 packets transmitted, 4 received, 75% packet loss, time 15067ms
rtt min/avg/max/mdev = 130.520/131.989/134.629/1.741 ms
Please bear in mind that I have a crap internet connection. and hit ctrl+c once youve got replies
but if your getting replies from google its good, if not look around the ubuntu forums etc to get your nic/ wlan card working
now that you have ubuntu and internet working proceed.
in that same terminal type this
sudo apt-get install foremost
foremost is a good tool for file recovery
now type this
tail -f /etc/mtab
now plug in your pendrive and wait for it to be recognised the screen should add a new entry and ubuntu will open a filebrowser on your pendrive, close the file browser and copy a part of the screen, this is your device hardware tag, heres what happened for me.
/dev/sdb /media/FAGBAIT vfat rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush 0 0
the important part is the first bit: /dev/sdb, it may be different for you so dont copy me, keep a note of that /dev/xxx entry and type this
sudo foremost -i /dev/xxx -o ~/recovered
after you done that it will chug along recovering files until its finished, nows the important bit, check what it has recovered click on places then Home folder and you should see a file called recovered, open that and it will have a folder for each filetype recovered open each file and you should see your recovered files, they will not keep file names. I did it on my old mp3 player that would currupt data when it runs out of battery and it managed to recover all the album art, one music track, and a few of my old college documents. and this drive was formatted MANY times since that data was lost.
