Switch to full style
Data recovery and disk repair questions and discussions related to old-fashioned SATA, SAS, SCSI, IDE, MFM hard drives - any type of storage device that has moving parts
Post a reply

Need help with GREP

April 22nd, 2013, 11:07

Hi,
I need code for make GREP to search .dat .mpg .mpeg
Thank you for your help

Re: Need help with GREP

April 22nd, 2013, 12:21

Excuse me hddlab, to search ".dat .mpg .mpeg" from where?

If you searching for the text line that ends with ".dat" or ".mpg" or ".mpeg" from a file list:
grep -E "\.dat$|\.mpg$|\.mpeg$"

please give more details
Best Regards
Paolo Ruggero

Re: Need help with GREP

April 22nd, 2013, 16:31

Here is a windows tool that can search for hex strings in file headers, assuming that's what you really want.

Gsar for Windows:
http://gnuwin32.sourceforge.net/packages/gsar.htm

"gsar (General Search And Replace) is a utility for searching for and --- optionally --- replacing strings in both text and binary files. The search and replace strings can contain all kinds of characters (0--255), i.e. Ctrl characters and extended ASCII as well."

Re: Need help with GREP

April 25th, 2013, 10:23

Thank you pruggero and fzabkar for your reply.
I want make GREP in my Data Extractor(Raw recovery) - PC3K

Re: Need help with GREP

April 25th, 2013, 10:38

Already has built-in if I recall correctly.

Re: Need help with GREP

April 25th, 2013, 10:49

hddlab wrote:Thank you pruggero and fzabkar for your reply.
I want make GREP in my Data Extractor(Raw recovery) - PC3K


IF:

1- the hdd is in good condition ---> no need to waste your Ferrari on such a task - use any App.
2- bad condition ---> clone it or dump the image and refer to option 1

good luck

Re: Need help with GREP

April 25th, 2013, 13:48

I thnik the best is: clone, and them scan with data recovery soft

Re: Need help with GREP

April 26th, 2013, 0:53

Thank you labtech, einstein9 and hhddrec for your reply.
einstein9: I like you said: the "Ferrari" :-)
To everyone: my HDD is good condition but it come from 8ch H.264 Standalone DVR System and the system use different method so when we plug the HDD in to a PC, all the data gone. PC3K have protected mode and I hope it don't do something stupid like Windows :-(

Re: Need help with GREP

April 26th, 2013, 14:39

hddlab wrote:Thank you labtech, einstein9 and hhddrec for your reply.
einstein9: I like you said: the "Ferrari" :-)
To everyone: my HDD is good condition but it come from 8ch H.264 Standalone DVR System and the system use different method so when we plug the HDD in to a PC, all the data gone. PC3K have protected mode and I hope it don't do something stupid like Windows :-(


searching for Movies saved is a waste of TIME,

All DVR`s uses RAW Special Recording method, which is NONE STANDARD (in some cases)

i guess that BlackST has some idea`s here about DVR but thats not gonna be cheap (i think) and depends on DVR type

good luck

Re: Need help with GREP

April 26th, 2013, 15:12

Show us the contents of sector 0. That may tell us if the data are encrypted.

BTW, AISI, if Windows doesn't understand LBA 0, then there would be no reason for it to touch that sector. I could be wrong, though.

Re: Need help with GREP

April 27th, 2013, 3:35

Thank you for your reply eintein9 and fzabkar
@fzabkar: so sorry, my client was plug this HDD to PC many time before it came to me (also run many app they found on web). I don't think it was remain origin data... :(
Post a reply