Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP superevilllama

29th April 2012, 04:23 AM   |  #1  
superevilllama's Avatar
OP Senior Member
Thanks Meter: 114
 
369 posts
Join Date:Joined: Jun 2007
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/show....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.
Attached Files
File Type: zip modified.vold.fstab.zip - [Click for QR Code] (506 Bytes, 9703 views)
File Type: zip stock.vold.fstab.zip - [Click for QR Code] (505 Bytes, 4888 views)
Last edited by superevilllama; 29th April 2012 at 10:54 PM.
The Following 6 Users Say Thank You to superevilllama For This Useful Post: [ View ]
29th April 2012, 05:25 AM   |  #2  
dharvey4651's Avatar
Retired Senior Moderator
Flag Olathe, KS Device: HTC One M8
Thanks Meter: 574
 
2,991 posts
Join Date:Joined: May 2007
Donate to Me
More
Interesting concept.. Curious if it would actually work for us.

Would be nice to have my 32GB card as my primary.
29th April 2012, 05:34 AM   |  #3  
superevilllama's Avatar
OP Senior Member
Thanks Meter: 114
 
369 posts
Join Date:Joined: Jun 2007
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
Last edited by superevilllama; 29th April 2012 at 05:44 AM.
The Following User Says Thank You to superevilllama For This Useful Post: [ View ]
29th April 2012, 02:30 PM   |  #4  
superevilllama's Avatar
OP Senior Member
Thanks Meter: 114
 
369 posts
Join Date:Joined: Jun 2007
Any dev help? 187 views.. so I know I am not the only person that would like to be able to do this.
29th April 2012, 10:30 PM   |  #5  
superevilllama's Avatar
OP Senior Member
Thanks Meter: 114
 
369 posts
Join Date:Joined: Jun 2007
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.
The Following User Says Thank You to superevilllama For This Useful Post: [ View ]
30th April 2012, 03:22 AM   |  #6  
coupetastic-droid's Avatar
Senior Member
Flag cali
Thanks Meter: 326
 
2,101 posts
Join Date:Joined: Dec 2010
So what this does is have everything download and work off of only the external sd card?
30th April 2012, 05:08 AM   |  #7  
Lunaillij's Avatar
Senior Member
Flag San Tan Valley, Arizona
Thanks Meter: 31
 
140 posts
Join Date:Joined: Mar 2009
More
Thanks for the files. I'll give then a try.

$sudo make me a sandwich
30th April 2012, 06:39 AM   |  #8  
superevilllama's Avatar
OP Senior Member
Thanks Meter: 114
 
369 posts
Join Date:Joined: Jun 2007
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.
30th April 2012, 04:53 PM   |  #9  
coupetastic-droid's Avatar
Senior Member
Flag cali
Thanks Meter: 326
 
2,101 posts
Join Date:Joined: Dec 2010
Quote:
Originally Posted by superevilllama

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.

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.
9th July 2012, 11:44 AM   |  #10  
Senior Member
Thanks Meter: 45
 
331 posts
Join Date:Joined: Mar 2012
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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes