[S] Acer Iconia B1 A71 SD internal to External Swap - Android Q&A, Help & Troubleshooting

[Solved] SD internal to SD external Swap
Required
ROOT
i installed FX explore (free)
and installed the FX explore root addon also free
You must have root to edit the etc/vold.fstab file ok
all you have to do is edit the etc/vold.fstab file and swap the items marked in red ok then save and reset the iconia with a pin next to power button
when it reboots you will have the external sdcard as the main internal memory and the old internal memory will be shown as the new external sdcard this gives you a internal memory upto 32 gig
the guide..
gain root
install fx explorer and root addon
run fx explorer
when it opens click on the System(root) icon
a popup will ask to confirm root access click ok
open the folder etc
scroll to find file volt.fstab
at the bottom you will see menu items file , view , Tools , windows, click on tools item
select the option mount read-write
on the popup tick i understand the risk and then ok
tap on vold.fstab and a open with box pops up select text editor
look at the text and you will see 2 lines that do not start with a #
those are the 2 lines you need to edit
only 4 edits are required ok
on the first line to edit swap the first 2 0s to 1s
on the 2nd line to edit swap the first 2 1s to 0s
check below to see what it should look like and make sure yours looks the same
then after you have edited it select the menu item file and hit save
reboot your iconia and enjoy all that extra space to install crap to
this is what it looks like BEFORE the edit
dev_mount sdcard /storage/sdcard0 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
this is what it looks like AFTER the edit
dev_mount sdcard /storage/sdcard1 [email protected] /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /storage/sdcard0 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.1/mmc_host
below is my edited file ok
Code:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
dev_mount sdcard /storage/sdcard[COLOR="Red"]1[/COLOR] [email protected] /devices/platform/goldfish_mmc.[COLOR="Red"]1[/COLOR] /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /storage/sdcard[COLOR="Red"]0[/COLOR] auto /devices/platform/goldfish_mmc.[COLOR="Red"]0[/COLOR] /devices/platform/mtk-sd.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
notes
if you do this and then remove the sdcard the iconia will still boot but will have no internal sdcard as the original internal sd will still be set as external sd.
also any apps you have installed on the sd card you have removed will still show up on the iconia desktop but if you click to run one it will say NOT INSTALLED
just reinsert the sdcard and all will work . the reason im saying this is i have 2 32 gig sdcards and have the desktop setup in folders so i can switch sdcards and run apps
that are on the current inserted sdcard this gives me almost unlimited storage .

..

screen shot of storage after swapping

What about the content of the internal sd and external sd. will it get wiped?
Can i add this external swap as a feature to my python script?

entonjackson said:
What about the content of the internal sd and external sd. will it get wiped?
Can i add this external swap as a feature to my python script?
Click to expand...
Click to collapse
No it did not wipe any thing ' but if you copy the contents of the internal drive to the external drive before you alter the volt.fstab file all installed apps are OK if you don't then when you click an app on the desktop it says app not installed as it looks at he wrong sdcard for app folder
So if your script could maybe format the 32 gig SD card then copy the contents of the internal over then do the volt.fstab edit then reboot I'm sure
That would work - bear in mind you have to have root to do the as you have to unmount and remount read write to alter the /etc/volt.fstab
But I'm very happy to test Any script that may be written ,
Maybe the script could have it as a menu option so you can run it . And even have the option to restore it back ?
Dave

bullbrand said:
No it did not wipe any thing ' but if you copy the contents of the internal drive to the external drive before you alter the volt.fstab file all installed apps are OK if you don't then when you click an app on the desktop it says app not installed as it looks at he wrong sdcard for app folder
So if your script could maybe format the 32 gig SD card then copy the contents of the internal over then do the volt.fstab edit then reboot I'm sure
That would work - bear in mind you have to have root to do the as you have to unmount and remount read write to alter the /etc/volt.fstab
But I'm very happy to test Any script that may be written ,
Maybe the script could have it as a menu option so you can run it . And even have the option to restore it back ?
Dave
Click to expand...
Click to collapse
Thanks for the info.
Yes I want to do something like a Iconia B1 toolkit, including the rooting features i currently have in the python script.
If I add this Internal SD <-> External SD Swap feature, of course i would add options to
backup data from external sd
format external sd
revert to default fstab

entonjackson said:
Thanks for the info.
Yes I want to do something like a Iconia B1 toolkit, including the rooting features i currently have in the python script.
If I add this Internal SD <-> External SD Swap feature, of course i would add options to
backup data from external sd
format external sd
revert to default fstab
Click to expand...
Click to collapse
that would be an excellent tool
and as more features get discovered am sure the tool could grow even more
ps
i had a look at the engineer mode.apk but cant figure out how to call directly the -> Connectivity -> CDS Information -> Network Utility
or even any way to run the engineer mode without running a dial app to enter the #*#*3646633#*#* , would be sweet if it could be directly called
as the script would not require any user input . maybe someone (pawit) can figure out a command to fire up engineer mode and run the
/data/local/tmp/busybox telnetd -l /system/bin/sh -p 1234 in one step ?.
shame we can't get our own forum here for the B1 i have requested one but got no response .

I think at least i could call the engineer mode apk, as this is possible with the adb shell, but of course it would be awesome to switch to the network utility.
pasting the command into that line and invoke the Run button seems to be impossible.

bullbrand said:
[Solved] SD internal to SD external Swap
tou must have root to edit the vold.fstab file ok
all you have to do is edit the vold.fstab file and swap the items marked in red ok then save and reset the iconia with a pin next to power button
when it reboots you will have the external sdcard as the main internal memory and the old internal memory will be shown as the new external sdcard this gives you a internal memory upto 32 gig
only 4 edits are required ok
swap the 0s to 1s
swap the 1s to 0s
this is what it looks like before the edit
dev_mount sdcard /storage/sdcard0 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
this is the original vold.fsab file on iconia
just find the 2 lines and edit the 4 parts marked in red
below is my edited file ok
Code:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
dev_mount sdcard /storage/sdcard[COLOR="Red"]1[/COLOR] [email protected] /devices/platform/goldfish_mmc.[COLOR="Red"]1[/COLOR] /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /storage/sdcard[COLOR="Red"]0[/COLOR] auto /devices/platform/goldfish_mmc.[COLOR="Red"]0[/COLOR] /devices/platform/mtk-sd.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
Click to expand...
Click to collapse
Hi Bullbrand,
Can u help me to make step by step.
What app requirment ?
Where is the file vold.fstab
How to change file permission ,
Etc.
Thanks for your sharing.
Note : system already rooting
Regards
From Newbie

youps.
Done I am using Root Explorer, very easy....
Regrads

Just a noob question.. This is like in the older phones we make a partition in the sd card to use it as our internal memory for more apps? Or this is like ONLY using our external sd card as our internal sd memory? Does this lag the tablet because i remember that when you make a partition on the sd card it tends to lag

Eduardogv said:
Just a noob question.. This is like in the older phones we make a partition in the sd card to use it as our internal memory for more apps? Or this is like ONLY using our external sd card as our internal sd memory? Does this lag the tablet because i remember that when you make a partition on the sd card it tends to lag
Click to expand...
Click to collapse
No , the phone has 1 gig internal always and all this does is swap what it installs the main app data to I'm using a class 10 32 gig SD and there is no speed difference IMO the only diffance is I can now install more apps before. Get the running out of space message ,
It works well for me OK.

cakadut said:
Hi Bullbrand,
Can u help me to make step by step.
What app requirment ?
Where is the file vold.fstab
How to change file permission ,
Etc.
Thanks for your sharing.
Note : system already rooting
Regards
From Newbie
Click to expand...
Click to collapse
great to see you managed the edit ok.
i have updated the first post with a step by step guide to doing it for anyone else trying to do this ok..
dave

hye there, i love your work for tablet iconia b1, just a question, can i use quite same method on other device? for swap sd for sure.

Yes no reason you can't

bullbrand said:
Yes no reason you can't
Click to expand...
Click to collapse
With android commander this is a peace of cake, you can do it on your computer, copy and paste the lines in,remove the old, reboot, finished.
Did it a long time ago, and you have a benefit, sometimes your tablet/phone has a problem and won't start, get out the SD card, find the error, remove it, and voila... most of the time when you remove an app, it leaves garbish.. with the sdcard in my computer I can clean up the mess

trouble
i am having trouble gaining root access i have downloaded the programs and add on but it says i do not have root access how is this granted??

Can you make a flasheable zip please?
Enviado desde mi GT-I8160 usando Tapatalk 2

here explain how to install V6 rooteados phone. Perfect for managing memory ram
http://forum.xda-developers.com/showthread.php?p=40747730
Enviado desde mi GT-I8160 usando Tapatalk 2

bullbrand said:
No , the phone has 1 gig internal always and all this does is swap what it installs the main app data to I'm using a class 10 32 gig SD and there is no speed difference IMO the only diffance is I can now install more apps before. Get the running out of space message ,
It works well for me OK.
Click to expand...
Click to collapse
Question: Is possible to Increase the internal storage?

Related

Change internal and external sdcard mounts

I do not like how the internal sdcard is the default data storage instead of the external sdcard. I've had to factory reset a couple times now and all app data, downloads, etc.. were erased. That and if something happens to the phone the data would be lost. I remembered it was like this on one of the tabs I had so dug around a bit and found a mod to the vold.fstab file.
This file is in etc/ and also system/etc/
(not sure why it says HTC Passion???)
Code:
## Vold 2.0 fstab for HTC Passion
#
## - San Mehat ([email protected])
##
#######################
## 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/sdcard 37 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard2 /mnt/sdcard/ext_sd auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
If I read the mod correctly you would have to change the sdcard to sdcard2 and vice versa like this:
Code:
dev_mount sdcard2 /mnt/sdcard 37 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard/ext_sd auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
What I'm not sure on is if it is the same for phones as it is for tablets and is this the correct way to change the sdcard mounts? I am thinking the mod needs to be done on both files and if this is the correct way it may be hit or miss if the mod sticks after a temp root reboot.
i'm really curious about this too. i want to figure it out so as soon as i get s-off i can change the mounts. this has already bit me in the a$$ once with this phone and i lost some stuff.
Do u mean like if ur downloading files and how data is stored that way? Just curious, because it is annoying to me as well.
"BEATin" through "REZOUNDingly"
youngpettyboi said:
Do u mean like if ur downloading files and how data is stored that way? Just curious, because it is annoying to me as well.
"BEATin" through "REZOUNDingly"
Click to expand...
Click to collapse
Some applications are correctly downloading files to the external SD card where storage is supposed to go. But other applications (usually older not updated) have the tendency to use the internal SD card. This becomes an issue when you factory reset and the internal SD is wiped. Some people have lost their data unexpectedly.
I guess I'm the only one who likes the way this is set up, I hated it when apps would crap up my sdcard with all their data. As for changing the mount points you would need to be rooted to accomplish that.
I got hit hard when all my downloaded pics from mms where wiped
I'll try it this weekend and see what happens and if it sticks after reboot. I wonder if it does work, would a factory reset wipe the external card if it is not removed. Well I won't test that theory but I would like to at least see if the mounts are able to be changed with only temp root.
You should be able to remount if Android supports the "-o remount" flag in mount. I believe it does. I don't think this will persist beyond a reboot but if it does, then I'd like to do something a little more intricate. Mount 10GB(of external SD) to /sdcard/music and 2GB to /sdcard/DCIM and 4 GB to /sdcard/Download or something like that. Might cause hell connecting to a PC though..
you need to be root to mount devices, also just issuing the command won't persist beyond reboots, you need to place it in the equivalent of fstab.
That's what I'd thought too.
/system/etc/vold.fstab would need to repoint /sdcard to the real external
card. And something to the /sdcard fuse re-director for the internal memory.
Right now, I sync /sdcard/Kindle and /sdcard/Nook to their corresponding
/sdcard2 directories so my user data (side loaded books) can be found
since those apps are written to Froyo's SDK level. I've written to both vendors
and they say their developer's are working on updates in support of the
ICS level of SDK. They both thought the simple solution of a configurable
option to use as an 'app root' for where to look for its data made sense.
That would workaround future directory moves in the OS.
A full scan of user space, like Titanium Backup, does for its
data directory works too.
Would the hboot wipe / write rom functions be using the
/dev/<devicename> or their mount points to do its writing?
I'm guessing the built in recovery's fstab would be pointing all
at the internal memory directories and partitions, be cause it would
not be aware of customization in the running OS's /system/etc.
I'd guess whatever custom recovery get put together, would be
aware of int_flash vs ext_flash memory locations.
As far as downloading stuff, you can change that thru your browser. It gives you the option to download stuff to your internal SD or external in the options. Not sure if any of you knew that. For pics, GOSMS always saves my pics on the Ext SD card by default. I actually like it like this better. I hated the Dinc since it would always run out of space and had to use my Ext SD Card for apps.
/sdcard is part of the internal flash erased by a hard reset
So since by default, there isn't a way to save user data programatically,
or by virtue of being a physically separate partition, it gets wiped too.
I manually mount the /sdcard and /sdcard2 directories to windows
and sync them with desktop directories for backup, daily.
I wonder if anyone has (or knows of) an android app to sync
between /sdcard and /sdcard2 sub-directories? I mean,
to use /sdcard2/Kindle and /sdcard2/Nook for example as
backups of the e-book databases on /sdcard (which is subject
to erasure by accident).
Does Titanium's sync app do that?
Thanks
Therev29 said:
I do not like how the internal sdcard is the default data storage instead of the external sdcard. I've had to factory reset a couple times now and all app data, downloads, etc.. were erased. That and if something happens to the phone the data would be lost. I remembered it was like this on one of the tabs I had so dug around a bit and found a mod to the vold.fstab file.
This file is in etc/ and also system/etc/
(not sure why it says HTC Passion???)
Code:
## Vold 2.0 fstab for HTC Passion
#
## - San Mehat ([email protected])
##
#######################
## 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/sdcard 37 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard2 /mnt/sdcard/ext_sd auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
If I read the mod correctly you would have to change the sdcard to sdcard2 and vice versa like this:
Code:
dev_mount sdcard2 /mnt/sdcard 37 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard/ext_sd auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
What I'm not sure on is if it is the same for phones as it is for tablets and is this the correct way to change the sdcard mounts? I am thinking the mod needs to be done on both files and if this is the correct way it may be hit or miss if the mod sticks after a temp root reboot.
Click to expand...
Click to collapse
Just made this change on my ReZound, and its stuck in a boot loop. So I suggest doing a nandroid backup before trying it!
Let me know if anybody does this mod successfully...
lennysh said:
Just made this change on my ReZound, and its stuck in a boot loop. So I suggest doing a nandroid backup before trying it!
Let me know if anybody does this mod successfully...
Click to expand...
Click to collapse
Code:
dev_mount sdcard /mnt/sdcard 37 /devices/platform/msm_sdcc.3/mmc_host/mmc2
dev_mount sdcard2 /mnt/sdcard/ext_sd auto /devices/platform/msm_sdcc.1/mmc_host/mmc0
I think that is how it should be, but I haven't tested it.
con247 said:
Code:
dev_mount sdcard /mnt/sdcard 37 /devices/platform/msm_sdcc.3/mmc_host/mmc2
dev_mount sdcard2 /mnt/sdcard/ext_sd auto /devices/platform/msm_sdcc.1/mmc_host/mmc0
I think that is how it should be, but I haven't tested it.
Click to expand...
Click to collapse
Yeah, as soon as i get this rom back restored, I'll try that method...
lennysh said:
Yeah, as soon as i get this rom back restored, I'll try that method...
Click to expand...
Click to collapse
My change should work because it swaps the hardware addresses for each mount point. The OP's swap had the names and mount points contradicting eachother.
con247 said:
My change should work because it swaps the hardware addresses for each mount point. The OP's swap had the names and mount points contradicting eachother.
Click to expand...
Click to collapse
Trying now...
---------- Post added at 02:17 PM ---------- Previous post was at 02:11 PM ----------
con247 said:
My change should work because it swaps the hardware addresses for each mount point. The OP's swap had the names and mount points contradicting eachother.
Click to expand...
Click to collapse
Nope, neither card would load the file list, and one was reporting as damaged. Reverting back...
lennysh said:
Trying now...
---------- Post added at 02:17 PM ---------- Previous post was at 02:11 PM ----------
Nope, neither card would load the file list, and one was reporting as damaged. Reverting back...
Click to expand...
Click to collapse
Wanna try one more? I have one last idea.
im interested... what would i need to do to test your idea?
im curious to a fix as well....as google music seems to save all music to the internal sd card....very annoying due to lack of space.
Code:
dev_mount sdcard2 /mnt/sdcard/ext_sd 37 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
That should do it. If not, then it can't be done this way.

