Results 1 to 5 of 5

Thread: How do I make a link to a NAS file ?

  1. #1
    Join Date
    Mar 2011
    Beans
    49

    How do I make a link to a NAS file ?

    I have my work files in folders on a Network Storage Device (NAS). The NAS folders are mounted at startup through /etc/fstab as follows ...

    //192.168.0.111/Drawings /media/nas_002/drawings cifs password= 0 0
    etc.

    I can open the folders through Nautilus and click on a file to open it in the associated application. If I try and make a link to the file, I get an error - 'Error making symbolic link: No such file or directory'. If I copy the file to the desktop (local hard drive) and make a link to it, it works fine.

    How do I make a link to a file on the NAS such that clicking on it opens the NAS file in the associated application ?

    Paul

  2. #2
    Join Date
    Oct 2008
    Location
    Ottawa, Canada
    Beans
    785
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: How do I make a link to a NAS file ?

    File managers typically create a link in the current directory which you can move where you like. Problem is that Windows shares don't support the storage of symlinks so your are stuck.

    The command line comes to the rescue. It creates a link directly at the desired location without trying to write to the NAS.
    Code:
    ln -s /media/nas_002/drawings/<file> /location/name_of_link
    Cheers!
    husband@wife$ make sandwich
    Permission denied
    husband@wife$ sudo make sandwich

  3. #3
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    5,424
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: How do I make a link to a NAS file ?

    have you tried making a symbolic link?
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  4. #4
    Join Date
    Mar 2011
    Beans
    49

    Re: How do I make a link to a NAS file ?

    Quote Originally Posted by LewisTM View Post
    File managers typically create a link in the current directory which you can move where you like. Problem is that Windows shares don't support the storage of symlinks so your are stuck.

    The command line comes to the rescue. It creates a link directly at the desired location without trying to write to the NAS.
    Code:
    ln -s /media/nas_002/drawings/<file> /location/name_of_link
    Cheers!
    Many thanks, that works nicely

    Paul

  5. #5
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    5,424
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: How do I make a link to a NAS file ?

    Quote Originally Posted by PM47 View Post
    Many thanks, that works nicely

    Paul
    don't forget to edit the original thread and mark it solved.
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •