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?

  • external_sd is a mount point, not a symlink (hence it's a folder). You'd need to change how the ROM mounts it to go there instead of /mnt/emmc. – Matthew Read Jan 4 '12 at 0:36
  • @Matthew Read: So, how would I go about doing that? – Deniz Zoeteman Jan 4 '12 at 10:46
  • I've never even heard of that ROM, so I wouldn't know where to begin. – Matthew Read Jan 4 '12 at 15:03

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
  • mount says both sdcard and emmc are vfat. And obviously, the main storage is read/write. Are there any options for me? How could there be a symlink in the beginning? Or is that coded in the software? Because during the upgrade to the new rom, nothing was formatted. – Deniz Zoeteman Jan 4 '12 at 0:36
  • Btw, yes I did try to use your command, gave same output. Oh and yes the external_sd folder is deleted (to prevent problems with overwriting (read that at least in bash symlink doesn't overwrite)) – Deniz Zoeteman Jan 4 '12 at 0:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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