[Q] How to restore mount point of internal sdcard - Galaxy S II Q&A, Help & Troubleshooting

Hello! I've installed the XXLSJ 4.1.2 leak over CM10 (with Odin, 3+1 files, reparted with the 16GB pit)
Now everything is fine, except that my internal sdcard is mounted at
Code:
/dev/block/vold/259:3 [B]/storage/sdcard0[/B]
I would like to ask; what is the best way to restore the mounting point of the internal sd to
Code:
[B]/mnt/sdcard[/B]
Now the original 3e recovery can't mount my internal storage, because it tries to mount mnt/sdcard or /sdcard.
Also should I care the address of the block? (Which is originally something like /dev/block/mmcblk0p...)
Thanks for the answers!
Edit: My system/etc/vold.fstab:
Code:
# internal sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun0/file
secure_format = enable
discard = enable
supported_exfat = disable
}
dev_mount sdcard /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable

Fw:Sdcard mount problem
After upgrading to 4.1, the sdcards mount directory changed.
Not only internal sdcard but also external one face the same problem.
the external sd mount dir changed from:
4.0:
/mnt/sdcard/external_sd or /sdcard/external_sd
Click to expand...
Click to collapse
to
4.1:
/storage/sdcard1 or /extSdCard
Click to expand...
Click to collapse
which is bad.
Anyone knows how to fix/change it?
Thanks for answers!

Related

[Q] Incorrect mounting sd card [CyanogenMod7.1.0.1 REPACK]

Incorrectly mounts the external sdcard in CyanogenMod7.1.0.1 REPACK.
The external card is connected as primary, and the internal sdcard as an extra.
After editing Vold.fstab, the situation changes slightly for the better. Now, the internal memory to get sdcard, and the external is not mounted at all.
P.S: Search the forums gave only what you need to edit Vold.fstab.
Here is the content of my Vold.fstab file:
Code:
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.3/mmc_host/mmc2
dev_mount sdcard2 /mnt/sdcard2 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount usbdisk /mnt/usbdisk auto /devices/platform/tegra-ehci
CM 7 by default mounts a "real" SDCard as /sdcard and any other storage (internal) as /emmc.
I believe it first became an option in CM7.1 that you can change this mounting (switch it so the internal storage is mounted as /sdcard ) in CyanogenMod Settings.
You no longer need to edit/modify the vold.fstab file.

[Q] Vold.fstab modding - need help

Hi guys. I've been keeping this to myself for some time but now I'm no longer can bear it anymore. So here I am, asking for a bit of help.
What I want to do is quite easy, which is changing the External SD card to become Internal SD Card (mound point /mnt/sdcard/internal_sd ), and making physical microSD (which can be pulled in/out) as my External SD card (mount point /mnt/sdcard/ )
Here's what I've discovered so far..
Code:
Modded LG O2X vold.fstab file
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount emmc /mnt/sdcard/_InternalSD 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
Stock LG O2X vold.fstab file
# Internal SD card
dev_mount emmc /mnt/sdcard 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
# External SD card
dev_mount sdcard /mnt/sdcard/_ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
Stock SGS2 vold.fstab file
# internal sdcard
dev_mount sdcard /mnt/sdcard 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
# external sdcard
dev_mount emmc /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
# USB storage device
dev_mount usbdisk /mnt/sdcard/usbdisk auto /devices/platform/s3c_otghcd/usb
So how do I rewrite the stock SGS2 vold.fstab file so that it'll look and function like modded LG O2X I've mention above?
Hi,
I never tried to do that and to be honnest I don't really need it so I won't try...
But according to the example you provided for LG, I would say that the SGS2 should be modded like that:
Code:
# First mount external sdcard in /sdcard
dev_mount emmc /mnt/sdcard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
# The mount internal sdcard in sub folder /sdcard/_InternalSD
dev_mount sdcard /mnt/sdcard/_InternalSD 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
# Then mount USB storage as it is done by default
dev_mount usbdisk /mnt/sdcard/usbdisk auto /devices/platform/s3c_otghcd/usb
If you really want to try, do it at your own risk !!
I hope this would help.
Cheers
so i just need to edit and overwrite the vold.fstab file right? no need to make flashable ZIP?
Searching xda forum returned the following method:
you will need to update the vold.fstab on the xoom to fix the issue.
adb pull /etc/vold.fstab
edit vold.fstab .........
........
save the file, and go back to the command line
adb remount
adb push vold.fstab /etc/vold.fstab
abd reboot
Click to expand...
Click to collapse
I found it on a topic not related to i9100 but vold.fstab is part of Android system so it should be a standard way to update it...
I do recommend you to do a full backup before to do that...
source: http://forum.xda-developers.com/showthread.php?t=1093720

