Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Reformat mmc2 as ext3 what should I do with mmc-mount ?

    Reply
    skatebiker | # 1 | 2011-04-01, 07:50 | Report

    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 ?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    maacruz | # 2 | 2011-04-04, 16:07 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to maacruz For This Useful Post:
    skatebiker

     
vBulletin® Version 3.8.8
Normal Logout