"Undeleting" data using grep, but get "grep: memory exhausted" error
So I have done all sorts of research into recovering files on an ext3 file system, and since ext3 actually zeros-out inodes instead of flagging them like in ext2, the old undelete software is useless. Thus, I am turning to good ole grep to help me. I am doing the whole:
grep -a -B50 -A50 "search string" /dev/sda3
thing, and my problem is that grep takes up so much memory over time that it pukes. I can run top while running that grep command and see the available memory get smaller and smaller until there is virtually none left and grep pukes.
So, I have 256MB RAM and an 18GB HD. Is there a fix for this? Can I get grep to write it's temp data to another hard drive instead of the memory?
|