[Q] Resurrection Remix vold.fstab

Hi all, I have a query, 2.3 and 4.0 (the officers) I modified the / etc / vold.fstab to use internal and external memory and external and internal as my SD is 32GB and is class 10. But Resurrection Remix edit the file and start the phone.
Here I show the original file as modified would remain. If someone could help me I would greatly appreciate it.
original
# internal SDcard
sdcard mount dev /mnt/sdcard/ 11 devices/platform/dw_mmc/mmc_host/mmc0/mmc0
# external sdcard
EMMC mount dev /mnt/emmc auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
Modified (1)
# internal SDcard
sdcard mount dev /mnt/sdcard/external_sd 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0
# external sdcard
sdcard1 mount dev /mnt/sdcard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
Amended (2)
# internal SDcard
sdcard mount dev /mnt/sdcard/external_sd 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0
# external sdcard
EMMC mount dev /mnt/sdcard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
Sorry for bad English
Please help me!!!! I need orginal file vold.fstab galaxy tab2 10.1
Please help me!!!! I need orginal file vold.fstab galaxy tab2 10.1
Please help me I really rushed

Access to external SD card - Stock ROM (Rooted)

I've encountered problems trying to access the external SD card on my rooted Samsung Galaxy S3.
There are entries in /mnt/ for both internal and external storage, namely the following mount points:
/mnt/sdcard/ - internal
/mnt/extSdCard/ - external
The former is mounted onto the filesystem as /sdcard/. Ideally I'd like to mount the external card instead. Based on information elsewhere on the site, I checked the /etc/void.fstab file with the intention of making changes. However I didn't find what I was expecting. Here's the relevant part of the file:
Code:
{
supported_exfat = yes
}
dev_mount sdcard /mnt/extSdCard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1/
Based on this config I would have expected the external SD card to be mounted as /sdcard/. But clearly it isn't, and I don't understand why.
For the time being I am using Directory Bind to access external storage via /sdcard/external_sd/ but it would be easier to simply mount external storage as /sdcard/.
Anyone have any suggestions?

mount sdcard to /sdcard

is there anyway to mount the real sdcard to /sdcard?
i tried to edit the vold.fstab, but it just bootloop on the animation.
http://forum.xda-developers.com/showpost.php?p=23347641&postcount=14
he is mounting to "/mnt/sdcard" while i used "/sdcard"
Code:
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
where should it be mount to or is it because of different phone?
sams-roots said:
is there anyway to mount the real sdcard to /sdcard?
i tried to edit the vold.fstab, but it just bootloop on the animation.
http://forum.xda-developers.com/showpost.php?p=23347641&postcount=14
he is mounting to "/mnt/sdcard" while i used "/sdcard"
Code:
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host/mmc2
where should it be mount to or is it because of different phone?
Click to expand...
Click to collapse
/sdcard is normally a symbolic link pointing to /storage/emulated/legacy
There's an internal "sdcard" that normally gets mounted onto /mnt/shell/legacy from /init.qcom.rc - that's symlinked to /storage/emulated/legacy in that same file. It also appears to start up a daemon that re-mounts the internal "sdcard".
What are you trying to do? Normally the external SDcard is mounted to /mnt/extSdCard, so you should just store data there rather than /sdcard.
(Or /mnt/sdcard, /mnt/shell/legacy, /storage/emulated/legacy, or any of the other things simlinked to the internal sdcard.)

Categories

Resources