Auto Mount non-standard (ext2) sdcard - Android Q&A, Help & Troubleshooting

I've got a 128GB sdxc sdcard (with a Toshiba Thrive, which supports SDXC) which I recently decided to stop using exfat with (you might think SDXC only supports exfat, but truly, this Microsoft's restriction, as they are pushing they're pay to use format). Problem is, since I stopped using exfat, and tried ext2, I haven't been able to get it to mount automatically. Initially I had two partitions, one unformatted, but planned to be a FAT partition, however because of the problems I reformatted the card with only 1 partition.
Through the terminal I can mount it as root:
Code:
su
mkdir /mnt/sdcard2
mount -o rw -t ext2 /dev/block/mmcblk1p1 /mnt/sdcard2
However, even using the vold.fstab, and selecting spcific partitions, I can't get it to mount automatically.
My vold.fstab:
Code:
## Vold 2.0 fstab for tostab03
#######################
## 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
######################
# Mounts the first usable partition of the specified device
dev_mount storage /mnt/sdcard 8 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard2 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
#dev_mount sdcard /mnt/sdcard3 1 /devices/platform/sdhci-tegra.2/mmc_host/mmc1
dev_mount usb0 /mnt/usb0 all /devices/platform/tegra-ehci.*/usb.*/sda
dev_mount usb1 /mnt/usb1 all /devices/platform/tegra-ehci.*/usb.*/sdb
dev_mount usb2 /mnt/usb2 all /devices/platform/tegra-ehci.*/usb.*/sdc
dev_mount usb3 /mnt/usb3 all /devices/platform/tegra-ehci.*/usb.*/sdd
dev_mount usb4 /mnt/usb4 all /devices/platform/tegra-ehci.*/usb.*/sde
dev_mount usb5 /mnt/usb5 all /devices/platform/tegra-ehci.*/usb.*/sdf
dev_mount usb6 /mnt/usb6 all /devices/platform/tegra-ehci.*/usb.*/sdg
dev_mount usb7 /mnt/usb7 all /devices/platform/tegra-ehci.*/usb.*/sdh
The /mnt/sdcard3 mountpoint and it's command doesn't work either.
What gives?
How can I do this?
I'm guessing this isn't too device specific, but if it is let me know.
A script is an obvious option, I already tried using the odd init.rc setup (I forget the exact path, but it links to another init.rc, anyhow this failed, presumably for permission reasons? perhaps the paths hadn't been created? Honestly, I'm not entirely sure why.)

Related

Can't Mount E: /sdcard

