LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-31-2012, 12:12 PM   #1
joint
Member
 
Registered: Apr 2005
Distribution: Debian Jessie
Posts: 92

Rep: Reputation: 15
Angry 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

Thanks...

Last edited by joint; 08-31-2012 at 12:13 PM.
 
Old 08-31-2012, 12:19 PM   #2
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
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.).
 
Old 08-31-2012, 12:23 PM   #3
joint
Member
 
Registered: Apr 2005
Distribution: Debian Jessie
Posts: 92

Original Poster
Rep: Reputation: 15
I am using SAMBA.
 
Old 08-31-2012, 12:34 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,652

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by joint View Post
I am using SAMBA.
...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.
 
Old 08-31-2012, 12:59 PM   #5
joint
Member
 
Registered: Apr 2005
Distribution: Debian Jessie
Posts: 92

Original Poster
Rep: Reputation: 15
Ok,
I'll tell you the whole story:

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.

So, can you sugest me something?

Last edited by joint; 08-31-2012 at 01:01 PM.
 
Old 08-31-2012, 01:24 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,652

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by joint View Post
Ok,
I'll tell you the whole story:
Would have helped to know it from the start.
Quote:
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.
 
Old 08-31-2012, 01:31 PM   #7
joint
Member
 
Registered: Apr 2005
Distribution: Debian Jessie
Posts: 92

Original Poster
Rep: Reputation: 15
I browse the network, find the shared folder - right click - "create link" and: "The target doesn't support symbolic links."

The same way, I copy the files to my local machine.
There are no windows computers on this network.

Last edited by joint; 08-31-2012 at 01:34 PM.
 
Old 08-31-2012, 01:50 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,652

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by joint View Post
I browse the network, find the shared folder - right click - "create link" and: "The target doesn't support symbolic links."
Right..because you're on the Samba share, which doesn't support symbolic links. Did you type in the commands as suggested?
Quote:
The same way, I copy the files to my local machine.
Not sure what you mean by "same way". Do you browse to the path, and select/drag to your local folder??
Quote:
There are no windows computers on this network.
Then you should use NFS, and you wouldn't have to worry about Samba/Windows limitations.
 
Old 08-31-2012, 01:53 PM   #9
joint
Member
 
Registered: Apr 2005
Distribution: Debian Jessie
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TB0ne View Post
Right..because you're on the Samba share, which doesn't support symbolic links. Did you type in the commands as suggested?

Not sure what you mean by "same way". Do you browse to the path, and select/drag to your local folder??

Then you should use NFS, and you wouldn't have to worry about Samba/Windows limitations.
Ok, I'll follow your sugestions, but not today, I'm already off work . I'll try those as soon as can a let you know the results.
Appreciate your help.
 
Old 09-10-2012, 05:20 AM   #10
joint
Member
 
Registered: Apr 2005
Distribution: Debian Jessie
Posts: 92

Original Poster
Rep: Reputation: 15
ok, i'm using this: cd $HOME/Desktop
ln -s /path/to/samba/drive FolderName

It creates a sl but says it does not exist, and I know it's me who's doing something wrong.

The remote computer is called 'ubuntu-server' and it has a shared folder named 'share'.

Is it something like this?: sudo ln -s smb://pos-ubuntu/share/ test

Last edited by joint; 09-10-2012 at 05:29 AM.
 
Old 09-10-2012, 05:36 AM   #11
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
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.
 
Old 09-10-2012, 05:42 AM   #12
joint
Member
 
Registered: Apr 2005
Distribution: Debian Jessie
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by 414N View Post
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)

Last edited by joint; 09-10-2012 at 05:44 AM.
 
Old 09-10-2012, 06:07 AM   #13
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
Maybe you're missing the smbfs package. Try installing it with
Code:
sudo apt-get install smbfs
If that still doesn't work, try substituting "cifs" with "smbfs" in the mount command.
 
Old 09-19-2012, 03:48 AM   #14
joint
Member
 
Registered: Apr 2005
Distribution: Debian Jessie
Posts: 92

Original Poster
Rep: Reputation: 15
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?

Thank you for you patience.

Last edited by joint; 09-19-2012 at 03:55 AM.
 
Old 09-19-2012, 04:08 AM   #15
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tar: "preserve the symbolic links" julian16 Linux - Newbie 3 02-04-2012 11:24 PM
"creating symbolic link" "operation not permitted" wheni Linux - Newbie 3 05-08-2011 01:36 AM
"Too many levels of symbolic links" Problem Corallis Linux - Newbie 5 07-12-2004 01:18 PM
ProFTPD - "Too many levels of symbolic links" orange400 Linux - Software 5 04-29-2004 06:55 AM
Can't mount CDROM: "Too many levels of symbolic links" wycolorado Linux - Newbie 10 08-15-2003 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration