Use an SDcard as internal storage - Gingerbread - Samsung Epic 4G Touch

Hey guys,
This guide is how to reverse the external and internal storages, or, use an sdcard as internal storage, and vice versa.
I wrote a guide similar to this, for my other phone (Photon 4G). Now that I got this phone though, and purchased another 32GB Sdcard, I had to figure it out on this phone.
I CANNOT BE HELD RESPONSIBLE IF YOU BRICK YOUR PHONE, OR DAMAGE YOUR SDCARD.
In vold.fstab, in the directory /system/etc/, you have two lines. Edit them with Root explorer's included "text editor", or any other good (root) text editor. Make sure you have r/w on. Find the below two lines:
Code:
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
}
dev_mount sdcard /mnt/sdcard 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
and
Code:
# external sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/virtual/block/cyasblkdevblk0
What I did, and what proved successful, is this:
Code:
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
}
dev_mount sdcard [COLOR="red"]/mnt/sdcard/external_sd[/COLOR] 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
and
Code:
# external sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 [COLOR="Red"]/mnt/sdcard[/COLOR] auto /devices/virtual/block/cyasblkdevblk0
Replace the regular lines, with the red lines, save, and power off your phone. Now, boot into recovery, and wipe dalvik Cache. Start up your phone, and BAM, your internal is now marked as external, and your external, is now your internal
_______________
If you would like to move apps to your phones actual internal storage (now marked as external), simply, change:
Code:
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
to
Code:
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
[COLOR="red"]asec = enable[/COLOR]
discard = disable
Save, power off, wipe dalvik, reboot.
____________
I use Stock EL29, rooted. (this should work on ICS, using a similar method).
Enjoy, and press the thanks button

Seen this befor on the captivate glide forum. But thanks nonetheless your info is well written.
Sent from my SPH-D710 using xda app-developers app

D2dyno said:
Hey guys,
This guide is how to reverse the external and internal storages, or, use an sdcard as internal storage, and vice versa.
I wrote a guide similar to this, for my other phone (Photon 4G). Now that I got this phone though, and purchased another 32GB Sdcard, I had to figure it out on this phone.
In vold.hstab, in the directory /system/etc/, you have two lines. Edit them with Root explorer's included "text editor", or any other good (root) text editor. Make sure you have r/w on. Find the below two lines:
Code:
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
}
dev_mount sdcard /mnt/sdcard 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
and
Code:
# external sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/virtual/block/cyasblkdevblk0
What I did, and what proved successful, is this:
Code:
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
}
dev_mount sdcard [COLOR="red"]/mnt/sdcard/external_sd[/COLOR] 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
and
Code:
# external sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 [COLOR="Red"]/mnt/sdcard[/COLOR] auto /devices/virtual/block/cyasblkdevblk0
Replace the regular lines, with the red lines, save, and power off your phone. Now, boot into recovery, and wipe dalvik Cache. Start up your phone, and BAM, your internal is now marked as external, and your external, is now your internal
_______________
If you would like to move apps to your phones actual internal storage (now marked as external), simply, change:
Code:
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
to
Code:
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
[COLOR="red"]asec = enable[/COLOR]
discard = disable
Save, power off, wipe dalvik, reboot.
____________
I use Stock EL29, rooted. (this should work on ICS, using a similar method).
Enjoy, and press the thanks button
Click to expand...
Click to collapse
Thank you so much man, been trying to figure out how to do this for too long. Now maybe i can get link2sd to work...
Sent from my SPH-D710 using xda premium

rovar said:
Seen this befor on the captivate glide forum. But thanks nonetheless your info is well written.
Sent from my SPH-D710 using xda app-developers app
Click to expand...
Click to collapse
Thanks I originally wrote it, but it's much different between phones (especially different companies), so I wrote one here

Thanks a lot I'm assuming for JB, since the directories have different names, we just use those instead?

I think so. I am not 100% sure though.

Once I get my sdcard (1st one was defective lol), I'll update the OP with how to do it for ICS.

You won't be able to use nandroid to backup any apps moved to sd if you use this method.
Sent from my SAMSUNG-SGH-I717 using xda premium

chris41g said:
You won't be able to use nandroid to backup any apps moved to sd if you use this method.
Sent from my SAMSUNG-SGH-I717 using xda premium
Click to expand...
Click to collapse
Correct. I don't flash ROMS though. Stock is good enough for me so it's not really a concern for me.

Anybody willing to help me to get this working on ICS? It's easy getting them switched, but the internal storage won't mount if you switch them.

Well, I got it to work, but you have to manually mount the internal storage

sir can you explain to me what is discard? what happend if I enable or disable that?TIA
Sent from my GT-S5300 using xda app-developers app

Lovensky said:
sir can you explain to me what is discard? what happend if I enable or disable that?TIA
Sent from my GT-S5300 using xda app-developers app
Click to expand...
Click to collapse
What do you mean by disable it? And what are you referring to?

# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
}
dev_mount sdcard /mnt/sdcard/external_sd 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
Click to expand...
Click to collapse
what happen if i disable or enable the discard in internal sdcard???

Lovensky said:
what happen if i disable or enable the discard in internal sdcard???
Click to expand...
Click to collapse
In that quote, the discarad is referring to USB storage, not the sdcard.

Hmm...ok..but what will happen if i enable the discard in usb storage??
Sent from my GT-S5300 using xda app-developers app

it works!
thanks for your guide! ^_^

no go
I went through system/etc and inside vold.fstab what i found was this
Code:
##vold configuration file for the emulator/SDK
## this is the direct uevent device path to the sd slot on the device
#emu_media_path /devices/platform/goldfish_mmc.0/mmc_host/mmc0
dev_mountsdcard /mnt/sdcard auto /devices/platform/bcm_sdhc.3/mmc_host/mmc1
I'm using a GT-S5830i stock

Related

[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.
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
Thanks AllGamer...
thanks, i was looking for something like this for a while.
Thanks so much for this. Thanks a bunch!!!
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
Testing this out right now on Isotope, let's all keep our fingers crossed.
talmeida said:
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.
Click to expand...
Click to collapse
does it work for other devices cm7 roms??
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
I will try...
talmeida said:
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.
Click to expand...
Click to collapse
Oh man, thank you!
This worked like a charm on my Epic Touch 4G.
tried this in a aokp rom(hydrogen), and it doesn't work.
Why not mount the emmc to /mnt/sdcard/external_sd in addition to /mnt/eemc for backward compatibility?
Does it work on CM9 too?
I had ICS Passion v13 installed on my Samsung Vibrant before, and my vold.fstab file is a bit different from cm7's. I now have cm7 installed but the vold.fstab file doesn't seem to have changed with the change of roms.
It would be great if you could post the fstab and build.prop files somewhere online from where I can download it and replace in my phone because I don't want to mess up again(I encountered the "encryption failed" bug in ICS today and I tore my hair out fixing that..so yeah.)
Thank you.
Anyone else that's on AOKP have any luck getting this to work??? The flip-flooped SD cards on CM9/AOKP is seriously annoying..
Sent from my AOKP'd T989
This is the vold.fstab file in my Samsung Vibrant:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
# internal sdcard
dev_mount emmc /mnt/emmc 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
# external sdcard
dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2
As you can see, it is differs from the one you posted in the guide. What steps should I take now?
Can anyone show me how to do this with captivate cm7?
Please and thanks!
fresherthanU said:
Anyone else that's on AOKP have any luck getting this to work??? The flip-flooped SD cards on CM9/AOKP is seriously annoying..
Sent from my AOKP'd T989
Click to expand...
Click to collapse
has anyone found a solution for AOKP yet? I find that many of my apps such as google music and my camera don't save files properly. This has caused me to switch back to juggernaut.
major thanks to anyone who can help!

SD card with 2 partitions

As i am new on this site i cant add thread in devel site. Please need help i have 64 gig microsd and have 2 partitioned fat32 formatted
1 partition 20 gb (want this as for installing apps)
2 partition 40 gb (want to store photos videos atc...)
so until now i have original swapped memories fstab like this
----------------------------------------------------------------------------------------------------------------------------------------
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = enable
discard = enable
format_option = -r 1980
}
dev_mount sdcard /mnt/sdcard/external_sd 4 /devices/platform/sdhci-tegra.3/mmc_host/mmc0/mmc0
# external sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1/mmc1
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/tegra-ehci.0/usb
#end line ## keep this line
--------------------------------------------------------------------------------------------------------------------------------------
in text dev_mount sdcard1 - that's 20 gb of my partition
if i want add another partition do i need to do this way???
}
dev_mount sdcard2 /mnt/Data auto /devices/platform/sdhci-tegra.2/mmc_host/mmc2/mmc2
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
Any help with this??? Or is possible that android gonna see 2 sdcard partitions???
edworkscomputing said:
As i am new on this site i cant add thread in devel site. Please need help i have 64 gig microsd and have 2 partitioned fat32 formatted
1 partition 20 gb (want this as for installing apps)
2 partition 40 gb (want to store photos videos atc...)
so until now i have original swapped memories fstab like this
----------------------------------------------------------------------------------------------------------------------------------------
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = enable
discard = enable
format_option = -r 1980
}
dev_mount sdcard /mnt/sdcard/external_sd 4 /devices/platform/sdhci-tegra.3/mmc_host/mmc0/mmc0
# external sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1/mmc1
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/tegra-ehci.0/usb
#end line ## keep this line
--------------------------------------------------------------------------------------------------------------------------------------
in text dev_mount sdcard1 - that's 20 gb of my partition
if i want add another partition do i need to do this way???
}
dev_mount sdcard2 /mnt/Data auto /devices/platform/sdhci-tegra.2/mmc_host/mmc2/mmc2
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
Any help with this??? Or is possible that android gonna see 2 sdcard partitions???
Click to expand...
Click to collapse
If i remember right, this device only accepts 32gb microsd.. think that might be the problem, ace? And on another note, since we are using the phone to try and figure this out, why not insert the card into your computer and fix the format issue like a normal person instead of using all sorts of complicated methods that are way more difficult? it only makes since to use methods already in place to make life easier on us, or unless your a robot, which i can see for developers sometimes they dream in binary :laugh: they tend to use the difficult methods to show off lol.
Pretty sure you have to format any card larger than 32gb from within Android to get the Glide to register it, from what I've read anyway. I've seen several posts referencing this. If formatted on PC, it won't register with our phones.
Since (afaik) there's no way to partition the card from within android, perhaps with an app but no guarantee it will detect a valid card afterwards, you may have to keep it unpartitioned.
I believe there is a post maybe a page back on this particular forum that confirms cards over 32gb will work. Shouldn't have to dig too deep.
So i made 1 partition 64gb uder linux i made fat32 formatted phone have no problem to recognize it. Problem is that when i downloading files larger than 700 mb phone freeze. not sure if that do root or the card ... must do test first with original firmware i think 1.3 ghz kernel is not stable just testing now will give more infos after...
edworkscomputing said:
So i made 1 partition 64gb uder linux i made fat32 formatted phone have no problem to recognize it. Problem is that when i downloading files larger than 700 mb phone freeze. not sure if that do root or the card ... must do test first with original firmware i think 1.3 ghz kernel is not stable just testing now will give more infos after...
Click to expand...
Click to collapse
So i was right do not install 1.3 kernel i downgraded to 1.2 ghz and everithing working ok!!! 64gb card confirmed for use in glide
edworkscomputing said:
So i was right do not install 1.3 kernel i downgraded to 1.2 ghz and everithing working ok!!! 64gb card confirmed for use in glide
Click to expand...
Click to collapse
do 2 partitions work?
Sent from my SAMSUNG-SGH-I927R using xda app-developers app
I stand corrected glad to be proven wrong!
Sent from my SAMSUNG-SGH-I927 using xda app-developers app

Use an SDcard as internal storage - ICS

Hey guys,
This guide is how to reverse the external and internal storages, or, use an sdcard as internal storage, and vice versa.
I wrote a guide similar to this, for my other phone (Photon 4G). Now that I got this phone though, and purchased another 32GB Sdcard, I had to figure it out on this phone.
I CANNOT BE HELD RESPONSIBLE IF YOU BRICK YOUR PHONE, OR DAMAGE YOUR SDCARD.
In vold.fstab, in the directory /system/etc/, you have two lines. Edit them with Root explorer's included "text editor", or any other good (root) text editor. Make sure you have r/w on. Find the below two lines:
Code:
# internal sdcard
{
storage_struct = cover, "/mnt/sdcard/external_sd","/mnt/sdcard/usbStorage"
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun0/file
discard = enable
}
dev_mount sdcard /mnt/sdcard 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
and
Code:
# external sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun1/file
android_secure_containers = enable
}
# Added_Mallesh_26122011
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/virtual/block/cyasblkdevblk0
What I did, and what proved successful, is this:
Code:
# internal sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun0/file
[COLOR="RoyalBlue"]android_secure_containers = enable[/COLOR]
}
dev_mount sdcard [COLOR="Red"]/mnt/sdcard/external_sd[/COLOR] 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0
and
Code:
# external sdcard
{
[COLOR="Red"]storage_struct = cover, "/mnt/sdcard/external_sd","/mnt/sdcard/usbStorage"
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun1/file[/COLOR]
android_secure_containers = enable
}
# Added_Mallesh_26122011
dev_mount sdcard1 [COLOR="red"]/mnt/sdcard[/COLOR] auto /devices/virtual/block/cyasblkdevblk0auto /devices/virtual/block/cyasblkdevblk0
Replace the regular lines, with the red lines, save, and power off your phone. Now, boot into recovery, and wipe dalvik Cache. Start up your phone, and BAM, your internal is now marked as external, and your external, is now your internal
Note: you must manually re-mount your internal storage (now marked sdcard) every time you reboot. It is as simple as going into Settings>Storage>Mount SD Card. It's a small price to pay for me at least
_______________
If you would like to move apps to your phones actual internal storage (now marked as external), simply, add the blue line.
Save, power off, wipe dalvik, reboot.
____________
I use Stock FH13, rooted.
Enjoy, and press the thanks button
Am I first) )))) Edit file now, need to reboot give me a sec.
P.s small remark OP says file name vold.hstab, but its vold.fstab)))
YEEESAAPP. BABY ITS WORK. THNX BRO NICE FINDING!!!
vasiaeva said:
Am I first) )))) Edit file now, need to reboot give me a sec.
P.s small remark OP says file name vold.hstab, but its vold.fstab)))
YEEESAAPP. BABY ITS WORK. THNX BRO NICE FINDING!!!
Click to expand...
Click to collapse
Glad it works! and thanks for the heads up on the typo
Can you help me?? Do the same with my Galaxy Tab 7 . As far as you have more experience ethane I do.
The fstab file is deferential than ET4G one
# Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
# internal sdcard
dev_mount emmc /storage/sdcard1 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
# external sdcard
dev_mount sdcard /storage/sdcard0 auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1 /devices/platform
/s3c-sdhci.2/mmc_host/mmc2
#end line ## keep this line
Sent from my GT-P1000 using Xparent SkyBlue Tapatalk 2
This is from Jelly bean, right? Well, you would switch the "sdcard0" and "sdcard1".
Yea its JB. you mean like that
# internal sdcard
dev_mount emmc /storage/sdcard0 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
# external sdcard
dev_mount sdcard /storage/sdcard1 auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1 /devices/platform
/s3c-sdhci.2/mmc_host/mmc2
#end line ## keep this line
Use an sdcard as internal storage - JB
Hello,
Here is what you would need to switch:
Code:
# internal sdcard
dev_mount emmc /storage/sdcard1 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
and
Code:
# external sdcard
dev_mount sdcard /storage/sdcard0 auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1 /devices/platform
/s3c-sdhci.2/mmc_host/mmc2
#end line ## keep this line
Replace the regular code, with the red lines (they're not actually red, just for the sake of highlighting they are):
Code:
# internal sdcard
dev_mount emmc [COLOR="Red"]/storage/sdcard0[/COLOR] 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
and
Code:
# external sdcard
dev_mount sdcard [COLOR="red"]/storage/sdcard1[/COLOR] auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1 /devices/platform
/s3c-sdhci.2/mmc_host/mmc2
#end line ## keep this line
If you receive force close errors from a process such as "com.android.media.service", then wipe your dalvik cache
D2dyno said:
Hello,
Here is what you would need to switch:
Code:
# internal sdcard
dev_mount emmc /storage/sdcard1 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
and
Code:
# external sdcard
dev_mount sdcard /storage/sdcard0 auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1 /devices/platform
/s3c-sdhci.2/mmc_host/mmc2
#end line ## keep this line
Replace the regular code, with the red lines (they're not actually red, just for the sake of highlighting they are):
Code:
# internal sdcard
dev_mount emmc [COLOR="Red"]/storage/sdcard0[/COLOR] 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
and
Code:
# external sdcard
dev_mount sdcard [COLOR="red"]/storage/sdcard1[/COLOR] auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1 /devices/platform
/s3c-sdhci.2/mmc_host/mmc2
#end line ## keep this line
If you receive force close errors from a process such as "com.android.media.service", then wipe your dalvik cache
Click to expand...
Click to collapse
I'm stone (((
Sent from my SPH-D710 using Xparent ICS Tapatalk 2
Please Help! :'(
here's the content of my vold.fstab:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/sdcard2 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /mnt/sdcard auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sdcard2 /mnt/sdcard /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
I can't understand it at all! I can't find those "lines". Please help me. :'(

[A] CM10 Reverse mounting Internal SD with External, Saving camera pics to SD

I'm not responsible if you do harm to your phone, I'm sure if you mess up you can just reflash cm10 through CWM and be fine though.
backup file /etc/vold.fstab
edit file /etc/vold.fstab (i used ES File Explorer)
towards the end of the file you will see
Original (FYI these mount points are specific to T989)
# internal sdcard
dev_mount sdcard /storage/(some long path)
# external sdcard
dev_mount external_sd /storage/(some long path)
swap the mount points for these 2 dev_mount
Example
# internal sdcard
dev_mount external_sd /storage/(some long path)
# external sdcard
dev_mount sdcard /storage/(some long path)
Save and reboot
Click thanks if this helped

How do I default to external sdcard01 ?

I want my apps to be automatically installed on the external card. I assumed that bladev-swap-sd.zip would do it and so installed it under recovery mode. It puts vold.emmc.fstab into /system/etc/
This is the relevant part of the the file:
#dev_mount emmc /storage/sdcard0 20 /devices/platform/msm_sdcc.3/mmc_host/mmc0
#dev_mount sdcard /storage/sdcard1 auto /devices/platform/msm_sdcc.1/mmc_host
dev_mount sdcard /storage/sdcard1 20 /devices/platform/msm_sdcc.3/mmc_host/mmc0
dev_mount emmc /storage/sdcard0 auto /devices/platform/msm_sdcc.1/mmc_host
It has made no difference. I just installed an app from G play and it was installed into sdcard0 instead of sdcard01
I am using CM11c0_codina.nova plus ace2nutzer.kernel.4.4 codina
What do I have to do to make the sdcard1 the default for the phone?
R
It seems you are trying to swap internal memory with external memory there. Have you tried using NT-App (for ace kernel) or ChronoKernelSetting (for Chrono's kernel) ?

Categories

Resources