yashsingh1/xdaforums huggingface dataset:
[Eee Pad Transformer Android Development] Hammerfest:
Damn!

I almost thought this was what I wanted... but alas, the last line threw me down "Also if i want to see the internal memory management i can see that now my tablet has 32gb internal memory and 16gb external!! WOOW"

My desire was for the MicroSD card to be mounted as /sdcard and the internal memory just be /data (so /removable wouldn't exist)and nothing else... but if you say it lists external and internal then i can only thing this isnt what I desire...

Phooey!

EDIT: crap... the wording is so confusing... this actually might be what I was looking for... but if it was it wouldn't list the 16gb as external... someone wanna lend me a hand here and tell me if /sdcard is indeed my MicroSD card and that the Internal storage is now entirely dedicated to being /data? or is this some App2SD hybrid with my desire...

EDIT2: nope... "If you want to access to your INTERNAL SD you have to go with astro or ES filemangaer or what do you wanto to /Removable/MicroSD" (so it just swaps them, also says that below the quote in the OP lol!... is it possible to make a "mod" of this... "mod" LOL! to drop its mounting as anything other then extra app space? (/data)? I dont want to be able to personally access the internal storage at all besides in /data!!!
[Eee Pad Transformer Android Development] yioti:
When i try to copy something to the sdcard it wont let me and says permision denied any help would be much appreciated.

Thanks
[Eee Pad Transformer Android Development] mattiadj:
A critical update will be uploaded in next hours.

It fix the rw permission on sdcard.

Stay tuned.... All is OK I have only to make a new update zip and clean a bit the code.

Inviato dal mio Desire HD usando Tapatalk
[Eee Pad Transformer Android Development] yioti:
Oh thanks, also one more problem when I open gallery to view images it pops up with an error "No external SD card found" and then it closes the gallery, is this a common bug?
[Eee Pad Transformer Android Development] mattiadj:
I thinks it was rw issue related. With the fixed one no problem.

Give me some times to upload it and op!

Inviato dal mio Desire HD usando Tapatalk
[Eee Pad Transformer Android Development] blk_jack:
This script does exactly what you want. Where you're getting confused is the "internal" directory. Yes, your previous /mnt/sdcard directory gets moved to /Removable/MicroSD, but you can do as I've done and just leave it empty.

Remember, the transformer only has ONE userspace partition for both apps and app data. So they share the SAME shared capacity. Without the script if you put media in your internal storage it would eat up /data app space and that is still the case here.

TL;DR - This script mounts your MicroSD as /mnt/sdcard and all your internal space is used for /data and /Removable/MicroSD, but they share the same capacity.
[Eee Pad Transformer Android Development] mattiadj:
New update with all bugs fixed!

Now is really perfect and bug less!!

2.1

Sdcard folder is now writable

Owner and permission of sdcard are now correct

Script a bit cleaner
[Eee Pad Transformer Android Development] yukonking3:
Which sdcard will be unmounted when you accidently hit the unmount in the notification screen?
[Eee Pad Transformer Android Development] mattiadj:
Notification area is disabled to avoid problems.

Inviato dal mio Transformer TF101 usando Tapatalk
[Eee Pad Transformer Android Development] Hammerfest:
if thats the case then why is /removable/microsd empty when i have 10 apps installed... fresh wipe, applied before first boot... but if i go to /data its got the apps there... maybe you misunderstood me... i want the internal storage... to be 100% /data... I want to store nothing on there other then /data, like my HD2, where i have 768MB of /data space and my 16HB SD card for App2SD and AppSDMedia storage (ERGO where games normally store their bulk data)

more to the topic however, to get what I want can I just remove the mount line from the script? for /removable/microsd?
[Eee Pad Transformer Android Development] blk_jack:
They share the SAME partition. It's the same thing as just having two different directories. If you have 10mb free in /data you will also have 10mb free in the new /Removable/MicroSD. If you copy a 2mb file to either directory they will both show 8mb free.

Type df in console to see what I'm talking about.

Having /Removable/MicroSD is just like having a blank directory anywhere on the partition. It's the same as if you just created /data2 and kept it blank.
[Eee Pad Transformer Android Development] Jamesyboy:
I don't understand via the explanation. So the external SD card will be viewed as internal storage by the system, but the internal storage will be viewed as internal storage? Does this turn a 16gb transformer with a 16 gig SD card into a 32 gig transformer? Or does it turn a 16 gig transformer with a 32 gig SD card into one that's viewed as 32 with a 16 gig SD card?

Does this fix the "insufficient" storage problem? I still have 4-6 gigs free but get this error. Will things change if I upgrade my 16gb microsd card to a 32 gig and use this?
[Eee Pad Transformer Android Development] mattiadj:
You have misunderstood something . The situation is simple. Transformer has a 16gb internal sd (in my case, I have 16gb version) and so this internal sd card of 16gb is used to store all my data! For apps in /data, apps storage in /sdcard/android/data and so on.

So if I install for example games like front line commando, gta 3, or gameloft games, shadowgun or something which needs extra resources to download, these apps download what they need into internal sd. And so the space in internal sd (which is the internal memory of tablet) became full quickly!! Why? Because the internal sd is viewed as sdcard and mounted in /sdcard and /mnt/sdcard and so is used as normal sd by apps! So transformer has a sdcard which is used both for apps installation and data storage!!! No nand or real internal memory!

External sd is used for nothing!!!

So why my script? This script is essential to fix this stupid behaviour!!

Your internal sd card is mounted to store all apps you wants and apps install on it only their apk files and necessary data. On external they stored all extra data resources and all they need!!!! On external! And internal is untouched!

So android info see this new situation in inverted way since in our transformer (and i think this is a big issue of Asus) what is mounted in /sdcard is considered as INTERNAL MEMORY and what is mounted in /Removable/MicroSD is viewed as EXTERNAL MEMORY.

Since this mod inverts mount point... The information in memory tab is inverted!

Let's now with an example.

If you install shadowgun game without my mod, it installs in you internal both game package (in /data) and 250mb of resource in /sdcard/Android/data/gamefolder.

So you have 300mb less in your INTERNAL SD!!

With my mod simply the 250 of extra resources are downloaded in you external sd!!! So you have 250mb save on internal sd to install other apps!!!!

I hope is all more clear now and is better understood how this mod is important! :)

Inviato dal mio Desire HD usando Tapatalk
[Eee Pad Transformer Android Development] blk_jack:
It means a 16gb transformer will have ALL that space for internal apps and the system. Anything stored on /mnt/sdcard (your media, app data/files/cache, etc) will be on the sdcard, since the script changes the sdcard mount location from /Removable /MicroSD to /mnt/sdcard.

The op has simply swapped the old internal /mnt/sdcard to where Honeycomb by default mounts the MicroSD on /Removable/MicroSD so that if you want to store files internally and not on your MicroSD (which, again, is located on /mnt/sdcard after using the script), you can.

The naming conventions are pretty confusing. Just realize that the two directories get swapped which means apps will by default install their files, excluding the app itself of course, on your sd card. This is the exact same behavior of my phone.
[Eee Pad Transformer Android Development] bob dylan:
now that there is a CWM flashable zip can we just flash it anytime? do we really need to be starting from a fresh install i.e full wipe, flash this mod's zip in CWM and then reinstall apps?

this is going to be a really useful mod seen as i have a 64GB micro sd card now but i think i will wait till the ICS version of my fave ROM comes out before i do this mod.
[Eee Pad Transformer Android Development] mattiadj:
You can try to flash it with your actual roma and configuration but BEFORE flash i want suggest to cut and paste all content of your internal memory on your microsd then flash.

I think in this way no problem will came :)

Regards
[Eee Pad Transformer Android Development] bob dylan:
ok, will do, thanks!:D
[Eee Pad Transformer Android Development] fisha21:
Also trying to make sure I've understood.

For example, on my Desire:

/system and all subfolders are located on internal nand, and /sdcard is the removable memory card

Whereas on the TF:

all root files are located on the internal mem card, and /sdcard/ just represents the (non-rooted) user-accessible part of that mem card. But because of Android limitations, that internal card has to be mounted as /sdcard and not just as / (root).

Had just assumed that the TF had a separate nand for system files...

So, can confirm, the above method works for an already set up rom. All apps and widgets work as they should. Bit of lag here and there but I think that's down to my microSD being class 4!

So, in theory I can now delete all files on the internal SD (which is now Removable/MicroSD)? Edit: to answer my own question, yes I can.

Thanks for your work on this.
[Eee Pad Transformer Android Development] mattiadj:
Perfect.

I think the small lags are due to the moving of data from internal to external. Starting from a clean rom the structure directory tree is built from scratch and so the lags are not present.

I had a class 4 sd now class 10 and no very important difference i have seen. Also the performance are the same without this mod.

Thanks for your feedback.

Inviato dal mio Desire HD usando Tapatalk
[Eee Pad Transformer Android Development] Hammerfest:
Sadly, the BULK transfer of data has nothing to do with the lag your seeing... my Class 4 16GB outperforms the IOPS of my Class 10, and is much smoother with running app2sd and swap on my MicroSD... you should definitely test your MicroSD cards and find out which has the best IOPS, then use that one as your app centric card... Class 10 is all about raw TRANSFER speed... which app's are NOT... they are about random access...

