PDA

View Full Version : [SOLVED] How do I make a link to a NAS file ?



PM47
November 19th, 2012, 05:18 PM
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

LewisTM
November 19th, 2012, 05:40 PM
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.

ln -s /media/nas_002/drawings/<file> /location/name_of_link
Cheers!

dannyboy79
November 19th, 2012, 05:42 PM
have you tried making a symbolic link?

PM47
November 20th, 2012, 10:01 AM
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.

ln -s /media/nas_002/drawings/<file> /location/name_of_linkCheers!

Many thanks, that works nicely :-)

Paul

dannyboy79
November 20th, 2012, 03:17 PM
Many thanks, that works nicely :-)

Pauldon't forget to edit the original thread and mark it solved.