external SD mounted via init.d: no shortcut in TC Homescreen

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
amokbunny
Junior Member
Junior Member
Posts: 2
Joined: 2012-11-20, 00:07 UTC

external SD mounted via init.d: no shortcut in TC Homescreen

Post by *amokbunny »

Greetings!

First, being a long-time user of the Windows Comm...erm, the Windows version of Total Commander I seriously love the android version, it's an as perfect tool as under windows :D

But one problem:
I have an ext4-formatted external SD, which I mount via the init.d-folder.
This works fine: I can access it via the original mount point (/storage/sdcard1 - yes, CM10) and also via the symlinks /mnt/extSdCard and /extSdCard.

But: In TC, only the shortcut of the first/internal SD shows up, no shortcut to the external SD.

Do I use a "standard" SD and let android do the mounting it shows up fine as shortcut SD-card1 in the TC Home screen.
Just to clarify, I can perfectly access the external SD when manually mounted in TC. It's just not showing up in the TC home screen.

Any ideas?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately there is no function on Android to get additional SD cards.

TC can only show cards which are listed in
/system/etc/vold.fstab
and
/proc/mounts

Maybe you have an idea how to detect manually added mount points?
Author of Total Commander
https://www.ghisler.com
amokbunny
Junior Member
Junior Member
Posts: 2
Joined: 2012-11-20, 00:07 UTC

Post by *amokbunny »

When does TC query the mountpoints?

I guess TC reads "/system/etc/vold.fstab" and/or "/proc/mounts" before the SD is mounted by the initscript (or, at least, gets information about mounts from before that point), since after boot the SD shows up in both:

cat /system/etc/vold.fstab:
# external sdcard
dev_mount sdcard1 /storage/sdcard1 auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1/

and

cat /proc/mounts:
/dev/block/mmcblk1 /storage/sdcard1 ext4 rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=ordered 0 0

So in principle the entries are there.
Could one have TC re-read the mounted partitions after TC starts up?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

When does TC query the mountpoints?
1. When TC starts
2. TC registers a callback for the event: Intent.ACTION_MEDIA_MOUNTED

Thanks for posting the lines from these two files, I will check why they aren't recognized.
Author of Total Commander
https://www.ghisler.com
WolfgangN
New Member
New Member
Posts: 1
Joined: 2012-12-22, 14:29 UTC

may I ask, is it the same problem as with second partition ?

Post by *WolfgangN »

Hello,
I'm currently not that well informed about all details in Android/Linux and it's filesystem. Nether the less, may I ask you following ?

I own a Samsung Galaxy Note 2 (rooted) with a external SD card which I changed to have two partitions. First partition is FAT32, second partition is EXT3. I need this for using the APP Link2SD which move Apps to the second partition of this SD card and set a link for Android.

Total commander (and no other file commander so far) didn't show this second partition.
Don't know whether this can be improved... hope so ! Did you get any similar query so far ?

By the way, many thanks for all the great work on the total commander ! I licenced it some years ago. It works great ! Many thanks !
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC only creates links for partitions which appear both in
/system/etc/vold.fstab
and
/proc/mounts.

Partitions mounted with the app Stickmount aren't shown either. If you have any idea how to detect them, I will add them.
Author of Total Commander
https://www.ghisler.com
Post Reply