LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 08-18-2009, 03:00 PM   #1
njmurvin
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
Symbolic link questions


Sorry if this isn't the right place to post this as I am new to this site.

Can I link files via symbolic links to target files residing on a remote Windows CIFS share?

What is the format of the link path (UNC, etc.)?

Last edited by njmurvin; 08-18-2009 at 03:01 PM. Reason: add tags
 
Old 08-18-2009, 03:05 PM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,203

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
i would assume so ?

what was the error message when you tried. (not sure what 'unc, etc' means)

Last edited by schneidz; 08-19-2009 at 12:02 AM.
 
Old 08-18-2009, 03:16 PM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
As far as I know, you can symlink (but not hardlink) any file that resides in a file system that's attached to your tree, it doesn't matter the underlying phisical filesystem at all. Though admittedly, I have little experience with Windows in general for the last 8 years or so.

If you have mounted a remote fs using samba or cifs under /mnt/win, you should be able to link any file residing under that directory just as usual. There's no special syntax.

If you are talking about symlinking files *without mounting* the cifs or samba volume, then that's not possible. AND, of course, the symlink will be broken when the share is not mounted.
 
Old 08-18-2009, 04:21 PM   #4
njmurvin
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by schneidz View Post
i would assume so ?

i was the error message when you tried. (not sure what 'unc, etc' means)
UNC = Universal Naming Convention for path names. For example, in windows, a UNC path looks like:

\\servername\sharename\path\filename


I don't have an error message. I am in the planning stages and have a need to link files to a Windows share.
 
Old 08-18-2009, 04:25 PM   #5
njmurvin
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
As far as I know, you can symlink (but not hardlink) any file that resides in a file system that's attached to your tree, it doesn't matter the underlying phisical filesystem at all. Though admittedly, I have little experience with Windows in general for the last 8 years or so.

If you have mounted a remote fs using samba or cifs under /mnt/win, you should be able to link any file residing under that directory just as usual. There's no special syntax.

If you are talking about symlinking files *without mounting* the cifs or samba volume, then that's not possible. AND, of course, the symlink will be broken when the share is not mounted.
Thanks. I think you answered my question. So, would the path stored in the link be "/mnt/win/...(path on the share)"?
 
Old 08-18-2009, 04:29 PM   #6
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by njmurvin View Post
Thanks. I think you answered my question. So, would the path stored in the link be "/mnt/win/...(path on the share)"?
Yes, presuming that your mount point was /mnt/win/ .
 
Old 08-18-2009, 07:43 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Quote:
Originally Posted by njmurvin View Post
Thanks. I think you answered my question. So, would the path stored in the link be "/mnt/win/...(path on the share)"?
As per the post above, it just depends on where did you mount the share. It could be /mnt/win/whatever or it could be /foo/bar/whateverelse, check the docs and make sure where are you mounting the share.

Paths like \\foo\bar\mywindowsuser will fail.
 
  


Reply

Tags
link, symbolic, symlink


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
symbolic link not allowed or link target not accessible paullaubscher Linux - Newbie 4 03-10-2010 07:47 AM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 08:40 AM
What is a Symbolic Link? little_penguin Linux - Software 2 05-14-2005 10:27 AM
Symbolic link? jasone Linux - Newbie 4 05-06-2005 08:55 AM
symbolic link ilnli Slackware 6 01-04-2005 06:05 PM


All times are GMT -5. The time now is 10:05 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration