Active Topics

 


Reply
Thread Tools
Posts: 542 | Thanked: 117 times | Joined on Sep 2008 @ 52 N, 6 E
#1
I want to reformat the internal mmc2 to ext3 to allow setting rights, etc.

But this file /usr/sbin/mmc-mount contains a hard reference to fat32.

Code:
#!/bin/sh
mount -t vfat -o rw,noauto,nodev,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0033 "$1" "$2"
How can I change this so that mmc1 is fat32 and mmc is ext3 to prevent automounting an ext3 partition as fat32 ?
__________________
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
 
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#2
Originally Posted by skatebiker View Post
I want to reformat the internal mmc2 to ext3 to allow setting rights, etc.

But this file /usr/sbin/mmc-mount contains a hard reference to fat32.

Code:
#!/bin/sh
mount -t vfat -o rw,noauto,nodev,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0033 "$1" "$2"
How can I change this so that mmc1 is fat32 and mmc is ext3 to prevent automounting an ext3 partition as fat32 ?
The crude way, something like
Code:
if [ "$1" == "/dev/mmcblk0p1" ]; then
mount -t ext3 -o noatime,nodiratime "$1" "$2"
else
mount -t vfat .....
fi
The sophisticated way, using some autodetection
Code:
if [ "$(file -s $1|grep ext3)" ]; then
....
fi
 

The Following User Says Thank You to maacruz For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 14:26.