[SOLVED][Q] Accessing an int2sd /sd-ext partition through a CWM/edify script
So am a little stuck.
Im trying to be able to use CWM edify script to place files on the /sd-ext partition used by the scripts such as int2sd+ and the like.
Everything Ive tried so far has failed.
- Normal calling as /sd-ext
- Mounting directly with whatever it is emmc, yafs, devblock etc etc
- Copying directly to /sd-ext/data/app etc
- Using busybox (run_program("/tmp/busybox", "mount", "/sd-ext") etc
But nadda. Cant seem to get the correct syntax to mount it like you would /system or /data in edify to use something like:
run_program("/tmp/busybox", "mkdir", "-p", "/sd-ext/data/app");
Once its mounted Im good as everything else will fall into place, its just getting bloody thing mounted to start with.
Is there any way too 'see into' this partition on a PC while in recovery? Maybe its a linux only thing but Ive never actually seen how this partition is laid out.
I know that that the int2sd scripts work by mounting it during boot and linking there but I need to be able to access the partition during a zip flash.
Could anyone point me in the right direction?
So managed to get this working and was so simple in the end.
One of the first problems I had was that the device I was using wasnt playing nice with the normal mount commands at all to start with.
It needed device specific mount commands as busybox wasnt able to do it.
mount("yaffs2", "MTD", "system", "/system");
mount("yaffs2", "MTD", "userdata", "/data");
Once that was sorted the normal busybox mount commands worked fine.
run_program("/tmp/busybox", "mount", "/sd-ext");
Another problem was that recovery I was using at the time was 'corrupting' the file so it wouldnt open on a PC but would still restore on the device. used a different recovery and managed to get a nandroid open in WinRAR
Second problem was that the layout of sd-ext differs from what I thought.
Its not /sd-ext/data/app its just /sd-ext/app
Now that was sorted everything works as it should
Screenie attached pf the sd-ext partition open in WinRAR to give you an idea what it does look like.
Im trying to get back, I am, I promise...