Author Topic: 2 Gb Sandisk Ultra2 Sd Card Problems [fixed]  (Read 6581 times)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
2 Gb Sandisk Ultra2 Sd Card Problems [fixed]
« on: December 12, 2008, 12:13:09 am »
*** Edit: Fixed by formatting in digital camera. - see post #2***
I have a 2 GB Sandisk Ultra2 SD card that's pretty new and has only been used for storing files.
It's never had a swapfile on it, or ran apps or operating systems on it.
It works fine in Cacko, pdaxii13, my camera, and both of my desktop PCs
Below is output of "dmesg" and "ls -l" on Angstrom and pdaxii13:
(a pic of gpe-filemenager in Angstrom and Rox filer in pdaxii13 are attached)
Code: [Select]
Angstrom:

dmesg
<6>mmc0: new SD card at address 8000
<6>mmcblk0: mmc0:8000 SD02G 1985024KiB
<6> mmcblk0: p1

cd /media/mmcblk0
ls -l
-rwxr-xr-x  1 root  root  0 Jan 1 1980 1?
-rwxr-xr-x  1 root  root  0 Jan 1 1980 9?
-rwxr-xr-x  1 root  root  0 Jan 1 1980 a?
-rwxr-xr-x  1 root  root  0 Jan 1 1980 i?

----------------------------------------------------------------
pdaxii13:

dmesg
pxa_sd_wait_response: response time out (cmd=52 MMC_STAT=0x2142)
pxa_sd_wait_response: response time out (cmd=05 MMC_STAT=0x2142)
[SD]-clustersize = 10000
 mmcda: mmcda1
 mmcda: mmcda1
 mmcda: mmcda1
MSDOS FS: IO charset utf8

cd /mnt/sd
ls -l
drwxrwxrwx  2 root  root      4096 2007-02-03 18:37  Backup_Files
drwxrwxrwx  4 root  root      4096 2007-02-03 22:30  Documents
-rwxrwxrwx  1 root  root    122611 2007-10-16 03:37  icecc_2.9_armv5tel.ipk
drwxrwxrwx  3 root  root     12288 2008-02-06 16:30  lofiversion
drwxrwxrwx  2 root  root      4096 2008-11-13 12:15  NIKON
drwxrwxrwx  2 root  root      4096 2007-09-25 13:55  QtPalmtop
-rwxrwxrwx  1 root  root    214726 2007-10-14 13:00  rox-desktop.png
-rwxrwxrwx  1 root  root    221177 2007-10-16 12:36  rox-icewm.png
-rwxrwxrwx  1 root  root     80929 2008-04-11 16:14  screencap1.png
-rwxrwxrwx  1 root  root     74632 2008-11-16 15:47  screencap2.png
-rwxrwxrwx  1 root  root        40 2007-01-29 10:25  sd-card-directory.txt
drwxrwxrwx  6 root  root      4096 2007-02-03 18:38  web
-rwxrwxrwx  1 root  root       421 2007-02-20 02:35  wifi-radar.conf
-rwxrwxrwx  1 root  root     19101 2007-02-19 21:04  wpa_supplicant.conf
-rwxrwxrwx  1 root  root  17292955 2008-04-28 12:41  youtube_coat_hanger_antenna.flv
« Last Edit: December 12, 2008, 09:32:27 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
2 Gb Sandisk Ultra2 Sd Card Problems [fixed]
« Reply #1 on: December 12, 2008, 03:12:20 am »
After much fsck.vfat and checking partition table with "fdisk -l", it still didn't work in Angstrom.
The first time I used fsck.vfat, it found some broken chains from an offline file copy of this forum.
This had thousands of tiny files in it. I deleted that and any other files I didn't need anymore.
Then I moved the rest of the files off it in windows.
Then back in angstrom, I tried mkfs.vfat -F 32
That didn't help much, I kept getting partition table errors under fdisk -l
I didn't want to partition it, since I want to just want to use the full 2GB of it as it shipped.
So next I formatted it in windows as FAT 32
It still didn't want to work in Angstrom, although the used space had changed under df -h
Finally, I decided to format it in my digital Nikon camera.
I read about formatting cards in a camera on this forum and other PDA forums to "fix" a troublesome card.

Well, that did the trick, it worked!
Now it appears in /media/card instead of /media/mmcblk0
I moved my files back to it and they are now available in Angstrom
« Last Edit: December 12, 2008, 03:15:52 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

utx

  • Full Member
  • ***
  • Posts: 135
    • View Profile
    • http://www.penguin.cz/~utx/zaurus/
2 Gb Sandisk Ultra2 Sd Card Problems [fixed]
« Reply #2 on: December 12, 2008, 04:35:48 am »
Quote from: Jon_J
I read about formatting cards in a camera on this forum and other PDA forums to "fix" a troublesome card.

Some flash manufacturers use strange formatting tools creating an incorrect VFAT. There was a kernel bug: such media were mounted, but incorrectly handled.

It may be the very same problem as this one: https://bugzilla.novell.com/show_bug.cgi?id=91189#c37 (only comments 37-40, the rest was identified as different problems). The bug seems to be away in latest kernels, so Angstrom 2008.1 should have this fixed.

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
2 Gb Sandisk Ultra2 Sd Card Problems [fixed]
« Reply #3 on: December 12, 2008, 05:38:38 am »
I've had similar issues with SD cards.  It seems that the only solution is to blow everything away using a camera.  A windows and Ubuntu PC wern't much use.

C
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....