Author Topic: Sd Card Won't Mount  (Read 6555 times)

HearWa

  • Newbie
  • *
  • Posts: 28
    • View Profile
Sd Card Won't Mount
« on: April 03, 2005, 07:45:02 pm »
What's the general procedure that I should follow when an SD card won't mount? It usto work perfectly on the old Sharp rom.
« Last Edit: April 03, 2005, 07:47:03 pm by HearWa »
Sharp Zaurus SL-5500 +
Sanded (600 grit) and polished (RB-538) to be black +
Open Zaurus 3.5.2, Opie-image (64-0) +
Sandisk 128MB SD Card, Verbatim 128MB CF Card +
10 Base Ethernet Card, 802.11b Wireless CF Card +
Generic leather PDA case =
One happy geek!

mimeca

  • Hero Member
  • *****
  • Posts: 682
    • View Profile
    • http://www.innerzaurus.com
Sd Card Won't Mount
« Reply #1 on: April 04, 2005, 01:19:30 pm »
Launch console app and write
Code: [Select]
cat /proc/partitions
I think that command will work. You must paste the command output.

You should mount the sd card with
Code: [Select]
mount /dev/hda1 /mnt/card where hda1 is the device "linked" with SD card.
Nunca hagas de un lugar tu hogar. Construye tu hogar en el interior de tu propia cabeza. Encontrare¡s todo lo que necesites para amueblarla: recuerdos, amigos en los que puedes confiar, pasión por el conocimiento y otras cosas por el estilo. De esa forma podrás ir a donde te vayas. Nunca te faltará un hogar..., a menos que pierdas la cabeza, claro...

Innerzaurus => www.innerzaurus.com (Spanish Zaurus Site)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Sd Card Won't Mount
« Reply #2 on: April 04, 2005, 01:30:09 pm »
Quote
You should mount the sd card with
Code: [Select]
mount /dev/hda1 /mnt/cardwhere hda1 is the device "linked" with SD card.

The above is wrong - use 'mount /dev/mmcda1 /mnt/card' (actually this depends on the kernel you're running).

Which machine, which ROM version, which kernel?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Sd Card Won't Mount
« Reply #3 on: April 04, 2005, 06:36:28 pm »
Ok so I forgot to read the topic title.

Anyway it's obviously a 5500, with ROM version 1.3.2??? I presume you mistyped and mean 3.5.2 (the latest release in other words).

In which case try mounting with:

mount /dev/mmcda1 /mnt/card


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

HearWa

  • Newbie
  • *
  • Posts: 28
    • View Profile
Sd Card Won't Mount
« Reply #4 on: April 05, 2005, 06:48:33 pm »
Every time I insert it I can see mmcda listed in /cat/partitions. When I go to mount it to an empty directory, however, I get this:
Mount: mounting /dev/mmcda1 on /mnt/blah failed: Invalid argument.

When I set the SD card as read-only by the little switch on it, it gives me many of these messages before reporting the same error:
mount: /dev/mmcda1 is write-protected, mounting read only

Does the SD card have a bad partition or something? Like I said, this worked fine on the old Sharp ROM (but there's no way I'm going back now, I heart OZ!).
Sharp Zaurus SL-5500 +
Sanded (600 grit) and polished (RB-538) to be black +
Open Zaurus 3.5.2, Opie-image (64-0) +
Sandisk 128MB SD Card, Verbatim 128MB CF Card +
10 Base Ethernet Card, 802.11b Wireless CF Card +
Generic leather PDA case =
One happy geek!

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Sd Card Won't Mount
« Reply #5 on: April 05, 2005, 11:12:49 pm »
Please post
- the full content of /proc/partitions (use copy and paste),
- the command you've tried to mount the card
- the output of dmesg | grep mmcda right after booting.
- the output of cat /etc/fstab | grep mmcda

Maybe your card has a timing problem with the driver as reported by someone else on this board.
Webmaster of hentges.net & Embedded Linux Developer.

HearWa

  • Newbie
  • *
  • Posts: 28
    • View Profile
Sd Card Won't Mount
« Reply #6 on: April 09, 2005, 02:45:21 pm »
root@collie:/# cat /proc/partitions
major minor  #blocks  name

   3     0     125184 hda
   3     1     125168 hda1
  60     0     123008 mmcda

root@collie:/# dmesg | grep mmcda
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda:<3>SD blk read error 01
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table
 mmcda: unknown partition table

root@collie:/# cat /etc/fstab | grep mmcda
/dev/mmcda1     /mnt/card       auto    defaults,sync,noauto,noatime,user,exec,suid 0  0
Sharp Zaurus SL-5500 +
Sanded (600 grit) and polished (RB-538) to be black +
Open Zaurus 3.5.2, Opie-image (64-0) +
Sandisk 128MB SD Card, Verbatim 128MB CF Card +
10 Base Ethernet Card, 802.11b Wireless CF Card +
Generic leather PDA case =
One happy geek!

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Sd Card Won't Mount
« Reply #7 on: April 10, 2005, 12:05:51 pm »
Quote
root@collie:/# cat /proc/partitions
major minor  #blocks  name

   3     0     125184 hda
   3     1     125168 hda1
  60     0     123008 mmcda

Try adding a partition to the card.

Quote
root@collie:/# cat /etc/fstab | grep mmcda
/dev/mmcda1     /mnt/card       auto    defaults,sync,noauto,noatime,user,exec,suid 0  0
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74387\"][{POST_SNAPBACK}][/a][/div]

Looks good. The "invalid option" error is a result of the usage of busybox's mount. It doesn't understand "user" IIRC. The "real" mount works as expected.
Webmaster of hentges.net & Embedded Linux Developer.

HearWa

  • Newbie
  • *
  • Posts: 28
    • View Profile
Sd Card Won't Mount
« Reply #8 on: April 12, 2005, 06:57:02 pm »
Quote
Try adding a partition to the card.
I've downloaded and installed the SD fdisk utility, but I'm not sure what the executable is named for me to use it in the CLI. What is it named?

Thank you.
Sharp Zaurus SL-5500 +
Sanded (600 grit) and polished (RB-538) to be black +
Open Zaurus 3.5.2, Opie-image (64-0) +
Sandisk 128MB SD Card, Verbatim 128MB CF Card +
10 Base Ethernet Card, 802.11b Wireless CF Card +
Generic leather PDA case =
One happy geek!

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Sd Card Won't Mount
« Reply #9 on: April 13, 2005, 05:06:10 am »
Quote
Quote
Try adding a partition to the card.
I've downloaded and installed the SD fdisk utility, but I'm not sure what the executable is named for me to use it in the CLI. What is it named?

Thank you.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=74848\"][{POST_SNAPBACK}][/a][/div]

fdisk  
Once started it should provide you with on-screen help for the menu.
Webmaster of hentges.net & Embedded Linux Developer.

HearWa

  • Newbie
  • *
  • Posts: 28
    • View Profile
Sd Card Won't Mount
« Reply #10 on: April 13, 2005, 05:21:48 pm »
When I do fdisk /dev/mmcda, it goes:
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

I've tried alot of thing, but nothing has worked yet. What should I do to make a new partition? 'p' shows no partitions on the card!
Sharp Zaurus SL-5500 +
Sanded (600 grit) and polished (RB-538) to be black +
Open Zaurus 3.5.2, Opie-image (64-0) +
Sandisk 128MB SD Card, Verbatim 128MB CF Card +
10 Base Ethernet Card, 802.11b Wireless CF Card +
Generic leather PDA case =
One happy geek!

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Sd Card Won't Mount
« Reply #11 on: April 14, 2005, 03:18:19 pm »
Quote
When I do fdisk /dev/mmcda, it goes:
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

I've tried alot of thing, but nothing has worked yet. What should I do to make a new partition? 'p' shows no partitions on the card!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75021\"][{POST_SNAPBACK}][/a][/div]

Just create a new (n) primary (p) partition (1).
Then write (w) the changes to the card.
Webmaster of hentges.net & Embedded Linux Developer.

HearWa

  • Newbie
  • *
  • Posts: 28
    • View Profile
Sd Card Won't Mount
« Reply #12 on: April 14, 2005, 04:26:05 pm »
It doesn't work. I'll probably just get a new SD card. Thanks for your help.
Sharp Zaurus SL-5500 +
Sanded (600 grit) and polished (RB-538) to be black +
Open Zaurus 3.5.2, Opie-image (64-0) +
Sandisk 128MB SD Card, Verbatim 128MB CF Card +
10 Base Ethernet Card, 802.11b Wireless CF Card +
Generic leather PDA case =
One happy geek!