You are not logged in.

#1 2015-06-24 13:12:09

CaptainKirk
Member
Registered: 2009-06-07
Posts: 391

[SOLVED] I Corrupted a Memory Card

I have a 4G memory card (a mini-card thing for a camera) and I mounted it and then in Nautilus I deleted ".Trash-1000" and all the files and folders on it disappeared. sad

I then tried this:

$ sudo fsck /dev/sdg1
fsck from util-linux 2.26.2
fsck.fat 3.0.27 (2014-11-12)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
? 1
FATs differ but appear to be intact. Use which FAT ?
1) Use first FAT
2) Use second FAT
? 2
Reclaimed 14656 unused clusters (480247808 bytes).
Free cluster summary wrong (104680 vs. really 118911)
1) Correct
2) Don't correct
? 1
Leaving filesystem unchanged.
/dev/sdg1: 0 files, 1/118912 clusters

which didn't work. So I then ran gparted on it and did Check on the one partition it found. Now the card has 95 files with names like FSCK0095.REC. Most of those are actually thumbnails of the images that were on the card.

It had before 2 folders in the root probably had 95 files.

The card itself looks like this in dmesg:

[315903.392146] usb 2-1.4.3: new high-speed USB device number 16 using ehci-pci
[315903.492033] ums-realtek 2-1.4.3:1.0: USB Mass Storage device detected
[315903.499534] scsi host14: usb-storage 2-1.4.3:1.0
[315904.515212] scsi 14:0:0:0: Direct-Access     Generic- Multi-Card       1.00 PQ: 0 ANSI: 0 CCS

Is there anything else I can try to get back the files?

Last edited by CaptainKirk (2015-06-24 13:44:59)

Offline

#2 2015-06-24 13:29:56

frostschutz
Member
Registered: 2013-11-15
Posts: 1,420

Re: [SOLVED] I Corrupted a Memory Card

photorec

Offline

#3 2015-06-24 13:44:08

CaptainKirk
Member
Registered: 2009-06-07
Posts: 391

Re: [SOLVED] I Corrupted a Memory Card

Fantastic. That did it. Thank you!

Offline

Board footer

Powered by FluxBB