SD-Card mounted and accesible, but not listet as mountpoint

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

macfly
New Member
New Member
Posts: 1
Joined: 2013-08-19, 19:52 UTC

SD-Card mounted and accesible, but not listet as mountpoint

Post by *macfly »

Hi,

i have a strange issue with an external sd-card. as i need some screenshots to display, i'll do a second post here tomorrow. (restrictions for new users ...)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately there is no function on Android to find external SD-Cards. TC therefore looks in the following two files:
/system/etc/vold.fstab
/proc/mounts

Only mount points listed in BOTH files will be listed on the TC home screen. However, you can still go to a folder manually if it is mounted in a different way. For example, the tool "Stickmount" does not use the normal Linux mount method, so it's not possible to find out programmatically where the mount points are.

In your case, the sd-card is either not listed in the above two files, or the format of one of the files have changed. Could you post the content of these two files here in the forum, please?
Author of Total Commander
https://www.ghisler.com
kuro_svk
Junior Member
Junior Member
Posts: 3
Joined: 2013-08-22, 10:20 UTC

Post by *kuro_svk »

I seem to have the same problem here. The reason is that I am using android 4.3 and there is no /system/etc/vold.fstab. Can you please fix the Total Commander Home Screen so it shows all the sd cards regardless of the "vold.fstab" file?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm trying to find a solution, but there is no other official way to find the active mount points than to look in these two files. :(

One user told me that the file is now named fstab.smdk4210 and located in the root "/" of the file system. Could you please check whether it is there on your system? I cannot find any information about this change in Cyanogenmod. My Nexus 7 with stock Android 4.3 does not have this problem.
Author of Total Commander
https://www.ghisler.com
kuro_svk
Junior Member
Junior Member
Posts: 3
Joined: 2013-08-22, 10:20 UTC

Post by *kuro_svk »

Yes there is a file with that name in the root of the CM 10.2. There is something mentioned about it on the Android Open Source project page under Devices, Technical Information and External Storage. Unfortunately I can't post links yet because of the forum rules.
User avatar
cole
Junior Member
Junior Member
Posts: 4
Joined: 2003-12-12, 08:40 UTC
Location: Indjija

Post by *cole »

Hi,
I am using Total Commander on a CM 10.2 Galaxy S3 device.
I am having a fstab.smdk4x12 file in root folder.

I pasted content of that file and mounts file on pastebin.

mounts
http://pastebin.com/BcuTCgUk

fstab.smdk4x12
http://pastebin.com/JgRPN86n

If you need any other file or need me to test anything I am here :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, please try beta 2:
http://ghisler.ch/board/viewtopic.php?t=37745

I'm now getting the external SD-Cards from /proc/mounts alone when no /system/etc/vold.fstab is found. The fstab.smdk4x12 file is unfortunately not word-readable.

Please test it! It's possible that on some devices the cards will not be found, while on others TC will show cards which are actually internal file systems. Please let me know here or by e-mail (support at ghisler dot com) IMMEDIATELY if you have one of these problems. Please report the exact path of the external SD-Card.
Author of Total Commander
https://www.ghisler.com
User avatar
cole
Junior Member
Junior Member
Posts: 4
Joined: 2003-12-12, 08:40 UTC
Location: Indjija

Post by *cole »

with beta2 I have both internal memory and 16GB SD card shown at the root menu.

External SD path is /storage/sdcard1
and internal is /storage/emulated/0

This is from a TC root menu.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Nice to hear that! Let's see how it works for other users.
Author of Total Commander
https://www.ghisler.com
kuro_svk
Junior Member
Junior Member
Posts: 3
Joined: 2013-08-22, 10:20 UTC

Post by *kuro_svk »

With beta 2 it works for me too. Thanks for the quick update!
77kdv77
Junior Member
Junior Member
Posts: 23
Joined: 2013-05-01, 05:09 UTC

Post by *77kdv77 »

I have the same issue. I can see both internal and external memories only if the internal memory is set as the default one. but if I choose sd-card as the default memory I can't see the internal memory, only sd-card is listed

in framework-res.apk I have two files with mountpoints: storage_list.xml and storage_list_sdcard_is_default.xml

storage_list.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<StorageList
  xmlns:android="http://schemas.android.com/apk/res/android">
    <storage android:mountPoint="/mnt/sdcard" android:storageDescription="@string/storage_internal" android:primary="true" android:removable="false" android:emulated="true" />
    <storage android:mountPoint="/mnt/sdcard2" android:storageDescription="@string/storage_sd_card" android:primary="false" android:removable="true" android:emulated="false" />
    <storage android:mountPoint="/mnt/usb" android:storageDescription="@string/storage_usb" android:primary="false" android:removable="true" android:emulated="false" />
</StorageList>
storage_list_sdcard_is_default.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<StorageList
  xmlns:android="http://schemas.android.com/apk/res/android">
    <storage android:mountPoint="/mnt/sdcard" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:emulated="false" />
    <storage android:mountPoint="/mnt/sdcard2" android:storageDescription="@string/storage_internal" android:primary="false" android:removable="false" android:emulated="true" />
    <storage android:mountPoint="/mnt/usb" android:storageDescription="@string/storage_usb" android:primary="false" android:removable="true" android:emulated="false" />
</StorageList>
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Could you post your /proc/mounts file while the internal is not the default one, please?
Author of Total Commander
https://www.ghisler.com
77kdv77
Junior Member
Junior Member
Posts: 23
Joined: 2013-05-01, 05:09 UTC

Post by *77kdv77 »

Code: Select all

rootfs / rootfs ro,noatime 0 0
tmpfs /dev tmpfs rw,nosuid,noatime,mode=755 0 0
devpts /dev/pts devpts rw,noatime,mode=600 0 0
proc /proc proc rw,noatime 0 0
sysfs /sys sysfs rw,noatime 0 0
none /acct cgroup rw,noatime,freezer,cpuacct,cpu 0 0
tmpfs /mnt/asec tmpfs rw,noatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,noatime,mode=755,gid=1000 0 0
/dev/block/mmcblk0p21 /persist ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p15 /cust ext4 ro,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p20 /system ext4 ro,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p23 /tmpdata ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=1,data=ordered,noauto_da_alloc 0 0
/dev/block/mmcblk0p22 /cache ext4 rw,nosuid,nodev,noatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p27 /data ext4 rw,nosuid,nodev,noatime,user_xattr,acl,commit=15,barrier=1,nodelalloc,data=ordered,noauto_da_alloc 0 0
/dev/block/mmcblk0p24 /tombstones ext4 rw,nosuid,nodev,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p1 /firmware vfat ro,relatime,fmask=0000,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/fuse /mnt/sdcard2 fuse rw,nosuid,nodev,noexec,relatime,user_id=1000,group_id=1015,default_permissions,allow_other 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
/dev/block/vold/179:97 /mnt/sdcard vfat rw,noexec,noatime,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:97 /mnt/secure/asec vfat rw,noexec,noatime,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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem seems to be the /dev/fuse device - TC currently only looks for:
/dev/block/vold/*
/dev/block/mmcblk*
/dev/block/sd*

I will include /dev/fuse in the search.
Author of Total Commander
https://www.ghisler.com
77kdv77
Junior Member
Junior Member
Posts: 23
Joined: 2013-05-01, 05:09 UTC

Post by *77kdv77 »

thanks
Post Reply