yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 10.1 Android Development] flippingout:
Quick update. It seems Google Music and Play Magazines still saves to the internal memory while all other apps install and save data to the new internal/physical SD card. Weird...
[Galaxy Note 10.1 Android Development] LinoX:
use my script some posts ago.
[Galaxy Note 10.1 Android Development] swa100:
Is it possible for you to make a script like this for the S4 (I9505)? Would be great!
[Galaxy Note 10.1 Android Development] Mr_Coffee:
It worked great using 64gb Scandisk on Collective Edition 6 ROM (4.1.2)
[Galaxy Note 10.1 Android Development] LinoX:
I don't have one. I can't. I need the physical phone to see how its rom is structured. When I have the opportunity to stay 15 minutes with a rooted one I will :)
[Galaxy Note 10.1 Android Development] asustf700t:
thanks, just did this scrpit and got a class 10 sandisk, fat 32 but i their is lag, think im going to resort back to internal memory

-------

But it does work on the android revolution hd rom 7.0 without having to do anything
[Galaxy Note 10.1 Android Development] pathuri97:
Working on ARHD 7.0!!!

Hi,

With little bit of tweaking, I made it work on ARHD 7.0 + Stock ROM.

See below for script.

Mine is 32GB SDCARD CLASS4 + EXT4 Partition

#Working on ARHD 7.0 + Stock ROM

#!/system/bin/sh

#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 gnote2

#All credits to Mattiadj of xda forum for the idea and script and to mike1986 for the cmw zip.

#xda thread url at

sleep 10

mount -o remount,rw /

mount -t vfat -o umask=0000 /dev/block/vold/179:17 /storage/sdcard0

sleep 30

mount -o bind /data/media /storage/extSdCard

chmod 777 /storage/extSdCard

sleep 10

chown 1023:1023 /storage/extSdCard

chown 1000:1000 /storage/sdcard0

#

# All credits to original authors

#

:laugh:
[Galaxy Note 10.1 Android Development] asustf700t:
hey guys, okay i wiped everything and started from scratch and the lag is fine but for example triangle away and multi-window app from xda does not seem to work when i install the .APK file, i dont understand why this is it says parse error, parsing the packaging, but when i disable the script its fine? .... why cant i use this script and install apks, i use this app https://play.google.com/store/apps/details?id=mobi.infolife.appbackup&hl=en and now cant install anything ? ........ :rolleyes:
[Galaxy Note 10.1 Android Development] pathuri97:
I too had this problem sometime back...

Try to install from ES FILEEXPLORER - it worked for me...
[Galaxy Note 10.1 Android Development] asustf700t:
Okay bro :) ill let u know

---------- Post added at 03:04 PM ---------- Previous post was at 02:33 PM ----------

didnt work bro :( tnx anyway
[Galaxy Note 10.1 Android Development] private1ne:
I would LOVE to be able to use this but it didn't work on my Galaxy Note 2; I know this is a Note thread so I dont know if it was supposed to work on the 2. It basically just told my phone that I had 10 GB of internal storage, and 16 GB of external (even though I have a 32 GB micro sd). So it didn't even swap directories for me. If you have any suggestions for me please let me know. Thanks so much!
[Galaxy Note 10.1 Android Development] LinoX:
This is a Note 10.1 thread. NOT a note 2 thread. The script is not meant to be put on another device because they luckily have different filesystem layouts. For the future I would recommend you to not apply patches meant for other devices unless explicitly written that it could work for yours. (you could seriously damage your device)

10.1 and 2 are very different devices. I COULD TRY to adapt the script to the 2, however.

Take Away the 10.1 script. Reboot. Open terminal (or better an adb shell) and give me the output of "mount" as executed by root.

I can't help you more than this.
[Galaxy Note 10.1 Android Development] zerogauge:
Would this work on the SCH-i925? Verizon's LTE galaxy note 10.1
[Galaxy Note 10.1 Android Development] pathuri97:
Small help needed - from you -

I was able to swap successfully extcard to sdcard and vice versa by using 11ext2internalsd and changing vold.fstab file

(see http://xdaforums.com/showthread.php?t=2036796&page=44

Post No #433)

It works fine both on NOTE 2 & NOTE 10.1

But only problem is process.media, storage, settings, camera are stopped - i think because all of them work ONLY with original SDCARD and NOT swapped. Otherwise no problem with the system other than few pop-ups for camera, media, storage, settings - I just ignore.

Camera I use - FxCamera,

Settings - all options work except for storage button. I use root browser or other file explorer's to see the space etc.

media fc happens only whenever there is access to media otherwise no problem.

All apps work fantastically without any issues after swapping.

Is there any solution to overcome pop-ups/FC for media/storage/settings/camera etc.

And I'm happy that my internal sdcard is 32GB after swapping.
[Galaxy Note 10.1 Android Development] LinoX:
If your system is full of errors then it doesn't work fine :P

My script on 10.1 doesn't give any errors in any program. It's just "transparent" and everything works without force closes.

What do you want to achieve on your device?
[Galaxy Note 10.1 Android Development] neudof:
From sprint note 2 running stock deodexed mc2 rom

root@android:/ # mount

rootfs / rootfs ro,relatime 0 0

tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0

devpts /dev/pts devpts rw,relatime,mode=600 0 0

proc /proc proc rw,relatime 0 0

sysfs /sys sysfs rw,relatime 0 0

none /acct cgroup rw,relatime,cpuacct 0 0

tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0

tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0

none /dev/cpuctl cgroup rw,relatime,cpu 0 0

/dev/block/mmcblk0p13 /system ext4 ro,relatime,barrier=1,data=ordered 0 0

/dev/block/mmcblk0p12 /cache ext4 rw,nosuid,nodev,noatime,errors=panic,barrier=1,journal_async_commit,data=ordered 0 0

/dev/block/mmcblk0p3 /efs ext4 rw,nosuid,nodev,noatime,errors=panic,barrier=1,journal_async_commit,data=ordered 0 0

/dev/block/mmcblk0p17 /data ext4 rw,nosuid,nodev,noatime,barrier=1,journal_async_commit,data=ordered,noauto_da_alloc,discard 0 0

/dev/block/mmcblk0p16 /carrier ext4 rw,nosuid,nodev,noatime,barrier=1,journal_async_commit,data=ordered 0 0

/dev/block/mmcblk0p11 /tombstones ext4 rw,nosuid,nodev,noatime,barrier=1,journal_async_commit,data=ordered 0 0

/dev/block/mmcblk0p10 /firmware vfat ro,relatime,fmask=0133,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0

/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0

/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,noexec,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

/dev/block/vold/179:17 /storage/extSdCard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

root@android:/ #
[Galaxy Note 10.1 Android Development] private1ne:
Thanks for your reply...I know its the 10.1 forum, but I could have sworn that somewhere in this thread I read that the script worked on the Note 2 as well. In fact the script from the OP did work, but I wanted yours! Anyway thanks again!
[Galaxy Note 10.1 Android Development] livlogik:
Thanks for this :laugh:... i had a quick question i have a sandisk 32gb card and im running hyper rom and hyper kernel but its not swapping. I tried to format the sd card to fat32 and then tried to flash it again but is still not swapping. I also tried the script manager way and still a no go :( ... is there something im missing in the process?

- recovery

- flash script

- reboot

Thanks,

Zach
[Galaxy Note 10.1 Android Development] pathuri97:
Finally I used your code and was able to get rid of FC's (though not critical).

I did make few changes so that mounting is done properly.

The same code is working on both NOTE 2 and NOTE 10.1.

All thanks to you & XDA.

###

#!/system/bin/sh

sleep 10;

busybox mount -o move /storage/sdcard0 /storage/extSdCard;

sleep 10;

mount -o remount,rw /

busybox mount -t vfat -o umask=0000 /dev/block/mmcblk1p1 /data/media

sleep 30;

busybox mount -o bind /data/media /storage/sdcard0;

chmod 777 /storage/sdcard0

sleep 10

chown 1023:1023 /storage/sdcard0

chown 1000:1000 /storage/extSdCard

#EOF

###

If anybody is interested they are free to use the above code.

Of course with proper permissions (rwxr-xr-x) and placing it in /etc/init.d file (file name can be 11int2extd etc)

and ownership (root/root).
[Galaxy Note 10.1 Android Development] SMN65:
Swap is done. Play store apps won't install in the sd card but still in the original internal? Any solution? Will it be a good idea to go back to ICS and flash the first script?
[Galaxy Note 10.1 Android Development] asustf700t:
Had similar problems, the apks like the playstore, the set cpu, triangle away wont install from xda... but no1 seems to know how to fix it... lol so I had to disable script and run from memory again... mine says parsing error...:confused:
[Galaxy Note 10.1 Android Development] SMN65:
Do you think we could solve our storage problems by switching back to ice cream sandwich?
[Galaxy Note 10.1 Android Development] asustf700t:
Na bro, not in my opinion.
[Galaxy Note 10.1 Android Development] SMN65:
I might give it a try these days, will post if it works or not. If not, i'm the one to blame for buying the 16gb version
[Galaxy Note 10.1 Android Development] asustf700t:
thanks
[Galaxy Note 10.1 Android Development] asustf700t:
Hey bro I fixed it earlier today nd there is no more parsing error, I can install the playstore, here is exactly what I did; formatted ext sd card to fat32,

then did a full wipe using philz recovery (option which says wipe to install new rom),

then formatted internal memory, /sdcard

Then pressed full wipe for new rom AGAIN,

Then flashed rom (am running HD ROM 7.0),

Then flashed script.

-----------------------

update there is still parsing error it is happening again. damn
[Galaxy Note 10.1 Android Development] spannernick:
Will this work on a Galaxy S4 I9505..

I have the 16GB version and trying to find a way to use my 32GB sdcard....??
[Galaxy Note 10.1 Android Development] joeherlev:
Will this script work on SGS4 ??
[Galaxy Note 10.1 Android Development] richardlibeau:
No it doesn't tried it already. I came up with a script for the s2 but the s4 is giving me hell.
[Galaxy Note 10.1 Android Development] kenloon2009:
After install app2sd script, my internal memory become ext sd.. But I connot play the video on it. ? Can everyone help ????
[Galaxy Note 10.1 Android Development] hoyoyo80:
Will this work on Note 8.0?(rooted with CWM)
[Galaxy Note 10.1 Android Development] hoyoyo80:
Yay! It work with note 8.0...hehehe
[Galaxy Note 10.1 Android Development] djh9999:
I have same problem with video and pictures. I can take pictures and video as long as I choose to store them on the "memory card" and not on the "device"...which means that it's storing them on the device not on my memory card--because the script switches those. However, the videos and pictures won't come up in the "gallery" app. I can view the pictures if I use another app to browse them, but the videos I took with my camera won't play through the normal video apps.

One note...I can view pictures and video that were taken before I ran the script, but I just can't view anything taken after I ran the script to swap internal and external cards.
[Galaxy Note 10.1 Android Development] kenloon2009:
I also same problem anyone fix this ???
[Galaxy Note 10.1 Android Development] jakou:
Go to the folder(s) in which you have your pictures/videos stored, and change permissions of each folder (by using any file manager) so that all permissions are checked. Also do the same for each picture/video i.e. change permissions (check all permissions). Your pictures and videos will then appear in gallery and you can watch them without any problem.
[Galaxy Note 10.1 Android Development] djh9999:
That worked for the pictures that already exist, but I have to do it again for each picture that I take. Is there a way that I can fix it so I don't have to do this for every picture I take?

Also, I still can't choose "device" for storage of my Videos/Pics. It's probably a permissions thing there also. It works, as long as I let it write to "memory card"--which is the internal storage on my tablet, but I have a much larger SD card, and I want to use it instead.

Thanks for your help.
[Galaxy Note 10.1 Android Development] kenloon2009:
Thank you very much. It work already......
[Galaxy Note 10.1 Android Development] jakou:
There must be a way to fix the permissions thing so that files and folders that are being created have full permissions by default, but I have no idea how to do that. Hopefully someone with a dev background could help out and let us know how to do that.

As for not being able to chose storage destination of pictures/videos, I do not have this problem on my Note 8.0, and frankly don't know the solution for that.
[Galaxy Note 10.1 Android Development] djh9999:
I guess I should clarify...I CAN choose the storage destination, but when I choose "device" (which is my 32gb card) and take the picture/video, it doesn't show up in the gallery, and I can't find it anywhere on the card (using file browser). Also, some times I get an error...something about not being enough storage on card. This leads me to believe that it's a permission thing, because I have plenty of available space.

If I choose "memory card" (which would be the built-in memory for my Note 10.1), then it works, but I have to go back later and change permissions on each picture/video that I take. I guess that is acceptable, for now. At least until a dev figures out how to fix this.
[Galaxy Note 10.1 Android Development] stephenuk:
this was working fine with my 64gig card but now its suddenly showing 3 sd cards all the same size and everything shows up 3 times in the gallery and music etc its really annoying does someone know how to fix it thanks
[Galaxy Note 10.1 Android Development] stephenuk:
here is a screenshot of what i mean and i cant access the main device storage no more
[Galaxy Note 10.1 Android Development] stephenuk:
anyone??
[Galaxy Note 10.1 Android Development] PsycloneTW:
I'm a new N8013 owner running stock rooted. I dropped this script into the init.d folder and while it appears to be running fine(My 64GB card shows as the primary storage and the 16GB internal shows as secondary storage), I get an Insufficient Storage Available error when trying to install new apps(My 16GB storage is full) So I assume that the script is not working correctly. I run Zedo's script for my Note 2 and it works great.

Any ideas?
[Galaxy Note 10.1 Android Development] damient:
Hi all,

Read that another forummer was able to do this on his Note 8.0. So I thought I try on my Note 8.0.

I've followed the instructions on this thread. But the script does not appear in the init.d folder. Can anyone tell where I might have gone wrong? Thank you!
[Galaxy Note 10.1 Android Development] mann75:
I have the same issue..did you ever get the problem resolved?
[Galaxy Note 10.1 Android Development] flippy:
Same here also. If i look in Application manager it says i have about 11,5 gb total. Witch is the standard size. But in storage it says device Memory 59,45. So something is messed up
[Galaxy Note 10.1 Android Development] Marlakai:
solved
[Galaxy Note 10.1 Android Development] thejohancoolz:
i succeded using this script to switch my sd card and phone memory

now my phone memory is external

and external is phone memory

but this is getting confusing

what will happen if i were about to install custom rom

before that i will wipe data

will he data also be wiped (example : photos, videos, music, .....)

if they are going to be wiped.

from which memory the data will be wiped?

the one which is now phone memory

or external?

thanks in advance

the script is great !
[Galaxy Note 10.1 Android Development] ttxxaa:
Hi

I used this script on my note 10.1 with 64 micro sd and it work fine in the beginning

after few days i faced issues in moving some movies from my PC and couldn't install some games from play store so i Formatted my device in 4.1.2 stock ROM

now i got big problem with my Micro SD card :(

the card became read only when i used it in my pc with card reader and i trised to format it with sd formatter and other tools put i get error message says cannot be formatted !!!!!

in my galaxy note 10.1 it worked fine and i can write on it but i cannot format it !:(

please any one can help me to fix it :(
[Galaxy Note 10.1 Android Development] rlupda:
Thanks for posting this script and it'll solve the issue I been struggling with. However, I could not find init.d from my device. I have GT-N8013 running Omega ROM and I use Solid Explore with "Show Hidden" flag turned on. The 11extsd2internalsd script from Zedomax ran great :good:. I was able to flash it following his step by simply flash it in Recover and did not need to run the script again. I copied over the Internal content to SD before I flashed this script in Recovery. After reboot, I deleted all of the old "internal" content (new Ext SD) thinking that I now have all of the extra spaces available but it was not accessible. Appreciate your suggestion on where I can find the init.d to add this script. ;)

EDIT: I copied the text and pasted into a file and then added to /init.d folder and I still see "SD Card." When I tried to copy files over to the SD Card, it fails to open and I was unable to delete. Figured that I probably did it wrong, so I tried to execute the script in ROM Toolbox using the Scripter and it failed with the following message:

"Finished executing script file

exit value: 0

stdout:

null

stderr:

mount: mounting /dev/block/mmcblk1p1 on /data/media failed: Device or resource busy"

Appreciate your feedback and suggestion
[Galaxy Note 10.1 Android Development] ttxxaa:
still have no solution !!!!
[Galaxy Note 10.1 Android Development] rlupda:
Confirm that the new external SD -> old internal SD 16GB is now inaccessible?

Folks,

I read through all of the old post but still want to confirm that the new external SD storage -> old internal storage 16GB is now inaccessible and useless? I was able to successfully use my external SD card as the new storage (worked great), but just a bit disappointed that the new external storage (old internal storage) is now wasted space (read only).

I also heard the S4 now has an update that allows saving APPS to SD. Can we some how extract this tool and port it over to Note 10.1?

Thanks!
[Galaxy Note 10.1 Android Development] YOSEFE:
Hey OP,

after installing and swapping with script, can I erase or format original internal memory?

Can you please advise me. I am sorry if you have already answered this question. I could not find a thread search box to look for this here.

Thanks for your attention.
[Galaxy Note 10.1 Android Development] mrgerlo:
I would suggest try using a live Linux distribution like Ubuntu or Linux mint, from there use gparted to completely delete the partition and the recreate it, format and it should be good to go.....

Sent from my tablet GT-N8010

---------- Post added at 06:25 PM ---------- Previous post was at 06:19 PM ----------

Check my previous post.... Sorry forgot to quote :)good luck with that!

Sent from my tablet GT-N8010
[Galaxy Note 10.1 Android Development] saiken:
works great!!! thanks a lot!
[Galaxy Note 10.1 Android Development] ttxxaa:
thnx but still cannot format the sd

i used gparted tool in ubuntu and it formatted successfully but i cannet read it !

when i remove the sd card and mount it again it shows me the same files and the size before format :eek:
[Galaxy Note 10.1 Android Development] Rongogo:
Have you deleted first all the partitions from your sd card,?

And created then a new one in a readable format like fat32

From my N8000 Ronrom V6
[Galaxy Note 10.1 Android Development] ttxxaa:
yes i did that
[Galaxy Note 10.1 Android Development] LinoX:
you can't use the script once the system has booted (it must be executed on system start, that's why I told you to use init.d)

If it doesn't work ensure

1) your rom has init.d support (if not the script will not work)

2) you gave the script a name like [number][name] (ie:45swapsd)

3) the script has execution permissions!!!

4) you have busybox installed (init.d support is added in some roms by using busybox's run-parts)

4) run-parts is present on your system and it's working (for the reason above)

If the ROM has not init.d support you could just add it (in my samsung standard rom, currently the DBT G2 release, I modified the installrecovery.sh to run-parts /etc/init.d...but it works since I left the original comment, it was cmc5 if I recall correctly)
[Galaxy Note 10.1 Android Development] Mr Ace:
I did this but when I tried to run using busybox it said : no such file or directory

: no such device

Really confused as followed the steps that most said worked
[Galaxy Note 10.1 Android Development] omnia1994:
Which version of android r u using? That's for 4.0 only. And which rom/kernel?
[Galaxy Note 10.1 Android Development] Mr Ace:
Running Hyperdrive RLS5.1 which should be 4.1.2

And I think thats zeus kernal 4
[Galaxy Note 10.1 Android Development] VenpaCasa:
Hey would this script work for the note 2 too?

Sent from my GT-N8013
[Galaxy Note 10.1 Android Development] omnia1994:
http://xdaforums.com/showthread.php?t=2294418&page=4

Look at the last comment :) someone has made a zip for zeus kernel ans it works well
[Galaxy Note 10.1 Android Development] Mr Ace:
Works well but when I try and download big games like mc4 it force closes
[Galaxy Note 10.1 Android Development] Mr Ace:
I get error 492 now when I try to get any apps like mc4, six guns and nova 3
[Galaxy Note 10.1 Android Development] jdgreat4:
Hey, not a solution to your question but does mc4 work without lag for you? I get massive amounts of lag
[Galaxy Note 10.1 Android Development] citra_tdz:
my microsd is broken so took it out from the note. my internal memory return as sdcard0. but i have a problem that the pictures or videos taken by the camera cannot be saved into the internal memory.when i open the galery after taken the picture it said no image available. and also my internal browser cannot save anything from the internet. all downloads are unsuccessful, but if i use dolphin or other browser there is no problem in saving download files. i have tried to update to 4.1.2 from previously 4.1.1, factory reset, dalvik/cache wipe. no solution.

have anyone experience this? any solution please for my problem? need help soon.

thanx
[Galaxy Note 10.1 Android Development] xsessive:
zedo you the man
[Galaxy Note 10.1 Android Development] TEKHD:
Still no mod like this for the Note 3?
[Galaxy Note 10.1 Android Development] tselling:
I use FolderMount from the market (pay version). I linked the Android folder, gameloft folder, and copilot folder to external sd card since thats the majority of app space for me.
[Galaxy Note 10.1 Android Development] Braaank:
The script doesnt work for me, I have the same space at SDCARD and my device. do I have to do another step?

I have all Stock but rooted and a CWM recovery.

Thanks
[Galaxy Note 10.1 Android Development] Tiltmfc:
SCH-I925 US cellular

Can anyone confirm if this script will work with SCH-I925 US cellular?
[Galaxy Note 10.1 Android Development] Pistacchio:
Before root

Hi, before root anyone have test this app for the galaxy note 10.1 2014 edition.

On my old and sold note 10.1 2012 work fine.

Thanks.....
[Galaxy Note 10.1 Android Development] chuckenheimer:
Asking what I believe to be a dumb question (this is the Note 10.1 forum post thread): will this script, or any of its variants, work on an GS3 running the new HellFire KitKat 2.8 ROM? If not, which can explain these attached photo, is there anything that I can do to swap my SD cards?

Thanks for any advice for this noob. :)