LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Symbolic link questions (https://www.linuxquestions.org/questions/linux-newbie-8/symbolic-link-questions-748499/)

njmurvin 08-18-2009 02:00 PM

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.)?

schneidz 08-18-2009 02:05 PM

i would assume so ?

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

i92guboj 08-18-2009 02:16 PM

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.

njmurvin 08-18-2009 03:21 PM

Quote:

Originally Posted by schneidz (Post 3648390)
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.

njmurvin 08-18-2009 03:25 PM

Quote:

Originally Posted by i92guboj (Post 3648405)
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)"?

jiml8 08-18-2009 03:29 PM

Quote:

Originally Posted by njmurvin (Post 3648468)
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/ .

i92guboj 08-18-2009 06:43 PM

Quote:

Originally Posted by njmurvin (Post 3648468)
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.


All times are GMT -5. The time now is 01:55 PM.