Only one SD-card recognised

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
betatester
Junior Member
Junior Member
Posts: 16
Joined: 2007-11-18, 11:31 UTC

Only one SD-card recognised

Post by *betatester »

I have the Asus Transformer Pad TF300 with keyboard dock.
The internal storage of 32 GB is recognised as SD-Card.

There are 3 options to expand the storage:
1. Micro-SD card in the pad
2. SD-Card in the keyboard dock
3. USB-stick in the keyboard dock

No matter in what sequence I plug these in, only the first one plugged in is recognised by TC as SD-Card (2). The others are never shown.

<Edit 04/29> I noticed that via 'File System Root/Removable' I can see all the memory cards. So there is a workaround.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48124
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The latest version rc6 should show one additional SD-Card. However, I found out that in some cases the mount table uses tabstops instead of spaces. In this case, the extra drives are not seen by TC. This will be fixed in the next beta version.
Author of Total Commander
https://www.ghisler.com
betatester
Junior Member
Junior Member
Posts: 16
Joined: 2007-11-18, 11:31 UTC

Post by *betatester »

Ok, I'll wait for the next beta.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48124
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

To ensure that it works with your device, please create a button by tapping on the button with the green "+" sign with the following settings:
Function type: Send shell command
Command: sh
Parameters: *cat /proc/mounts

Then tap on the button to launch the command, and paste the text to an editor (e.g. by holding the finger on the updir in the file list and choosing "New text file".

Then please repeat the same with the following
parameters: *cat /system/etc/vold.fstab

It would be nice if you could do it with both an SD-card and USB stick connected to the device.
Author of Total Commander
https://www.ghisler.com
betatester
Junior Member
Junior Member
Posts: 16
Joined: 2007-11-18, 11:31 UTC

Post by *betatester »

Both give

"Function not supported"
"Root"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48124
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, then try to open these files manually by navigating to the directory and choosing "Edit file" in the context menu.
Author of Total Commander
https://www.ghisler.com
betatester
Junior Member
Junior Member
Posts: 16
Joined: 2007-11-18, 11:31 UTC

Post by *betatester »

mounts

Code: Select all

rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p1 /system ext4 ro,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p8 /data ext4 rw,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,journal_async_commit,nodelalloc,data=writeback 0 0
/dev/block/mmcblk0p2 /cache ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=1,journal_async_commit,nodelalloc,data=writeback 0 0
tmpfs /Removable tmpfs rw,relatime,mode=755,gid=1000 0 0
/dev/fuse /mnt/sdcard fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/vold/179:17 /Removable/MicroSD vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/8:16 /Removable/USBdisk1 tntfs rw,relatime,uid=0,gid=0,umask=00,nls=utf8,case_sensitive,errors=continue,mft_zone_multiplier=1 0 0
/dev/block/vold/8:1 /Removable/SD vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
vold.fstab

Code: Select all

## Vold 2.0 fstab for cardhu

#######################
## 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 microsd /Removable/MicroSD auto /devices/platform/sdhci-tegra.0/mmc_host/mmc2
dev_mount usbdisk1 /Removable/USBdisk1 auto /devices/platform/tegra-ehci.2/usb1/1-1/1-1.2 /devices/platform/tegra-ehci.2/usb2/2-1/2-1.2

dev_mount usbdisk2 /Removable/USBdisk2 auto /devices/platform/tegra-ehci.2/usb1/1-1/1-1.1 /devices/platform/tegra-ehci.2/usb2/2-1/2-1.1 /devices/platform/tegra-ehci.2/usb2/2-1/2-1:1 /devices/platform/tegra-ehci.2/usb1/1-1/1-1:1

dev_mount sdreader /Removable/SD auto /devices/platform/tegra-ehci.2/usb1/1-1/1-1.3 /devices/platform/tegra-ehci.2/usb2/2-1/2-1.3
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48124
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks a lot, it _should_ work with these files - please try RC7!
Author of Total Commander
https://www.ghisler.com
betatester
Junior Member
Junior Member
Posts: 16
Joined: 2007-11-18, 11:31 UTC

Post by *betatester »

The usb-stick is recognised but the second SD-card still isn't.
Only 2 SD-cards are shown.
The internal in the device.
And the first of the MicroSD-card or the SD-card. (Only the first one plugged in)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48124
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Only 2 SD-cards are shown.
Currently I'm limiting the display to 2 SD-cards and one USB slot. Since TC only shows them when something is in the slot, this should be sufficient. Or do you really need 3 SD-cards at the same time?
Author of Total Commander
https://www.ghisler.com
betatester
Junior Member
Junior Member
Posts: 16
Joined: 2007-11-18, 11:31 UTC

Post by *betatester »

I will not use the extra SD-slot very often so for me it is sufficient.
I just mentioned it here to clarify what the RC7 did to the problem I mentioned.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48124
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Did you try it with only a card in the external slot?
Author of Total Commander
https://www.ghisler.com
betatester
Junior Member
Junior Member
Posts: 16
Joined: 2007-11-18, 11:31 UTC

Post by *betatester »

Yes, Here are my results:

The internal memory of the TF300 is always shown as 'SD-card - /mnt/sdcard'
Micro-SD will be inserted in the tablet itself.
USB-stick and SD-card will be inserted in the keyboard dock


0 cards
---------
No Card inserted -> Total Commander shows
SD-card - /mnt/sdcard (Internal TF300 memory)

1 card/stick
--------------
Only the micro-SD card inserted -> Total Commander shows
SD-card - /mnt/sdcard (Internal TF300 memory)
SD-card (2) - /Removable/MicroSD

Only the SD-card inserted -> Total Commander shows
SD-card - /mnt/sdcard (Internal TF300 memory)
SD-card (2) - /Removable/SD

Only the USB-stick inserted -> Total Commander shows
SD-card - /mnt/sdcard (Internal TF300 memory)
SD-card (2) - /Removable/USBdisk1 (Note: Shown as SD-card icon)

2 card(s)/stick
-----------------
First Micro-SD and then SD inserted -> Total Commander shows
SD-card - /mnt/sdcard (Internal TF300 memory)
SD-card (2) - /Removable/MicroSD
Note: SD-card is not shown !!!

First SD and then Micro-SD inserted -> Total Commander shows
SD-card - /mnt/sdcard (Internal TF300 memory)
SD-card (2) - /Removable/SD
Note: Micro-SD-card is not shown !!!

First Micro-SD and then USB-stick inserted -> Total Commander shows
SD-card - /mnt/sdcard (Internal TF300 memory)
SD-card (2) - /Removable/MicroSD
USB - /Removable/USBdisk1

First USB-stick and then Micro-SD inserted -> Total Commander shows
SD-card - /mnt/sdcard (Internal TF300 memory)
SD-card (2) - /Removable/MicroSD
USB - /Removable/USBdisk1

First SD and then USB-stick inserted -> Total Commander shows
SD-card - /mnt/sdcard (Internal TF300 memory)
SD-card (2) - /Removable/SD
USB - /Removable/USBdisk1

First USB-stick and then SD inserted -> Total Commander shows
SD-card - /mnt/sdcard (Internal TF300 memory)
SD-card (2) - /Removable/SD
USB - /Removable/USBdisk1


So there are in fact 2 problems:

1. Because there are only 2 slots in TC for SD-cards and the internal memory of my TF300 already uses one slot, there is only one other slot available for both my MicroSD and SD card. The one that is inserted first uses up that slot and the other one is never shown.

2. When only the USB-stick is inserted without Micro-SD and SD card, the icon is shown as SD-card instead of the USB icon
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

Hello,

On my device I have an internal memory and a SD Card too, only one is shown at the same time.
This is the content of my fstab file:

Code: Select all

# Copyright (c) 2011, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#     * Redistributions of source code must retain the above copyright
#       notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
#       copyright notice, this list of conditions and the following
#       disclaimer in the documentation and/or other materials provided
#       with the distribution.
#     * Neither the name of Code Aurora Forum, Inc. nor the names of its
#       contributors may be used to endorse or promote products derived
#       from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#/*<DTS2011100400385 fangxinyong 20111020 begin */
# dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host /devices/platform/msm_sdcc.3/mmc_host
# this is only for nand flash
dev_mount sdcard2 /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host
dev_mount sdcard1 /mnt/sdcard auto /devices/virtual/mtd/mtd7/mtdblock7
#/* DTS2011100400385 fangxinyong 20111020 end >*/

Mounts:

Code: Select all

rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p12 /system ext4 ro,relatime,barrier=1,nodelalloc,data=ordered 0 0
/dev/block/mmcblk0p13 /data ext4 rw,nosuid,nodev,relatime,barrier=1,nodelalloc,data=ordered,noauto_da_alloc 0 0
/dev/block/mmcblk0p6 /cache ext4 rw,nosuid,nodev,relatime,barrier=1,nodelalloc,data=ordered 0 0
/dev/block/mmcblk0p19 /HWUserData vfat rw,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/mmcblk0p18 /cust ext4 ro,relatime,barrier=1,data=ordered 0 0
hwvefs /data/huawei_hwvefs fuse.hwvefs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
/dev/block/vold/179:33 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:33 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
Could be shown the second SD in the list with this information please?
I can read English, but... I write like Tarzan. (sorry)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48124
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

If you look closely, there is just one mount point: /mnt/sdcard, see below. Where do you access the second card?
dev_mount sdcard2 /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host
dev_mount sdcard1 /mnt/sdcard auto /devices/virtual/mtd/mtd7/mtdblock7
Author of Total Commander
https://www.ghisler.com
Post Reply