Google Confirms “Android Lollipop Day” for November 3rd

A little over a week ago, Google announced the latest iteration of … more

Get Your XDA 2015 Custom Avatar and Signature Images Here

As stated in our motto, XDA Developer is for developers, by developers. The … more

Pin Your Photos on Android Lollipop with Photo Pinner

In the last few weeks,we have been talking quite a bit about Android 5.0 Lollipop. This … more

Samsung Galaxy Note Edge Hands On – XDA TV

Perhaps one of the more peculiar announcements this year was the curved edge-screened … more
Post Reply

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

OP talmeida

14th March 2012, 01:51 AM   |  #1  
OP Member
Thanks Meter: 20
 
42 posts
Join Date:Joined: Sep 2010
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: [ View ]
14th March 2012, 04:08 PM   |  #2  
AllGamer's Avatar
Retired Forum Moderator
Flag buried under loads of work IRL
Thanks Meter: 1,579
 
11,521 posts
Join Date:Joined: May 2008
Donate to Me
More
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
Last edited by AllGamer; 14th March 2012 at 04:11 PM.
14th March 2012, 06:19 PM   |  #3  
OP Member
Thanks Meter: 20
 
42 posts
Join Date:Joined: Sep 2010
Thanks AllGamer...
15th March 2012, 03:38 PM   |  #4  
Senior Member
Flag pompano beach
Thanks Meter: 29
 
220 posts
Join Date:Joined: Jul 2011
More
thanks, i was looking for something like this for a while.
16th March 2012, 01:05 AM   |  #5  
simple23227's Avatar
Senior Member
Thanks Meter: 35
 
105 posts
Join Date:Joined: Oct 2011
Thanks so much for this. Thanks a bunch!!!
16th March 2012, 03:55 AM   |  #6  
OP Member
Thanks Meter: 20
 
42 posts
Join Date:Joined: Sep 2010
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 :)
21st March 2012, 12:16 AM   |  #7  
jomeister15's Avatar
Senior Member
Thanks Meter: 604
 
344 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Testing this out right now on Isotope, let's all keep our fingers crossed.
The Following User Says Thank You to jomeister15 For This Useful Post: [ View ]
21st March 2012, 06:25 PM   |  #8  
ngu's Avatar
Junior Member
Thanks Meter: 1
 
27 posts
Join Date:Joined: Nov 2011
Quote:
Originally Posted by talmeida

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??
22nd March 2012, 12:53 AM   |  #9  
Senior Member
Flag Bronx, NY
Thanks Meter: 20
 
286 posts
Join Date:Joined: Aug 2009
More
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
Last edited by drzplaya1121; 22nd March 2012 at 01:00 AM.
4th April 2012, 10:04 AM   |  #10  
multipol's Avatar
Senior Member
Flag Varese
Thanks Meter: 16
 
105 posts
Join Date:Joined: Nov 2011
More
I will try...

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes