Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,276 Members 38,213 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
superevilllama
Old
(Last edited by superevilllama; 29th April 2012 at 09:54 PM.)
#1  
superevilllama's Avatar
Senior Member - OP
Thanks Meter 114
Posts: 368
Join Date: Jun 2007
Default 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/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, 8932 views)
File Type: zip stock.vold.fstab.zip - [Click for QR Code] (505 Bytes, 4436 views)
The Following 6 Users Say Thank You to superevilllama For This Useful Post: [ Click to Expand ]
 
dharvey4651
Old
#2  
dharvey4651's Avatar
Retired Senior Moderator
Thanks Meter 563
Posts: 2,965
Join Date: May 2007
Location: Olathe, KS Device: HTC One M8

 
DONATE TO ME
Interesting concept.. Curious if it would actually work for us.

Would be nice to have my 32GB card as my primary.

 
superevilllama
Old
(Last edited by superevilllama; 29th April 2012 at 04:44 AM.)
#3  
superevilllama's Avatar
Senior Member - OP
Thanks Meter 114
Posts: 368
Join Date: 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
The Following User Says Thank You to superevilllama For This Useful Post: [ Click to Expand ]
 
superevilllama
Old
#4  
superevilllama's Avatar
Senior Member - OP
Thanks Meter 114
Posts: 368
Join Date: 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.
 
superevilllama
Old
#5  
superevilllama's Avatar
Senior Member - OP
Thanks Meter 114
Posts: 368
Join Date: 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: [ Click to Expand ]
 
coupetastic-droid
Old
#6  
coupetastic-droid's Avatar
Senior Member
Thanks Meter 326
Posts: 2,100
Join Date: Dec 2010
Location: cali
So what this does is have everything download and work off of only the external sd card?
 
Lunaillij
Old
#7  
Lunaillij's Avatar
Senior Member
Thanks Meter 30
Posts: 139
Join Date: Mar 2009
Location: San Tan Valley, Arizona
Thanks for the files. I'll give then a try.

$sudo make me a sandwich
 
superevilllama
Old
#8  
superevilllama's Avatar
Senior Member - OP
Thanks Meter 114
Posts: 368
Join Date: 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.
 
coupetastic-droid
Old
#9  
coupetastic-droid's Avatar
Senior Member
Thanks Meter 326
Posts: 2,100
Join Date: Dec 2010
Location: cali
Quote:
Originally Posted by superevilllama View Post
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.
 
Wingchundub
Old
#10  
Senior Member
Thanks Meter 37
Posts: 301
Join Date: 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Bring Back Tablet UI on KitKat

Google presented their brand new UI for tablets alongsidethe release of Android 3.0 Honeycomb back in early … more

Give Your Notification Shade a Facelift with these Modding Guides

Modification has always been one of the strong suits of Android, due in … more

Keep Track of How Much Your Car Truly Costs with Car Logbook

It’s a very well established fact that cars are expensive. In addition to … more

New Nvidia SHIELD Tablet OTA! Moto G 4G Gets Official CyangenMod 11 Nightlies – XDA Developer TV

The Nvidia SHIELD Tablet gets its … more