Remove All Ads from XDA

[Q] Ext2internalsd for P605 KK 4.4.2

131 posts
Thanks Meter: 6
By arroba3, Senior Member on 25th August 2015, 03:58 PM
Post Reply Email Thread

I've been trying to use the ext2internalsd script that I have for my KK 4.4.2 Samsung Galaxy S5 (900F) working on my Galaxy Note 10.1 P605, with no success. Could someone help me by reviewing the script so I can now what's wrong? Here it goes:

#extsd2internalsd is a modification that allows to switch internal sd to external sd and viceversa. With this you can use default internal sd only for app storage #and the external sd to store all apps resource and all others stuff. The resut is a very big increase of installable apps on gs4 i9505
#to access the internal
#All credits to Mattiadj of xda forum for the idea and script and to mike1986 for the cmw zip. 
#xda thread url at 

mkdir -p /data/extsd2internalsd;

rm -f $logfile_location/extsd2internalsd.log;

echo "--- Welcome to externalsd2internalsd for i9505 mod log ---" >$logfile_location/extsd2internalsd.log

# Wait for the system to mount the internal media and remout it as r/o
# this should prevent the system from writing to it until we make the 
# switch, yet keeps the /data/media r/w, so at the end it won't be r/o

# List mounts
echo "List current mounts:" >>$logfile_location/extsd2internalsd.log
mount >>$logfile_location/extsd2internalsd.log;
echo "---------------------------------" >>$logfile_location/extsd2internalsd.log

# List disk utilisation
echo "List current disk utilisation:" >>$logfile_location/extsd2internalsd.log
df >>$logfile_location/extsd2internalsd.log;
echo "---------------------------------" >>$logfile_location/extsd2internalsd.log

# List kernel information
echo "List kernel information:" >>$logfile_location/extsd2internalsd.log
cat /proc/version >>$logfile_location/extsd2internalsd.log
echo "---------------------------------" >>$logfile_location/extsd2internalsd.log

mount -o remount,rw /

echo "Wait for externalSd be mounted" >>$logfile_location/extsd2internalsd.log
for i in $(seq 1 1 3000)
    if ( grep -c "/storage/extSdCard" /proc/mounts ); then
	    echo "Mount externalSd to data/media/0" >>$logfile_location/extsd2internalsd.log
		mount -t exfat -o umask=0002,uid=1023,gid=1023 /dev/block/mmcblk1p1 /data/media/0
		mount -o bind /data/media/0/Android/obb /data/media/obb
		echo "Bind and empty folder to extSdCard path to avoid duplicates" >>$logfile_location/extsd2internalsd.log
		mkdir -p /data/media/0/empty
		rm /data/media/0/empty
		mount -o bind /data/media/0/empty /storage/extSdCard
        # done
    usleep 100000

echo "Mount internalSd into /data/media/0/intSdCard" >>$logfile_location/extsd2internalsd.log
mkdir -p /data/media/0/intSdCard
rm /data/media/0/intSdCard
mount -o bind /data/media /data/media/0/intSdCard
My Samsung Galaxy Note 10.1 (P605) has the latest official KK 4.4.2 (PHE version, odex), and it's rooted, with busybox and init.d support.

Thank you!
20th April 2016, 05:34 AM |#2  
d12unk13astard's Avatar
Senior Member
Flag Bakersucks
Thanks Meter: 755
Necro post

I just use xposed and install xinternalsd and obb2sd same functions and better stability Imo.

Sent from my SM-A710F using Tapatalk
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes