Getting "operation not permitted" error when trying to symlink a directory After installing a custom ROM (Onecosmic's ICS 4.0.3 rc1) on my Samsung I9000 Galaxy S, the external_sd symlink is broken. So, I wanted to get this symlink back. I used the following code in Terminal Emulator (yes, I am rooted with SuperUser):

su (superuser asked for rights, allowed)
cd ./mnt/sdcard
ln -s ./mnt/emmc external_sd


But I got the following error:


  Operation not permitted.


How can I create the symlink now?
What's the partition format of the SD card? FAT does not supports symlinks, although I believe it should be possible to create a symlink in ext3 that points to a FAT directory.

Also, there are operations that even root are not allowed to do, such as writing to a read-only drive or writable drives that are mounted read-only. What's the output of 'mount' command?

Also, your command looks fishy; try using absolute path (i.e. do not prepend the path with ./, instead prepend with /):

$ su
# ln -s /mnt/emmc /mnt/sdcard/external_sd