[Q] Swap SD Card and Internal Storage on Xperia V? - Sony Xperia T, TL, TX, V

Hello all, I've been searching for a solution to swap sdcard and internal storage which means real sdcard will mount as /sdcard0 and internal storage will mount as /sdcard1
The point in doing this is because the internal storage is too small, while many of us will play heavy games such as gameloft's game, nfs, etc. and the data will be stored in /sdcard0/android/ . We won't have enough space, so we will mount real sdcard as /sdcard0 so we won't have anymore problem with storage :fingers-crossed:
This is what I've done but I'm just on a halfway done, I need your help!
Here's the original lines in vold.fstab in /system/etc/
dev_mount ext_card /storage/sdcard1 auto /devices/platform/msm_sdcc.3/mmc_host/mmc1
dev_mount usbdisk /storage/usbdisk auto /devices/platform/msm_hsusb_host
fuse_mount sdcard /storage/sdcard0 179 15 /mnt/int_storage
Here's what I tried to change:
dev_mount ext_card /storage/sdcard0 auto /devices/platform/msm_sdcc.3/mmc_host/mmc1
dev_mount usbdisk /storage/usbdisk auto /devices/platform/msm_hsusb_host
dev_mount int_storage /storage/sdcard1 auto /devices/platform/msm_sdcc.1/mmc_host/mmc0
or
dev_mount ext_card /storage/sdcard0 auto /devices/platform/msm_sdcc.3/mmc_host/mmc1
dev_mount usbdisk /storage/usbdisk auto /devices/platform/msm_hsusb_host
dev_mount sdcard /storage/sdcard1 auto /devices/platform/msm_sdcc.1/mmc_host/mmc0
or
dev_mount ext_card /storage/sdcard0 auto /devices/platform/msm_sdcc.3/mmc_host/mmc1
dev_mount usbdisk /storage/usbdisk auto /devices/platform/msm_hsusb_host
fuse_mount sdcard /storage/sdcard1 179 15 /mnt/int_storage
or
dev_mount ext_card /storage/sdcard0 auto /devices/platform/msm_sdcc.3/mmc_host/mmc1
dev_mount usbdisk /storage/usbdisk auto /devices/platform/msm_hsusb_host
fuse_mount int_storage /storage/sdcard1 179 15 /mnt/int_storage
What I've achieved is the real sdcard has mounted as sdcard0 and showed as internal storage when we connect with USB. Yay! :fingers-crossed: We've done what we meant to do ... But the internal storage doesn't mount as sdcard1 . My sdcard is 32gb class 10 so I have nothing to worry about. But I just wondered if there's anyway to fix this problem Plz any dev look for this problem, I think many people want this too as xperia V has a very low internal memory (about 4GB in fact, 2gb has been shared with device memory and more than 1gb is system partition).
I've searched alot, many devices get it worked just by swap the number of sdcard0 and sdcard1 like I did in the 3rd case. But in xperia V, I can't get it totally working.
If you want to try this, make sure you have backed up your rom with CWM. I'm not responsible if you get bootloop / stuck at boot when try to modify this.
Here's the dev_mount arguments , I can't find fuse_mount arguments .
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################

finally, someone decided to makes this kind of thread
i read that on XAS thread, thats to switch sdcard line to ext_card and vice versa on vold.fstab file. tried, and no success.
its bcoz the line at vold.fstab is abit different from XAS.
yes, i sent from my phone using Xda Premium, so what?
Click to expand...
Click to collapse

andrasandhi said:
finally, someone decided to makes this kind of thread
i read that on XAS thread, thats to switch sdcard line to ext_card and vice versa on vold.fstab file. tried, and no success.
its bcoz the line at vold.fstab is abit different from XAS.
Click to expand...
Click to collapse
Yeah, every device has it's own kind of code and sysfs, I think the first line is right. But I don't know what to do with line 3 cuz it's not using device mount but use fuse mount . I try to add dev_mount but no use ...

blackcat510 said:
Yeah, every device has it's own kind of code and sysfs, I think the first line is right. But I don't know what to do with line 3 cuz it's not using device mount but use fuse mount . I try to add dev_mount but no use ...
Click to expand...
Click to collapse
haha
that fuse line make V different :sly:
maybe u can search to other forum, take their vold.fstab then see what u can find there.
yes, i sent from my phone using Xda Premium, so what?
Click to expand...
Click to collapse

andrasandhi said:
haha
that fuse line make V different :sly:
maybe u can search to other forum, take their vold.fstab then see what u can find there.
Click to expand...
Click to collapse
I've searched in many forum, but no vold.fstab uses fuse_mount like xperia V
And I've soft-bricked mah phone 2 times 2day for the f*** sake of this :-<

Please post in the correct section
Please use search
http://forum.xda-developers.com/showthread.php?t=2176411

gregbradley said:
Please post in the correct section
Please use search
http://forum.xda-developers.com/showthread.php?t=2176411
Click to expand...
Click to collapse
I think that is different. That thread wants to move apps 2 SD but this wants to swap internal to external.
Sent from your backyard...
Slender watches what you do...

-SlenderMan- said:
I think that is different. That thread wants to move apps 2 SD but this wants to swap internal to external.
Sent from your backyard...
Slender watches what you do...
Click to expand...
Click to collapse
Yeah, I've been searching but no use cuz there's no document about fuse_mount :"(, so I don't know how to edit the third line T___T

gregbradley said:
Please post in the correct section
Please use search
http://forum.xda-developers.com/showthread.php?t=2176411
Click to expand...
Click to collapse
Sorry, can u move this thread to Q&A, troubleshooting section? I post in wrong section, really sorry :"(

I can't even mount the real SD to sdcard0
Sent from my LT25i using xda premium

any update to this? is there any other way?

concepcionjfq said:
any update to this? is there any other way?
Click to expand...
Click to collapse
I think there is a thread in the theme and app section which does this. Or it may be in the general section. Just search for it

If you look properly in the Xperia V's thread, there's a post. http://forum.xda-developers.com/showthread.php?t=2254918
Sent from my LT25i using Tapatalk 2

could someone swap SD card and internal storage on xperia V ?!
this is my vold.fstab
can someone modify this for all ...
http://firesoft.ir/FireSoftUp/vold.fstab

One of the sollution
I have successfuly mounted external sd as intarnal storage, but there are some limitations. If you would like your applications like camera does not stop working, you need to keep fuse_mount line in vold.fstab. Dont ask me why. Than if you wish still having sd card accessible connecting your phone to USB you have to keep primary partition on your sd card type fat32. So according to this, i have created second primary partiton on my SD card (ext4), than i mount this partition and copied all of the content of internal storage to this partition (cp -dpR ...), and than have created init.d script that remount /storage/sdcard1 to my new partition just after system starts and after fuse_mount do its job. Works fine. In storage settings i see 23 gb internal storage and 37 gb external sd card. This is how i spited my 64 gb card. Init.d scripts works just after you add busybox run-parts /system/etc/init.d line into the /system/etc/install-recovery.sh script. Thats all. I am running stock firmware .140. Sure rooted.

@pc1660
Could you share your works please, especially the part about mounting external sd as internal storage.

hi .. did it work on xperia t ???
i have the same dev_mount on my xperia t , so does it will work ???

Xperia V: swapping internal with external SD mico
dear blackcat510,
i was very happy to have read your post regarding attempts to switch the internal with the external memory storage. unfortunately, it seems that the Xperia V (with the command fuse_mount) is quite unique from the configurations of other handsets. i have rummaged through much of the internet, even entered the SONY forums, to try my luck and find something related to the topic.
unfortunately, your post is the only relevant one, though it doesn't FULLY fix our concerns... i have the same situation as yours and tweaking the file only gives a partial result. it makes me wonder why SONY set up this device in this way, or is this something for all ANDROID devices? i hope that someone would give us a fix soon. my last attempt ruined a 32GB card i had, fortunately, the store i bought it from was kind enough to replace it.
hoping for the best reply and solution soon,
in the meantime, i shall try to see what i can gather about our predicament,
bodega1968

Have you seen the mod here?
http://forum.xda-developers.com/showthread.php?t=2383114
It seems some people in the Xperia Z forum have edited the framework to change the primary storage location. This means while sdcard0 remains the internal card, and sdcard1 the external SD; the edited framework tells all apps to use sdcard1 as the primary storage

Root External 2 Internal SD app worked for me! Whoo hop
I'm not much of an android hacker so I beat my head against my phone until I came upon this app. It just worked. I did not want to install any other OS. Just a rooted Xperia ZR. I think I just had to change the setting for the original location of the external card to be /mnt/ext_card
Root External 2 Internal SD from the play store. Sorry I can't post the link, I am a noob.

Related

[MOD]external sd card under /mnt/sdcard

For those of you that want to use the external sd card on /mnt/sdcard so you can have more space for apps2sd try this.
Try at your own risk.
1. download http://pastebin.com/34AeL00L and rename to vold.fstab
2. open up terminal and navigate to the location of that file
3.
Code:
adb remount
adb push vold.fstab /etc/vold.fstab
adb reboot
It worked for me, however i am not sure it will work for everybody because i dont know if the vold.fstab is created dynamically.
I would appreciate it if you could:
Code:
adb shell cat /etc/vold.fstab
and post the result here.
any one tested????? cmon guys
Is the external sd card faster than the internal one? Could depend on the class of the cards, I don't know.
But if it will show any performance boost if using the external that would be a plus
I noticed you cant mount both cards after this mod. Not sure why though.
Sent from my Optimus 2X using XDA App
Very very interesting
kingzero666 said:
I noticed you cant mount both cards after this mod. Not sure why though.
Sent from my Optimus 2X using XDA App
Click to expand...
Click to collapse
Same result here. Even after restoring original file. Odd.
EDIT: this is how I modified mine. It looks like it is working (as of now, at least).
Code:
#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 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 auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
dev_mount sdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
Doesnt seem to work for me. Still wont mount both cards on my computer.
You should be able to restore the old file at least it worked for me that way.
and if you repartition the internal 5 gb sd, uniting it with the 3 gb (total 8 gb) x apps and remained free on 20Mega only 7.40 gb total? So that does not see the remaining 20mb that we care? So we could install ;-) Maybe all the externalSD 32GB ......
sorry for English not very well written.
For some reason both cards mount on my computer now. Haven't done this or anything at all to make that happen. My extern mount when i plugin without choosing to share the phone.
hahha my version is working now ů owned thank zou
any know how mount back it ?
sh*t.. does not work for me
would be great, cause you can`t install some really useful Apps like Navigon on external SD...
Gameloft Games can`t even not installed on external...
This is a really Problem, can`t understand that not a lot of people are discussing about this issue...
hyperx said:
sh*t.. does not work for me
would be great, cause you can`t install some really useful Apps like Navigon on external SD...
Gameloft Games can`t even not installed on external...
This is a really Problem, can`t understand that not a lot of people are discussing about this issue...
Click to expand...
Click to collapse
because this issue is solved with cm7 rom..all works from external..even gameloft games and navigon etc..!!
its not solved on 2.2.2 stock and custom roms!
OTOGY2002 said:
and if you repartition the internal 5 gb sd, uniting it with the 3 gb (total 8 gb) x apps and remained free on 20Mega only 7.40 gb total? So that does not see the remaining 20mb that we care? So we could install ;-) Maybe all the externalSD 32GB ......
sorry for English not very well written.
Click to expand...
Click to collapse
YOu mean its actually possible to make the Internal Storage and Internal SD into one "large" volume called Internal Storage?
I'm not an expert, I'm trying to mount the external sdcard in /mnt/sdcard/_External like it does in the stock rom
This is Cyanogen vold.fstab:
Code:
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount emmc /mnt/emmc 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
With the mod in the first thread I can see only the external sdcard in /mnt/sdcard meanwhile in mnt/emmc there is nothing
Code:
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0

[Q] SD Card Questions

Hi! And yes I did use search function but all result didn't really help me out.
I just bought this phone and I will replace mine HTC HD2, which I already miss. Oh well this LG seems to be a good phone but I have notice like many people about SD Card problem.
When you check settings and storage info you see that phone have partitioned in to two partition. One for I don't know Intern Memory? And second one seems to be for saving apps/games.
I now have a SD Card 16gb that I mount in and when I use USB connection I get 2 storage to play with, one is around 5gb I think that is phone intern memory?
And second is 14gb that should be external sd card?
I have install several games and apps but I really want them to be on external 16gb and not intern 5gb, I tried Apps2SD but it only move to phone 5gb storage instead of 16gb external. And I don't want to use CM7, I just want to use original firmware until they release 2.3.
Are there any solution for this?
I don't even get to choose where to install games/apps, they just install on phone and than I try to move with Apps2SD but it only go in to phone's memory.
//Cheers
May I ask why you want to do this?
The way this phone mounts your storage cards, you can only use the external card for storage. movies, music and such things, while the internal is used for applications.
the internal card is mounted at /mnt/sdcard, while the external card is mounted in /mnt/sdcard/_ExternalSD. that way you access your external through your internal, and applications will see it as one card. Problem is, most applications don't use _ExternalSD explicitly, they all use the sdcard root directory and take it from there.
For most users this way is the preferred. They save music and such things on external and that way keep the internal from clogging up. 5,5GB for application data is more than enough for most of us.
This phone has a large data partition (1,4GB) where ALL applications are installed (this is android default, and probably nothing to do about). This partition will hold thousands of applications.
But if you would like to switch, it is possible by editing a system file. This will require you to install clockworkmod, preferably a version with adb support.
This may void your warranty, and there is always a slight possibility of bricking the device when working with system files. And I can not guarantee it will work.
I will tell you exactly what to do if you choose to try.
The reason why I want to do this is because I want as much storage as possible, sure 5.5gb might be enough but game like Spectral Souls just took around 1gb data to download. I mean it's kinda stupid not to use SD Card as storage for application also. That's why I kinda miss my old HTC HD2, I could move apps/games to my SD Card without using intern storage.
If there's the only way to install a custom rom I think I will pass.
I like to use it the firmware it come with, using Launcher PRO Plus atm and I love it. Fast and smooth. Oh well.... This is kinda annoying not to be able to use full out of SD Card. But thanks for the info.
Stikkontakt said:
May I ask why you want to do this?
The way this phone mounts your storage cards, you can only use the external card for storage. movies, music and such things, while the internal is used for applications.
the internal card is mounted at /mnt/sdcard, while the external card is mounted in /mnt/sdcard/_ExternalSD. that way you access your external through your internal, and applications will see it as one card. Problem is, most applications don't use _ExternalSD explicitly, they all use the sdcard root directory and take it from there.
For most users this way is the preferred. They save music and such things on external and that way keep the internal from clogging up. 5,5GB for application data is more than enough for most of us.
This phone has a large data partition (1,4GB) where ALL applications are installed (this is android default, and probably nothing to do about). This partition will hold thousands of applications.
But if you would like to switch, it is possible by editing a system file. This will require you to install clockworkmod, preferably a version with adb support.
This may void your warranty, and there is always a slight possibility of bricking the device when working with system files. And I can not guarantee it will work.
I will tell you exactly what to do if you choose to try.
Click to expand...
Click to collapse
You don't need a custom rom, but you need clockworkmod recovery to update the system file needed to change the mounts.
But I still don't see the reason why you need this.. your card is probably also waaay slower than the internal memory
anyways, here's the steps.
create a folder called _ExternalSD in your external SD card
install clockworkmod recovery, download a version supporting adb here on the forum
connect your phone to your computer via usb and make sure drivers are installed.
download ADB: http://dl.dropbox.com/u/27197205/ADB.rar
extract archive, open command prompt on that folder
reboot into recovery by holding vol down and power until the second lg logo appears, then release both
go to mounts and storage in CWM and mount /system
run pull.bat from command prompt. you should get confirmation that one file was transferred
in the files folder inside ADB folder there is a file called vold.fstab. make a copy for backup. Open it in a text editor
i don't have the original vold.fstab available, so not sure exactly what it says, but there are two lines on the bottom.
They probably says (not necessarily in this order)
dev_mount sdcard /mnt/sdcard auto (and something more here)
dev_mount sdcard /mnt/sdcard/_ExternalSD auto (and something more here)
switch this part, leaving everything from auto where it is.
save file and run push.bat from command prompt, you should get a confirmation that file is transferred.
reboot and check if everything is OK. This should work, but if you or some reason get memory card errors after boot, restore the original vold.fstab and I'll look into it.
Hmm I get stuck on part where I run ADB on PC and use pull, it doesn't give me any file in files folder.
On command Promp:
C:\ADB>adb pull /system/etc/vold.fstab /files
*daemon not running. starting it now on port 5037 *
* daemon started successfully *
111 KB/s <682 bytes in 0.006s>
That's what I get, but no file in files folder.
Stikkontakt said:
anyways, here's the steps.
create a folder called _ExternalSD in your external SD card
install clockworkmod recovery, download a version supporting adb here on the forum
connect your phone to your computer via usb and make sure drivers are installed.
download ADB: http://dl.dropbox.com/u/27197205/ADB.rar
extract archive, open command prompt on that folder
reboot into recovery by holding vol down and power until the second lg logo appears, then release both
go to mounts and storage in CWM and mount /system
run pull.bat from command prompt. you should get confirmation that one file was transferred
in the files folder inside ADB folder there is a file called vold.fstab. make a copy for backup. Open it in a text editor
i don't have the original vold.fstab available, so not sure exactly what it says, but there are two lines on the bottom.
They probably says (not necessarily in this order)
dev_mount sdcard /mnt/sdcard auto (and something more here)
dev_mount sdcard /mnt/sdcard/_ExternalSD auto (and something more here)
switch this part, leaving everything from auto where it is.
save file and run push.bat from command prompt, you should get a confirmation that file is transferred.
reboot and check if everything is OK. This should work, but if you or some reason get memory card errors after boot, restore the original vold.fstab and I'll look into it.
Click to expand...
Click to collapse
I see I did something wrong in the pull.bat file
it should say
adb pull /system/etc/vold.fstab files
Hmm.... What should I do now? I mean what should I type in command prompt? just pull? or more command? to get vold file.
Should I re-download your ADB? XD
EDIT: Hm I reboot phone both intern memory and extern memory doesnt show up.
Stikkontakt said:
I see I did something wrong in the pull.bat file
it should say
adb pull /system/etc/vold.fstab files
Click to expand...
Click to collapse
just type
adb pull /system/etc/vold.fstab files
EDIT: Hm I reboot phone both intern memory and extern memory doesnt show up.
Aaah I got file now:
## Vold 2.0 NVIDIA Whistler fstab
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
## 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
It's those up lines there dev_ right?
Stikkontakt said:
just type
adb pull /system/etc/vold.fstab files
Click to expand...
Click to collapse
Try:
## 20100725, [email protected], Add 2nd external memory
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
or if that fails
## 20100725, [email protected], Add 2nd external memory
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
Stikkontakt said:
or if that fails
## 20100725, [email protected], Add 2nd external memory
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
Click to expand...
Click to collapse
I tried this one, so I just run push, how do I know if it have upload to phone?
you should get a confirmation if you ran it from a command prompt.
Stikkontakt said:
you should get a confirmation if you ran it from a command prompt.
Click to expand...
Click to collapse
I did on second and when I boot in to phone, both memory extern and intern got no recognize both dont show up. Im gonna try first one you post now.
when I type push it say:
55 KB/s <679 bytes in 0.012s>
Is this confirmation?
EDIT: Both don't work. My Intern and external doesn't show in phone. Did I do something wrong?
that means something transferred, so yes, it's kind of a confirmation..
Stikkontakt said:
that means something transferred, so yes, it's kind of a confirmation..
Click to expand...
Click to collapse
Both don't work. My Intern and external doesn't show in phone. Did I do something wrong?
Probably not. I have CM7 installed, so I'm not able to test myself. Therefore hard to get it right
Try this:
Code:
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
Stikkontakt said:
Probably not. I have CM7 installed, so I'm not able to test myself. Therefore hard to get it right
Try this:
Code:
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
Click to expand...
Click to collapse
Doesn't work but I have a question, maybe I did wrong. Should it say like this?
## 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
or
## 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
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1 /devices/platform/tegra-sdhci.2/mmc_host/mmc0
I mean should I replace what you give me? or add them 2 more extra line?
you should only have two dev_mount lines after ## 20100725, [email protected], Add 2nd external memory
just like your original file..

[REQ] [SOLVED] For Internal / External SD SWAP

Hi guys, I believe that this has been bumped numerous times. But I would appreciate it if some one could upload a .zip for cwm to patch the system.
Basically I would like to swap the internal sd dir to external sd dir vice versa so that I can install games and applications on my external sd card. I tried to mod the vold. but in the end it shows that both drives are unavailable.
Please help.
Code:
## Vold 2.0 NVIDIA Whistler fstab
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
## 20100725, [email protected], Add 2nd external memory
#LGE_CHANGE_S[[email protected]] change for issue: not able to boot with corrupted SD card
#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.2/mmc_host/mmc1
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.3/mmc_host/mmc0
After I did this, the device can't mount either the internal or external sd. It says unavailable in the storage page.
Sorry mate I have only tried it to Django Manouche ROM.
raz0r9199 said:
After I did this, the device can't mount either the internal or external sd. It says unavailable in the storage page.
Click to expand...
Click to collapse
bro post up ur original vold.fstab file and ill edit it to make it work
Swap on internal sdcard is very much risky and not at all recommended. Because swap write very often reduntantly which can damage phone internal flask memory . You can use it on external card which is if cause damage then even cost-effective. Best idea would be zram/compcache
Sent from my LG-P990 using Tapatalk
raz0r9199 said:
Hi guys, I believe that this has been bumped numerous times. But I would appreciate it if some one could upload a .zip for cwm to patch the system.
Basically I would like to swap the internal sd dir to external sd dir vice versa so that I can install games and applications on my external sd card. I tried to mod the vold. but in the end it shows that both drives are unavailable.
Please help.
Click to expand...
Click to collapse
Why would you wanna do it the hard way?
There's a setting for this:
Check the Settings->Cyanogenmod Settings->Application->Use Internal Storage setting and that should swap your internal and external SD.
Hope this helps
Hi bro, I'm using stock gingerbread from LG and thats the problem. I'm on fps 0.2a kernel for now and this is my vold.fstab.
## Vold 2.0 NVIDIA Whistler fstab
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
## 20100725, [email protected], Add 2nd external memory
#LGE_CHANGE_S[[email protected]] change for issue: not able to boot with corrupted SD card
#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/mmc0
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
Click to expand...
Click to collapse
#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/mmc0
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
I have the same and here it works and external sdcard is on_ExternalSD. What else did you do and what is your ROM.
Playing with that is always risky, and to be honest I can't see your point.
3 out of 6 people can't read correct the first post
orlox said:
3 out of 6 people can't read correct the first post
Click to expand...
Click to collapse
I read and understood and I still don't catch the point.
I think the point is to swap InternalSD (about 4GB) with ExternalSD (or microsdcard) that may be more than 32GB up to each user can buy microsdcard.
So you can do like this
1.make dirrectory /mnt/sdcard/_InternalSD
2.edit vold.fstab to
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount emmc /mnt/sdcard/_InternalSD 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
3.add or edit build.prop to
ro.additionalmounts=/mnt/sdcard/_InternalSD
after reboot you will get sdcard map to your microsdcard (see picture) and use all total space may be 32GB as sdcard BUT one problem is you will not use the original 4GB it will say empty and unaviable (let I try to seek how to solve this and will update later)
k101d said:
I think the point is to swap InternalSD (about 4GB) with ExternalSD (or microsdcard) that may be more than 32GB up to each user can buy microsdcard.
So you can do like this
1.make dirrectory /mnt/sdcard/_InternalSD
2.edit vold.fstab to
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount emmc /mnt/sdcard/_InternalSD 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
3.add or edit build.prop to
ro.additionalmounts=/mnt/sdcard/_InternalSD
after reboot you will get sdcard map to your microsdcard (see picture) and use all total space may be 32GB as sdcard BUT one problem is you will not use the original 4GB it will say empty and unaviable (let I try to seek how to solve this and will update later)
Click to expand...
Click to collapse
so its not possible to make use of both the internal storage 5 gigabyte and the external sd card at the same time rite
lopiop said:
so its not possible to make use of both the internal storage 5 gigabyte and the external sd card at the same time rite
Click to expand...
Click to collapse
Sorry I not use stock now but modify of vold.fstab work perfect with MiUI rom it only can't use internalsd space for stock rom like V20 may be depend on android version 2.3.4 (CM7 and MiUI is 2.3.7X) so I give up now and look forward to use CM7 or MiUI instead.
Thanks guys finally managed to get it to work. The reason why I'm doing this. Some applications, although you can move to the external sd card, but some files still reside in the internal sd card, so when you have loads of apps, the available storage for your internal memory will go down.
Correct me if I'm wrong.

[Q] Swap memory internal as external, ics stock TG 28g, plz help?

Can someone help me
i want to put external sd as internal sd like CM7, someone can edit vold.fstab or help how to do this with any program? Sorry my bad english.
Upload original cold.Fatah here
Sent from my LG-P990 using xda app-developers app
spica1234 said:
Upload original cold.Fatah here
Sent from my LG-P990 using xda app-developers app
Click to expand...
Click to collapse
The original vold.fstab is like that. Thanks by the reply, and sorry again my bad english
## Vold 2.0 fstab for star
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
# Mounts the first usable partition of the specified device
# dev_mount sdcard /mnt/sdcard2 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
# MOBII_CHNANGE_S 20120413 [email protected] : apply Internal SD & UMS
dev_mount sdcard /mnt/sdcard 11 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
dev_mount extsdcard /mnt/sdcard/external_sd auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
# MOBII_CHNANGE_E 20120413 [email protected] : apply Internal SD & UMS
kalashi said:
The original vold.fstab is like that. Thanks by the reply, and sorry again my bad english
## Vold 2.0 fstab for star
#######################
## Regular device mount
##
## Format: dev_mount
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## - List of sysfs paths to source devices
######################
# Mounts the first usable partition of the specified device
# dev_mount sdcard /mnt/sdcard2 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
# MOBII_CHNANGE_S 20120413 [email protected] : apply Internal SD & UMS
dev_mount sdcard /mnt/sdcard 11 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
dev_mount extsdcard /mnt/sdcard/external_sd auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
# MOBII_CHNANGE_E 20120413 [email protected] : apply Internal SD & UMS
Click to expand...
Click to collapse
dev_mount extsdcard /mnt/sdcard/external_sd auto /devices/platform/sdhci-tegra.3/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard 11 /devices/platform/sdhci-tegra.2/mmc_host/mmc1
It should work. Or the code below should work.
dev_mount extsdcard /mnt/sdcard/external_sd 11 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
Sent from my LG-P990 using xda app-developers app
spica1234 said:
dev_mount extsdcard /mnt/sdcard/external_sd auto /devices/platform/sdhci-tegra.3/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard 11 /devices/platform/sdhci-tegra.2/mmc_host/mmc1
It should work. Or the code below should work.
dev_mount extsdcard /mnt/sdcard/external_sd 11 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
Sent from my LG-P990 using xda app-developers app
Click to expand...
Click to collapse
Thx spica, but now mms crash, options>storage crash. And shows the message "sd card unmounted or not present"
My vold.fstab now it's like that
## Vold 2.0 fstab for star
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
# Mounts the first usable partition of the specified device
# dev_mount sdcard /mnt/sdcard2 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
# MOBII_CHNANGE_S 20120413 [email protected] : apply Internal SD & UMS
dev_mount extsdcard /mnt/sdcard/external_sd 11
/devices/platform/sdhci-tegra.3/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
# MOBII_CHNANGE_E 20120413 [email protected] : apply Internal SD & UMS
It's right ? And thx for help =)
Try the 1st code, does it work?
Sent from my LG-P990 using xda app-developers app
spica1234 said:
Try the 1st code, does it work?
Sent from my LG-P990 using xda app-developers app
Click to expand...
Click to collapse
I try both codes, not sucess, i need to re install the rom to normalize sd card. If you not understand me i'll write with Google translate, i'm english begginer =(.
I replaced the vold with the one from cm9 (same as what we did in v28a leak)
and add the followings in vold.fstab:
dev_mount extsdcard /mnt/sdcard/external_sd auto /devices/platform/sdhci-tegra.3/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard 9 /devices/platform/sdhci-tegra.2/mmc_host/mmc1
Now I can mount the external sd as internal, but instead, can't mount the internal sd card...
t99220475 said:
I replaced the vold with the one from cm9 (same as what we did in v28a leak)
and add the followings in vold.fstab:
dev_mount extsdcard /mnt/sdcard/external_sd auto /devices/platform/sdhci-tegra.3/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard 9 /devices/platform/sdhci-tegra.2/mmc_host/mmc1
Now I can mount the external sd as internal, but instead, can't mount the internal sd card...
Click to expand...
Click to collapse
You can post how vold. Fstab is now?
U can also use an work around by using Directory Bind app.
Sent from LG 2X using Tapatalk 3 Beta
Rayman96 said:
U can also use an work around by using Directory Bind app.
Sent from LG 2X using Tapatalk 3 Beta
Click to expand...
Click to collapse
But when use directory bind, you can move only game data like gameloft games, right?
Same problem here
Tried to invert vold.fstab locations to test if extsd mounts to /sdcard and no go.... luckly I made a backup of the file so I would not have to use CWM to revert the stuff
And I don´t even play a lot of games, only casual, crosswords, puzzles...
What I use are apps that sync music from itunes to android, like isyncr and doubletwist
And the only app that could "see" my external sd as location was doubletwist airsync
Good app, but... the PC app is SLOW as hell, it took 1h30 to import my itunes playlist, since it does not "sync" itunes for real, it copies the itunes libraries and then sync it to the phone, and does not refresh the itunes library if you add or remove songs from the imported playlist
Is there any work in progress to invert the mount locations ? Since the internal storage is small to place my music
tks
cristiano.orlando said:
Same problem here
Tried to invert vold.fstab locations to test if extsd mounts to /sdcard and no go.... luckly I made a backup of the file so I would not have to use CWM to revert the stuff
And I don´t even play a lot of games, only casual, crosswords, puzzles...
What I use are apps that sync music from itunes to android, like isyncr and doubletwist
And the only app that could "see" my external sd as location was doubletwist airsync
Good app, but... the PC app is SLOW as hell, it took 1h30 to import my itunes playlist, since it does not "sync" itunes for real, it copies the itunes libraries and then sync it to the phone, and does not refresh the itunes library if you add or remove songs from the imported playlist
Is there any work in progress to invert the mount locations ? Since the internal storage is small to place my music
tks
Click to expand...
Click to collapse
I have more than 150 apps to install, includes apps, and games, i really need invert storage locations =/
kalashi said:
But when use directory bind, you can move only game data like gameloft games, right?
Click to expand...
Click to collapse
Ou can move any app data, no matter what app. You bind directories to other path.
Sent from LG 2X using Tapatalk 3 Beta
Rayman96 said:
Ou can move any app data, no matter what app. You bind directories to other path.
Sent from LG 2X using Tapatalk 3 Beta
Click to expand...
Click to collapse
That's great, you can send me a link or search word? =)
kalashi said:
That's great, you can send me a link or search word? =)
Click to expand...
Click to collapse
Literally the very first result from a Google search for 'directory bind'
http://forum.xda-developers.com/showthread.php?t=1410262
Sent from my LG-P990 using Tapatalk 2
kingvortex said:
Literally the very first result from a Google search for 'directory bind'
http://forum.xda-developers.com/showthread.php?t=1410262
Sent from my LG-P990 using Tapatalk 2
Click to expand...
Click to collapse
Thx bro, i'll try this, but if anyone know how to modify vold.Fstab please share here =)
Hi
Any news about changing vold.fstab ?
tks
Nothing bro =/
Sent from my LG-P990 using xda app-developers app
would be nice to have a .zip for it
I need the external as internal have 6gb gamedata on sd card. So internal sd cant handel that....
And other ways i also to lazy to move some to internal, so for me no ics, till i get my galaxy s2. Getting sick of bad battery life can fave 20h if im lucky.... only 2g. 3g is realy rare with this phone....
But now its alroght have undervolt -50mv. And cores a 800 and 2nd goes on a 600mhz, and off by 400. Saves battery but still i come from a samsung so thisnbattery life for me is not cool

invert mount sdcard cm10.1 old bootloader

hi can anyone give the lines in vold.sftb thing to get sdcard ass internal and internal as sdcard
the stock 5gb isnt enough, have all data on my 16gb sdcard, help plz
tried some changes but i get bootloop then (i put out my sd card dont want i to be formated) dont know if phne dont like that.
here is what i have found in the zip
dev_mount sdcard /storage/sdcard1 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount emmc /storage/sdcard0 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
and mine on cm10.1 loooks liks this
dev_mount sdcard /storage/sdcard1 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
dev_mount emmc /storage/sdcard 9 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
dont have mmc2 but mmc0
and it's not sd card0 9 but just 9
and the sdhci is first then tegra and in zip its tegra first
"just changed sdcard1 auto to sdcard0 auto"
"and sdcard 9 to sdcard1 9"
got boot loop,
use directorybind safer than editing vold.fstab
grimmyrippy said:
use directorybind safer than editing vold.fstab
Click to expand...
Click to collapse
Hummm nan i just want to have sd card as internal. Always had on cm7 so want on cm10 also.
Just want to have or a .zip (which i will check first if its looks like mine) dont want it again in bootloop.
Or just the lines.
But first time when i edit line i never boot with my 16gb sd. Scared thay it will format it self or somethinf.
AW: invert mount sdcard cm10.1 old bootloader
I have the same problem with cm10.1, that's the reason why i go back to cm10.
But it were great if someone had a solution.
Sent from my LG-P990 using xda app-developers app
Jader12345 said:
I have the same problem with cm10.1, that's the reason why i go back to cm10.
But it were great if someone had a solution.
Sent from my LG-P990 using xda app-developers app
Click to expand...
Click to collapse
Ow.... mmmm yeah i just need the invert mount all my data is on sdcard. I never used the internal 5gb is noting. And if i use nvflash it wipes intern sd. So i never stor any thing import on it.

Categories

Resources