I think I may have a kludge to get a secondary partition to mount instead so I'll post this guide for anyone interested although I've since reformatted the card so the layout is slightly different (this guide is based on there being two partitions but it should work with more).
It's very hacky and could be cleaned up/enhanced (or better yet replaced) but this is beyond my current knowledge.
This guide is based on two different sources and I just modified where necessary and involves an init.d script to unmount and remount the partition I want. In theory this could allow multiple partitions to be mounted but it's untested by me.
Part 1 (init.d script)
The script does the following:
1. Unmount the current ext_sdcard/sdcard1
2. Mount the second partition as ext_sdcard/sdcard1
3. Run the media scanner for said card
First step is to create the script, here is my example:
mount -t vfat -o umask=0000 /dev/block/vold/179:26 /storage/sdcard1
am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///mnt/sdcard1
The part "179.26" was derived by using the program "Android System Info
" where I identified the partition already mounted (179.25) and guessed it was the next increment.
I then saved it as "11sd_remount" and placed this in the /etc/init.d/ folder using a file explorer (remember to give it root permissions and mount /system as rw) and then changed the permission to 755 using the terminal commands "su" and "chmod 755 /etc/init.d/11sd_remount".
If you have init.d support in theory this should be enough, unfortunately my CM11 rom doesn't so I had to try alternative methods trying "init.d trigger
" and "universal init.d
" which somehow seems to work.
In my case there are the following issues:
1. Delay after boot for it to mount the partition
2. You need to replug in USB
3. Another delay for the media scanner
Overall a few minutes from when you get to the home screen.
Two alternatives I can think of apparently involve editing fstab (which I think I read is now located in boot.img) or maybe mounting the extra partition as a different folder but I don't know how to get it mounted for accessing on a computer.
Init.d script based on: http://forum.xda-developers.com/show...59&postcount=3
Android media scanner terminal command: external site (not sure if I'm allowed to post the link).