[SOLVED] HELP! "The target doesn't support symbolic links."
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
HELP! "The target doesn't support symbolic links."
I'm trying to create a link to a shared folder on a LAN Ubuntu 12.04 Desktop from another Ubuntu 12.04 machine.
I've got access to copy/paste/delete but can't creat a link.
I've googled and tried a million things with always the same answer: "The target doesn't support symbolic links."
I've got three ubuntu machines on a client's office because it's an open source SO, and it's not able to do such a simple task. FFS.
I like linux, but couldn't this things be more simple - like windows - just click and that's it!!??
This is the kind of stuff that moves people away from linux. /end rant
Maybe you're doing it wrong from the very beginning.
If I understood your issue correctly, you're basically trying to create a symbolic link on machine A to a network share on machine B.
This doesn't work and won't because you're trying to use the wrong tool for the job. Symbolic links are a "tool" which act on the filesystem level (so the filesystem needs to support it) and not merely some kind of binary-file pointing to a filesystem location like on Windows.
All you need to do is to add the network shares to the /etc/fstab file, and those can be even automatically mounted after that.
The correct syntax is dependent upon the kind of network shares you're using (samba, nfs etc.).
...which is a Windows file system (essentially), and Windows doesn't support symbolic links.
If you were just using Linux ONLY, it is just as easy as 'click and that's it'. If you ARE using just Linux, and don't need Windows support, use NFS instead of Samba, and it'll work. Don't say Linux is hard to use just because you're not experienced with it....personally, I'd have NO IDEA how to do this in Windows, and find doing ANYTHING in Windows to be 1000% more difficult than doing it in Linux.
This office I spoke had a Ubuntu Server and two Ubuntu Desktop. They had, on both of Ubuntu Desktop, symbolic links to the shared folder on Server using SAMBA.
The guy who managed this LAN left the country and asked me to take care of it from now on.
Last monday the hdd of the server broke. So, since the job of this server is only to share a folder with a huge amount of files (pics, docs, etc etc) nothing more, we (me and the previous lan manager) agreed to install a Desktop version on a new hdd instead of a Server version.
And now, I can't attach a file to Thunderbird from the server without having to copying them first to the local machine.
The fact is that THIS WAS WORKING WITH SAMBA BEFORE. Therefore, I thought it was because of Ubuntu Desktop instead of Server and installed here in my work place 1 Server and 2 Desktop to mimic the office - with no success.
I admit I'm not experienced. I've been using OpenSUSE distros at home and that's it.
This office I spoke had a Ubuntu Server and two Ubuntu Desktop. They had, on both of Ubuntu Desktop, symbolic links to the shared folder on Server using SAMBA. The guy who managed this LAN left the country and asked me to take care of it from now on. Last monday the hdd of the server broke. So, since the job of this server is only to share a folder with a huge amount of files (pics, docs, etc etc) nothing more, we (me and the previous lan manager) agreed to install a Desktop version on a new hdd instead of a Server version.
And now, I can't attach a file to Thunderbird from the server without having to copying them first to the local machine. The fact is that THIS WAS WORKING WITH SAMBA BEFORE. Therefore, I thought it was because of Ubuntu Desktop instead of Server and installed here in my work place 1 Server and 2 Desktop to mimic the office - with no success.
This puts things into a different light. A *LOCAL* symbolic link to folder will work, no matter what the file system. A symbolic link ON that file system won't work in the case of Samba. While you can probably do this through a GUI, a command-line would be far quicker. Get to a terminal on the desktop machines, and:
Code:
cd $HOME/Desktop
ln -s /path/to/samba/drive FolderName
That's it. May have to log out/back in for it to show up, but you're done after that. As long as the Samba share is mounted, you'll be able to access it via that symbolic link.
You say you can't just browse to the Samba mount point and attach something...what error(s) does it give you? What do you do to copy a file locally? And again, if you're in a pure Linux environment, Samba isn't the best thing to use...it's something that let's Windows play nicely, since Windows doesn't (by default), support NFS.
You can't create a symbolic link to a path not on the local filesystem (and smb://XXX won't ever be on the local filesystem).
You first need to mount the smb share and then you can create all the symbolic links you want to.
To mount a samba share, you can use something like this:
Code:
mount -t cifs //pos-ubuntu/share /path/where/to/mount/the/samba/share
If this works ok, you can add a line to the /etc/fstab to automount it, as already said.
You can't create a symbolic link to a path not on the local filesystem (and smb://XXX won't ever be on the local filesystem).
You first need to mount the smb share and then you can create all the symbolic links you want to.
To mount a samba share, you can use something like this:
Code:
mount -t cifs //pos-ubuntu/share /path/where/to/mount/the/samba/share
If this works ok, you can add a line to the /etc/fstab to automount it, as already said.
I typed this:
Code:
sudo mount -t cifs //pos-ubuntu/share /home/sergio/slink/
And got this back:
Code:
wrong fs type, bad option, bad superblock on //pos-ubuntu/share,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
Ok...
None of that it's been working.
So, I've done a fresh install of Ubuntu Server 12.04 here at my office for testing. I ain't got any samba, nfs, etc packages installed.
What would you suggest me to do create a file server which suppport symbolic links from client?
It would be useful to know what didn't work and how it didn't work (error messages etc.).
If you really want to go down the samba route (with no Windows machines on the network this is kinda useless, but whatever...), make sure that samba is alive and working well on the server by using, on one of the desktop machines:
Code:
smbclient -L //pos-ubuntu
if pos-ubuntu is the network name of the server. If it asks for a password and you didn't set one on the server, leave it blank and press enter: you should then see a list of samba shares on the server specified. This means that the samba server is working ok.
After this first test, you should try mounting the shares on the server on one of the desktop machines as already written in the previous posts. Make sure that /sbin/mount.cifs and/or /sbin/mount.smbfs exist, as mount relies on them to actually mount a samba share on the filesystem. If they don't exist, then you're missing the smbfs package and you should install it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.