formatted/deleted a partition/drive then realized you had files on it you needed? then this guide may help you recover them.
first download and burn the latest version of puppy linux to a bootable medium, such as a cd or flash memory stick/drive then restart your machine using the medium as the first boot option to start running puppy linux.(maybe oneday i'll write a guide for this too.)
................................................................................
................................................................................
.......................
setting up puppy:-
----------------------
when puppy starts up you'll see this screen,
do nothing and it will boot to a puppy desktop in a few seconds.
now the first thing you will see is a welcome notice followed by this personalize settings box,
change your time,language, keyboard setting by clicking the down arrows and choosing from each dropdown box.
................................................................................
................................................................................
.......................
setting up a web browser:-
--------------------------------
now before we can download and run photorec we need to setup a web browser, so click on the browse icon on the desktop, this will open a browser installer menu..
just click on your browser of choice(i use firefox) this gives me a choice of 2 versions, just click on the newest one to start the download.
when it's finished downloading, you'll get a confirmation box open up, just click the "ok" button to install,
when it's installed you'll get a success box open up, again just click "ok" button.
now it'll install and update everything.
click on the browse icon button again this time it will start the firefox web browser.
................................................................................
................................................................................
.......................
getting photorec:-
----------------------
goto this site
http://www.cgsecurit...stDisk_Download and click on the latest linux version to start the download..
a box will open up..
we want to save the file so click on the save file option, then click the "ok" button
this box will open..
we are not going to change any of the defaults, and as you can see the file is going to be saved into the root folder, so just click the "save" button. when it's finished downloading the file just close the firefox web browser.
................................................................................
................................................................................
.......................
installing photorec:-
------------------------
click on the "file" icon on desktop to open the file manager..
now click on the green up arrow to change the parent directory, here you will now see the "root" folder where we saved photorec, click on it to enter.
now you'll see the zip file called "testdisk-6.12.linuxx26.tar.bz2"(yours may be a different version) click on it, this will open a new window..
click the green tick to select all, then click the "extract" button, a new box will open asking where to extract the files, we're not going to change it from the root folder so just click on the "ok" button, when done extracting another box will open saying so, just click "ok" now you should see a new folder in the file window called "testdisk-6.12"(depends on version you downloaded), close both the open windows to finish.
................................................................................
................................................................................
.......................
mounting all your partitions:-
-----------------------------------
now before we go any further we need to mount all drives/partitions(or at least the one you want to save any files to), you should see them on the desktop near the bottom left, just click each in turn, this should put a little green dot on the bottom corner of the drive icon and also open a file manager, so you can see what if anything is on that drives partition.
i can't stress this enough, you need to KNOW(not think you know) the layout of your hard drives and any partitions other wise you run the risk of overwriting any lost files.
here's a quick explanation:- linux sees hard drives in the order they are connected to the motherboard as shown in your pc's bios and not in the order they may appear in your windows operating system, don't assume the c drive in windows is the first partition on your first hard drive, it may well not be.
linux names hard drives sda, sdb, sdc etc(used to be hda, hdb, hdc etc) for the 1st, 2nd, 3rd, etc hard drive as seen in bios.
logical partitions on those drives are shown as numbers 1,2,3,4. if your hard drives have extended partitions then those numbers will start at 5 (so for an xp system with an 1 os partition and a 2nd data partition on it's first drive you'd probably see "sda1" and "sda5" where the "sda5" is the 2nd partition, not that there are 5 partitions on the drive and for some reason 2,3,4 don't show.)
as you can see from above picture, i have 2 hard drives, each with a single partition on, sda1 and sdb1, and both are mounted shown by the green dot.
sda1 is the drive/partition the lost files are on and sdb1 is the drive/partition where i'm going to save any found files.
................................................................................
................................................................................
.......................
starting photorec:-
-----------------------
click on the console icon on the desktop to open a console, now type in
cd ~/testdisk-6-12
and hit the enter/return key. notice "testdisk-6-12" is the name of the folder that was created in the "root" folder when we extracted photorec yours may be different depending on the version of testdik you downloaded so type in the correct name of your folder.
now type in
./photorec_static
as soon as you hit enter key photorec will start running.
before hitting enter/return key the console should look like this..
after hitting enter/return key, it will look like this with photorec running..
................................................................................
................................................................................
.......................
using photorec:-
--------------------
start screen as seen in above picture, shows all detected drives in your machine, in this test system you can see i have 2 hard drives, /dev/sda 10GB and /dev/sdb 6GB along with a cd drive /dev/sr0.
now in this guide i'm going to search my first hard drive /dev/sda for some music files and save them to the 2nd hard drive /dev/sdb.
NOTE:- you MUST have enough storage space on the drive/partition you're going to save the files on,
usually i'd recommend having an empty drive/partition at least as big as the drive/partition you're searching, just to be sure.
but if you know how much space your files used you can get away with using an empty drive/partition at least 15% bigger than that amount.
highlight the hard drive you want to search, using the up down arrow keys on the keyboard
"/dev/sda" and "proceed" are both highlighted and i just have to hit the enter/return key to carry on to the next screen.
on this screen you have to specify the partition table type, for most people(all windows users regardless of operating system) this is going to be the first already highlighted "Intel" choice, so just hit the enter/return key to go to next screen.
now here you can see the hard drive i'm searching listed along with the partitions on it(there is only 1 partition on this test system, yours may have more partition choices)
i'm going to search all the hard drive so, i use the up arrow key to highlight the "no partition [whole disk]" choice
next i'm going to change the type of files to search for (if you want to search for all file types then just jump to next post)
use the right arrow key until the "file opt" is highlighted,
should now look similar to this:-
hit the enter/return key to see next screen.
hit the "s" key on your keyboard to deselect all the choices, you'll see this removes the x from next to all the file types.
now i only want mp3 and wav music files,(here you'll make your own choices on what file types you want to find, video, documents, etc)
so keep tapping(or just hold it) the down arrow key until "mp3" is highlighted then hit the spacebar to select it(shown with an x )
i also want wav files so i carry on tapping the down arrow key until "riff" is highlighted(now this adds the wav type files but as you can see below, this will also add any cdr and avi files it finds) hit the spacebar again to select it.
now hit the enter/return key to return to last screen.