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

How To- Mount /SDCard2 as /SDCard

OP filmaker

18th June 2012, 02:23 AM   |  #1  
filmaker's Avatar
OP Senior Member
Thanks Meter: 511
 
600 posts
Join Date:Joined: Jan 2011
Make a Backup!

What this will do is mount /sdcard2 as /sdcard and your phone storage /sdcard, to /sdcard2.

Okay, so I started playing around in the vold.fstab, thanks to some inspiration form this thread : http://forum.xda-developers.com/show....php?t=1625238,
and I managed to change to get the internal memory show as the external sdcard, and my 32GB sdcard to show as the phone storage.




If you would like to try this, then use an app like root explorer and navigate to /system/etc and open up vold.fstab.

You'll see two lines:

dev_mount sdcard /mnt/sdcard emmc /devices/platform/msm_sdcc.1/mmc_host

dev_mount sdcard2 /mnt/sdcard/ext_sd auto /devices/platform/msm_sdcc.3/mmc_host

Change them to this:

dev_mount sdcard2 /mnt/sdcard/ext_sd emmc /devices/platform/msm_sdcc.1/mmc_host

dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host


Then reboot.

Both mount points are accessible through file explorers, and both are accessible using an MTP connection (Media Sync) when connecting to the computer.

Pros
Move game and app data to your SDCard.
Move Apps to Actual SDCard (not just phone storage)
Google Music files on SDCard

Side Effects
You'll be left to the mercy of MTP for all your file transferring.

You can download the edited vold.fstab here:http://i.minus.com/1340071427/7vY7Qe...lYm/vold.fstab
You can check in this thread for a flashable zip version: http://forum.xda-developers.com/show....php?t=1713737

Just make sure u change the permissions (rw-r-r)


Some extra info for those still confsued (thanks to ryanalan82 for this)

"And remember original storage is:
Internal storage = the app itself
Phone storage = the apps data
sd card= everything else

1. any apps that (the apk file itself) are installed in the phone storage, should be moved to internal storage.

2. Any of the game data that is on phone storage, should be moved to the actual sd card (sdcard2). This data is in the Android folder on phone storage (sdcard). So it should be moved from /mnt/sdcard/android/data to /mnt sdcard/ext_sdcard/android/data. Really just move the whole folder to the sd card. I moved the whole folder to phone storage from the sd card when I got the phone so I didn't have to sit there and download all the game data for the bigger games and such again.

3. Follow the steps in the OP of this hack.

4. If you want to get some of your 2 GB app storage space back, move the apps as you wish to phone storage. This will be the app apk file not the huge game data. But this time phone storage will be the actual sd card. So it won't take away from your 10 GB it will take away from the sd card.
The apps that get moved will get moved from /data/app to /mnt/sdcard/ext_sdcard/.android_secure. "


Goal Just a thought, but if anyone knows what file or where the OS, looks when the user gives it the selection to mount as disk drive, then maybe we could change the option from /sdcard2 to /sdcard
Last edited by filmaker; 19th June 2012 at 07:30 PM.
The Following 31 Users Say Thank You to filmaker For This Useful Post: [ View ]
18th June 2012, 02:55 AM   |  #2  
benny3's Avatar
Recognized Contributor
Flag MICH
Thanks Meter: 2,852
 
2,265 posts
Join Date:Joined: Dec 2011
Donate to Me
More
haha my firsrt first nice work thanks alot , this is good
The Following 4 Users Say Thank You to benny3 For This Useful Post: [ View ]
18th June 2012, 03:01 AM   |  #3  
Senior Member
Thanks Meter: 31
 
150 posts
Join Date:Joined: Feb 2011
This does not affect app storage, correct?
18th June 2012, 03:02 AM   |  #4  
Senior Member
Flag Boston, MA
Thanks Meter: 62
 
1,019 posts
Join Date:Joined: Dec 2010
More
awesome, cant wait for this to get even better
18th June 2012, 03:04 AM   |  #5  
filmaker's Avatar
OP Senior Member
Thanks Meter: 511
 
600 posts
Join Date:Joined: Jan 2011
Quote:
Originally Posted by El_Colombiano

This does not affect app storage, correct?

Correct, app storage remains the same, just when you chose to move them to your phone storage, it's actually now moving it to your sdcard.
18th June 2012, 03:29 AM   |  #6  
Senior Member
Flag Chicago
Thanks Meter: 211
 
385 posts
Join Date:Joined: Mar 2012
More
Great work. Is there any tweaks that increase sdcard speeds that I should know about to go along with this?

Sent from my El Tevo
18th June 2012, 03:43 AM   |  #7  
acuzerfdw's Avatar
Senior Member
Los Angeles, CA
Thanks Meter: 43
 
219 posts
Join Date:Joined: Jun 2010
Just did this and both of mine say Unavailable as far as how much space I have in both. Let me go back and make sure I made the changes correctly.

aleks
18th June 2012, 03:57 AM   |  #8  
kaos420's Avatar
Recognized Contributor
dantes inferno
Thanks Meter: 1,674
 
3,154 posts
Join Date:Joined: Dec 2007
Donate to Me
More
Quote:
Originally Posted by acuzerfdw

Just did this and both of mine say Unavailable as far as how much space I have in both. Let me go back and make sure I made the changes correctly.

aleks

reboot.............................
18th June 2012, 04:00 AM   |  #9  
acuzerfdw's Avatar
Senior Member
Los Angeles, CA
Thanks Meter: 43
 
219 posts
Join Date:Joined: Jun 2010
I did. I did a normal reboot and even a fast reboot. Still a no go for me. And it lso says Mount Storage Card in stead of Unmount so it's not picking them up. I tried opening up both SD and SD2 in Root Explorer and neither works.

Do the spaces between the words and the / matter? I noticed some have a space between them and others don't. Let me try to type it just as the OP did...

edit: did that and still no good...
Last edited by acuzerfdw; 18th June 2012 at 04:08 AM.
18th June 2012, 04:06 AM   |  #10  
filmaker's Avatar
OP Senior Member
Thanks Meter: 511
 
600 posts
Join Date:Joined: Jan 2011
I just added my vold.fstab, try transferring it to your /system/etc and see if it works.

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

Advanced Search
Display Modes