Linux – Ubuntu: Creating a symlink with network shared folder

linuxsmbsymbolic-linkUbuntu

I'm trying to create a symlink with a network shared folder (located in a Windows system) from my Ubuntu system using the command.

ln -s smb://sys-name/www www

It creates a link but it says the link is broken. But the path exists and I can browse to the network folder path.

Could anybody point me the issue?

Basically, I'm trying to create the link as I'm not able to access the network shared files from Eclipse, so thought of making use of the symlinks, but didn't work out. Any other workaround for this?

Best Answer

You can't make a link to something which isn't in your filesystem. That you can browse it is a feature of your file browser; that's why it doesn't work with eclipse or ln.

What you want to do is mount the remote filesystem into your filesystem. For example mount -t cifs //sys-name/www www. See man mount.cifs for more details.

Related Question