Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Is possible to make symbolic links in the android filesystem? (and how?)

Thanks in advance :) .

(My Android version is 2.1 , i'm using Motorola Defy)

share|improve this question
    
android is not a fileystem. What is the filesystem on which you try to create the symplink? You can use mount in terminal emulator to gather this information –  rds Feb 14 '13 at 10:50
    
@rds I know that Android is not a file system. I wrote "Android file system" instead of "Android's file system" because I was writting too fast. –  castarco Feb 27 '13 at 14:52
    
but you still fail to tell what it the underling filesystem you have mounted –  rds Feb 27 '13 at 22:20

3 Answers 3

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.

share|improve this answer
    
You're always free to format your SD Card with a modern filesystem (if you don't use it on an archaic operating system, of course) –  rds Feb 14 '13 at 10:23

Android does support symbolic links, but certain file systems (e.g. FAT or RFS) does 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.

share|improve this answer
    
I tried to create a symlink from my internal storage targeting a folder on the SD card, but I gotOperation not permitted. –  user2284570 Mar 12 at 0:25
    
@user2284570: you should ask a separate question, and in there please provide more information: where you're creating link from, where you're creating the link to, how you create the symlink, whether or not you're rooted, what are the internal filesystem, and what device you're using and whether you're using custom mods. –  Lie Ryan Mar 12 at 0:31
    
I won't root before 2020. The internal filsystem use exr4 qnd the SD card exfat but as it is a symlink to a directory, I don't think it matter. From /storage/emulated/0/Videos to /storage/extSDcard/Videos which is a folder. I also tried with the busybox version of ln and ended with the same result. I have full rights acess to /storage/emulated/0. I am doing it from a terminal emulator on the device. I use android 4.4, but I don't need to write to the SD card, as this is for usingln -s. –  user2284570 Mar 12 at 0:41
    
@user2284570: please create a new question –  Lie Ryan Mar 12 at 0:51

It is possible to do this via the mount -o bind /old/dir /new/dir command as discussed here http://superuser.com/a/377737/45344

You need root I guess.

share|improve this answer
    
This is the kind of changes which would be lost on reboot. –  user2284570 Mar 12 at 0:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.