Undeleting files

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

Undeleting files

#1 Post by klhrevolutionist »

http://recover.sourceforge.net/unix/

If you really need to undelete a file, that's the way to do it:

grep -a -B[size before] -A[size after] 'text' /dev/[your_partition]

Replace [size before], [size after] and [your_partition] with something meaningfull. Don't know what your partition is? Read the Linux undelete manual!

e.g.: If you want to undelete a letter (+- 200 lines) starting with "Hi mum" which was stored on /dev/hda1 you can try:

grep -a -B2 -A200 "Hi mum" /dev/hda1


***My question is this. It reads "Replace [size before], [size after]" Is this wanting me to put the size of my partition or the file I wish to undelte ?
Would'nt using "grep -b 'My-File' /dev/hda5" Work just the same ?
Heaven is on the way, until then let's get the truth out!

Post Reply