[Android Apps and Games] MasterCATZ:
#!/system/bin/sh
count=0
rm /data/apps2sd-debuggerd.log
LOG=/data/apps2sd-debuggerd.log
echo "$(date) mounting..." > $LOG
ls -d "/data/sdext2" 1>>$LOG 2>>$LOG
while ! ls -d "/data/sdext2"
do
count=`busybox expr $count + 1`
if busybox test $count -ge 130
then
break
else
sleep 0.1
fi
done
sleep 0.5
if ! busybox mountpoint -q "/data/sdext2"
then
while ! mount -t ext4 -o rw /dev/block/mmcblk1p2 /data/sdext2
do
count=`busybox expr $count + 1`
if busybox test $count -ge 130
then
break
else
if mount -t ext4 -o rw /dev/block/vold/public:179_18 /data/sdext2
then
break
else
sleep 0.1
fi
fi
done
mount -t ext4 -o rw /dev/block/mmcblk1p2 /data/sdext2 1>>$LOG 2>>$LOG
mount -t ext4 -o rw /dev/block/vold/public:179_18 /data/sdext2 1>>$LOG 2>>$LOG
chmod 775 /data/dalvik-cache
chmod 775 /data/dalvik-cache/arm
chmod 775 /data/data
else
echo "2nd partition already mounted..." 1>>$LOG 2>>$LOG
fi
/data/apps2sd/apps2sd-mountscript-2.sh 1>>$LOG 2>>$LOG

Sun Oct 9 04:27:10 AEST 2016 mounting...

/data/sdext2

mount: '/dev/block/mmcblk1p2'->'/data/sdext2': Device or resource busy

mount: '/dev/block/vold/public:179_18'->'/data/sdext2': Device or resource busy

Nothing to bind...

yet somehow is is still being mounted as

/data/sdext2

but it seems android wants it to be mounted at

/storage/e1aa119f-00e8-47c7-b4f9-621d2b6372e1

would it be better to just link from the location where android mounts it to /data/sdext2 ?

(attempting now )

*edit*

well that seems to fail because apps2sd must be looking for a /data/sdext2 mount point

I had it running a edited script to not pass any mounting and have the sd card symlinked to apps2sd working location , I was just hoping it was just going to look and run mount script and see that /data/sdext2 existed

their must be a way to mount the sd card with out affecting how android wants to mount it

root@t0lte:/etc # df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 894M 416K 894M 1% /dev
none 894M 20K 894M 1% /sys/fs/cgroup
tmpfs 894M 0 894M 0% /mnt
/dev/block/mmcblk0p13 1.4G 971M 541M 65% /system
/dev/block/mmcblk0p3 20M 4.1M 15M 22% /efs
/dev/block/mmcblk0p12 1.3G 27M 1.2G 3% /cache
/dev/block/mmcblk0p10 200M 45M 154M 23% /firmware
/dev/block/mmcblk0p16 10G 10G 556M 95% /data
/dev/block/mmcblk0p11 252M 18M 234M 8% /tombstones
tmpfs 894M 0 894M 0% /storage
/dev/block/dm-0 2.0M 104K 1.9M 6% /mnt/asec/com.rareartifact.bitcoinwisdom6773994B-1
/dev/fuse 10G 10G 556M 95% /mnt/runtime/default/emulated
/dev/fuse 10G 10G 556M 95% /storage/emulated
/dev/fuse 10G 10G 556M 95% /mnt/runtime/read/emulated
/dev/fuse 10G 10G 556M 95% /mnt/runtime/write/emulated
/dev/block/vold/public:179_17 7.7G 3.0G 4.7G 39% /mnt/media_rw/D952-2AF4
/dev/fuse 7.7G 3.0G 4.7G 39% /mnt/runtime/default/D952-2AF4
/dev/fuse 7.7G 3.0G 4.7G 39% /storage/D952-2AF4
/dev/fuse 7.7G 3.0G 4.7G 39% /mnt/runtime/read/D952-2AF4
/dev/fuse 7.7G 3.0G 4.7G 39% /mnt/runtime/write/D952-2AF4
/dev/block/vold/public:179_18 6.9G 144M 6.8G 3% /mnt/media_rw/e1aa119f-00e8-47c7-b4f9-621d2b6372e1
/dev/fuse 6.9G 144M 6.8G 3% /mnt/runtime/default/e1aa119f-00e8-47c7-b4f9-621d2b6372e1
/dev/fuse 6.9G 144M 6.8G 3% /storage/e1aa119f-00e8-47c7-b4f9-621d2b6372e1
/dev/fuse 6.9G 144M 6.8G 3% /mnt/runtime/read/e1aa119f-00e8-47c7-b4f9-621d2b6372e1
/dev/fuse 6.9G 144M 6.8G 3% /mnt/runtime/write/e1aa119f-00e8-47c7-b4f9-621d2b6372e1

so I tried

mount --bind /storage/e1aa119f-00e8-47c7-b4f9-621d2b6372e1 /data/sdext2

/dev/fuse 6.9G 144M 6.8G 3% /data/sdext2

SUCCESS

so how would you make a script that looks for path that android is mounting it ? to bind to your /data/sdext2 path ?