View Single Post
Posts: 267 | Thanked: 183 times | Joined on Jan 2010 @ Campinas, SP, Brazil
#3
There are some flags which work only for vfat and not for ext3, so it won't work.

I did a quick hack that worked:

my /usr/sbin/mmc-mount does that:

Code:
#!/bin/sh
mount -t vfat -o rw,noauto,nodev,nosuid,noatime,nodiratime,utf8,uid =29999,shortname=mixed,dmask=000,fmask=0033 "$1" "$2" > /dev/null || mount -o rw,noauto,noatime,nodiratime /dev/mmcpblk1p1 /media/mmc1
That is, it first tries with type vfat and then, if it fails, it goes for auto with some generic flags - notice that since I use my ext3 partition to run some code, I took off the nodev and noexec flags.

OBS.: Test first, please, because I typed this one from memory - I don't have my device right here now.
__________________
My nickname on freenode is ptl, that is, the consonants of my nickname here. Kind of a long story.