[Android Apps and Games] Lanbase:
Hi, I have a problem accessing the "real" sd card, I think it has something to do with missing softlinks in /mnt but am not sure.

I have HTC E1 (603e) on Jellybean 4.1.1, and am using the dev. version of Samba Filesharing

I can access the "build in" sd card without any problems, mapping a drive from win 7 to: \\ipofphone\sdcard

but when I try to do the same for sdcard2 ( ext-sd ) then the path is not found. I have tried with \\ipofphone\sdcard2 and with \\ipofphone\ext_sd

My smb.conf.

[global]
interfaces = wlan0
bind interfaces only = yes
workgroup = WORKGROUP
server string = Samba on Android
netbios name = ANDROID2
remote announce = 255.255.255.255
encrypt passwords = yes
security = USER
restrict anonymous = 1
load printers = no
printcap name = /dev/null
disable spoolss = yes
deadtime = 5
delete readonly = yes
nt acl support = no
inherit permissions = yes
socket options = SO_SNDBUF=16384 SO_RCVBUF=16384
local master = no
unix extensions = yes

[sdcard]
vfs objects = fake_perms
comment = Android /storage/sdcard0
path = /storage/sdcard0
force user = root
read only = no
writable = yes
guest ok = no

[External SD]
vfs objects = fake_perms
comment = Android /storage/ext_sd
path = /storage/ext_sd
force user = root
read only = no
writable = yes
guest ok = no

Some output of concerning directories on my HTC E1:

# cd /storage
# ls
ext_sd
sdcard0
usb
# ls -al
d---rwxr-x system sdcard_rw 1970-01-01 00:00 ext_sd
drwxrwxr-x root sdcard_rw 2015-01-05 23:26 sdcard0
d--------- system system 2015-01-05 22:21 usb
# cd /mnt
# ls -al
drwxr-xr-x root system 2015-01-05 22:21 asec
d--------- system system 2015-01-05 22:21 emmc
drwxr-xr-x root system 2015-01-05 22:21 obb
lrwxrwxrwx root root 2015-01-05 22:21 sdcard -> /storage/sdcard0
drwx------ root root 2015-01-05 22:21 secure
lrwxrwxrwx root root 2015-01-05 22:21 usb -> /storage/usb
# cd /
# ls -al
drwxr-xr-x root root 2015-01-05 22:21 acct
drwxrwx--- system cache 2014-12-21 04:28 cache
dr-x------ root root 2015-01-05 22:21 config
-rw-r--r-- root root 1398 1970-01-01 00:00 cwkeys
lrwxrwxrwx root root 2015-01-05 22:21 d -> /sys/kernel/debug
drwxrwx--x system system 2015-01-05 22:21 data
-rw-r--r-- root root 118 1970-01-01 00:00 default.prop
drwxr-xr-x root root 2015-01-05 22:21 dev
drwx------ root root 2015-01-06 07:01 devlog
lrwxrwxrwx root root 2015-01-05 22:21 etc -> /system/etc
-rw-r----- root root 328 1970-01-01 00:00 fstab.csndug
-rwxr-x--- root root 113536 1970-01-01 00:00 init
-rwxr-x--- root root 2344 1970-01-01 00:00 init.goldfish.rc
-rwxr-x--- root root 21757 1970-01-01 00:00 init.rc
-rwxr-x--- root root 20463 1970-01-01 00:00 init.target.rc
-rwxr-x--- root root 1637 1970-01-01 00:00 init.trace.rc
-rwxr-x--- root root 21614 1970-01-01 00:00 init.usb.rc
drwxrwxr-x system sdcard_r 2015-01-05 22:21 mnt
drwxrwx--- radio radio 2015-01-06 07:04 modemfs
-rw-r--r-- root root 20545 1970-01-01 00:00 powertest.init.rc
dr-xr-xr-x root root 1970-01-01 00:00 proc
drwx------ root root 2013-04-15 16:38 root
drwxr-x--- root root 1970-01-01 00:00 sbin
lrwxrwxrwx root root 2015-01-05 22:21 sdcard -> /storage/sdcard0
lrwxrwxrwx root root 2015-01-05 22:21 sdcard2 -> /storage/ext_sd
d---r-x--- system sdcard_r 2015-01-05 22:21 storage
drwxr-xr-x root root 2015-01-05 22:21 sys
drwxr-xr-x root root 1970-01-01 00:00 system
-rw-r--r-- root root 272 1970-01-01 00:00 ueventd.goldfish.rc
-rw-r--r-- root root 3879 1970-01-01 00:00 ueventd.rc
-rw-r--r-- root root 1663 1970-01-01 00:00 ueventd.target.rc
lrwxrwxrwx root root 2015-01-05 22:21 vendor -> /system/vendor
#

Contents of vold.fstab :

#dev_mount usb /INS 24 /devices/sdi2/mmc_host/mmc0
dev_mount sdcard /storage/ext_sd auto /devices/sdi0/mmc_host/mmc1
dev_mount usb /storage/usb auto /devices/platform/musb-ux500.0

Part of Samba Support log;

==================== smb log files ====================
[2015/01/05 23:02:13, 1] lib/util_unistr.c:load_case_tables(67)
creating lame upcase table
[2015/01/05 23:02:13, 1] lib/util_unistr.c:load_case_tables(82)
creating lame lowcase table
[2015/01/05 23:02:13, 0] smbd/server.c:main(806)
smbd version 3.0.20a started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2015/01/05 23:02:37, 1] smbd/service.c:make_connection_snum(662)
ao721 (192.168.xxx.xxx) connect to service sdcard initially as user root (uid=0, gid=0) (pid 7055)
[2015/01/05 23:15:31, 0] smbd/service.c:make_connection(798)
ao721 (192.168.xxx.xxx) couldn't find service sdcard2
[2015/01/05 23:17:00, 0] smbd/service.c:make_connection(798)
ao721 (192.168.xxx.xxx) couldn't find service ext_sd
[2015/01/05 23:17:26, 0] smbd/service.c:make_connection(798)
ao721 (192.168.xxx.xxx) couldn't find service ext_sd
[2015/01/05 23:02:13, 0] nmbd/nmbd.c:main(717)
Netbios nameserver version 3.0.20a started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
[2015/01/05 23:02:13, 1] lib/util_unistr.c:load_case_tables(67)
creating lame upcase table
[2015/01/05 23:02:13, 1] lib/util_unistr.c:load_case_tables(82)
creating lame lowcase table

I dont realy know how to proceed apart from trying to create a symlink

in /mnt like this:

lrwxrwxrwx root root 2015-01-05 22:21 sdcard2 -> /storage/ext_sd

But I am not sure if that the right thing to do and if it might get overwritten @ reboot

Please advice before I break something ;)

Grtz Lanbase