Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
pwnwolf117
Old
(Last edited by pwnwolf117; 29th January 2012 at 06:57 PM.)
#1  
Member - OP
Thanks Meter 7
Posts: 30
Join Date: Dec 2011
Default SD mount swap!

Hey everyone, i prefer stuff saved on my external sd and im to lazy to keep editing apps to save to /sdcard2 (if they even let you!) instead of the usual /sdcard, so i made a zip to flash in recovery that swaps mount points. internal mounts at /mnt/sdcard/ext_sd and external is at /mnt/sdcard.

enjoy this guys! it took me like a day solid to figure out how to swap it and then learn how to make a flashable zip :P be nice to me i had never done this before yesterday/part of today
This has been tested on Ineffabilis (gb version) with dsb OC kernel. should work on any GB rezound rom, and unless something changed that i didnt notice it should work on ICS roms. ill edit this as soon as i check, but it will be tomorrow night before i get a chance
flash SwtichMount.zip to switch
flash RestoreMount.zip to restore to original settings

theoretically this should work on some other phones, shoot me a pm with your phone model and any rom for it (or even better the vold.fstab file in
/system/etc) and i can tell you if it should work/edit it to work for you!

Changelog:
v2.1: adds support for some roms
Attached Files
File Type: zip SwitchMount.zip - [Click for QR Code] (143.9 KB, 86 views)
File Type: zip RestoreMount.zip - [Click for QR Code] (143.9 KB, 69 views)
File Type: zip SwitchMountV2.1.zip - [Click for QR Code] (143.9 KB, 92 views)
The Following 4 Users Say Thank You to pwnwolf117 For This Useful Post: [ Click to Expand ]
 
mrcrusha829
Old
#2  
mrcrusha829's Avatar
Member
Thanks Meter 6
Posts: 73
Join Date: May 2007
Location: Hartford, CT
I have done this as well by editing the vold.fstab file and rebooting. The only problem I had was that after making the change I was unable to mount the internal storage as USB drive. The SDcard mounted fine however. So what I have been doing is copying over the original file that I saved on the SDcard if I needed to copy files over to the internal.

Does your method allow for the internal storage to be mounted as a USB drive?
 
pwnwolf117
Old
#3  
Member - OP
Thanks Meter 7
Posts: 30
Join Date: Dec 2011
yea it shows up, it seems to take an extra minute or 2.

i had a different way to do it that mounted internal on /mnt/sdcard2 but it had to do with editing ramdisk and was a pain in the a$$
 
maniac2k
Old
#4  
Senior Member
Thanks Meter 105
Posts: 458
Join Date: Jun 2009
So the internal ram is mounted as sdcard/ext_sd? Is there any way around this? Does the name ext_sd have some significance? I mean you have a mnt/sdcard which is sdcard dir and mnt/sdcard/sd_ext which is sdcard2 dir. Why can't ext_sd (internal ram) just be mounted as mnt/sdcard2? Thanks!
 
JohnShaft69
Old
#5  
Senior Member
Thanks Meter 20
Posts: 178
Join Date: Feb 2009
Quote:
Originally Posted by maniac2k View Post
Why can't ext_sd (internal ram) just be mounted as mnt/sdcard2? Thanks!
+1!
10char
 
mrcrusha829
Old
#6  
mrcrusha829's Avatar
Member
Thanks Meter 6
Posts: 73
Join Date: May 2007
Location: Hartford, CT
Quote:
Originally Posted by maniac2k View Post
So the internal ram is mounted as sdcard/ext_sd? Is there any way around this? Does the name ext_sd have some significance? I mean you have a mnt/sdcard which is sdcard dir and mnt/sdcard/sd_ext which is sdcard2 dir. Why can't ext_sd (internal ram) just be mounted as mnt/sdcard2? Thanks!
If you go to the root directory of the phone you will see sdcard and sdcard2. sdcard2 is the exact same folder as mnt/sdcard/sd_ext. The folder mnt/sdcard/sd_ext is basically like having a shortcut to that sdcard2.

---------- Post added at 04:32 PM ---------- Previous post was at 04:29 PM ----------

By the way pwnwolf117.... I flashed your zip and the changes did not stick. I still had to use my method of copying over an edited vold.fstab file that I created to the /etc folder. I am running BAMF gingerbread ROM.
 
pwnwolf117
Old
#7  
Member - OP
Thanks Meter 7
Posts: 30
Join Date: Dec 2011
Quote:
Originally Posted by maniac2k View Post
.Why can't ext_sd (internal ram) just be mounted as mnt/sdcard2? Thanks!
I'm working on getting that but I need yo figure out a script that will create /mnt/Sdcard2 on bootup. I know where to put the script but something isn't mounting properly. I'll try to finish it tonight but since I originally posted I've been taking midterm exams or at robotics practice or a competition which im on my way home from now (8pm here) and I left at 5am so I'm exhausted but I'll see what I can throw together. if anybody understands how to add a script to /etc/init.d/ please pm me or reply! and so you all realize this is my first Android phone EVER which I've had for obit a couple months as well as I have no programming experience. so this was a personal project that I released for those who want to try it.

Quote:
Originally Posted by maniac2k View Post
I understand that and explained that in my original post so I wouldn't get an answer like yours. Please reread my previous post again. My point is, why should internal ram (in this case, ext_sd which isn't external sd) be mounted inside the sdcard folder?
because that was the one place I KNOW it will mount on the system correctly, but also will mount as USB correctly. /mnt/Sdcard/ext_sd is the default mount point for the external so I just swapped the internal and external mount points

Quote:
Originally Posted by mrcrusha829 View Post
the way pwnwolf117.... I flashed your zip and the changes did not stick. I still had to use my method of copying over an edited vold.fstab file that I created to the /etc folder. I am running BAMF gingerbread ROM.
hmm im wondering if its a permissions thing, im dling BAMF gb and ill install it and see what i can do as soon as i have a chance!
 
maniac2k
Old
(Last edited by maniac2k; 28th January 2012 at 07:13 PM.)
#8  
Senior Member
Thanks Meter 105
Posts: 458
Join Date: Jun 2009
I understand that and explained that in my original post so I wouldn't get an answer like yours. Please reread my previous post again. My point is, why should internal ram (in this case, ext_sd which isn't external sd) be mounted inside the sdcard folder?
The Following User Says Thank You to maniac2k For This Useful Post: [ Click to Expand ]
 
mrcrusha829
Old
#9  
mrcrusha829's Avatar
Member
Thanks Meter 6
Posts: 73
Join Date: May 2007
Location: Hartford, CT
Quote:
Originally Posted by maniac2k View Post
I understand that and explained that in my original post so I wouldn't get an answer like yours. Please reread my previous post again. My point is, why should internal ram (in this case, ext_sd which isn't external sd) be mounted inside the sdcard folder?
I am not tying to be rude but what does it matter. You can get to SDcard2 from both points... it isn't taking up space on the SDcard.
 
pwnwolf117
Old
(Last edited by pwnwolf117; 29th January 2012 at 04:19 AM.)
#10  
Member - OP
Thanks Meter 7
Posts: 30
Join Date: Dec 2011
installed bamf cubed rezound 1.0.1 and got it to work. heres the zip
Attached Files
File Type: zip SwitchMountV2.1.zip - [Click for QR Code] (143.9 KB, 21 views)
 
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

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more