UPDATE: Modify vold.fstab file to swap internal/external storage card. Fixed

So this file stored in /system/etc determines what type of storage sdcard and sdcard2 will be identified as. Basically sdcard2 becomes ext_sd.
While most applications are fine with using our phone's internal storage as the primary, google music does not and cannot find any music on my removable SD card. As soon as I copy it to internal it finds it right away. by modding this file, we can essentially have our removable SD card seen as primary storage and the internal secondary or as an external card.
It looks like they sucessfully made this change on the Rezound (http://forum.xda-developers.com/showthread.php?t=1383330 by changing the following:
dev_mount sdcard /mnt/sdcard 37 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard2 /mnt/sdcard/ext_sd auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
to this:
dev_mount sdcard2 /mnt/sdcard/ext_sd 37 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
I mirrored this change by making ours:
dev_mount sdcard /mnt/sdcard 36 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard2 /mnt/sdcard/ext_sd auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
to this:
dev_mount sdcard2 /mnt/sdcard/ext_sd 36 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
EDIT: 4/29
Got it working! sorta.. The phone now recognizes the physical storage card as internal phone storage and the internal phone storage as the ext_sd card. Google music finds all music. I have to add a few things to the vold.fstab file to allow a computer to see the actual internal storage card when using the phone in usb storage mode. If you would like to try it, unzip the attached modified.vold.fstab.zip file and push the file to /system/etc via adb after deleting the old one. I have also included the stock one in this post.
KEEP IN MIND: If you wipe internal storage with your phone with this mod in place, you may wipe your SD CARD. Make sure you flash back to the stock file, or just don't use the wipe internal storage feature.
Interesting concept.. Curious if it would actually work for us.
Would be nice to have my 32GB card as my primary.
I've modded my own and the settings are definitely in that file because my SD card dissapeared. Of course it was because I didn't do it correctly to match our phone but I would love to find the right settings.
Here is a fix they made for the droid x2
http://forum.xda-developers.com/showthread.php?t=1229294
Sent from my HTC_Amaze_4G using XDA
Any dev help? 187 views.. so I know I am not the only person that would like to be able to do this.
meh did it myself. Updated first post. I will modifiy to include being able to view actual internal storage via usb storage mode later today.
So what this does is have everything download and work off of only the external sd card?
Thanks for the files. I'll give then a try.
$sudo make me a sandwich
It doesn't download anything. It does exactly what the thread title and first post say. The external SD card identifies as the internal or /sdcard and the internal SD or phone storage identifies as /sdcard/ext_sd.
Check storage in system settings. Phone storage becomes your external cars, in my case a 32gb card. The internal SD card becomes the external SD removable storage. The main purpose that I did it was to have Google music see my music files on my physical 32gb storage card.
superevilllama said:
It doesn't download anything. It does exactly what the thread title and first post say. The external SD card identifies as the internal or /sdcard and the internal SD or phone storage identifies as /sdcard/ext_sd.
Check storage in system settings. Phone storage becomes your external cars, in my case a 32gb card. The internal SD card becomes the external SD removable storage. The main purpose that I did it was to have Google music see my music files on my physical 32gb storage card.
Click to expand...
Click to collapse
I never said it downloaded anything. What I meant to say is, does this mod makes the SD card the only download path? Basically only having one storage place which will be the external SD card.
But I see you already confirmed it. I will try this.
Hi all,
I have uploaded my file here as i am lost on what needs t be edited in order to have my 16gb external as main or internal on my zopo 200.
Would anyone be kind enough to explain what needs to be edited.
Once i do this, do i need to reinstall ROM and re-root again which i do not mind as the phone is basically new and nothing much installed.
Best wishes
Pete :good:
Wingchundub said:
Hi all,
I have uploaded my file here as i am lost on what needs t be edited in order to have my 16gb external as main or internal on my zopo 200.
Would anyone be kind enough to explain what needs to be edited.
Once i do this, do i need to reinstall ROM and re-root again which i do not mind as the phone is basically new and nothing much installed.
Best wishes
Pete :good:
Click to expand...
Click to collapse
Hi guys,
same here with my X26i. Same vold.fstab as your, but how to modify to use my 32gb sd card?
Thanks
I think it's in the first post
Sent from my HTC_Amaze_4G using xda premium
superevilllama said:
So this file stored in /system/etc determines what type of storage sdcard and sdcard2 will be identified as. Basically sdcard2 becomes ext_sd.
While most applications are fine with using our phone's internal storage as the primary, google music does not and cannot find any music on my removable SD card. As soon as I copy it to internal it finds it right away. by modding this file, we can essentially have our removable SD card seen as primary storage and the internal secondary or as an external card.
It looks like they sucessfully made this change on the Rezound (http://forum.xda-developers.com/showthread.php?t=1383330 by changing the following:
dev_mount sdcard /mnt/sdcard 37 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard2 /mnt/sdcard/ext_sd auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
to this:
dev_mount sdcard2 /mnt/sdcard/ext_sd 37 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
I mirrored this change by making ours:
dev_mount sdcard /mnt/sdcard 36 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard2 /mnt/sdcard/ext_sd auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
to this:
dev_mount sdcard2 /mnt/sdcard/ext_sd 36 /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
EDIT: 4/29
Got it working! sorta.. The phone now recognizes the physical storage card as internal phone storage and the internal phone storage as the ext_sd card. Google music finds all music. I have to add a few things to the vold.fstab file to allow a computer to see the actual internal storage card when using the phone in usb storage mode. If you would like to try it, unzip the attached modified.vold.fstab.zip file and push the file to /system/etc via adb after deleting the old one. I have also included the stock one in this post.
KEEP IN MIND: If you wipe internal storage with your phone with this mod in place, you may wipe your SD CARD. Make sure you flash back to the stock file, or just don't use the wipe internal storage feature.
Click to expand...
Click to collapse
hey i did this....but now my phone is not starting.....wht to do now?
SD as internal storage
She could anyone help with editing vold.fstab to exchange storage to the SD card as an internal storage? :good:
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
## Vold 2.0 fstab for HTC Dream or Sapphire
#
## - San Mehat ([email protected])
##
#######################
## 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/ext_sdcard auto /devices/platform/hi_mci.0/mmc_host/mmc1
dev_mount usbotg /mnt/usb auto /devices/hisik3-usb-otg/usb1
Android: 4.0.4
zp200+
My original vold.fstab:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/sdcard [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I only change this lines:
dev_mount sdcard /mnt/sdcard2 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
This worked perfectly, but when I move apps to the internal memory of the phone message said that was not possible because they did not have enough space. 64GB sdcard!
Any idea how to fix it !?
Tks !!
Hello guys,
This is the vold.fstab of my tablet, a P10AN01 with a Vegabean ROM. It have 300mb of internal memory and this ROM takes more or less a half of this. I've searched the two lines to change but.... ...I've missed something or this tablet doesn't have option to swith?
#######################
## 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/sdcard auto /devices/platform/sdhci-tegra.3/mmc_host/mmc3
# THIS IS NOT NEEDED
# dev_mount system_usb /mnt/usb/system_usb auto /devices/platform/tegra-ehci.0/usb
# Dock usb ports
dev_mount usb0 /mnt/usb/usb0 auto /devices/platform/tegra-ehci.2/usb0
dev_mount usb1 /mnt/usb/usb1 auto /devices/platform/tegra-ehci.2/usb1
dev_mount usb2 /mnt/usb/usb2 auto /devices/platform/tegra-ehci.2/usb2
dev_mount usb3 /mnt/usb/usb3 auto /devices/platform/tegra-ehci.2/usb3
# Usb host mode
dev_mount usbdisk /mnt/usbdisk auto /devices/platform/tegra-ehci
Sorry by my english,
Marcos Lyra
I did that (changed the vold.fstab file) and now I'm on boot loop...when accessing the recovery mode, only adb sideload cmd is available and I can't do nothing.
Any help?
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
#dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/rda-mmc.0/mmc_host/mmc0
dev_mount udisk /mnt/udisk auto /devices/platform/musb-rda.0/musb-hdrc/usb1/1-1/1-1:1.0
## Example of a dual card setup
# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1
## Example of specifying a specific partition for mounts
# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
mine sir is auto what can i do

Problem mounting Internal SD

I recently purchased Karbonn A18 and am facing problem relating to mounting of internal SD card... My phone has 2 GB internal storage and I have inserted 32 GB micro-SD in it... My phone's internal SD does not show up normally... In x-plore I need to browse to root/mnt/sdcard to access 2GB internal storage... Which means if I store any media on it, it would not show up in media players as it is a part of root directory... when I connect my phone in USB storage mode, both the drives pop up on my computer... furher, x-plore shows 2 same partitions of my 32 GB external micro-SD (see the attached screenshot)...
The following is my vold.fstab file:
Code:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/sdcard [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
Can anyone help me in mounting my internal SD as a separate drive on phone??
Hey,
I am facing a related (possibly) problem. I also have the sdcard (internal) showing up only under /mnt/sdcard, and not as a separate card. Also, I have problem installing big games (such as frontline commando or dead trigger) - market keeps crashing. Are you facing any such problems?
Any solutions or tips you have tried so far?
Cheers,
magesha
EDIT/Update: This could be a potentially serious problem, I found that I am not able to move any apps to the interal sd card storage. It says there is not enough space, although I have only used up like 100MB of the 2GB+ space. Also, it is showing up weird under root explorer. although I am able to see the main folder (/mnt/sdcard/), I am not able to see any of the contents (such as my camera pictures and other files I put from my pc). I am able to see these files from X-plore. It is very weird.
EDIT2: I put a 16GB card and it shows up under X-plore but it doesn't show up in system settings, and it doesn't open in root explorer (it says the partition is not mounted or something). I am still not able to move any apps out of the internal ROM so my phone has become very slow now

[Q] Swap Internal memory and MicroSD

Hello,
I have seen a post on G+ (https://plus.google.com/+MariuszKraus/posts/1BRdDeF9d1W) and also remember people discussing during KS that one could "swap" the Internal SD Card (in other words the space that makes up the 8GB) with the EXTERNAL SD (MicroSD) card memory.
I have already installed a 32Gb MicroSD which I have been using since I got my TS.
As I intend to put a 64Gb MicroSD in my TS and since I have already almost reached the "out of memory" state, I want to do this swap.
Has anybody tried it? Could you share the method in a step-by-step way here?
Will I end up with 8GB's of program memory (that is going to be used automatically for app installations and other android internal tasks)?
Do I need to copy the current contents of the Internal and/or External space in order to subsequently copy it back once the swap is done?
Do I also need to copy the contents of the main memory in order to copy it back afterwards or is that not affected at all?
If I do a Titanium backup, can that be used to restore everything back to normal? Will it restore to the "swapped" places?
Many thanks for any and all help
Christos
I have swapped internal sd with external sd
I have done this on my omate truesmart US extreme with 5/27 firmware with OTA update.
I will answer some of your questions in this post and if still interested I will post a how-to with my vold.fstab file.
This mod REQUIRES ROOT.
This will not change the amount of app space internal to the phone. To do that you would have to reparation the internal 8gb emmc.
This will only swap the pointer (mount point) of the internal (called sdcard) partition with the external microsd (called sdcard2).
This is best done on fresh device with out any apps moved to SD. You need to copy the contents of the internal sdcard to the external before editing the vold.fstab file.
You do not need to do anything with the main memory. The only change to it will be the edited vold.fstab.
I don't know the answer the titanium backup question. But it is not needed to perform this mod. HAVE A FULL BACK OF YOUR DEVICE by all means but this little mod is pretty simple and undo-able.
If you do the mod remember to change the SAVE location of data in your apps. For example on the truesmart the is a option to save files to internal or sdcard in settings. This will need to be set to internal if you had set it to sdcard before the swap.
Here is my edited vold.fstab file:
---------------------------------------
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
### - SDCARD SWAP MOD
### dev_mount sdcard /storage/sdcard0 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
### dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
dev_mount sdcard2 /storage/sdcard1 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sdcard /storage/sdcard0 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
------------------------------------------------------
All that is being done is swapping the labels and mount points of the 2 "sd cards".
I suggest finding, reading, understanding another guide on the internet for a detailed how-to.

[Q] HTC Desire 310 emulated and ext sd card data problems

Hi all. So, to explain my problem the best I can I'll start from the thing that bugs me the most, the apk's won't detect obb's on the ext sd card. If you don't know this phone comes with phone storage (/sdcard), emulated storage (/storage/emulated/legacy OR /storage/emulated/0) and the 3rd is my ext sd card. Now i know this can be done because i made it work a few days ago but since then i changed some stuff around and now it won't work anymore. My main goal was to completely switch the internal phone memory with the ext sd card (because of the obb problem) but that posed even more problems.
Here's my specs:
Model: HTC Desire 310
Android ver: 4.2.2
Baseband ver: MOLY.WR8.W1315.MD.WG.MP.V19.F5.P1
Kernel ver: 3.4.5 [email protected] #1
Build num: 1.00.401.14
ROOTed with Root Genius, replaced the chinese Kinguser with SuperSU, supposedly there aren't any ROMs for this device yet and it can't be S-Off'ed (yet) according to google/forums.
Here's what I've done/tried doing so far:
- Link2SD: partitioned the 16gb card to 12gb FAT32 / 3gb ext2, configured Link2SD and linked the game (Galaxy on Fire 2 for example)
obb is on /storage/sdcard1/Android/obb but i guess Link2SD doesn't link obb files
- FolderMount: is supposed to link games with their obb, didn't seem to do a thing
- External2Internal: spent a whole day messing with it, didn't seem to change anything
- Universal Init.d + SMenager: basically i tried running .sh scripts that are supposed to mount the partitions/sd cards, and yes i edited the scripts to match my mount points ( http://forum.xda-developers.com/showthread.php?t=1886091 )
- Edited the "vold.fstab": tried ~20 different combinations of mount points and paths, and it actually changes them but not the way i want (I don't know unix that well).
>> [mount_point] (label)
- The original vold.fstab gives me (in that order): internal storage [/sdcard] (sdcard), emulated internal storage [/storage/emulated/legacy] (sdcard), ext sd card [/storage/sdcard1] (sdcard2):
Code:
dev_mount sdcard /storage/sdcard0 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
- #1 vold.fstab that gives me (in that order): internal storage [/sdcard] (sdcard), ext sd card [/storage/sdcard1] (sdcard), emulated internal storage [/storage/emulated/legacy] (sdcard2):
Code:
dev_mount sdcard /storage/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.1/mmc_host
dev_mount sdcard2 /storage/sdcard0 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.0/mmc_host
- #2 vold.fstab that gives me (in that order): internal storage [/sdcard] (sdcard), ext sd card [/storage/sdcard1] (sdcard):
Code:
dev_mount sdcard /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
BUT i can't make it completely replace the internal storage with the ext sd card.
Here's what I THINK worked: used #2 vold.fstab, linked Galaxy on Fire 2 in Link2SD, used External2Internal to swap sdcard0 and sdcard1 (tho it didn't seem to change a thing) and the game worked fine, but since then i changed vold.fstab several times and installed/uninstall mentioned apps and now i don't know why it won't work.
I tried to include as much info as I could but feel free to ask for more and if someone can modify my vold.fstab or have some other solution for me please share.
Desire 310
Hi, Zim
Any luck on swaping memories? I am looking on all the forums about this and could not figure out any working option for our phone. Did you?

Categories

Resources