File recovery for whole disk

Using PhotoRec to recover lost data
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
codekingmaker
Posts: 5
Joined: 24 Apr 2013, 13:49

File recovery for whole disk

#1 Post by codekingmaker »

Hello,

I am implementing the recovery option through my c# code. For that, I am using the below codes,

ProcessStartInfo startInfo = new ProcessStartInfo("Photo_rec.exe");
Process RecoverProcess = new Process();

startInfo.Arguments ="/d C:\Users\Karthy\AppData\Local\Temp\ivjpys4j.jvs\recagent /cmd samsung options,mode_ext2,fileopt,everything,disable,jpg,enable,png,enable,bmp,enable,gif,enable,doc,enable,pdf,enable,txt,enable,mp3,enable,mov,enable,freespace,search";

RecoverProcess = Process.Start(startInfo);
RecoverProcess.WaitForExit();

The above code recovers only partial information because, the mode has specified has "freespace". What command is there for recover my whole disk.

Please let me know your comments.

Thanks in advance.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: File recovery for whole disk

#2 Post by cgrenier »

You can use "wholespace". See http://www.cgsecurity.org/wiki/Scripted_run for more options.

Locked