7 Replies Latest reply: Jul 13, 2006 5:31 PM by baltwo
Sven Schänzler1 Level 1 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)
  • 1. Re: ln -s -> "file exists" ?!?
    Tom Gewecke Level 9 Level 9 (71,735 points)
    ln -s /otherpartition/Ω backup/mail
    /startupdisk/user/me/library/


    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 Ω?
  • 2. Re: ln -s -> "file exists" ?!?
    baltwo Level 9 Level 9 (60,125 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:

    /Users/<username>/Library/

    You don't need the boot drive's name, / suffices, and path's are case-sensitive.
  • 3. Re: ln -s -> "file exists" ?!?
    kainewynd2 Level 1 Level 1 (15 points)
    The syntax should be:

    ln -s /Users/username/Library/Mail /Volumes/backup/backupfolder/Mail
    in other words:
    ln -s $SOURCE $DESTINATION
  • 4. Re: ln -s -> "file exists" ?!?
    Sven Schänzler1 Level 1 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 =)
  • 5. Re: ln -s -> "file exists" ?!?
    baltwo Level 9 Level 9 (60,125 points)
    Thanks for the feedback. Good computing and good luck against the Italians.
  • 6. Re: ln -s -> "file exists" ?!?
    austin m Level 1 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"

    or

    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?

    thanks
  • 7. Re: ln -s -> "file exists" ?!?
    baltwo Level 9 Level 9 (60,125 points)
    You need a complete path. It should lbe /user/directory/ vice user/directory/.