I have a link somewhere to my own testing on my cards... ill have to edit this post later to include it...

EDIT: many many many hours later...: http://db.tt/BiSYOJcE

as you can tell, the overall IOPS of the drive doesnt change depending on the format and unit size OVERALL (as evidenced by the tests from HD Tune) , however, when it pertains to a specific file size, in relation to allocation unit size, IOPS very's quite alot (as per tests by CyrstalDiskMark@50Mb)... sadly, thats all the MicroSD cards I could find to test...
[Eee Pad Transformer Android Development] mattiadj:
Yes what do you mean is interesting.

I know it and i have changed a lot of sd card...class 4, 10,6 and now in my desire hd i have a class 6 ultra sandisk of 64gb and i can see that the performance are the same of my "old" class 10.

During a transfer of ONE BIG file the class can make the difference but in random access memory of small files such as in our devices the differences are not really noticeable.

Howewer i think a class 4/6 will be a good compromise for performance and price. Also class 6 is enough for full hd recording.

In this specific case the lag are not caused by microsd...i'm sure. Since all apps are in INTERNAL SD!!!

i don't know the class of internal sd but i don't think is class 6 or 10...i hope it is a class 4!!!

Since it a normal SD card and not a NAND rom...the lag are surely caused by other things.

I have zero lag both with class 4 and class 10...so...the external sd's class can't make the differences but can helps in some cases :)
[Eee Pad Transformer Android Development] Hammerfest:
Some games use the MicroSD for storage :P like Vendetta Online, or Galaxy on Fire, you WILL notice the difference when it comes to performance/iops when comparing a .5IOPS to a 2.5IOPS :P its why I sold that Class 10 card thats in my test folder, it was horrid compared to my Class 6 and Class 4...
[Eee Pad Transformer Android Development] strikerz:
can we eject and take out the microsd card while its turn on or must turn off first?
[Eee Pad Transformer Android Development] mattiadj:
I really suggest you to don't eject sdcard while the system is active!

You can access it connecting transformer to pc with cable!

Or switch off it then eject sd card make what do you want and turn on transformer always with sd card insered

Inviato dal mio Desire HD usando Tapatalk
[Eee Pad Transformer Android Development] BULL3TPR00F:
flashed this and everything is working perfectly.

However, it looks like some apps are still installing to the external (micro) sd card instead of staying on internal. Would using Apps2SD move all (movable) apps to the internal sd card (since that is what is now the external).

Pretty much work the opposite of how it would normally. Basic concept.

This would make sure all apps are loaded from the actual internal drive for better performance and less wear on the real sd card.
[Eee Pad Transformer Android Development] BULL3TPR00F:
Just realised that i cannot browse Removable/MicroSD on the device, it shows an empty folder. If i reflash the zip again now (after installing tons of apps) will it affect anything?
[Eee Pad Transformer Android Development] mattiadj:
I have not tested it with app2sd system and i think is not necessary since, as said, all core files of apps are on internal sd memory.

About your problem is very strange.... Which rom you have? I think probably the problem is app2sd related... Or have you any app like gltosd?

Inviato dal mio Desire HD usando Tapatalk
[Eee Pad Transformer Android Development] BULL3TPR00F:
No i dont have any app2sd apps installed and have not touched where any app is auto-installing to.

but when i go on my file browser on the device the Removable/MicroSD folder is empty, and it shows up empty when plugged into the computer as well. But there is data in there because it shows me used space both on device and on computer.

I will try reflashing v2.1 and see if it fixes it.

Im running Revolution rom v2.3.2
[Eee Pad Transformer Android Development] mattiadj:
Your case is very abnormal.

Have you installed or flashed si version earlier than 2.1 before?

I want suggest you to make a nandroid backup, wipe all, flash the rom from scratch and then after the first reboot flash my mod.

Tell me what's happen after this procedure.

Inviato dal mio Desire HD usando Tapatalk
[Eee Pad Transformer Android Development] BULL3TPR00F:
It is possible that the version i had downloaded on my tablet was older than the one i had on my PC when i had flashed the mod after the fresh rom install i did.

i will try to relfash the zip alone and see if it fixes the problem. if not then i will do another fresh install

---------- Post added at 02:03 AM ---------- Previous post was at 01:19 AM ----------

Ok so i reflashed v2.1 (after using the remove script first, and then flashing right after.

I can now access my sd card folder on the device, the only thing i see on it though is a /data folder with titanium backup in it.

shouldnt there be more? can someone supply a screenshot of what their Removable/MicroSD folder looks like please.
[Eee Pad Transformer Android Development] mattiadj:
This is normal :) Your EXTERNAL SD is now seen as INTERNAL so...all /data Android/data and extra data of apps are stored in EXTERNAL SD.

Is what we want :)
[Eee Pad Transformer Android Development] BULL3TPR00F:
But my tablet is telling me there is roughly 3-4gb used up on the 16gb memory (which is really like 14.8gb so i have 10gb left.

But when browsing with a file explorer, i only see one /data folder, with an empty titanium backup folder in it (com.ker???? etc etc).

If i click to find properties of the MicroSD folder, it says its using 0 bytes even though the storage menu shows usage (as does my PC).

Could you please upload a screenshot of your "storage" menu in settings, as well as a file view of the removable/microsd folder, if it isnt too much trouble.

Since you say the external is now internal and vice versa, but the apks are still installed on the real internal shouldnt i be able to see more than just the /data folder with titanium backup in it? I have tons of apps.
[Eee Pad Transformer Android Development] mattiadj:
It's correct!

Probably you haven't understand what is he aim of this mod.

My objective is not to use my external sd to install apk as a nand memory. I really not need it!! My aim is to use external sd to store all EXTRA resources files of apps!! Apps like astro, es file explorer or others simply app don't need to install anything on sd and so the external sd is not needed to use.

So when you install an app it is installed on real internal sd which is also used by transformer as nand, and the eventual extra files is stored on external sd instead on internal!

If you go to /data/data you will see all your apk and this location is in the real internal sd which, as said, is used as nand.

So why this mod? Simple! Try to install for example front line commando. It needs something like 250mb of extra space for resources. Without my mod the resources are downloaded on real internal sd, with my mod the resources are downloaded on external sd which is considered as internal and the system

I hope now all is more clear.

My images attached

Inviato dal mio Transformer TF101 usando Tapatalk
[Eee Pad Transformer Android Development] philburkhardt:
I plan on using this to take advantage of my multiple smaller (2gb, 4gb) MicroSD cards.

For example; Put the SD data for my Gameloft games on one MicroSD, put GTA III and Dead Space on another and put Shadowgun on a third card. Now I can carry the smaller cards with me and just pop the right one in for the game I want to play. Not much different than carrying a game cart for a PSP or a 3DS.

I'm sure there have to be plenty of us out there that have gathered a collection of smaller MicroSd's over the years. This pumps a little life back into them :).
[Eee Pad Transformer Android Development] mattiadj:
Yes...may be a good type of use but remember to turn off tablet then switch card then turn on tablet.

Hot swap of microsd is highly not recommended!!
[Eee Pad Transformer Android Development] BULL3TPR00F:
i understand the purpose of what this mod does, im just confused as if mine is working properly cuz i cant see any apks in the removable/micro sd which is the real internal mem. The images are very small and hard to see but from what i understand from your description now is that the /data folder on the EXTERNAL sd card is actually a symlink (for lack of a better term) to the INTERNAL nand memory?

this is why i cant see anything (no apks or anything just one empty folder) when browsing removable/microsd ? Even though data is used on it?
[Eee Pad Transformer Android Development] mattiadj:
If you want to see your apks you must go with a file explorer with root rights in /data/data.

The data folder and the android/data folder in /sdcard and /mnt/sdcard (which show both the external sd!) are created by your apps!

Then you can delete (after a copy into /sdcard) all from /Removable/MicroSD.

If you want see if all is working simply go into memory info of android in settings and if you have a 16gb transformer and 32gb external sd, you have see 32gb ad internal memory and 16gb as external memory.

That's all.

Inviato dal mio Desire HD usando Tapatalk
[Eee Pad Transformer Android Development] BULL3TPR00F:
Browsed my sdcard/data/data folder with root explorer and there are NO apks. Browsed removable/microsd/data and there are NO apks.

I have 150 apps installed
[Eee Pad Transformer Android Development] mattiadj:
It's normal!!!!!!!!

You have to go to /data/data to see apks!!! In the root of system not in sdcard or removable.

This script doesn't move any apks!

Inviato dal mio Transformer TF101 usando Tapatalk
[Eee Pad Transformer Android Development] mattiadj:
Mod delete this empty post please

Inviato dal mio Transformer TF101 usando Tapatalk
[Eee Pad Transformer Android Development] BULL3TPR00F:
Oh ok im sorry i missunderstood. I forgot the apks are stored in the root of the system. And that is where the missing 4gb are. everything makes sense now lol

My apologies.

So last question and ill stop bothering you lol.... if im changing roms or anything, do you reccommend installing this script BEFORE first boot or AFTER first boot?
[Eee Pad Transformer Android Development] mattiadj:
Don't worry.

So, is working my mod for you?

I always advice to flash rom after full wipe then make a first boot and setup and then flash mods like this one.

Inviato dal mio Desire HD usando Tapatalk
[Eee Pad Transformer Android Development] BULL3TPR00F:
Yeah the mod is working perfectly, exactly what we all have needed. When i first got my transformer i had filled the entire internal memory by the third day lol. I then ordered a 32gb card, and saw your post.

Everything works perfect bro!

Which ROM are you running on your Transformer? Im using Revolution right now, but I think i might switch to Revolver to try it out.
[Eee Pad Transformer Android Development] mattiadj:
LoL i always had problem of space!

Consider that on my Desire HD i have 64gb external sd!!!

272apps installed and with some tricks I have 747mb of 1100 of internal nand free!!!!! So i can install a lot of apps!!!

In these devices apps can make the difference!

Thanks you bro for the positive feedback!

I have revolver since it has some features not stock such as power menu, advanced quick settings and a lot of mod and tricks installing revolver sparts from market.

For me is the best but the mike's one is the best if you want a stock optimized rom.

Inviato dal mio Desire HD usando Tapatalk
[Eee Pad Transformer Android Development] BULL3TPR00F:
SO if i want the best of both worlds, stock look + feel, customizability, and high performance, its best to use Revolver?
[Eee Pad Transformer Android Development] mattiadj:
For me yes, revolver is the best choice

Inviato dal mio Desire HD usando Tapatalk
[Eee Pad Transformer Android Development] tanguita:
Has anybody tried this while having ubuntu emmc install? Does it work? If so, this would be an ideal solution to make the dual boot usable with enough space for both OSs :).
[Eee Pad Transformer Android Development] blk_jack:
I use it with the Ubuntu eMMC install and it definitely IS ideal. My android installation now has 16GB for app data & media. I haven't attempted to mount my microSD in Ubuntu, though, as I find that the default install gives me enough space (~8GB?)
[Eee Pad Transformer Android Development] tanguita:
Great... thanks.... how do you flash the cwm script though if you have ubuntu in the recovery partition?
[Eee Pad Transformer Android Development] blk_jack:
I just unzipped the file, copied over the init.d script, changed the permissions and rebooted.
[Eee Pad Transformer Android Development] BULL3TPR00F:
So with this mod enabled, when downloading resources for a game that gives you the option of where you want to store it (i.e. Glu Games, Anomoly Warzone, etc), we would select Phone (internal) instead of SD card since they are backwards?
[Eee Pad Transformer Android Development] mattiadj:
I haven't tested yet (you can try and report) but teorically you have to choose internal memory to store these data on external. So the answer is..... Yes :)

Inviato dal mio Desire HD usando Tapatalk
[Eee Pad Transformer Android Development] BULL3TPR00F:
Yeah it seems like that is what must be done, worked for me as far as i can tell.