5,815,265 Members 39,495 Now Online
XDA Developers Android and Mobile Development Forum

[HOWTO] mount EMMC and External SD on CM7 as it is on Stock ROMs

Tip us?
 
talmeida
Old
#1  
Member - OP
Thanks Meter 20
Posts: 42
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 14 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 1,578
Posts: 11,521
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

Samsung i9000m: on CM10
Samsung Nexus S: on JB 4.2.2
Samsung Galaxy S II SGH-T989: on CM10
Samsung Galaxy NOTE SGH-i717r: on CM10
Samsung Galaxy NOTE 3 SM-N900W8: stock 4.3
 
talmeida
Old
#3  
Member - OP
Thanks Meter 20
Posts: 42
Join Date: Sep 2010
Thanks AllGamer...
 
liderbravin
Old
#4  
Senior Member
Thanks Meter 29
Posts: 220
Join Date: Jul 2011
Location: pompano beach
thanks, i was looking for something like this for a while.
 
simple23227
Old
#5  
simple23227's Avatar
Senior Member
Thanks Meter 35
Posts: 105
Join Date: Oct 2011
Thanks so much for this. Thanks a bunch!!!
 
talmeida
Old
#6  
Member - OP
Thanks Meter 20
Posts: 42
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 604
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 1
Posts: 27
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 20
Posts: 286
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
Senior Member
Thanks Meter 16
Posts: 105
Join Date: Nov 2011
Location: Varese
I will try...

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Recovery? Check. Root? Check. Android One Ready for Lift Off!

Inthe last few weeks, we have been written quite a lot aboutAndroid One … more

Change the Style of Your Notifications with HeadsUp

Head Up notifications is one of these upcoming features that Android developers hid deep … more

Google Play Store to Show Price Ranges for In-App Purchases

Google recently announced a change to Google Play Store policy that requires … more

XDA Xposed Tuesday: How to Shut Up Your Phone – XDA Developer TV

So many different applications want to send us notifications that … more