Reply
Thread Tools
Posts: 542 | Thanked: 117 times | Joined on Sep 2008 @ 52 N, 6 E
#1
I want to use the internal mmc (mmc2) as ext3 instead of fat because I can symlink it with setting full attributes.

The predefined file 'mount-mmc' contains

#!/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

which acts for *both* mmc cards, but I want to leave the external mmc1 as FAT.

After refornatting the mmc2 to ext3 how should I change this script so it mounts mmc2 as ext3 and mmc1 as fat ?
__________________
Nokia N810 FW version 5.2008.43-7
iPad 2 (iOS 4.3.2) Macbook Pro (10.6.6)
Nokia 5800 phone FW 62.0.0125
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#2
Originally Posted by skatebiker View Post
After refornatting the mmc2 to ext3 how should I change this script so it mounts mmc2 as ext3 and mmc1 as fat ?
mount -t auto?
 
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.
 
Posts: 542 | Thanked: 117 times | Joined on Sep 2008 @ 52 N, 6 E
#4
I did a test with mmc1 by formatting a minisd in ext2 and copying some files onto it, plugging it into the N810 and did not do anything with the mmc-mount file and it worked flawlessly: these files could be read.
Now the mmc2 which I have to backup, reformat and restore.
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:55.