[MOD] Swap Internal & External SD Cards - Galaxy S I9000 Android Development

Hi all, I came scross this awesome mod for the I9003 located here and thought I would give it a go on my I9000.
Now any of you who love your mobile gaming will have come across this problem, you install a game and it downloads loads of data over Wifi for you to play it then you find you're running out of space on the internal SD (I had this after going mad with the Gameloft games for £1 offer, bought loads and had no space for the data to play them) so this mod allows you to swap the way the SD cards mount within Android. I have made and tested this mod on JPY 2.2.1 but I think it should work on any but I TAKE NO RESPONSIBILITY FOR ANY DATA LOSS THAT MAY OCCUR etc. Once completed you can use any size MicroSD card as your internal SD instead of the 5.78GB that the SGS usually offers you.
Then follow the instructions below.
To do this you need root access:
1) download the attached file, unzip it and copy it on to your external_SD.
Please back up your data, both Phone as well as SDCARD using ClockworkMOD recovery or similar, before proceeding further as a precautionary measure, in case you encounter trouble. Though it is not necessary.
2) Now you need to backup your original vold.fstab from /system/etc folder to sdcard/vold directory using Root explorer, just incase if you encounter any problem, you can replace the backed up original file.
For this Browse to /system/etc folder, copy "vold.fstab" from that folder, then go to /sdcard, paste the "vold.fstab" inside a folder eg: sdcard/vold.
3) Now using root explorer, Copy the "vold.fstab" downloaded from attachment here and put on your extrenal_SD. Browse to /system/etc folder. Make sure that file system is R/W and paste "vold.fstab". accept permission to replace the original file.
4) Restart ur phone
This is how it's done on the I9003: -
Its easy. You just have to swap the device mount path in vold.fstab as below:
The original:
## 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
{
mount_deep = 0
ums_path = /sys/devices/platform/musb_hdrc/gadget/lun0/file
asec = disable
discard = enable
mbr_policy = skip
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
# externel sdcard
{
mount_deep = 1
ums_path = /sys/devices/platform/musb_hdrc/gadget/lun1/file
asec = enable
mbr_policy = overwrite
}
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
#end line ## keep this line
Modified as:
## 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
{
mount_deep = 1
ums_path = /sys/devices/platform/musb_hdrc/gadget/lun0/file
asec = enable
mbr_policy = overwrite
}
dev_mount sdcard1 /mnt/sdcard/external_sd 1 /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
# externel sdcard
{
mount_deep = 0
ums_path = /sys/devices/platform/musb_hdrc/gadget/lun1/file
asec = disable
discard = enable
mbr_policy = skip
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
#end line ## keep this line
to open the file open notepad and drag the vold.fstab on to notepad and save it after edit. Dont forget to back up original file. This should work on I9000, but not tested just analyse your vold.fsstab and compare.
All thanks should go to trip007in for the amazing work, all I have done is try to make it work on the I9000

nice find.
just wondering what happens when you boot up without your actually sd card in...

Not sure, never tried it but I'd imagine it will be just like having the internal sd wiped. I'll try it shortly and post the results
Sent from my GT-I9000 using XDA Premium App

Well it all boots up ok but it doesn't show up either memory card, not sure why but its not the end of the world as long as you have an sd card
Sent from my GT-I9000 using XDA Premium App

Just another quick update, if you insert the memory card once the system has booted it instantly mounts it, you just have to manually mount the external (original internal) memory card
Sent from my GT-I9000 using XDA Premium App

Very good find.Thanks
Sent from my GT-I9000 using Tapatalk

Well, sorry I didn't post this sooner but here is the original vold.fstab file:-
## 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/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
## Example of a dual card setup
# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1
## Example of specifying a specific partition for mounts
# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# sdcard mount for the P1
# internal sdcard
{
mount_deep = 0
ums_path = /sys/devices/platform/s3c-usbgadget/gadget/lun0/file
asec = disable
mbr_policy = skip
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
# externel sdcard
{
mount_deep = 1
ums_path = /sys/devices/platform/s3c-usbgadget/gadget/lun1/file
asec = enable
mbr_policy = overwrite
}
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2
#keep this line.
And this is what I edited it to:-
## 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/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
## Example of a dual card setup
# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1
## Example of specifying a specific partition for mounts
# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# sdcard mount for the P1
# internal sdcard
{
mount_deep = 1
ums_path = /sys/devices/platform/s3c-usbgadget/gadget/lun0/file
asec = enable
mbr_policy = overwrite
}
dev_mount sdcard /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.0/mmc_host/mmc0
# externel sdcard
{
mount_deep = 0
ums_path = /sys/devices/platform/s3c-usbgadget/gadget/lun1/file
asec = disable
mbr_policy = skip
}
dev_mount sdcard1 /mnt/sdcard 1 /devices/platform/s3c-sdhci.2/mmc_host/mmc2
#keep this line.
Hope that helps anyone who may be interested

Right guys, I've hit a snag trying to get this working on JVO 2.3.3
I can get the system to see the external SD card as the internal SD but not the original internal SD as the external. Has anybody had any joy getting this to work as I'm pretty stuck now?

Please, can anybody with a bit of coding knowledge for Android help me out with this one? Its frustrating me and I'm really short on time to test all possibilities due to work

Never mind, I worked it out. Here is the mod for anyone running JVO (and possibly all other GingerBread ROMs too): -
Original 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
######################
# sdcard mount for the P1
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
discard = disable
asec = disable
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2
#end line ## keep this line
Click to expand...
Click to collapse
Modified 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
######################
# sdcard mount for the P1
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
discard = disable
asec = disable
}
dev_mount sdcard /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.0/mmc_host/mmc0
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard 1 /devices/platform/s3c-sdhci.2/mmc_host/mmc2
#end line ## keep this line
Click to expand...
Click to collapse
Hope it helps someone out there. I can now easily have all of my Gameloft game data installed without having to chop and change based on which game I'm playing using a 32GB SD card

anyone tried this on JVP yet? Would deffinitely like to use this mod if it works as I too have lots of gameloft game data using up all the space on my internal card.

Yep, I use it on JVP for exactly the same reason, here is the coding for vold.fstab on JVP I use: -
## 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/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
## Example of a dual card setup
# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1
## Example of specifying a specific partition for mounts
# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# sdcard mount for the P1
# internal sdcard
{
mount_deep = 0
ums_path = /sys/devices/platform/s3c-usbgadget/gadget/lun0/file
asec = disable
mbr_policy = overwrite
}
dev_mount sdcard /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.0/mmc_host/mmc0
# externel sdcard
{
mount_deep = 1
ums_path = /sys/devices/platform/s3c-usbgadget/gadget/lun1/file
asec = enable
mbr_policy = skip
}
dev_mount sdcard1 /mnt/sdcard 1 /devices/platform/s3c-sdhci.2/mmc_host/mmc2
#keep this line.
Click to expand...
Click to collapse
And I've attached the file in case you don't want to edit it yourself

Here are the files for JVO as requested. Both original and modified vold.fstab files are included

Has anyone else tried the JVP mod yet and had trouble mounting their SD cards in windows after? I can't seem to get them to work with the modified file. Anyone have any ideas why?

Can anyone help with this? I'm not sure what to try to get this working. The mod works great to swap the sd cards but I cannot mount them in windows whether I select standard usb mass storage or mount through usb debugging mode.
Someone must have some idea what to do?
Sent from my GT-I9000

Can this use on JV5??

netmercenary said:
Can this use on JV5??
Click to expand...
Click to collapse
Not sure, never tried that ROM. If you copy the vold.fstab file from your JV5 ROM and edit it as per the coding I have posted then I cannot see how it cannot work, although I'd keep a copy of your original vold.fstab file somewhere on your system partition in case it goes wrong

bigdyl69 said:
Not sure, never tried that ROM. If you copy the vold.fstab file from your JV5 ROM and edit it as per the coding I have posted then I cannot see how it cannot work, although I'd keep a copy of your original vold.fstab file somewhere on your system partition in case it goes wrong
Click to expand...
Click to collapse
Hi bigdyl69 , here is the orginal vold from my JV5 Rom , could you please help me to have a check ? Thanks !

netmercenary said:
Hi bigdyl69 , here is the orginal vold from my JV5 Rom , could you please help me to have a check ? Thanks !
Click to expand...
Click to collapse
OK, I've edited your vold.fstab and attached it here but I don't have JV5 on my SGS to test it. Make sure you move any apps you have installed to your internal SD back to the phone using the manage applications option, keep a backup of your original vold.fstab file somewhere on your system partition and give it a try

bigdyl69 said:
OK, I've edited your vold.fstab and attached it here but I don't have JV5 on my SGS to test it. Make sure you move any apps you have installed to your internal SD back to the phone using the manage applications option, keep a backup of your original vold.fstab file somewhere on your system partition and give it a try
Click to expand...
Click to collapse
Thanks man ! I'll have a try and gave you a feedback as soon as possible ~

Related

[HELP] Can you swap external sdcard for internal

Hi I have have the Archos 80 g9 8GB Turbo ics I'd like to no if you can switch the internal sdcard for the external sdcard
Iv done it but it stops the internal sdcard being mounted at /sdcard /storage but its still mounted at /data/media
Code:
## 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/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
## Example of a dual card setup
# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1
## Example of specifying a specific partition for mounts
# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
dev_mount volume_sdcard /mnt/data auto /devices/platform/omap/omap_hsmmc.0/mmc_host/mmc1
dev_mount volume_external /mnt/ext_storage auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb2/2-1/2-1:1.0 /devices/platform/omap/usbhs_omap/ehci-omap.0/usb1/1-1/1-1:1.0

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. :'(

[Q] Editing vold.fstab

So I am editing the vold.fstab under /system/etc/
My Rom is CyanogenMod 10 alpha 3
now the vold.fstab looks like this :
Code:
## 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 sdcard /storage/sdcard0 28 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# externel sdcard
dev_mount sdcard/external_sd /storage/sdcard1 auto /devices/platform/msm_sdcc.4/mmc_host/mmc2
But after rebooting the external sdcard is still mounted under /external_sd/ instead of /sdcard/external_sd/
So it seams that there is no effect in changing.
I have made a tutorial about this, you can find it in the dev section.
On JB the mounting points are different, they are called sdcard0(internal) and sdcard1(external) all you have to do is switch the two numbers
Sent from my GT-I8150
I Just want to change the labels not swap the cards
Ensure that there's an empty folder called external_sd in /sdcard ?
Sent from my GT-I8150 using xda app-developers app

[Q] Swapping internal and external storage (pacman)

ive had pacman rom running for a couple months.. i just bought a 32gb sdcard and would like to swap storage ... just wondering what i should do in advance so my phone and appdata doesnt go all screwy.
ie copy android/data etc.
thx!
Here's the orig vold.fstab
# internal sdcard
dev_mount emmc /mnt/emmc 4 /devices/platform/sdhci-tegra.3/mmc_host/mmc0/mmc0 nonremovable,encryptable
# external sdcard
dev_mount sdcard /mnt/sdcard auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
Click to expand...
Click to collapse
I've tried dev_mount <#####> /mnt/<#####> and changed it to sdcard and vice versa leaving the rest as is... every time I boot the rom it seems to crash at lock screen and cycle, homescreen lights stay on and every once in a while the lockscreen will flicker ...
Is this an issue because I am not booting clean?
## Vold 2.0 Generic fstab
#######################
If we unzip the VanillaRootbox rom it appears to be nothing but this swap.
/system/etc/void.fstab
## 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 sdcard1 /storage/sdcard1 4 /devices/platform/sdhci-tegra.3/mmc_host/mmc0/mmc0 nonremovable,encryptable
# external sdcard
dev_mount sdcard0 /storage/sdcard0 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
# USB storage device
dev_mount usbdisk0 /storage/usbdisk0 auto /devices/platform/tegra-ehci.0/usb
Different mount points in root box.. the greater goods mod for in doesn't work either

[Q] unavailable sdcard and usb storage

Hi i understand that there is already posts about my situation
but thought i would do a thread so i can explain my problems.
ive recently rooted my galaxy ace II and i changed the usb storage and sd card round.
Then wanted to reverse it and in doing so it made my sd card and usb storage unavailable.
My internal storage is available. I tried to download remount sd file but wont download as there is no storage place for lt in my device.
Ive been reading forums about the vold file and i understand what is being said but my vold seems to be different to what people are saying.
my vold file says
## 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
######################
# sdcard mount for the P1
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
discard = enable
asec = enable
}
dev_mount sdcard /mnt/sdcard 28 /devices/platform/msm_sdcc.2/mmc_host/mmc2
# externel sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
#dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/msm_sdcc.w/mmc_host/mmc2
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/msm_sdcc.2/mmc_host/mmc2
#end line ## keep this line
Can someone tell me if there is something wrong and if so what can i do.
Ive also tried downloading files on a pc and transfering them onto sdcard but as sdcard wont mount i cant get to it.
Thank you
Sleethy
Hello again. ive managed to get usb storage working again but still no sd card. still says unavailable.
ive tried formatting it and even done a hard reset and still nothing
thanks again
Sleethy
Flash stock gb and clear cache(if you dont do backup)
Then re root

Categories

Resources