View Single Post
  #1   (View Single Post)  
Old 5th January 2010
algkalv's Avatar
algkalv algkalv is offline
New User
 
Join Date: May 2008
Location: Oslo, Norway
Posts: 7
Default Corrupted msdos filesystem on a compactflash card - recovery

Hei,

One of my CompactFlash cards has a corrupted filesystem, and I wonder if I can do anything about it to recover some of the photos I still have there.

I have tried to run fsck_msdosfs, and the result is this:

Code:
$ fsck_msdosfs -py /dev/da0s1
** /dev/da0s1
** Phase 1 - Read and Compare FATs
** Phase 2 - Check Cluster Chains
** Phase 3 - Checking Directories
** Phase 4 - Checking for Lost Files
297 files, 1152256 free (36008 clusters)

$ fsck_msdosfs -y /dev/da0
** /dev/da0
Invalid sector size: 20487
The dcim/101msdcf appears as a file, whereas it's normally a directory with jpeg files in it. Post mount:

Code:
$ file dcim/101msdcf 
dcim/101msdcf: ERROR: cannot read `dcim/101msdcf' (Argument list too long)
Do you have any hints as to what I could do to recover the files?
Reply With Quote