LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-08-2011, 07:18 AM   #1
prasad_nyros
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 :: 172.20.1.33] ln:
** [out :: 172.20.1.33] creating symbolic link `/media/disk/ror_projects/prasad
/twitter_app/releases/20110508105208/config/database.yml'
** [out :: 172.20.1.33] : No such file or directory
** [out :: 172.20.1.33]
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 172.20.1.33

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

Thanks.

Last edited by prasad_nyros; 05-08-2011 at 07:20 AM.
 
Old 05-08-2011, 07:50 AM   #2
T3RM1NVT0R
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
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:26 PM.

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