I am running Ba2tf release of CM7. I flashed CWM ~5.0.2 through ROM Manager 4.4.something. Anyway, when I go to backup the current ROM or restore or anything else involving the SD card it says Error Can't mount E:/sdcard. This makes it impossible to backup and restore ROMs. Can someone help me fix this? Thanks in advance.
This is an Atrix by the way.
Can you provide your /system/etc/vold.fstab? Just open it using test editor and post it.
You make backup sdcard and format. I had this problem too. Now is ok
SzymonMatys said:
You make backup sdcard and format. I had this problem too. Now is ok
Click to expand...
Click to collapse
From inside CWM?
JohsonChou said:
Can you provide your /system/etc/vold.fstab? Just open it using test editor and post it.
Click to expand...
Click to collapse
Here you go:
Code:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point[:[asec_point]:[lun_point]]> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## asec_point - Whether asec mount is needed for this value, if not, use "none"
## Else, supply a folder name under /mnt/secure/
## If not supplied, "asec" will used by default
## If supplied, /mnt/secure/asec_point will be used
## This is for further extension, not needed now
## lun_point - The target lun device for this volume. If not supplied, will use
## /sys/devices/platform/usb_mass_storage/lun0/file
## else, will use /sys/devices/platform/usb_mass_storage/lun_point/file
## part - Partition # (1 based), or 'auto' for first usable partition.
## For a disk with only 1 partition, use '1' is different to 'auto'
## Using 1, will not re-write its partition table when formatting
## <sysfs_path> - List of sysfs paths to source devices
######################
# external sd card
#dev_mount sdcard_ext /mnt/sdcard-ext:none:lun1 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
# internal eMMC
#dev_mount sdcard /mnt/sdcard 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
dev_mount sdcard /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount emmc /mnt/emmc 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
# flash drive connection to USB1
#dev_mount usbdisk_1.0 /mnt/usbdisk_1.0 auto /devices/platform/tegra-ehci.0
dev_mount usbdisk_1.0 /mnt/usbdisk_1.0 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1:1.0
# flash drive connection through hub connected to USB1
dev_mount usbdisk_1.1 /mnt/usbdisk_1.1 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.1
dev_mount usbdisk_1.2 /mnt/usbdisk_1.2 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.2
dev_mount usbdisk_1.3 /mnt/usbdisk_1.3 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.3
dev_mount usbdisk_1.4 /mnt/usbdisk_1.4 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.4
dev_mount usbdisk_1.5 /mnt/usbdisk_1.5 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.5
dev_mount usbdisk_1.6 /mnt/usbdisk_1.6 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.6
dev_mount usbdisk_1.7 /mnt/usbdisk_1.7 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.7
I did formated sdcard in android. When I did it when CWM see sdcard normally
Code:
dev_mount emmc /mnt/emmc:none:lun1 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount sdcard /mnt/sdcard 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
dev_mount usbdisk_1.0 /mnt/usbdisk_1.0 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1:1.0
dev_mount usbdisk_1.1 /mnt/usbdisk_1.1 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.1
dev_mount usbdisk_1.2 /mnt/usbdisk_1.2 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.2
dev_mount usbdisk_1.3 /mnt/usbdisk_1.3 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.3
dev_mount usbdisk_1.4 /mnt/usbdisk_1.4 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.4
dev_mount usbdisk_1.5 /mnt/usbdisk_1.5 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.5
dev_mount usbdisk_1.6 /mnt/usbdisk_1.6 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.6
dev_mount usbdisk_1.7 /mnt/usbdisk_1.7 auto /devices/platform/tegra-ehci.0/usb1/1-1/1-1.7
Change it to this and reboot. Be aware that you should first change the permission to RW-R-R before copying it to system/etc/
The sdcard in your phone will be your internal storage and emmc will be your external sdcard(like most CM7 roms does)
I just formatted the SD card and then kicked myself in the face for not thinking of it sooner. It worked. I didn't need to swap the location of the memory, but thanks for the help anyway!
can't mount sd card
I'm using samsung galaxy s2 with sansation ics 3.3. when i try to backup my rom from cwm, it says can't mount sd card. can any one please tell me what is the easiest shortest way to get rid of it? i really need to backup my current rom...

[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 multiple partitions on same device not working

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:

[Q] No solution for my Android Box which is having Hi3719C V100 hardware and chip..

Hi Respected XDA experts,
I bought recently Android box with DVB-S2 functionality. It has internal storage of 4 GB which is mounted virtually however when I try to analyze memory via ESExplorer, it says SD card unmounted. I have downloaded subject file from box and pasted below for your reference. Can anybody help me to make it correct and give ready made file? and I can install it in system.
It has about 450 MB of system reserved memory which I guess is ROM. I want to extent the internal memory further.
I guess this box has modified ROM of 4.2.2 android system and using Mali 400 GPU, and Hi3719C Chip. I have issue with Kodi also, after installation it is stuck at "waiting for external storage".
I hope you guys can provide me help on both issues.
Thanks
I have searched every where but could not find the exact answer. Box can not be attached with computer. XBMC old version are working find issue with Kodi. Google Market is also not installed. It is Jelly bean Custome Rom JDQ built but does not give recovery option during booting. Only one option is holding down one key and it starts to flash. I have been able to root it but it is also not helping.
## 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 /mnt/sdcard auto /devices/virtual/mtd/mtd16/mtdblock16 Ubifs=ubi3_0
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
## 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

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