SD Card - Recover or Delete Damaged Files?

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

SD Card - Recover or Delete Damaged Files?

#1 Post by edoc »

Our son was in too big of a hurry and failed to properly unmount his SD card.

There are now 3 files with the orange triangle that cannot be deleted and the whole SD card behaves oddly.

Once mounted the SD card will not unmount.

Files may be viewed in Rox but are "invisible" via the rxvt (the card appears blank).

What app do I use to deal with this, please?

Thanks!
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#2 Post by Aitch »

edoc

Try booting using

puppy pfix=fsck

at the 5 second selection page, with the SD installed

sounds like file system corruption

If its ext2fs see

http://www.murga-linux.com/puppy/viewtopic.php?p=207409

see also

http://www.murga-linux.com/puppy/viewtopic.php?t=55823

Aitch :)

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#3 Post by rcrsn51 »

You may have to reformat the card with Gparted. This, of course, will delete everything on it.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#4 Post by edoc »

Does the "hide" selection in TestDisk remove the bad files from causing trouble with the SD card, even though they are technically still there, or merely hide them from view?

I am not sure of the purpose of either action.

I don't yet see a way to delete those two files out of 16 files, only a choice to reformat ... am I missing something?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

aarf

#5 Post by aarf »

Use the "check" option in gparted.
But first try this: Get the latest e2fsprogs from the wikka then do #fsck on the partition. Eg.
#fsck /dev/sda1

zygo
Posts: 243
Joined: Sat 08 Apr 2006, 20:15
Location: UK

the parot is dead

#6 Post by zygo »

edoc,

An SD card uses flash memory like a memory stick. Flash doesn't last forever. The number of writes is limited.

I made the mistake of downloading a file to flash and it ended up as you described. I assumed that all those writes to update the growing file simply killed it. It failed as read-only. I'm grateful it was still mostly readable by the onboard media player.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#7 Post by edoc »

aarf wrote:Use the "check" option in gparted.
But first try this: Get the latest e2fsprogs from the wikka then do #fsck on the partition. Eg.
#fsck /dev/sda1
Oddly it will mount but I have to reboot to do anything with it as it will not unmount - or at least it refuses to report that it has unmounted.

FYI: It is being accessed in a Netbook running Fluppy 005

fsck /dev/sdb1 produced:
fsck 1.41.12 (17-May-2010)
dosfsck 2.11 12 Mar 2005, FAT32, LFN
Got 1015808 bytes instead of 7742688 at 16384
BTW: Using TestDisk I received a warning about the cylinders showing as 244 and it thought it should be 255, if that is relevant.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#8 Post by edoc »

aarf wrote:Use the "check" option in gparted.
But first try this: Get the latest e2fsprogs from the wikka then do #fsck on the partition. Eg.
#fsck /dev/sda1
OK, got back on this and went here:

http://puppylinux.org/wikka/e2fsprogs

Where I found these instructions:
e2fsprogs command line utilities for use with the ext2, ext3 and ext4 file systems

Verify currently installed version by entering into a terminal (console):

tune2fs


Execute file system automatic repair on an unmounted partition by entering, for example, into a terminal (console):

e2fsck -p /dev/hda1
The result was an error re. the Superblock.

I may have to use a different app as this one does not handle fat32.

BTW: Neither Pmount or Gparted see the SD card properly. If I click on the icon it shows as mounted but Pmount doesn't recognize it and it cannot then be unmounted. But it cannot be acted upon because it is seen as mounted in other apps. Very weird.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#9 Post by edoc »

When I try to "check" using Gparted the SD card disappears.

If I physically remove and reinsert it then I can see it again but if I try to reformat to FAT32 in Gparted it disappears again.

???
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

aarf

#10 Post by aarf »

Try a new cheap USB plugged cardreader. Your existing cardreader may be defective.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#11 Post by edoc »

It is the built in reader in a new Netbook and this is the only SD card that shows these symptoms.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#12 Post by bigpup »

Try TestDisk & PhotoRec.
Get them here:
http://www.murga-linux.com/puppy/viewtopic.php?t=28453

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#13 Post by edoc »

I have tried TestDisk, it says that I have a "Bad relative sector" (Is that the same thing as a drunken uncle?)

It also says "No partition is bootable" (So I cannot disown him?)

Sorry, have to laugh now and then! :-)

Anyhow, when I use Quick Search I get an error that the heads per cylinder are 245 and should be 255 and something about using the "Geometry menu" to fix it. (I barely passed Geometry, what is it talking about, please?)

When I hit "continue" I get the following"

Partition Start End Size in Sectors

* FAT32 0 132 0 1021 239 32 15515648

NOTE: This is a 8GB SD Card
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Post Reply