Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
talmeida
Old
#1  
Member - OP
Thanks Meter 17
Posts: 37
Join Date: Sep 2010
Cool [HOWTO] mount EMMC and External SD on CM7 as it is on Stock ROMs

Hello Everyone.
In this post, I would like to show how to mount Internal SD card and External SD card when using Cyanogenmod 7 ROM.
I had some issues because CM7 mounts the internal SD card under /mnt/emmc and mounts external SD card under /mnt/sdcard.
As you know, there are many applications that download data using /mnt/sdcard as path and if you have CM7 way of mounting these apps won't work.

So to mount Internal SD card to /mnt/sdcard and External SD card to /mnt/sdcard/external_sd as it is done on Stock ROMs proceed with the following:

1 - Open the file /etc/vold.fstab with your preferred text editor (I use root Explorer) and find and modify the last lines as below an then save:

# internal sdcard
dev_mount emmc /mnt/sdcard 28 /devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0

# external sdcard
dev_mount sdcard /mnt/sdcard/external_sd auto /devices/platform/msm_sdcc.3/mmc_host/mmc2/mmc2

# otg sdcard
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/msm_hsusb_host.0

#end line

2 - Open the file /system/build.prop with your preferred text editor and find and modify the following lines as it is show an then save:

# notify vold we have internal and external sd
ro.additionalmounts=/mnt/sdcard/external_sd
ro.vold.switchablepair=/mnt/sdcard/external_sd,/mnt/sdcard

3 - Reboot the phone and voilá

This procedure worked for me and I have no issues to mount both my Internal and External SD cards when plugging the phone on my laptop.
The Following 11 Users Say Thank You to talmeida For This Useful Post: [ Click to Expand ]
 
AllGamer
Old
(Last edited by AllGamer; 14th March 2012 at 04:11 PM.)
#2  
AllGamer's Avatar
Retired Forum Moderator
Thanks Meter 1483
Posts: 11,360
Join Date: May 2008
Location: buried under loads of work IRL

 
DONATE TO ME
a good guide indeed for the CM7 ROM users

I did something similar for all my Gameloft games, EA games, Glu games, and DATA partition, and Download, and all the other stuff, basically i mounted everything off to my 64 GB SD card instead of internal SD

lets give this topic some flight time, stuck for a month, it'll come off by itself
also added to main INDEX

Donation is appreciated but not required, a cup of Coffee would suffice
Get 16 GB of Legit Free Space in Dropbox

Samsung i9000m: on CM9.0
Samsung Nexus S: on JB 4.1.1
Motorola Milestone XT720: on CM6.3.5.3
Samsung Galaxy S II SGH-T989: on CM9.1
Samsung Galaxy NOTE SGH-i717r: on CM9.0
 
talmeida
Old
#3  
Member - OP
Thanks Meter 17
Posts: 37
Join Date: Sep 2010
Thanks AllGamer...
 
liderbravin
Old
#4  
Senior Member
Thanks Meter 29
Posts: 215
Join Date: Jul 2011
Location: pompano beach
thanks, i was looking for something like this for a while.
 
simple23227
Old
#5  
simple23227's Avatar
Member
Thanks Meter 19
Posts: 65
Join Date: Oct 2011
Thanks so much for this. Thanks a bunch!!!
 
talmeida
Old
#6  
Member - OP
Thanks Meter 17
Posts: 37
Join Date: Sep 2010
Default ICS

Can someone who had flashed ICS Alpha builds tell us if this procedure works on them?
Thanks and I am glad I'd helped someone by doing this post :)
 
jomeister15
Old
#7  
jomeister15's Avatar
Senior Member
Thanks Meter 601
Posts: 344
Join Date: Mar 2011

 
DONATE TO ME
Testing this out right now on Isotope, let's all keep our fingers crossed.
Click here if you like drops and/or boxes.

Current Phone: SGS II Skyrocket by AT&T w/LTE

Current ROM: That one rom by that one place

Current Projects: Evervolv for skyrocket, ICS for 8.9 tab, ICS rom for skyrocket

Backup Phone: Samsung Cappy w/latest CM9 nightly and Icy Glitch Kernel
Phun Phone: iPhone 3g 3.1.2 w/ Android 2.3.3
The Following User Says Thank You to jomeister15 For This Useful Post: [ Click to Expand ]
 
ngu
Old
#8  
ngu's Avatar
Junior Member
Thanks Meter 0
Posts: 23
Join Date: Nov 2011
Quote:
Originally Posted by talmeida View Post
Hello Everyone.
In this post, I would like to show how to mount Internal SD card and External SD card when using Cyanogenmod 7 ROM.
I had some issues because CM7 mounts the internal SD card under /mnt/emmc and mounts external SD card under /mnt/sdcard.
As you know, there are many applications that download data using /mnt/sdcard as path and if you have CM7 way of mounting these apps won't work.

So to mount Internal SD card to /mnt/sdcard and External SD card to /mnt/sdcard/external_sd as it is done on Stock ROMs proceed with the following:

1 - Open the file /etc/vold.fstab with your preferred text editor (I use root Explorer) and find and modify the last lines as below an then save:

# internal sdcard
dev_mount emmc /mnt/sdcard 28 /devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0

# external sdcard
dev_mount sdcard /mnt/sdcard/external_sd auto /devices/platform/msm_sdcc.3/mmc_host/mmc2/mmc2

# otg sdcard
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/msm_hsusb_host.0

#end line

2 - Open the file /system/build.prop with your preferred text editor and find and modify the following lines as it is show an then save:

# notify vold we have internal and external sd
ro.additionalmounts=/mnt/sdcard/external_sd
ro.vold.switchablepair=/mnt/sdcard/external_sd,/mnt/sdcard

3 - Reboot the phone and voilá

This procedure worked for me and I have no issues to mount both my Internal and External SD cards when plugging the phone on my laptop.
does it work for other devices cm7 roms??
 
drzplaya1121
Old
(Last edited by drzplaya1121; 22nd March 2012 at 01:00 AM.)
#9  
Senior Member
Thanks Meter 19
Posts: 260
Join Date: Aug 2009
Location: Bronx, NY
tried it and didn't work for me. Might have typed it wrong. Will try again.

I only used the file browser to see if i can access both the emmc and the sd card but could only get to the emmc
 
multipol
Old
#10  
multipol's Avatar
Member
Thanks Meter 11
Posts: 73
Join Date: Nov 2011
Location: Varese
I will try...

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

Advanced Search
Display Modes

report this ad
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

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

Careers in Android: Recruiter Reveals How Resumes are Chosen – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

HttpClient Tutorial to Upload and Download with Your App

Developers wanting to interact with the Internet need to choose a package to do the … more