Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Mohammad_Adib
Old
(Last edited by Mohammad_Adib; 8th December 2011 at 04:13 AM.)
#1  
Mohammad_Adib's Avatar
Senior Member - OP
Thanks Meter 1640
Posts: 844
Join Date: Sep 2011
Location: Bellevue, WA
Lightbulb [TWEAK][MOD][FIX][CM7] sdcard Switcharoo!

CyanogenMod 7 sdcard Switcharoo tweak/mod/fix!

When i first got CM7 on my Infuse I immediately came across an annoying problem (at least for me). Like all AT&T customers, my phone came with an external SD card with 2gb of storage and the phone itself has 16gb of internal storage. So i noticed that by default, my 2gb external sdcard was the mnt/sdcard directory that all my apps use and mnt\emmc was my internal 16gb. For me that sucked because all my Titanium Backups were in my internal sdcard and I coudnt move it to my external because of memory insufficiency. So i decided i would mod the ROM to switch these sdcard directories and have 16gb instead of 2gb in my mnt\sdcard directory.

So, to make this simpler for me and you, suppose:
----------------------------
Internal sdcard (16gb) = A
External sdcard (2gb) = B
----------------------------
A is by default in mnt\emmc
B is by default in mnt\sdcard
----------------------------
The problem with the above statements is that 2gb is not enough to make it my default sdcard. Apps like Titanium Backup, Dropbox, Camera and tons of others (like games) always store things in mnt\sdcard and they can rarely be configured to store elsewhere (at least to my knowledge).

So to solve the problem i edited the mnt\system\etc\vold.fstab file. This file just contains some random gibberish about where the sdcards mount to. So i switched the mounting directories of the two sdcards A and B. So far all i had to do is copy over the apps stored in my external to the new external mount (mnt\emmc).

So in short the only thing this changes is: (the before and after pic)

Before:
mnt\emmc is internal 16gb
mnt\sdcard is external 2gb

After:
mnt\emmc is external 2gb
mnt\sdcard is internal 16gb

Now, if lets say you had your apps stored in A and used my tweak. You would have to copy your apps over to B because thats the new A. Confusing i know...im trying. lol

So here is the procedure:

0. Download the attachment below and unzip it in your phone somewhere
1. Make sure you have root explorer or similar app
2. Using your explorer app mount mnt\system\ R/W
3. Navigate to vold.fstab file in mnt\system\etc
4. Rename the file to vold.fstab.bak (to keep it backed up)
5. Now find the directory where you downloaded and put my new vold.fstab file
6. Copy my new vold.fstab file to mnt\system\etc and paste
7. Reboot phone.


If you encounter difficulties, then undo the process by first deleting my modded vold.fstab and then renaming your old vold.fstab.bak to vold.fstab and then rebooting.

Also, Keep in mind that this is for CM7 users. Don't use it if you don't know what CM7 is or don't use CM7 port. Cheers, hope this helps someone.
Attached Files
File Type: rar ModdedVold.fstab.rar - [Click for QR Code] (771 Bytes, 186 views)

Nexus 4 | Nexus 10
CyanogenMod 10.1 | Franco.Kernel
The Following User Says Thank You to Mohammad_Adib For This Useful Post: [ Click to Expand ]
 
PVD04
Old
#2  
Member
Thanks Meter 13
Posts: 41
Join Date: Jan 2010
Location: Madison, WI
A much easier solution:

Go to Settings -> CyanogenMod settings -> Application

Uncheck "Use internal storage"

Reboot.
 
Mohammad_Adib
Old
#3  
Mohammad_Adib's Avatar
Senior Member - OP
Thanks Meter 1640
Posts: 844
Join Date: Sep 2011
Location: Bellevue, WA
Quote:
Originally Posted by PVD04 View Post
A much easier solution:

Go to Settings -> CyanogenMod settings -> Application

Uncheck "Use internal storage"

Reboot.
No, i understand what you are saying. But you, like others dont get what im after. i dont care where my apps go. i want my mnt\sdcard to be 16gb not 2gb. end of story.

Nexus 4 | Nexus 10
CyanogenMod 10.1 | Franco.Kernel
 
PVD04
Old
#4  
Member
Thanks Meter 13
Posts: 41
Join Date: Jan 2010
Location: Madison, WI
Quote:
Originally Posted by Mohammad_Adib View Post
No, i understand what you are saying. But you, like others dont get what im after. i dont care where my apps go. i want my mnt\sdcard to be 16gb not 2gb. end of story.
I understand exactly what you are after. Unchecking "Use internal storage" mounts the internal storage as mnt\sdcard. There is no reason to do it any other way.
 
Blackberrynomore
Old
#5  
Blackberrynomore's Avatar
Senior Member
Thanks Meter 23
Posts: 275
Join Date: Jun 2011
My /mnt/sdcard is the internal memory and my 4GB microsd is my external storage been like that from stock and I have all of my important stuff on the external for obvious reasons. Don't know why you would need this am I missing something?

Infused with Android DNA
 
jwl12345
Old
#6  
jwl12345's Avatar
Senior Member
Thanks Meter 45
Posts: 328
Join Date: Aug 2011
Location: NY
Quote:
Originally Posted by PVD04 View Post
I understand exactly what you are after. Unchecking "Use internal storage" mounts the internal storage as mnt\sdcard. There is no reason to do it any other way.
This is exactly right - unchecking internal storage does exactly what your tweak does.
Samsung Galaxy Note II i317
Rooted Stock
 
rboone18
Old
(Last edited by rboone18; 8th December 2011 at 01:08 PM.)
#7  
Senior Member
Thanks Meter 18
Posts: 195
Join Date: Jan 2007
I have a 16 gig SD internal and external and I prefer using external which is default, when my phone had to be redone due to bad flash, I loss everything on my internal. Even if I checked something wrong it still feels safer using external last I checked 16gig cards are like 25 bux. I want 32gig next. Sounds to me like a poor attempt to get status here. Try on a group less educated then xda. I feel offended by this trick.

Sent from my SGH-I997 using xda premium
 
oby2
Old
#8  
oby2's Avatar
Senior Member
Thanks Meter 11
Posts: 150
Join Date: Jul 2011
Location: Guaynabo
This might be useless for CM7 users but what about MIUI users, don't CM7 and MIUI use the same kernel?

Sent from my SGH-I997 using xda premium
PHONE:Samsung Galaxy Nexus on AT&T
ROM:Rasbeanjelly 2012-12-08
KERNEL:ak.459.42PGM

I'm in love with my Nexus!!!
 
andrawer
Old
#9  
Senior Member
Thanks Meter 120
Posts: 599
Join Date: Jun 2011
Location: Cincinnati
i just got a 16gb external card to replace the OEM supplied 2gb sdcard.

Also Titanium allows you to change the backup folder location.
 
Mohammad_Adib
Old
#10  
Mohammad_Adib's Avatar
Senior Member - OP
Thanks Meter 1640
Posts: 844
Join Date: Sep 2011
Location: Bellevue, WA
Cool. thanks for telling me. but that never worked for me. so this did and i dont care how u guys do it as long as the results are the same.

Nexus 4 | Nexus 10
CyanogenMod 10.1 | Franco.Kernel

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

XDA University: Crafting Recovery-Flashable Packages

Those of us who use Linux on a day to day basis don’t think twice about sinking … more

Side-Swiping Multitasking with Kakudo

Recovering iPad users may still remember the multitasking function where you can swipe left or right to … more

Learn to Edit Graphics for your Development Work

The importance of good and appropriate graphics for your development work is undeniable. Be … more