Restoring the file extension for .chk files after an ntfs drive gets dropped.

Hello,

I hope this is the right forum for this. My nieces and I were looking at some family pictures when the younger one got caught up in the cord of the external hard drive that the pictures were on. It dropped off the table it was resting on and stopped working. Not sure what happened but after I brought it to my place it starting working again. However, the file system was screwed up and when I tried to fix it (using Windows 7) it recovered pretty much everything (not my data so I’m not certain as to what might be missing but it looks complete). However, instead of the folder structure I have one folder (found.000) and 8539 .chk files. Windows doesn’t know what to do with these. However, opensuse recognizes most of the file types it seems. At least it knows the pictures are pictures, which is what I want to save mostly. Is there some way to use opensuse to change the file extension on the files so that Windows will recognize what they are? At least for the picture files which are all jpegs? I know that there are programs that will do this in Windows but the files are now all on my opensuse partition because Windows hid the found.000 folder as a protected operating system file and I forgot it does that. I only found it when I looked at the drive in dolphin. Also, I really wanted to get them off and save them and I could do it under Linux. And I’d rather not move them all again. Thanks in advance.

On Tue, 30 Aug 2011 04:16:02 +0000, Subsidiarity wrote:

> Is there some way to use opensuse to change the file extension on the
> files so that Windows will recognize what they are?

The easiest way is to drop to the CLI and use the mv command (or the
rename command, which works a little differently in Linux than the ‘ren’
command in Windows).

For example, you could do

rename chk jpg *.chk

in the directory where the files are. Assuming they’re jpg files.

These chk files are recovered files that the Windows scandisk utility
(which ran automatically) recovered. You can also rename them in Windows

  • I’d probably do it similarly on the command prompt (in cmd.exe) rather
    than trying to use Windows Explorer.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C