[General Questions and Answers] Xwang76:
Hi to all!

I post my question here hoping it is the correct place.

I would like to create a link in the /mnt/sdcard directory of my tablet to the place where usb and sdcard are mounted (namely the /Removable directory).

I've tried to create the link using adb shell but with no result at the moment.

This is the situation on my Asus me301t tablet:

ls -all
drwxr-xr-x root system 2013-12-08 15:49 Removable
drwxr-xr-x root root 2013-12-08 15:49 acct
drwxrwx--- system cache 2013-12-08 16:54 cache
dr-x------ root root 2013-12-08 15:49 config
lrwxrwxrwx root root 2013-12-08 15:49 d -> /sys/kernel/debug
drwxrwx--x system system 2013-12-08 15:49 data
-rw-r--r-- root root 116 1970-01-01 01:00 default.prop
drwxr-xr-x root root 2013-12-08 15:49 dev
lrwxrwxrwx root root 2013-12-08 15:49 etc -> /system/etc
-rw-r----- root root 718 1970-01-01 01:00 fstab.cardhu
-rwxr-x--- root root 113524 1970-01-01 01:00 init
-rwxr-x--- root root 3012 1970-01-01 01:00 init.0b.rc
-rwxr-x--- root root 15918 1970-01-01 01:00 init.cardhu.rc
-rwxr-x--- root root 2487 1970-01-01 01:00 init.goldfish.rc
-rwxr-x--- root root 18247 1970-01-01 01:00 init.rc
-rwxr-x--- root root 244 1970-01-01 01:00 init.tf.rc
-rwxr-x--- root root 1795 1970-01-01 01:00 init.trace.rc
-rwxr-x--- root root 4150 1970-01-01 01:00 init.usb.rc
drwxrwxr-x root system 2013-12-08 15:49 mnt
dr-xr-xr-x root root 1970-01-01 01:00 proc
drwx------ root root 2013-04-19 08:42 root
drwxr-x--- root root 1970-01-01 01:00 sbin
lrwxrwxrwx root root 2013-12-08 15:49 sdcard -> /storage/emulated/legacy
d---r-x--- root sdcard_r 2013-12-08 15:49 storage
drwxr-xr-x root root 2013-12-08 15:49 sys
drwxr-xr-x root root 1970-01-01 01:00 system
-rw-r--r-- root root 2520 1970-01-01 01:00 ueventd.cardhu.rc
-rw-r--r-- root root 272 1970-01-01 01:00 ueventd.goldfish.rc
-rw-r--r-- root root 4024 1970-01-01 01:00 ueventd.rc
lrwxrwxrwx root root 2013-12-08 15:49 vendor -> /system/vendor

So /Removable is a directory.

The same is not true for the /mnt/sdcard

shell@android:/mnt $ ls -all
drwxr-xr-x root system 2013-12-08 15:49 asec
drwxr-xr-x root system 2013-12-08 15:49 obb
lrwxrwxrwx root root 2013-12-08 15:49 sdcard -> /storage/emulated/legacy
drwx------ root root 2013-12-08 15:49 secure
drwx------ shell shell 2013-12-08 15:49 shell

Moreover also /storage/emulated/legacy is a link

shell@android:/storage/emulated $ ls -all
lrwxrwxrwx root root 2013-12-08 15:49 legacy -> /mnt/shell/emulated/0

The /mnt/shell/emulated/0 is a real directory and these are the owner and permission of the directory which constitute that path:

shell@android:/mnt/shell/emulated/0 $ cd ..
shell@android:/mnt/shell/emulated $ ls -all
drwxrwxr-x root sdcard_rw 2013-12-08 16:17 0
drwxrwxr-x root sdcard_rw 2013-08-29 12:55 legacy
drwxrwxr-x root sdcard_rw 2013-08-29 12:54 obb
shell@android:/mnt/shell/emulated $ cd ..
shell@android:/mnt/shell $ ls -all
drwxrwxr-x root sdcard_rw 2013-08-29 12:55 emulated
shell@android:/mnt/shell $ cd ..
shell@android:/mnt $ ls -all
drwxr-xr-x root system 2013-12-08 15:49 asec
drwxr-xr-x root system 2013-12-08 15:49 obb
lrwxrwxrwx root root 2013-12-08 15:49 sdcard -> /storage/emulated/legacy
drwx------ root root 2013-12-08 15:49 secure
drwx------ shell shell 2013-12-08 15:49 shell

I've tried to create the link and I obtain the following error:

ln -s /Removable/ /mnt/shell/emulated/0/Removable
link failed Function not implemented

Is it possible to create such a link without being root?

Otherwise is it possible to get root access only temporarily so that to create such a link or whichever is required to obtain the same functionality (removable sdcard and usb should be visible under /mnt/sdcard).

Thank you for your help,

Xwang