Is it possible to create symbolic links in the Android filesystem? If it's possible, how can I do this?
My Android version is 2.1, I'm using Motorola Defy.
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.
Sign up to join this communityAndroid does support symbolic links, but certain file systems (e.g. FAT or RFS) do not and you cannot create symbolic links in those partitions. If your device uses a filesystem that supports symbolic links (e.g. ext2, ext3, ext4, yaffs2) then you should be able to use ln -s
from the Terminal Emulator.
I think this question on superuser answers your question, i.e. that the FAT filesystem on the SD card does not support symlinks.
Just to clarify (and as reflected in the SU question/answers I linked): the Android OS supports symlinks, but the FAT filesystem on the SD card does not.
It is possible to do this via the mount -o bind /old/dir /new/dir
command as discussed here
https://superuser.com/a/377737/45344
You need root I guess.
You were dealing with /storage/emulated/0/Videos
Android like to make use of the /dev/fuse
partition. I do not think you can make a symbolic link in this filesystem. On my htc desire 510, I see this:
/busybox df /storage/emulated/0
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/fuse 1057284 1040844 16440 98% /mnt/shell/emulated
#
There is some weird stuff going on with /storage
/dev/fuse
is not a partition, it's a character device which programs use to communicate with kernel in order to mount Filesystem in UserSpacE. @FindOutIslamNow yes partial answer, because Android's FUSE implementation doesn't support symlinks.
Nov 27, 2019 at 5:56
mount
in terminal emulator to gather this information