how can i recover windows chk-files extensions in linux bash -


after scan disk have lot of chk-files in folders "found.000", ...

i can find out extensions file command:

for in /media/daten/found.*/*.chk ; file $i; done 

how can use reconstruct file extensions these files?

this technique not work files. used use data recovery.

for in /media/daten/found.*/*.chk; mv "$i" "$i".$(grep $(file -bi $i | awk '{print $1}' | sed 's/;//') /etc/mime.types | head -1 | awk '{print $2}'); done 

the way works uses mime type functionality in file command greps /etc/mime.types it, picks first extension in list , renames file that.

this command mass renames, move first , ask questions later, 100% sure you're running on correct directory.

next time, not use chkdsk recover files. can damage them beyond repair. chkdsk om nom nom data , burp afterwards. use recovery software files need before chkdsk.

generally, files named .chk though, not .chk (just fyi.)


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -