LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02: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 02:01 PM. Reason: add tags
 
Old 08-18-2009, 02:05 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

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

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

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

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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, 03: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, 03: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, 03:29 PM   #6
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
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, 06:43 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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



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

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

All times are GMT -5. The time now is 08:39 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
Open Source Consulting | Domain Registration