How To- Mount /SDCard2 as /SDCard

Search This thread

filmaker

Senior Member
Jan 21, 2011
605
531
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/showthread.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.

30lhr3l.png



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/7vY7QepuYyLi6YjjTYZYXg/dkDgjuy9MXlYm/vold.fstab
You can check in this thread for a flashable zip version: http://forum.xda-developers.com/showthread.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:

acuzerfdw

Senior Member
Jun 7, 2010
226
43
Los Angeles, CA
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:

filmaker

Senior Member
Jan 21, 2011
605
531
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...

Wow..this is a little embarrassing..I accidentally added an extra slash in the OP, fixed now. So sorry about that. Now try it.
 

acuzerfdw

Senior Member
Jun 7, 2010
226
43
Los Angeles, CA
I just added my vold.fstab, try transferring it to your /system/etc and see if it works.

Trying now...

---------- Post added at 07:27 PM ---------- Previous post was at 07:19 PM ----------

I saw your correction so I went back in and retyped everything again and it works now!! Thanks a bunch!! I was feeling like a dumbass cus I didn't get it to work the first time and was embarrassed to say so as to not seem incompetent. LOL Glad it's working now...
 

ducky1131

Senior Member
Jul 24, 2010
122
54
Fort Wayne, IN
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

Htc actually set the read ahead kb to 2048 this time! You can check for yourself at /sys/devices/virtual/bdi/179:0 then open read_ahead_kb in a text viewer. I think it was set at 4 on the OGEVO...

Should be plenty- my class 10 flies.
 
  • Like
Reactions: .Gibson.

acuzerfdw

Senior Member
Jun 7, 2010
226
43
Los Angeles, CA
Maybe a dumb question, but will this have any effect when I install for example a new ROM and it does a full wipe...will it wipe my SD card instead now? Or if I do a factory reset will that wipe my SD card instead??

Aleks
 
Last edited:

filmaker

Senior Member
Jan 21, 2011
605
531
Maybe a dumb question, but will this have any effect when I install for example a new ROM and it does a full wipe...will it wipe my SD card instead now? Or if I do a factory reset will that wipe my SD card instead??

Aleks

Recovery still sees your partitions like normal, so she. you do install a custom ROM, it'll install like normal, but it will rewrite the /system/etc so your sdcard and sdcard2 will be the mounted the same way they were on stock. lol..hope that makes since..sorry kinda all over the place with my explanation.
 

TaintedByte

Senior Member
May 24, 2009
819
673
I am so glad this was found! Thanks so much for sharing it with us.

Quick question, will the camera save the pictures to the internal storage now that they are swapped around and it normally saves it to the storage card which is found in sd2 by default?

Sent from my Evo 4G LTE
 

acuzerfdw

Senior Member
Jun 7, 2010
226
43
Los Angeles, CA
Just took a picture and checked through Root Explorer... pics are being saved in sdcard2. All my previous pictures are in sdcard.

sdcard2 is actually the phone storage with 10GB capacity while sdcard is really your memory card. So after this mod, camera shots should be saved in sdcard instead so that pics remain in your storage card.

You can fix that by going to your camera app and selecting Settings > Storage > Phone Storage.

Aleks
 
Last edited:
  • Like
Reactions: TaintedByte

Top Liked Posts

  • There are no posts matching your filters.
  • 32
    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/showthread.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.

    30lhr3l.png



    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/7vY7QepuYyLi6YjjTYZYXg/dkDgjuy9MXlYm/vold.fstab
    You can check in this thread for a flashable zip version: http://forum.xda-developers.com/showthread.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
    4
    haha my firsrt first nice work thanks alot , this is good
    3
    Looks like this caused me to lose a lot of my apps. Should this be expected?

    There should be a couple extra steps put in the OP.
    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.

    also at this step I would say move a couple big apps/games as oppose to many little apps/games. Better to have a couple big ones to load not that often, than to have many little apps to load more often and cause more slowdown. The more little apps you have on the sd card the more possibility the phone gets slowed down, cause no matter what sd card u have, it's gonna be just a little slower than what came on the phone. So moving just a couple 50 mb games should go a long ways.

    Now the question is what to do with that 10 GB. If I do this hack, which I eventually will, I would probably fill this space with titanium backups, have the pictures and video saved here, roms and such I will flash I recovery, ringtones, wallpapers. You kinda don't have to many more choices with this space. if I'm gonna take space away from the memory card but don't want to delete any of my 40 GB of music, I would want to move whatever I could in that 10 GB of space so it doesn't get wasted. Remember moving apps or huge game data doesn't go into the 10GB anymore.

    There are pluses to this hack and there are minuses. Until I get the exact figures on what I can put where I am going to wait on doing all this, but I hope I helped give a bit of an overview to what is going on with your storage space and how it is used.

    Swyped from my eVo
    1
    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

    Htc actually set the read ahead kb to 2048 this time! You can check for yourself at /sys/devices/virtual/bdi/179:0 then open read_ahead_kb in a text viewer. I think it was set at 4 on the OGEVO...

    Should be plenty- my class 10 flies.
    1
    Just took a picture and checked through Root Explorer... pics are being saved in sdcard2. All my previous pictures are in sdcard.

    sdcard2 is actually the phone storage with 10GB capacity while sdcard is really your memory card. So after this mod, camera shots should be saved in sdcard instead so that pics remain in your storage card.

    You can fix that by going to your camera app and selecting Settings > Storage > Phone Storage.

    Aleks
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone