hmm... good one there... you always keep surprising me...
i was wondering, even if this trick works.. we will have access to only one partition at a time... right ?
after read http://www.motorolafans.com/forums/s...highlight=Swap
about swap Wollybyte taliking about break through 2GB FAT limit. so I try to use MicroSD with 2 FAT partitions by flashing A1200 with my modding CG43. but I still not an linux expert so I ask my friend MrMaow @ ThaiLinuxPDA.com. he told me to create new device for 2-4 partitions into /dev and mount it. Here is my modding cg43 steps
1. create mounting point folder for 2-4 partitions
2. create device for 2-4 partitionsmkdir /mmc/mmca2
mkdir /mmc/mmca3
mkdir /mmc/mmca4
3. modify /etc/init.d/mountfs.sh file by adding mount partition 2-4 commands.mknod -m 660 /dev/mmca2 b 243 2
mknod -m 660 /dev/mmca3 b 243 3
mknod -m 660 /dev/mmca4 b 243 4
PS. this is concept command only you need to adapt filename and path by yourself.mount -t vfat /dev/mmca2 /mmc/mmca2 -o uid=2000 -o gid=233 -o iocharset=utf8 -o shortname=mixed -o umask=002 -o noatime
mount -t vfat /dev/mmca3 /mmc/mmca3 -o uid=2000 -o gid=233 -o iocharset=utf8 -o shortname=mixed -o umask=002 -o noatime
mount -t vfat /dev/mmca4 /mmc/mmca4 -o uid=2000 -o gid=233 -o iocharset=utf8 -o shortname=mixed -o umask=002 -o noatime
After I flash with new CG and repartition my 256MB MicroSD into 2 FAT partitions. The result is
1.st after phone restart partition 2 mounted into /mmc/mmca2. but no way to access it by normal phone. so I try MyStuff. it's work. I can access partition 2 by going to /mmc/mmca2 folder. then I try telnet to phone and goto /mmc/mmca2 it's work too.
2nd I try mount mmca1 into phone memory folder for easy explore by File manager with this commands via telnet
after that I try Mystuff and File Manager both work. and try telnet to phone it still ok.mk /mmc/mmca1/mmca2
mount --bind /mmc/mmca2 /ezxlocal/download/mystuff/mmca2
3rd I try USB Storage mode. phone still can change 1st and 2nd partition into Storage. and can change back after unplug cable BUT it does not mount /dev/mmca2.
PROBLEM
1. my modding step phone doesnot include script that mount SD back after unplug USB cable. coz I can't find where it is.
2. If I mount bind 2nd partition to phone memory (ezxlocal/download/mystuff/mmca2). phone 'll take more time to change to usb storage. but stil can change. but after that all mount bind 'll unmount by phone.
3. I doesn't have 4GB SD card to test with E6. so don't know it's work or not.
POSSIBLE SOLUTION
1. modding myStuff to mount 2-4 partitions and mount bind it to phone memory before it start.
2. create pkg app to do that.
3. find where is a script that mount SD back after unplug USB Cable. I think I search all scripts but not found.
I test with A1200 09P + MicroSD 256 GB. and plan to do this in E6 (it's my main phone so I test everything on A1200)
Does anyone interest in this modding? If it work we can use 4GB SD on E6 with 2 2GB FAT partitions.
Last edited by eakrin; 01-06-2008 at 02:56 AM.
Visit my Blog here.http://my.opera.com/eakrin
hmm... good one there... you always keep surprising me...
i was wondering, even if this trick works.. we will have access to only one partition at a time... right ?
If you own an A1200/E6 click here
there are 10 types of ppl in the world, those who understand binary and those who don't..
/sbin/mmchotplug no add
@digitalD
after phone power on we cannot access 2-3 partitions on phone. coz partition 2-4 is mounted into /mmc/mmca2 /mmc/mmca3 /mmc/mmca4 this 3 folder cannot acces by file manager.
so I execute mount --bind command to create a link from /mmc/mmca2 to mystuff/mmca2 folder that we can access by file manager in phone. but this make problem when phone switch to usb storage and switch back as i said above.
@yjc666
thank. I'll try /sbin/mmchotplug command. but this command doesn't solve USB Storage switch back problem. partition 2-4 still unmount after execute this command.
It still need to file where is the script that remount SD back after switchback from Storage mode.
or need to manual mount by pkg. or make a new mmchotplug that mount partition 2-4.
Visit my Blog here.http://my.opera.com/eakrin
mmchotplug command can't mount the others partition.
but i think to make a new mmchotplug or change some code of original mmchotplug command is a good way th solve the problem
yeah! I think so coz I can't find where the script to do this is?
I'll find mmchotplug in E6 source code and try to compile it!. or use a easy way a manual re-mount by mpkg app LOL.
Visit my Blog here.http://my.opera.com/eakrin
have you tried to mount it to the default /mmc/* mountpoints and placing links on /ezxlocal to /mmc/mmca? instead of using mount --bind?
Yes I mount 2-4 partitions into /mmc/mmca2 to mmca4 by.
but problem is It doesn't remount 2-4 partitions after switch back from USB Storage. I can't find where a script that control this? I just add mount command into /etc/init.d/mountfs.sh. so phone mount all partitions after power on but when switch back from sotrage phone mount only 1st partition.mount -t vfat /dev/mmca2 /mmc/mmca2 -o uid=2000 -o gid=233 -o iocharset=utf8 -o shortname=mixed -o umask=002 -o noatime
mount -t vfat /dev/mmca3 /mmc/mmca3 -o uid=2000 -o gid=233 -o iocharset=utf8 -o shortname=mixed -o umask=002 -o noatime
mount -t vfat /dev/mmca4 /mmc/mmca4 -o uid=2000 -o gid=233 -o iocharset=utf8 -o shortname=mixed -o umask=002 -o noatime
another modding point is link /mmc/mmca2 mmca3 mmca4 to ezxlocal for user easy access on phone. this can done by add script into mystuff to do that.
Visit my Blog here.http://my.opera.com/eakrin