7 Replies Latest reply: Jul 13, 2006 5:31 PM by baltwo
Sven Schänzler1 Level 1 (25 points)
To free some space on startup partition and to ease backup I moved /user/me/library/mail (folder) to another partition and wanted to symlink to it:

ln -s /otherpartition/Ω backup/mail /startupdisk/user/me/library/

Got error message "file exists". Checked it with ls -a. File did not exist! (I moved the original folder to the desktop). Tried sudo. No way.

The Ω is to order the folder at the very end.

Any hints?

pb 1,33, Mac OS X (10.4.7)
  • Tom Gewecke Level 9 (77,200 points)
    ln -s /otherpartition/Ω backup/mail

    Any hints?

    Your path has two spaces in it as typed here. Are they in what you are really using?

    Will it work right without the Ω?
  • baltwo Level 9 (62,215 points)
    You also need to include the appropriate starting point to the other partition; namely,

    /Volumes/otherpartition/<rest of path>

    The easiest way to get paths correctly is to select the destination folder in the Finder and click & drag it into the Terminal window. The OS will properly escape and spaces or oddball characters.

    Additionally, the source path is malformed. It should be:


    You don't need the boot drive's name, / suffices, and path's are case-sensitive.
  • kainewynd2 Level 1 (15 points)
    The syntax should be:

    ln -s /Users/username/Library/Mail /Volumes/backup/backupfolder/Mail
    in other words:
  • Sven Schänzler1 Level 1 (25 points)
    Thank you all.

    My mistake: I made drag and drop for the paths: ln -s volume/Ω backup/mail user/me/library. I forgot the /mail as the name of the alias. Everything is fine now, no probs with Ω.

    Too much football and beer here in Germany =)
  • baltwo Level 9 (62,215 points)
    Thanks for the feedback. Good computing and good luck against the Italians.
  • austin m Level 1 (125 points)
    my experience with the command line is limited at best, but i'm trying to create a sym link (ln -s) to create a folder, either named the same or named different. and for the life of me i can't get it to work, it either tells me:

    "ln: user/directory/: No such file or directory"


    it puts a dead alias with the name in the directory, but when you try to open it it asks me to delete fix or cancel.

    i have done this before, but can't remember how i did it, i'm missing some / at the beginning or end or both i think. anybody have any thoughts?

  • baltwo Level 9 (62,215 points)
    You need a complete path. It should lbe /user/directory/ vice user/directory/.