LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-09-2009, 03:44 AM   #1
toshibalaptoplinux
LQ Newbie
 
Registered: Nov 2008
Posts: 9

Rep: Reputation: 0
Is there a native Linux application that recovers Windows .chk files?


Title says it all. I only run Linux on my box and would hate to have to go back to a windows machine to deal with this.

To pre-empt the question why it is I have these files if I only run Linux. They are on an external drive that I used on my PC when it was a win box. Would like to see what they are and if any of them are recoverable. Thanks.
 
Old 01-09-2009, 04:55 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
you need a hex editor to read it, like shed
 
Old 01-09-2009, 04:58 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Use the "file" command and see if it recognizes the file type. This isn't very different from files in the "lost & found" directory after running fsck.

Bear in mind that some of the files may be just fragments and not usable. If you have the beginning of the file, find should recognize it. The file command examines the contents of the file.

A browser such as konqueror may use file's "magic" database and show the filetype via the icon or a preview.
 
Old 01-09-2009, 05:18 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
A couple of weeks ago in another thread I whipped up a simple script that will rename file extensions based on information detected from the file command. You can add as many kinds of file as you want; just find some unique character string in the "file" output to match and add it to the list.

I also found this page just now and tried the two programs under wine. The first one, UnCHK requires some kind of MS scripting support installation which I didn't bother to fool with, but the second one runs just fine, and easily renamed a sample .zip file I created.
 
Old 01-09-2009, 05:45 AM   #5
toshibalaptoplinux
LQ Newbie
 
Registered: Nov 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you for your replies.

I used file and file -i to check the files in question. All of them with the exception of one returned "data; application/octet-stream". I checked them in emacs and can't really discern anything.

One file returned mpeg and I renamed it as such and tried to play it but the media player didn't recognize anything to play.

Do you think I am just spinning my wheels here and these files are probably unrecoverable? If there is a reasonable possibility of recovering them I am willing to invest the time and jump through some more hoops to do it.

Thanks again.
 
Old 01-09-2009, 05:48 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Do you think I am just spinning my wheels here and these files are probably unrecoverable?
According to some windows forums, 95% is unrecoverable.
 
Old 01-09-2009, 06:38 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
The contents of the chk files is just raw data. Whether it will make some sense depends only on pure luck. There's no reliable way to recover this files. Nor under linux nor under windows nor under any other OS. At most, you can search for patrons inside the files and try to rescue the contents manually or using some tools that will recognize known sequences of bits and try to extract meaningful parts as regular files.

Of course, an hex editor can be used, but for that you first need to know what are you looking for, and after that, how to separate the meaningful parts of the meaningless ones. In the best case, the beginning of the chk file will math with the beginning of a real file. In this case it's easier to rescue the file in linux, because linux, unlike windows, doesn't rely on the file extension, but on the first few so called magic bytes of the file, so it might recognize the file even if the extension is not the right one. As said, the command "file" can do this. But that doesn't guarantee that the whole chk file contains useful data, and it can't guarantee either that all of the original file is in the chk file (it might not even be complete if you put together all the chk's).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
loads of .chk files appeared... XP or Linux??? Adrian Baker Linux - General 2 12-09-2006 03:49 PM
Doom 3: Using native installer and can't locate saved game files or config files JBailey742 Linux - Games 11 08-14-2006 06:09 PM
SSH, forwarding native windows apps to linux. alunduil Linux - General 4 07-02-2005 01:10 PM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM
Sharing Native Linux Partitions with Windows amaskedman Linux - Newbie 2 02-01-2001 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration