Join Today
+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Jun 2008
    Location
    Vietnam
    Posts
    125

    Default How to mount ext3 on Memory Card ?

    I was formated my 2Gb Memory Card to 3 partitions :

    - Partition 1 : Linux ext3 (250Mb)
    - Partition 2 : FAT16 (1,7 Gb)
    - Partition 3 : Linux Swap (64 Mb)

    fdisk -l
    Code:
    Disk /dev/mmca: 2059 MB, 2059141120 bytes
    255 heads, 63 sectors/track, 250 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
        Device Boot      Start         End      Blocks  Id System
    /dev/mmca1               1          30      240943+ 83 Linux
    /dev/mmca2              31         242     1702890   6 FAT16
    /dev/mmca3             243         250       64260  82 Linux swap
    How to mount those partitions to File Manager? please help me.

  2. #2

    Default

    simple

    DEST1='/ezxlocal/download/mystuff/part1'
    DEST2='/ezxlocal/download/mystuff/part2'
    mkdir -p $LOCATION1 $LOCATION2
    mount --bind $DEST1 /dev/mmca1
    mount --bind $DEST2 /dev/mmca2

    you can try '/mmc/mmca1' '/mmc/mmca2' if they can be created
    this should work
    Last edited by kundancool; 09-14-2011 at 01:33 PM.
    Motorola A1200 : Beast
    Motorola MOTOROKR E6/E6e : GoldenBird/Bricked
    Samsung Galaxy Y S5360 : Stock ROM (Gingerbread 2.3.6) - ROOTED


  3. #3
    Join Date
    Jun 2008
    Location
    Vietnam
    Posts
    125

    Default

    When I type :

    LOCATION1='/ezxlocal/download/mystuff/part1'
    LOCATION2='/ezxlocal/download/mystuff/part2'
    mkdir -p $LOCATION1 $LOCATION2
    mount --bind /dev/mmca1 $LOCATION1
    it shows errors :
    mount : Usage.... (it's mount command's help)

    mount --bind /dev/mmca1 /mmc/mmca1
    it shows : /dev/mmca1: No such file or dir

    mount /dev/mmca1 /mmc/mmca1
    it doesnt show anything
    but when I open File Manager and then tap on Memory Card, it shows :
    Unformatted memory card! Do you want to format it?
    Last edited by MarkDark; 09-14-2011 at 01:00 PM.

  4. #4

    Default

    sorry the command was wrong.

    updated in first post
    Syntax :
    mount --bind <source> <location>
    and don't format the card

    and I think you will have to unmount /mmc/mmca1 first

    umount /dev/mmca1


    Please read this post
    http://www.motorolafans.com/forums/a...tml#post108109

    and load modules first
    Motorola A1200 : Beast
    Motorola MOTOROKR E6/E6e : GoldenBird/Bricked
    Samsung Galaxy Y S5360 : Stock ROM (Gingerbread 2.3.6) - ROOTED


  5. #5
    Join Date
    Jun 2008
    Location
    Vietnam
    Posts
    125

    Default post

    Thank kundan.

    Quote Originally Posted by donga
    I can use it on my ROKR E6 since i try to play OPIE on 3 months ago.
    I think i'd taken it from opie, please see attachment .
    Code:

    Code:
    ext2.o  ext3.o  ext3onE6.zip  jbd.o  loop.o  mount_ext3.lin
    But i doesn't know this module would work on A1200 or not, please try.

    About ext3.o module it need jbd.o module load first
    and loop.o is the module for loop device.
    After load jbd and ext3 module. you may need to make block device file for SD partition if you not have it.
    Ahh, For your conveneince you can use my script to do all.

    (i create /ezxlocal/lib/modules/ directory and copy jbd.o and ext3.o into it first)

    mount_ext3.lin

    Code:
    #!/bin/bash
    # script for mount ext3 partition on SD card
    # by donga <donga.nb@gmail.com>
    #
    
    MOUNT_POINT="/ezxlocal/mmc"
    
    # First, check for module loaded
    CHK_MODULE=`lsmod | grep ext3`
    if [ -z "$CHK_MODULE" ];
    then
        # if not loaded, then load it
        insmod /ezxlocal/lib/modules/jbd.o
        insmod /ezxlocal/lib/modules/ext3.o
    
        # create dev directory if not exists
        if [ ! -e /ezxlocal/dev ];
        then
            /bin/mkdir -p /ezxlocal/dev
            # Then make block device file with major 243 and
            # minor 1 for first partition.
            # If have more than 1 partition on your SD card,
            # lets change minor to your partition number
            /bin/mknod /ezxlocal/dev/mmca2 b 243 2
            /bin/chmod ug+rw /ezxlocal/dev/mmca2
        fi
    fi
    
    # Check is mount it yet.
    CHK_MOUNT=`mount | grep "$MOUNT_POINT"`
    if [ -z "$CHK_MOUNT" ];
    then
        # check for target mount point
        [ ! -e "$MOUNT_POINT" ] && mkdir -p "$MOUNT_POINT"
        # mount ext3 partition
        /bin/mount /ezxlocal/dev/mmca2 "$MOUNT_POINT"
    fi
    
    # now your partition have mounted at /ezxlocal/mmc
    have fun.
    When I type
    Code:
    insmod /lib/modules/jbd.o
    it show : insmod: can't insert '/lib/modules/jbd.o': unknow symbol in modules or invalid parameter

    Same error with
    Code:
    insmod /lib/modules/ext3.o
    /lib/modules/ext3.o, /lib/modules/loop.o and /lib/modules/jbd.o is exist.
    Last edited by MarkDark; 09-14-2011 at 04:16 PM.

  6. #6

    Default

    strange
    well I used to get modules loaded on my firmware ext3.o

    try lsmod and see whether they are loaded or not
    Motorola A1200 : Beast
    Motorola MOTOROKR E6/E6e : GoldenBird/Bricked
    Samsung Galaxy Y S5360 : Stock ROM (Gingerbread 2.3.6) - ROOTED


  7. #7
    Join Date
    Jun 2008
    Location
    Vietnam
    Posts
    125

    Default

    lsmod
    Code:
    mux_cli 303569
    paniclogger 134320 (unused)


    I try master clear & master reset and then try again but still got the same errors.
    Last edited by MarkDark; 09-14-2011 at 08:03 PM.

  8. #8
    Join Date
    Jun 2008
    Location
    Vietnam
    Posts
    125

    Default

    I found a file S90autorun.sh in your fw:
    Code:
    #! /bin/sh
    #
    # MountSD.sh for mounting 2nd, 3rd, and 4th Partition on SD
    # by eakrin@gmail.com Feb 12, 2008; 
    # mod by Dark Avenger | Level_666 | lev3l666@gmail.com
    
    mem1=`df | grep /mmc/mmca1`
    		if [ "$mem1" = "" ]
    		then
    			set elfo="si"
    		fi
    
    echo "make mmc device "
    mkdir /ezxlocal/dev
    # mmca2
    /bin/mknod /ezxlocal/dev/mmca2 b 243 2
    /bin/chmod a=rwx /ezxlocal/dev/mmca2
    # mmca3
    /bin/mknod /ezxlocal/dev/mmca3 b 243 3
    /bin/chmod a=rwx /ezxlocal/dev/mmca3
    # mmca4
    /bin/mknod /ezxlocal/dev/mmca4 b 243 4
    /bin/chmod a=rwx /ezxlocal/dev/mmca4
    # end
    
    
    mm1=`sed -ne 1p /ezx_user/download/appwrite/setup/ezx_mmc.cfg`
    mm2=`sed -ne 2p /ezx_user/download/appwrite/setup/ezx_mmc.cfg`
    mm3=`sed -ne 3p /ezx_user/download/appwrite/setup/ezx_mmc.cfg`
    mm4=`sed -ne 4p /ezx_user/download/appwrite/setup/ezx_mmc.cfg`
    lnk=`sed -ne 5p /ezx_user/download/appwrite/setup/ezx_mmc.cfg`
    
    mkdir $mm1
    mkdir $mm2
    mkdir $mm3
    mkdir $mm4
    
    echo "try to mount MMC/SD card"
    #try time
    
    # vfat
    mount -t vfat /ezxlocal/dev/mmca2 $mm2 -o uid=2000 -o gid=233 -o iocharset=utf8 -o shortname=mixed -o umask=002 -o noatime
    mount -t vfat /ezxlocal/dev/mmca3 $mm3 -o uid=2000 -o gid=233 -o iocharset=utf8 -o shortname=mixed -o umask=002 -o noatime
    mount -t vfat /ezxlocal/dev/mmca4 $mm4 -o uid=2000 -o gid=233 -o iocharset=utf8 -o shortname=mixed -o umask=002 -o noatime
    # ext
    insmod /lib/modules/jbd.o
    insmod /lib/modules/ext3.o
    insmod /lib/modules/ext2.o
    if [ "$elfo" = "si" ]; then
    	mount /dev/mmca1 $mm1 -o noatime
    fi
    mount /ezxlocal/dev/mmca2 $mm2 -o noatime
    mount /ezxlocal/dev/mmca3 $mm3 -o noatime
    mount /ezxlocal/dev/mmca4 $mm4 -o noatime
    
    
    echo "mount MMC/SD card end"
    if [ "$lnk" = "y" ]
    	then
    #try time
    
    	echo "create Symbolic link of 1-4 partitions into phone memory"
    
    	if [ "$elfo" = "si" ]; then
    		ln -s $mm1 /ezxlocal/download/mystuff/mmca1
    	else
    		rm /ezxlocal/download/mystuff/mmca1
    	fi
    
    	if df | grep /dev/mmca2; then
    		ln -s $mm2 /ezxlocal/download/mystuff/mmca2
    	else
    		rm /ezxlocal/download/mystuff/mmca2
    	fi
    
    	if df | grep /dev/mmca3; then
    		ln -s $mm3 /ezxlocal/download/mystuff/mmca3
    	else
    		rm /ezxlocal/download/mystuff/mmca3
    	fi
    
    	if df | grep /dev/mmca4; then
    		ln -s $mm4 /ezxlocal/download/mystuff/mmca4
    	else
    		rm /ezxlocal/download/mystuff/mmca4
    	fi
    
    else
    	rm /ezxlocal/download/mystuff/mmca1
    	rm /ezxlocal/download/mystuff/mmca2
    	rm /ezxlocal/download/mystuff/mmca3
    	rm /ezxlocal/download/mystuff/mmca4
    fi
    echo "mounting done"
    but i can't find /ezx_user/download/appwrite/setup/ezx_mmc.cfg
    so, how does it work correct ?

  9. #9

    Default

    Quote Originally Posted by MarkDark View Post
    lsmod
    Code:
    mux_cli 303569
    paniclogger 134320 (unused)


    I try master clear & master reset and then try again but still got the same errors.
    I hope the below images say that I am correct and the modules get loaded

    but now I can't see /dev/mmca2
    lol I will try to figure out whats the problem
    Attached Thumbnails Attached Thumbnails How to mount ext3 on Memory Card ?-20110915093954.png   How to mount ext3 on Memory Card ?-20110915093946.png   How to mount ext3 on Memory Card ?-20110915093958.png  
    Motorola A1200 : Beast
    Motorola MOTOROKR E6/E6e : GoldenBird/Bricked
    Samsung Galaxy Y S5360 : Stock ROM (Gingerbread 2.3.6) - ROOTED


  10. #10
    Join Date
    Jun 2008
    Location
    Vietnam
    Posts
    125

    Default

    In your fw (cramfs-root-CG43/dev) only have mmc and mmca1.


 
+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 22
    Last Post: 07-20-2010, 05:46 PM
  2. how to transfer java app frm phone memory to memory card?
    By osmanrokr in forum E6 General Chat
    Replies: 0
    Last Post: 10-28-2008, 01:07 PM
  3. Help: Phone can not read SD card. Get "Memory card Unavailable"
    By julioszabo in forum A1200 General Chat
    Replies: 9
    Last Post: 02-28-2008, 12:49 AM
  4. Q: How to mount EXT3 to Memory Card?
    By z3r0c001 in forum A1200 General Chat
    Replies: 10
    Last Post: 10-02-2007, 04:43 PM
  5. Ext3 support and swap partition on Micro SD card
    By younker in forum A1200 General Chat
    Replies: 2
    Last Post: 10-13-2006, 04:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Optimization by vBSEO 3.6.0 RC 1