Hi, i just install a CM7.2 in my Skyrocket and everything goes fine but the storage. it mounts the internal storage to /mnt/emmc. but i want it to mount to the /mnt/sdcard so that the camera and other software will works even without insert an external SD card.
i have follow a guide to switch the mounting line in the /system/etc/vold.fastab file.
here is the original lines:
Code:
# internal sdcard
dev_mount emmc /mnt/emmc 28 /devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0
# external sdcard
dev_mount sdcard /mnt/sdcard 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
And the following is my modified lines, just simply switch the two lines:
Code:
# internal sdcard
dev_mount emmc /mnt/emmc auto /devices/platform/msm_sdcc.3/mmc_host/mmc2/mmc2
# external sdcard
dev_mount sdcard /mnt/sdcard 28 /devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0
# otg sdcard
# usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/msm_hsusb_host.0#end line
After i did that, the internal storage mount to /mnt/sdcard correctly, and the usb storage driver works as well. after i insert a external sd card, it mount to /mnt/emmc correctly; but when i unmount it, there is a notification in task bar saying "SD card removed, please insert a new one" which can not be clear;
Anyone familiar with the code command and help me? Thanks a million
Related
Hello guys,
I have seen many people that are dealing with problems when it comes to change the vold.fstab on their LG phone to swap memories.
I am trying to edit mine on my LG Optimus M+, to swap the internal sd with the external one. Here is the code of the Vold.fstab file:
#dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host
# LGE_CHANGE
# If sdcard isn't exist, mount emmc partition
#dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host /devices/platform/msm_sdcc.3/mmc_host
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/msm_sdcc.1/mmc_host
I tried changing the number 1 for a 3 on msm_sdcc1 and the 3 for a 1 in msm_sdcc3. This resulted in a damaged internal sd card message on the phone. I'd be glad if you guys could give me a hand. I'm sure many others will find the information useful too.
Thank you in advance.
patsito92 said:
Hello guys,
I have seen many people that are dealing with problems when it comes to change the vold.fstab on their LG phone to swap memories.
I am trying to edit mine on my LG Optimus M+, to swap the internal sd with the external one. Here is the code of the Vold.fstab file:
#dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host
# LGE_CHANGE
# If sdcard isn't exist, mount emmc partition
#dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host /devices/platform/msm_sdcc.3/mmc_host
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host
dev_mount extsdcard /mnt/sdcard/_ExternalSD auto /devices/platform/msm_sdcc.1/mmc_host
I tried changing the number 1 for a 3 on msm_sdcc1 and the 3 for a 1 in msm_sdcc3. This resulted in a damaged internal sd card message on the phone. I'd be glad if you guys could give me a hand. I'm sure many others will find the information useful too.
Thank you in advance.
Click to expand...
Click to collapse
Hello my friend I have the same problem, I own a LG E400 but nobody now how to modify the vold
Hello, i'm trying to make my external USB drive inverted with the INTERNAL SDCARD, for be able to use my external 160GB drive (external powered) to data files of my games and my media. I know this is possible, and i change in my /etc/VOLD.fstab to make this. But don't work.
Anyone know, if its necessary any other thing to make this change? I really need this, because i'm making a custom android box using a MK-808B and some tools/acessories to be my htpc.
I have this now:
INTERNAL SD: 4GB
EXTERNAL SD: 8GB
USB EXTERNAL: 160GB
This is how it is by default:
dev_mount flash /mnt/sdcard auto /devices/virtual/mtd/mtd9/mtdblock9
dev_mount sdcard /mnt/ext_sdcard auto /devices/platform/rk29_sdmmc.0/mmc_host/mmc0
dev_mount udisk0 /mnt/usb_storage/USB_DISK0 auto /devices/platform/usb
And this is how i changed:
dev_mount flash /mnt/usb_storage/USB_DISK0 auto /devices/virtual/mtd/mtd9/mtdblock9
dev_mount sdcard /mnt/ext_sdcard auto /devices/platform/rk29_sdmc0/mmc_host/mmc0
dev_mount udisk0 /mnt/sdcard auto /devices/platform/usb
But, the in the storage page (settings) its showed 00 bytes, but i can access /mnt/usb_storage/USB_DISK0/udisk0 without problems... why my disk can be used to mount the NAND STORAGE for my apps data?
Thanks for the help.
Hi there!
I managed to swap the internal sd-card (with 11 GB free space) with my external sd-card (in my case a class 10 32GB card, formatted with FAT32) at my Onda V973 V1-Tablet (with Firmware 3.0, Android 4.2.2). These are the steps to do this (you have to have a functional adb):
# kill old adb-processes
Code:
adb kill-server
# look if tablet is viewable per adb
Code:
adb devices
# copy vold.fstab to local harddisk
Code:
adb pull /system/etc/vold.fstab
# now you have to edit the vold.fstab with a text-editor as follow:
Code:
#Original:
dev_mount sdcard /mnt/sdcard auto /devices/virtual/block/nandj
dev_mount extsd /mnt/extsd auto /devices/platform/sunxi-mmc.1/mmc_host /devices/platform/sunxi-mmc.0/mmc_host
Code:
#cards swapped:
dev_mount sdcard /mnt/sdcard auto /devices/platform/sunxi-mmc.1/mmc_host /devices/platform/sunxi-mmc.0/mmc_host
dev_mount extsd /mnt/extsd auto /devices/virtual/block/nandj
# mount system-partition read/write
Code:
adb shell mount -o remount,rw /system
# write changed vold.fstab to system-partition
Code:
adb push vold.fstab /system/etc/
# reboot tablet to apply changes
Code:
adb reboot
After these steps the internal sd is fully swapped with the external and in my case I can use full 32GByte as "internal sd".
Hey,
didnt find answer in similar threads (spent already 1 day at this)
how to mount partition of my choice as an external sdcard? Currently my phone sees external SD card as unavailable because it had corrupted internal memory and i swapped it and whole system starts from true external sdcard.
i tried adding last line in fstab but no luck
fstab:
Code:
/dev/block/stl11 /cache auto rw
/dev/block/mmcblk0p2 /data rfs rw
/dev/block/stl10 /datadata auto rw
/dev/block/mmcblk0p3 /emmc fat32 rw
/dev/block/stl9 /system auto rw
/dev/block/mmcblk0p1 /sdcard auto rw
/dev/block/mmcblk0p4 /sdcard1 auto rw
vold.fstab
Code:
# sdcard mount for the P1
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = disable
mbr_policy = overwrite
}
dev_mount sdcard /mnt/sdcard 1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
# externel sdcard
#{
# ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
# asec = enable
# mbr_policy = overwrite
#}
#dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/platform/mmci-omap-hs.0/mmc_host/mmc0
i commented here because it made no difference what i mount as external sd card, couldnt make it work.
Yes i have root and know adb enough to edit these files.
Please help.
Hello , this guide is needed when you have small internal sd card , and your phone don't support switching internal sd with external sd, which mean some apps or big games won't find enough space in your internal sd card to download files (DATA or OBB files for example), so applying this will make your internal sd (with small space) become the external sd "sd card1" or "ext.sd card" what ever the name is , and your external sd (with the bigger memory) becomes internal sd "sd card0" , the way to do that changes from device to device a little bit , anyway for my device (Jellybean 4.2.2 NOT KITKAT)i needed to have root access and then edit the file /etc/vold.fstab , so follow this (this is the general idea of doing it) :
0- You must have a full MTK-SPT backup of your phone , and you must know how to restore it in case something goes wrong.
1- To be able to fix it easly in case something goes wrong make a copy (backup) of the file vold.fstab , you can return it like it was , following this :
- if your device boot use Root explorer or ES File Explorer (replace file & fix permissions)
- or replace the vold.fsab in the cwm flashable zip in the attachments and flash that back using cwm recovery (to replace open zip using winrar -don't extract-then go to system\etc and replace the vold.fstab in the zip with your backup vold.fstab)
2- Edit /etc/vold.fstab like the following , use any text editor on pc or on your android - easier on android using ROOT explorer - now the original vold.fstab file was like this before changing any thing :
## 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 /storage/sdcard0 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
And then i swaped the name of my internal sd card with the name of my external sd card so it's mounted in its place (become the first sd card) it's become like this after editing it
## 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 /storage/sdcard1 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sdcard2 /storage/sdcard0 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2
## Example of specifying a specific partition for mounts
# dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
so the replacing was at the line 17 and 18 (they might be different lines for other devices but with a similar text) i replaced the name of my external card which is sdcard1 with the name of my internal storage sdcard0 , also the names in your device may be different but the idea is the same these are the 2 lines before and after the replacement so you know what lines to search for and edit they should be very similar to these :
before
dev_mount sdcard /storage/sdcard0 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
after
dev_mount sdcard /storage/sdcard1 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-msdc.0/mmc_host
dev_mount sdcard2 /storage/sdcard0 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-msdc.1/mmc_host
Nothing else changed, after that i saved the file and restart the device -if you edited on pc you need to copy & replace the file or you can use the cwm flashable zip in the attachments to do it- then after rebooting the sd card become my internal sd and the internal become the external sd card.
Now that worked for me, just be careful i'm not responsible for any damage might happen to your device if that didn't work this may cause bootloop or softbrick, another thing if you want to backup your ROM or flash some other rom after applying this you should undo the changes first especialy if it's a cwm ROM or backup , do a backup of the file before editing it in case some thing goes wrong ,so you can return the file as it was, and if this worked for you press THANKS button then install what ever apps or games you like on your sd card what ever size it is.
Some devices has different vold.fstab than the one i showed so if you tried this with different one & it worked please post your file & the changes you made , this will help other users.
Working for MT6572 chipsets
Hey thanks a lot mate, its working for MT6572 chipsets perfectly :good:
\cheers/