Koozali.org: home of the SME Server

How does Symbolic Link work

Offline ask

  • 3
  • +0/-0
How does Symbolic Link work
« on: August 07, 2008, 08:59:40 AM »
Hi all

we have fresh installed SME7.3 on one of the SATA disk and we have added second disk just to store music files. now we followed instruction given http://wiki.contribs.org/AddExtraHardDisk site and looks like all works fine.

we created symbolic link between second hard disk and /home/Smith/files/ibays/ibayname and all looks OK but when ever we create/copy files to ibay from workstation(mapped drive) we can see files on both places (mount point as well as /home/e-smith/files/ibays/ibayname/files). doesn't matter from which location we open or edit file(ssh to server) we see the same contain.

now we just wanted make sure that if this is how symbolic link works and system is not saving files in two places its just linking to same file even if we see same thing from two different location.

we will appreciate if some one could brief little bit more we are bit new to SME.

Thank you

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: How does Symbolic Link work
« Reply #1 on: August 07, 2008, 01:21:42 PM »
A symlink will make files appear to exist in multiple locations.

The "acid test" to confirm this for yourself would be to unmount the extra drive, then confirm that the copies in /home/e-smith/files/ibays/ibayname/files also disappear.

Here's a link to a pretty good description of both symlinks and hard links under linux: http://www.telenovela-world.com/~spade/linux/lg/105/pitcher.html

Offline ask

  • 3
  • +0/-0
Re: How does Symbolic Link work
« Reply #2 on: August 07, 2008, 01:22:55 PM »
Hi all

just wanted to let you know that now we know the answer.

Thank yo

Offline ask

  • 3
  • +0/-0
Re: How does Symbolic Link work
« Reply #3 on: August 07, 2008, 01:27:58 PM »
hi mmccarn

Thanks for the info and the link. the way we found the answer was by uploading some files and monitoring the size of disk.

Thank you again we definately will go through the link you provided.