[Q] vold.fstab multiple partitions on same device not working - Galaxy S II Q&A, Help & Troubleshooting

I'm running CM 10.1.3 stable. This is the original vold.fstab :
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 sdcard0 /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 nonremovable,encryptable
# external sdcard
dev_mount sdcard1 /storage/sdcard1 auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
# USB storage device
dev_mount usbdisk /storage/usbdisk auto /devices/platform/s3c_otghcd/usb
I've created a second exFAT partition on my SD card and have modded my vold.fstab to :
Code:
# internal sdcard
dev_mount sdcard0 /storage/sdcard0 2 /devices/platform/s3c-sdhci.2/mmc_host/mmc1
# external sdcard
dev_mount sdcard1 /storage/sdcard1 1 /devices/platform/s3c-sdhci.2/mmc_host/mmc1
My intention is to mount the second exFAT SD card partition in place of the emmc. The second exFAT partition is successfully mounted as sdcard0 but the first partition (the regular sdcard1) is not mounted anymore.
If I swap the partition numbers 2 & 1 then the first SD card partition is successfully mounted as sdcard0. So it looks like if multiple entries use the same sysfs device then only the first one is taking effect.

same sh*t :crying:

Related

[Q] Swapping Internal and External SD

I recently purchased Karbonn A18 and am facing two problems relating to mounting of SD cards... My phone has 2 GB internal storage and I have inserted 32 GB micro-SD in it...
1. My phone's internal SD does not show up normally... In x-plore I need to browse to root/mnt/sdcard to access 2GB internal storage.
2. My phone only allows moving applications to internal SD and not external SD... and even though I have managed to move some programs to external SD, their data is still present in internal SD which is insufficient for huge games...
I have read somewhere that it is possible to swap internal SD with external SD with some modifications in vold.fstab file... However due to lack of knowledge about android file system and after numerous attempts, I have failed to do so... I hope someone with expertise may help me out... Thanks in advance...
The following is my vold.fstab file:
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 [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.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

[Q] 10e vold.fstab

I'm trying to swap my external sd with the internal sd. I've been playing with the vold.fstab file, using quite a few examples I've found but after rebooting I keep getting sd not mounted when I try to access it through root explorer. I want to make this into a monster ebook reader with about 10gb of books but all the readers want to rewrite the books they find to the internal sd.
Heres the ICS 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
dev_mount sdcard /mnt/sdcard auto /devices/virtual/block/loop0 /nfdisk/fat.bin
#dev_mount idisk /mnt/idisk 1 /devices/platform/v8-sdio.2/mmc_host/mmc0
dev_mount external_sd /mnt/sdcard/external_sd auto /devices/platform/v8-sdio.0/mmc_host/mmc1
dev_mount udisk /mnt/udisk auto /devices/platform/vc088x-ehci/usb1 /devices/platform/musb-hdrc/usb2 /devices/platform/musb-hdrc/usb3
## 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
Does anyone know how to rewrite the dev_mount lines to get this accomplished?

[Q] vold.fstab inconsistency

Hello all,
I have a generic, MTK6577 Chinese, Android 4.0.4 phone. Its vold.fstab file 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
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/sdcard [email protected] /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.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
It clearly says mount the [email protected] (internal sd) to /mnt/sdcard and external, physical sd to /mnt/sdcard2.
Still, it mounts completely the opposite: physical sd gets mounted to /mnt/sdcard and internal sd to /mnt/sdcard2.
Why is that? Another interesting thing: if I remove the [email protected] line, the physical sd won't mount anymore.

[Q] Please // how i can install GTA 3 in externel SDcard

i have 400MO free in my internel memory card
but the gta 3..(1.40GO)
So my internel card can't support it //
i wana install this game in the externel sd card .. (4go)
Please // solve me //
swap your internal memory with your external sd
Hay friend i guess you need to swap your internal memory with your external sd card so your internal memory (with small space) become external "sd card1" or "ext.sd card" what ever the name is , and your external sd (with the bigger memory) becomes internal memory "sd card0", i think there is a lot of threads talks about that ,the way to do that changes from device to device a little bit , search for the way to do it on your device, anyway for my device i needed to have root access and then edit the file , this file was on my device at this path /etc/vold.fstab so i did this (it might work for you because this is the general idea of doing it) :
1- i made a copy of the file vold.fstab in case it did't work i return it like it was using ES File Explorer (I have root access as i sayed)
2- i edited the file do that using any text editor,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 card with the name of my external 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 as you see the replacing was at the line 17 and 18 (they might be different lines for you but with a similar text) i replaced the name of my external card wich 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 tow lines before and after the replacment 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 and the sd card become my internal storage and the internal become the external sd card.
Now that worked for me to replace my inernal and external card it should work for you, just be careful i'm not responsible for any damage might happen to your device if that didn't work , 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 the thanks button , and then install what ever games you like on your sd card what ever size it is.

Need help with HIMEDIA Q10 media player - android 4.2 - HDD mount vold.fstab

Dear community,
First its Android 4.4.2 (one 4 got lost in the title - sorry
i have the above mentioned android media player and want the internal HDD drive mounted as sda. This works if no USB-disk is plugged in during startup of the box. But if any USB drive is connected the internal drive mounts as sdb, which would not be a big problem, but for KODI it is.
So far I always need to unplug usb, but is there a way to fix with an entry in the vold.fstab file:
The actual file is like following:
## 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
#dev_mount sdcard /mnt/sdcard auto /devices/platform/hiusb-ehci.0 /devices/platform/hi_godbox-ehci.0
dev_mount block /storage/emulated/0 auto /devices/virtual/mtd/mtd1/mtdblock1 [email protected]
multi_mount block /mnt all /devices/platform/hiusb-ehci.0 /devices/platform/hiusb-ohci.0 /devices/platform/ahci.0 /devices/platform/hi_mci.0/mmc_host/mmc1 /devices/platform/hi_mci.1/mmc_host/mmc0 /devices/platform/hiusb3.0
## 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
what do in need to add
1.) to have the internal HDD mounted as sda
2.) assign specific drives sdb sdc sdd sde to unique usb drives
Any help would be appreciated, since i not good with these thing
Regards
PLEASE !!!

Categories

Resources