What's up all,
I have a question about stock-based (2.3.3) roms.
I like to switch between CM7 and stock based roms once in a while, which is for the most part not a big hassle, but the one thing that does put me off to switching back and forth is the fact that I have to move app data back and forth between internal and external sd cards all the time.
I know what everyone is going to say: Just have internal sd at /sdcard in CM7 via the new option in CM parts, but I'm reluctant to do this. I have alot of apps that require huge amounts of data in /sdcard. As such I would much rather have my external sd at that location, and have internal at /mnt/emmc for random storage.
This works out great in CM7, but I was wondering if there is anyway to achieve something similar in stock roms.
So? Anyway to route external to /sdcard in stock-based roms??
Nevermind. It was a stupid question.
............
Yes there is a way but it breaks the ability to mount your sdcards to your computer via USB.
Sent from my LG-P999 using XDA App
I'm actually cool with that. How does it work?
Sent from my LG-P999 using XDA App
thanasisc4 said:
I'm actually cool with that. How does it work?
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
In that case it actually pretty easy. You have to edit 1 file. /system/etc/vold.fstab
I find it easiest to do directly from the phone using root explorer. Of course that means you have to be rooted:
- In root explorer navigate to the /system/etc directory.
- At the top of the screen select Mount R/W
- Open the vold.fstab file in root explorer's built-in text editor by long-pressing on the file and then choosing to open in text editor.
- In the vold.fstab file each sdcard has its own entry. Part of that entry is the mount point. One of them says /mnt/sdcard and the other says /mnt/sdcard/_ExternalSD. Simply swap the mount points. You have to keep the names the same and you can't rename the mount points to anything other those 2 options. Just swap them and reboot.
Now your internal sdcard will be mounted at /mnt/sdcard/_ExternalSD and your external sdcarf will be mmounted at /mnt/sdcard.
Its not ideal but it's the only thing I've been able to find that works without too much hackery.
Sent from my LG-P999 using XDA App
Thank you very much that's exactly what I needed
Sent from my LG-P999 using XDA App
phburks said:
In that case it actually pretty easy. You have to edit 1 file. /system/etc/vold.fstab
I find it easiest to do directly from the phone using root explorer. Of course that means you have to be rooted:
- In root explorer navigate to the /system/etc directory.
- At the top of the screen select Mount R/W
- Open the vold.fstab file in root explorer's built-in text editor by long-pressing on the file and then choosing to open in text editor.
- In the vold.fstab file each sdcard has its own entry. Part of that entry is the mount point. One of them says /mnt/sdcard and the other says /mnt/sdcard/_ExternalSD. Simply swap the mount points. You have to keep the names the same and you can't rename the mount points to anything other those 2 options. Just swap them and reboot.
Now your internal sdcard will be mounted at /mnt/sdcard/_ExternalSD and your external sdcarf will be mmounted at /mnt/sdcard.
Its not ideal but it's the only thing I've been able to find that works without too much hackery.
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
That does not seem to work for me see bellow....
Here is my original Vold.fstab:
##Vold 2.0 NVIDIA Whistler fstab
## 20100725, [email protected], Add 2nd external memory
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
################################
THIS IS MY NEW EDITED Vold.fstab
dev_mount extsdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
###############################
Nothing has seemed to change. Everything still only goes to the internal sd.
What is wrong ?
Thanks
PS. I use Weapon G2x 2.6 ROM
Did you reboot after saving the changes?
phburks said:
Did you reboot after saving the changes?
Click to expand...
Click to collapse
Yes I did. So I am at a lost. It looks like it should work tho.
If you go to Settings > SD card & Phone storage what does it say? How many gigs does it say the sdcard is and how many does it say is the Phone memory?
phburks said:
If you go to Settings > SD card & Phone storage what does it say? How many gigs does it say the sdcard is and how many does it say is the Phone memory?
Click to expand...
Click to collapse
Going from memory (phone is off now) sdcard said 4.8 GIG and Phone Memory said like 1.5 GiG ....
Or more to the point, does anyone think they will fix the way the TF memory/partitions are based with the ICS "AiO" Android 4 revision?
While its not an operational annoyance for me (IE most everything works fine), I HATE the fact that the internal memory is mounted as the sdcard instead of as internal memory (like any other device I have used)
I hate that out of 16GB I only have 11.xGB to use (especially when my ROM size before install is only 180Mb extracted... Stock is like 400Mb+) and cant use something like Firerats (at least not that I have found with searching, and yes I know firerats is basically just a repartition tool for MTD not eMMC or anything else) to repartition it to reclaim the wasted space...
From what I understood (and i could be wrong here), its only setup with the Internal memory as an SD instead of... internal memory... is because of Honeycomb, and that the layout is similar to other devices in that its a single memory chip for the internal/system/sd like any other NON Honeycomb device only the internal memory is... well internal memory...
So my question is that can anyone in the know on this subject help me out here...
AFAIK we get one chip for storage. Most stuff expects /sdcard so it makes sense for HC/ICS to be putting our /data/media on /mnt/sdcard with the FUSE thing.
And I can't see any really good reason to change what the norm is on TF101.
Sent from my Transformer TF101 using Tapatalk
I think you'll find that on Froyo/Gingerbread phones with internal memory as well as an SD slot, internal memory has always been mounted as /sdcard/ or /mnt/sdcard/ - the external card is mounted as a subfolder under that. This is for the user's convenience. Can you imagine how it would work to mount the internal memory if there was no external card present otherwise?
I seriously doubt ICS itself will solve the niggling problem of external SD mounting on our TF101s, but Asus may well change the layout so it's under /sdcard/xxxx/ to help matters.
Spidey01 said:
AFAIK we get one chip for storage. Most stuff expects /sdcard so it makes sense for HC/ICS to be putting our /data/media on /mnt/sdcard with the FUSE thing.
And I can't see any really good reason to change what the norm is on TF101.
Sent from my Transformer TF101 using Tapatalk
Click to expand...
Click to collapse
I could understand ASUS placing the internal storage as /sdcard since most stuff does expect/save to /sdcard automatically. Being that the tablet has an advertised 16GB of memory, ASUS probably believed that your every day average Joe wouldn't go out and buy an sd card.
Sent from my DROIDX using XDA App
unfnknblvbl said:
I think you'll find that on Froyo/Gingerbread phones with internal memory as well as an SD slot, internal memory has always been mounted as /sdcard/ or /mnt/sdcard/ - the external card is mounted as a subfolder under that. This is for the user's convenience. Can you imagine how it would work to mount the internal memory if there was no external card present otherwise?
I seriously doubt ICS itself will solve the niggling problem of external SD mounting on our TF101s, but Asus may well change the layout so it's under /sdcard/xxxx/ to help matters.
Click to expand...
Click to collapse
I guess I was a bit vague, I dont actually want it as extra storage or partition, I just want it all as /data instead of /sdcard... all the phone I have and have used (which I admit arent the latest, the newest I have used was an 8GB phone I cant remember the model of) so far didnt actually use /sdcard they just used /data... I have an SD card specificly for being an SD card... I hate having to either remap or manually use a file manager to get my TB files or anything else that uses the fake /sdcard instead of my actual SD card... id prefer all /data bleh...
Hammerfest said:
I guess I was a bit vague, I dont actually want it as extra storage or partition, I just want it all as /data instead of /sdcard... all the phone I have and have used (which I admit arent the latest, the newest I have used was an 8GB phone I cant remember the model of) so far didnt actually use /sdcard they just used /data... I have an SD card specificly for being an SD card... I hate having to either remap or manually use a file manager to get my TB files or anything else that uses the fake /sdcard instead of my actual SD card... id prefer all /data bleh...
Click to expand...
Click to collapse
it IS all on /data. /sdcard or /mnt/sdcard is a FUSE mounted filesystem from /data/media. All space accessible on /sdcard is also accessible on /data.
EDIT:
All my android phones do not do what you claim either, the internal mem is mounted as /mnt/emmc and /data is a 2GB partition on the emmc
lilstevie said:
it IS all on /data. /sdcard or /mnt/sdcard is a FUSE mounted filesystem from /data/media. All space accessible on /sdcard is also accessible on /data.
EDIT:
All my android phones do not do what you claim either, the internal mem is mounted as /mnt/emmc and /data is a 2GB partition on the emmc
Click to expand...
Click to collapse
ok, lets put it this way, nothing is mounted under /sdcard when i look at my phones without my SD card in them... get me now? when I go to phone data I have 7~Gb free listed for apps and such, there is no SD card listed, I dont know how to put it any other way, there is NOTHING in the removable or sdcard directory (the removable doesnt even exist on my phones) until I put one of my MicroSD cards in...
ergo, data is a 2gb partition you say, cool! I want to eliminate the fake sdcard partition then and combine it all into /data! I want the programs that store data on to the /sdcard to ACTUALLY GO TO MY DAMN SDCARD...
what phone do you have that has 7GB of /data/ ?
Hammerfest said:
ok, lets put it this way, nothing is mounted under /sdcard when i look at my phones without my SD card in them... get me now? when I go to phone data I have 7~Gb free listed for apps and such, there is no SD card listed, I dont know how to put it any other way, there is NOTHING in the removable or sdcard directory (the removable doesnt even exist on my phones) until I put one of my MicroSD cards in...
ergo, data is a 2gb partition you say, cool! I want to eliminate the fake sdcard partition then and combine it all into /data! I want the programs that store data on to the /sdcard to ACTUALLY GO TO MY DAMN SDCARD...
Click to expand...
Click to collapse
I said my phones had a 2gb data partition. what I said about the transformer is:
lilstevie said:
it IS all on /data. /sdcard or /mnt/sdcard is a FUSE mounted filesystem from /data/media. All space accessible on /sdcard is also accessible on /data.
Click to expand...
Click to collapse
get it, /sdcard is DIRECTLY linked to /data/media, you lose no space what-so-ever to the /sdcard link.
further more show me a phone that has all the space in /data that is listed as having 16/32GB mem, it is pretty standard, my sgs was /mnt/sdcard, until I flashed CM7 when it was changed to /mnt/emmc, still not seen what you say where a device has all its space as /data
im not saying its not standard, im just saying (as is the original request on my post) that I dont want it mounted as SDCARD because I want my damn programs and sdcard data to do to... you guessed it, my ACTUAL SD CARD...
when I make backups with Titanium Backup, I want them to go to the MicoSD card I have inserted like they would with any other phone/device without having to **** with anything else, same with game/app extra data that uses SD card storage...
I played with an SGS2 today and while i didnt get to play with terminal, I ran TB and the backup went to the MicroSD card inserted and not the internal memory... unlike what the TF does...
infazzdar said:
I could understand ASUS placing the internal storage as /sdcard since most stuff does expect/save to /sdcard automatically. Being that the tablet has an advertised 16GB of memory, ASUS probably believed that your every day average Joe wouldn't go out and buy an sd card.
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
And that buy now after years of PC's with X GB hard drives that they would be used to losing some to the OS and recovery partiton. Especially since Windows and major Linux distro's have gotten excessively FAT.
Sent from my Transformer TF101 using Tapatalk
A lot of the newer tegra phones are set up this way.
Sent from my CushZero using Tapatalk
Hammerfest said:
im not saying its not standard, im just saying (as is the original request on my post) that I dont want it mounted as SDCARD because I want my damn programs and sdcard data to do to... you guessed it, my ACTUAL SD CARD...
when I make backups with Titanium Backup, I want them to go to the MicoSD card I have inserted like they would with any other phone/device without having to **** with anything else, same with game/app extra data that uses SD card storage...
I played with an SGS2 today and while i didnt get to play with terminal, I ran TB and the backup went to the MicroSD card inserted and not the internal memory... unlike what the TF does...
Click to expand...
Click to collapse
hate to break it to you but the SGS2 has a smaller /data partition, then the rest is mounted as /mnt/sdcard.
you do know that TiBU does allow you to select where you save your backup to right?
And for programs that don't (/mnt/sdcard/kindle for example), you can symlink the folder(s) they want to /Removable/MicroSD/(kindle) quite easily.
Sent from my Transformer TF101 using Tapatalk
I agree, its really annoying. A good example is dolphin browser. When I go to back up the settings and bookmarks "to SD" I have to hunt and peck in a file manager to find the stupid file and move it to my actual SD card. I am not at all a fan of the simulated SD card.
Superjoe said:
I agree, its really annoying. A good example is dolphin browser. When I go to back up the settings and bookmarks "to SD" I have to hunt and peck in a file manager to find the stupid file and move it to my actual SD card. I am not at all a fan of the simulated SD card.
Click to expand...
Click to collapse
yep, it annoys the everliving piss outta me, and while programs like TiB can "select" the location, and you can make "simlinks" for specific apps, I dont want to have to go through the hassle, I want to know that any program I use, when it requires the MicroSD, or normally saves to the MicroSD, to save to my &^*^&*%^%& MicroSD...
its as simple as that...
Guys, chill out, it's just a forum on the Internet.
Best alternative to dealing with the design: make a patch se or custom that screws with /init*.rc files accordingly. Main problem (give or take figuring out how to do it) would probably be how the system would react when no MicroSD card is mounted.
Sent from my Transformer TF101 using Tapatalk
lilstevie knows more about the partition structure of Android devices, and the Transformer in particular, than all of those in this thread put together. If you're not willing to take and/or accept that he has answered your questions multiple times and in multiple different ways, I can't help you and this thread is not going to go anywhere.
I am closing this thread.
Hello folks,
I am trying to move my google music cache to the external 32GB SD card so that it won't fill up my internal storage but somehow I fail.
Here is what I did so far:
format sdcard as ext2
manually mount sdcard since it won't automatically when ext:
Code:
mkdir /Removable/MicroSD
mount -r -w -t ext2 /dev/block/vold/179\:9 /Removable/MicroSD
mkdir /Removable/MicroSD/GoogleMusicData
Then move all data from /sdcard/Android/data/com.google.android.music/cache to /Removable/MicroSD/GoogleMusicData/cache
I did this with root explorer since I'm not too much of a terminal h4xx0r.
Delete the folder /sdcard/Android/data/com.google.android.music/
Link the new Folder on external MicroSD Card to the original location via this terminal command:
Code:
ln -s /Removable/MicroSD/GoogleMusicData /data/media/Android/data/com.google.android.music
Since /sdcard is already a link like the one I am setting up here, it is not possible to link to this linked location (/sdcard/Android/data/com.google.android.music).
Instead I had to link to the origninal destination of /sdcard which is /data/media.
Now the microSD card is accessible for root explorer. It shows read and write access.
But google music won't find it. It says that it doesn't have enough space to stream music so I figure that it somehow doesn't have access to the sd card.
What could be the issue here?
Also instead of 28GB free memory root explorer shows me only 364,44MB free memory. the command "df" in terminal however confirms 28GB of free memory.
I thought that a reboot might do it. But it doesn't. Instead it gets rid of all the hacking I've done in terminal. So I guess I would have to place a script in /etc/init.d for the link to be set everytime I reboot, right?
Help please?
We don't know how gmusic checks that, but I would suggest checking the perms on the mount, perhaps even mounting somewhere else.
Never done it and don't have the resources but I'm sure with root, making /mnt/sdcard a real microsd is possible.
Sent from my Transformer Prime TF201 using Tapatalk
Maybe this thread will help ?
Thanks for your response!
What do you mean by "checking the perms on the mount"?
I don't want to mount my microsd to /sdcard since then I would have 16 gigs of unused space on my internal memory.
I would rather just link this music folder to my external card and maybe some others later (e.g. DCIM and so on).
I have also tried the mount -o bind command instead of ln but that didn't do the job either. the folder com.google.android.music then only appeared under /data/media/Android/data/ but not under /sdcard/Android/data/ which I totally don't understand how that can happen.
I have root of course.
Does anybody maybe have a script by hand of a similar undertaking so that I can look into that and try to understand how this whole mounting and binding thing works?
Hello people.
I have read many forum about this trick to mount and bind folder in Android 4.2.2 but I want to make my self a init.d file to invert internal SD and external SD.
For now I have used folder mount (so I have the correct debuggerd file) but is quite slow.
My external SD is mounted in /storage/extSdCard
Anyone can help to understand how can I make the correct script?
Thanks
From universe with my gs4 snapdragon powered!
Anyone can help me?
From universe with my gs4 snapdragon powered!
mattiadj said:
Hello people.
I have read many forum about this trick to mount and bind folder in Android 4.2.2 but I want to make my self a init.d file to invert internal SD and external SD.
For now I have used folder mount (so I have the correct debuggerd file) but is quite slow.
My external SD is mounted in /storage/extSdCard
Anyone can help to understand how can I make the correct script?
Thanks
From universe with my gs4 snapdragon powered!
Click to expand...
Click to collapse
+1
Please dev help us
Basically, I want more app space on the main app partition, rather than having stuff moved to phone storage or USB storage. I don't want to swap the internal storage for external SD card space, I want to change the internal partitioning, if possible. I know it can be done on other phones (e.g. Samsungs with .pit files) but can't find anything about this phone or similar.
Does anyone know how to go about this?
Sent from my HTC One SV using XDA Premium 4 mobile app
xandroid5.1 said:
Basically, I want more app space on the main app partition, rather than having stuff moved to phone storage or USB storage. I don't want to swap the internal storage for external SD card space, I want to change the internal partitioning, if possible. I know it can be done on other phones (e.g. Samsungs with .pit files) but can't find anything about this phone or similar.
Does anyone know how to go about this?
Sent from my HTC One SV using XDA Premium 4 mobile app
Click to expand...
Click to collapse
To make sure I'm understanding correctly, you want to merge the partitions mounted at /data and /sdcard to one partition that mounts at /data while then mounting the external SD to /sdcard?
palmtree5 said:
To make sure I'm understanding correctly, you want to merge the partitions mounted at /data and /sdcard to one partition that mounts at /data while then mounting the external SD to /sdcard?
Click to expand...
Click to collapse
Y'know, that's not exactly what I meant, but I think that might make sense!
All I meant was that I want to extend the "app storage" (i.e. default installation location for apps at /data/app/) using the rest of the internal space, currently recognised by the OS as "phone storage" and/or "USB storage". Am I right in ascertaining that what the OS calls "phone storage" is just /storage/sdcard0/ and "USB storage" /storage/usb/?
Sent from my HTC One SV using XDA Premium 4 mobile app
There is a way to swap your internal sdcard space for your external sdcard space. Essentially giving you up to 32 or 64 gb of space(forgot what max is) I will try to find the link for that. But that's all I know of. Not sure about your request.
HTC K2_PLC_CL