Partitions for the x2

55 posts
Thanks Meter: 10
 
By Bigdragon2k3, Member on 1st June 2011, 05:48 AM
Post Reply Email Thread
Im updating the first post so everyone can see how to do this u can get the updated vold.fstab from chevy on pg 2.

Basically you must be rooted before doing this.

Download above file posted by chevy

Use a file explorer program like root explorer browse to your download folder or wherever you downloaded the above file. Extract it and when it says go to extracted folder say take me there.

Once there click on the vold.fstab and long press it and select copy from the menu that pops up.

Then browse to the root of your system device and select the system folder

Once there select the etc folder

Once in there at the top right of the screen if your using root explorer change the r/o to r/w and paste the file in here.

It will ask you to overnight the file. Select yes to overright

Then at the top right of your screen change the r/w to r/o

Finally reboot your phone and you should be good to go.

To verify just go to settings and select sd card and storage and you should see your external sd card showing up as the main sd card now.

Sent from my DROID X2 using Tapatalk
1st June 2011, 08:36 AM |#2  
Member
Thanks Meter: 4
 
More
I haven't had time to make the change myself, but it can be done if you are rooted.

I've attached the files that need to be changed as a rar file.

"init.rc" is a initialization file that will create the directories /mnt/sdcard/ & /mnt/sdcard-ext/ on the system partition. It will also create a symbolic link to those directories as /sdcard/ and /sdcard-ext/ respectively.

Then, "vold.fstab" is used to mount the internal memory to /mnt/sdcard/ & mount sdcard to /mnt/sdcard-ext/

You should back up the original files from your device, the vold.fstab I attached has been edited to switch the internal memory to /sdcard-ext/ & sdcard to /sdcard/
Attached Files
File Type: rar X2_SD_MountPoints.rar - [Click for QR Code] (8.7 KB, 206 views)
The Following User Says Thank You to cvmaas For This Useful Post: [ View ] Gift cvmaas Ad-Free
1st June 2011, 04:58 PM |#3  
OP Member
Thanks Meter: 10
 
More
Thank you ill try this when I get off of work.

Sent from my DROID X2 using Tapatalk
1st June 2011, 11:47 PM |#4  
Senior Member
Flag Wilmington, NC
Thanks Meter: 12
 
More
Quote:
Originally Posted by Bigdragon2k3

Thank you ill try this when I get off of work.

Sent from my DROID X2 using Tapatalk

Let us know how it goes. I'm interested in this as well.
2nd June 2011, 12:06 AM |#5  
OP Member
Thanks Meter: 10
 
More
Ok well I tried this but I guess I messed up some where I ran the init.rc first. Then I backed up the vold.fstab and put it in a folder. I then put the new vold.fstab in etc/ now neither of my sd cards are being mounted. Maybe im trying something too advanced for me. But hopefully there's an easy fix. Was I supposed to push the file with adb

Sent from my DROID X2 using Tapatalk
2nd June 2011, 04:30 AM |#6  
Senior Member
Thanks Meter: 286
 
Donate to Me
More
I wouldn't be messing with critical system files like that until an SBF is available for our phone. Just my 2c.
2nd June 2011, 08:53 AM |#7  
Member
Thanks Meter: 4
 
More
You can adb the original files you backed up onto the device and reboot and it will remount the partitions. I did the same thing when I tried and made the mistake of overwriting the backup I made when I saved the edits in RootExplorer, so I had to grab the files off my wifes phone and push them onto mine to get it back up. Other than the devices not mounting, there isn't much harm in editing these files.

Did you edit both files at the same time to match the directories and reboot? If they don't match the devices won't mount when the vold.fstab is called. The edit needs to be done at the same time. In init.rc make sure the paths for the export & mkdir are the same. I was able to get it to create the directory /mnt/sdcard/ext/ so the external sdcard would have been in a directory inside the internal sdcard, but couldn't get it to mount to that directory.

Where I got hung up was on the vold.fstab edit, the formatting kept getting messed up and the file wouldn't work.

I was able to change the symbolic links around which helps if the sdcard path is hardcoded in the app to be /sdcard/, but when getExternalStorage is called by the app to get the path it will return the mnt/sdcard/ path, so that only helped get certain apps to store their files on the real sdcard.

The link below is how this edit is done on the Galaxy S, it was successful on that device so thats how I know it can be done on ours if we figure it out.

http://forum.xda-developers.com/show....php?t=1094090
3rd June 2011, 01:00 AM |#8  
OP Member
Thanks Meter: 10
 
More
Well I got it back to default now. Im not sure if you have taken a look at the original one posted for the i9003 here http://forum.xda-developers.com/show....php?t=1088474. When I went to edit yours it seeemed like you had extra stuff in there. Also on the other post it diddnt say anything about the init.rc. Not saying that your wrong I just diddnt see it mentioned. But hopefully we can figure this out and get it working.
4th June 2011, 09:32 AM |#9  
Member
Thanks Meter: 4
 
More
Yeah, the vold.fstab I attached had the formatting messed up when I saved it in notepad and after that it didn't seem to accept any changes I made. I need to replace it with a fresh original file, I attached it to reference what I was saying, but should have been more clear to start with a clean copy. Sorry about that.

If our goal is just to swap the two cards, editing the vold.fstab is all that is needed, but if we want to combine the cards we need to edit the init.rc to make the /ext/ directory inside of /sdcard/, that way the apps that are setup to only work with the 1 card will be able to use both as the internal card would be mounted inside a directory of the real SDcard. Ideally I was thinking of mounting the internal storage to the /sdcard/data/ folder so app2SD stuff would go there, but started by trying to set it as /sdcard/ext/ as that wasn't a preexisting directory on my SDcard so it wouldn't be an additional monkey fighting the mod.
4th June 2011, 03:46 PM |#10  
OP Member
Thanks Meter: 10
 
More
Ok I understand now. Hopefully we could get those files coded so we can try this out. This would be a great addition.

Sent from my DROID X2 using Tapatalk
4th June 2011, 04:58 PM |#11  
aDigitalPhantom's Avatar
Senior Member
Flag Classified
Thanks Meter: 121
 
More
you needed a better text editor. i did the exact same thing to vold.fstab and it works.

use the attached file.
Attached Thumbnails
Click image for larger version

Name:	screencap.jpg
Views:	480
Size:	27.5 KB
ID:	615824  
Attached Files
File Type: zip vold.zip - [Click for QR Code] (917 Bytes, 448 views)
The Following 3 Users Say Thank You to aDigitalPhantom For This Useful Post: [ View ] Gift aDigitalPhantom Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes