Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-08-2011, 07:18 AM   #1
LQ Newbie
Registered: May 2011
Posts: 2

Rep: Reputation: 0
creating symbolic link issue?

ln -s /media/disk-1/ror_projects/prasad/twitter_app/shared/log /media/disk/ror_projects/prasad/twitter_app/releases/20110508103345/log
ln: creating symbolic link `/media/disk/ror_projects/prasad/twitter_app/releases/20110508103345/log/log': Operation not permitted

This issue arising while Capistrano deployment.
Actual error:

** [out ::] ln:
** [out ::] creating symbolic link `/media/disk/ror_projects/prasad
** [out ::] : No such file or directory
** [out ::]
command finished in 94ms
failed: "sh -c 'ln -nfs /media/disk/ror_projects/prasad/twitter_app/shared/confi
g/database.yml /media/disk/ror_projects/prasad/twitter_app/releases/201105081052
08/config/database.yml'" on

Let me know any one solution for this problem. It is very urgent for me.


Last edited by prasad_nyros; 05-08-2011 at 07:20 AM.
Old 05-08-2011, 07:50 AM   #2
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

That is not working because you are trying to create a soft link when both source and destination exist. In soft link the destination is created with a name that you want to give to that link. The procedure that you are trying is good for creating hard links where both source and destination should exist.

You can however create a soft of your log file this way:

Try this: ln -s /full_source_path/filename /destination_full_path/file_name_of_your_choice_should_not_already_exist


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied when creating a symbolic link? Ubuntonian Linux - Software 1 12-20-2010 10:48 AM
Creating a Symbolic link to a Java app (JBidWatcher) Pharkdefyno Linux - Software 5 05-18-2009 07:50 AM
make install problems: ln: creating symbolic link Jane2008 Linux - Newbie 2 11-07-2008 10:19 AM
Can I recover from creating a symbolic link with the same name as an existing folder? serutan Linux - Newbie 3 10-07-2007 05:20 AM
creating symbolic link for samba woonaks Linux - General 2 10-22-2003 11:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration