LinuxQuestions.org
Review your favorite Linux distribution.
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 11-20-2009, 08:20 PM   #1
lhorace
Member
 
Registered: Aug 2009
Distribution: Fedora
Posts: 126

Rep: Reputation: 21
I'm working with symlinks with mount command to mount remote shares


I have a /Shares folder and I have php_workspace folder which its contents contains php files. I don't want to directly put php_workspace into /Shares folder but instead ln -s /php_workspace php_workspace within the /Shares folder. However when I mount the share with mount -t cifs to /mnt/Shares and cd into /mnt/Shares and run ls, the sym links points to non existent target on the client comp. I wonder if it's possibility to tell mount not to map sym links to local FS instead to the remote FS?
 
Old 11-21-2009, 04:05 PM   #2
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 48
Quote:
Originally Posted by lhorace View Post
I have a /Shares folder and I have php_workspace folder which its contents contains php files. I don't want to directly put php_workspace into /Shares folder but instead ln -s /php_workspace php_workspace within the /Shares folder. However when I mount the share with mount -t cifs to /mnt/Shares and cd into /mnt/Shares and run ls, the sym links points to non existent target on the client comp. I wonder if it's possibility to tell mount not to map sym links to local FS instead to the remote FS?
Let me get this straight:

  • php_workspace is a local directory.
  • you want to create a symbolic link between /mnt/Shares and php_workspace, i.e. make php_workspace available on /mnt/Shares.
  • You're running in to trouble because you create the symlink in /mnt/Shares, then mount the remote file system on top of /mnt/Shares.
If my summary is correct, you will want to mount the directory first, then create the symbolic link.

Last edited by bartonski; 11-21-2009 at 04:07 PM.
 
  


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
DFS shares - can mount shared folder, but no access - error "object is remote" gbloon Linux - Networking 6 08-20-2009 05:18 PM
Execute command on mount and integrate with gnome-mount / umount Peter Rhone Linux - Newbie 4 11-18-2008 05:28 AM
long remote mount time for samba with cifs command luna6 Linux - Networking 1 04-01-2005 11:43 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
How to mount remote shares at boot up rparkes Linux - Networking 10 07-17-2003 02:48 AM

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

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