OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: HearWa on April 03, 2005, 07:45:02 pm

Title: Sd Card Won't Mount
Post by: HearWa 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.
Title: Sd Card Won't Mount
Post by: mimeca 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.
Title: Sd Card Won't Mount
Post by: lardman 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
Title: Sd Card Won't Mount
Post by: lardman 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
Title: Sd Card Won't Mount
Post by: HearWa 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!).
Title: Sd Card Won't Mount
Post by: CoreDump 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.
Title: Sd Card Won't Mount
Post by: HearWa 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
Title: Sd Card Won't Mount
Post by: CoreDump 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.
Title: Sd Card Won't Mount
Post by: HearWa 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.
Title: Sd Card Won't Mount
Post by: CoreDump 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.
Title: Sd Card Won't Mount
Post by: HearWa 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!
Title: Sd Card Won't Mount
Post by: CoreDump 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.
Title: Sd Card Won't Mount
Post by: HearWa 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.