When I want to transfer files from my local hard drive to my thumbdrive, I keep getting this error:
Filesystem does not support symbolic links.
I don't know what this is, I need help with transferring files.
Dragging and dropping, does not work for me, the error appears. Right-click on the file and select copy, and then right click on the thumbdrive and select Paste does not work, I am still getting the same error.
If the copying is done in some shell terminal (i.e. bash), then
cp
can be explicitly told to copy the file that a link points to with--dereference
, instead of the link itself. The default behavior ofcp
is to copy files by following their links, but many graphical file browsers seem to have a default behavior of attempting to copy links and generally perserving most attributes.Example
The fact that
someLink
is a link, is shown by thel
flag in the first position of the listing output (and `d' designates a directory).The file contains the content, and the link points to the file, but can be used in nearly any manner the file could be. (Note the link file size vs the text file size: 32 Bytes vs 12 Bytes.)
First, copying the link to a directory. Then copying the file to the directory, through the link. (The below also shows that directory links work in a similar manner to file links.):
Caution
Links can be made to point to a full path or a relative path. Since this example used a linking based on the relative path of the target being in the same directory as the link being created, the link was broken when it was copied to a new directory.
you can simply compress the folder and then copy it as you like
A symbolic link is a file that points to another file, a kind of alias for a filepath. It is not compatible with the FAT-32 filesystem commonly found on USB drives.
To find the symbolic link, you can open the terminal and do an
ls -al
in the directory you are having problems with - the symbolic link will have anl
as the first character in the listing (where directories have ad
). Or else, you can do afind DIR -type l
whereDIR
is a directory that might (indirectly) contain symbolic links (.
is ok too).If you want to copy the content:
ls -al LINK
, whereLINK
is your link, will tell you where it points to (ifLINK
is a directory you will have to remove the final slash in case you have one). Just copy that.N.B.:
ls -l
is normally sufficient, I just added thea
in order to display hidden files, whose name starts with a dot - for the case where the link is a hidden file.But, if you are afraid of the terminal: in Nautilus (the file browser), the icons of links are marked by a small arrow on the bottom right (but not all icons marked like that are links). If you right click on the icon and select
Properties
, if it is a link, itsType
will start withLink to
, and itsLink target
will tell you where the real stuff is (unless that is a link itself, in which case you will have to follow the chain).The file you are trying to copy is apparently a symbolic link, which just points to another file. Removable media typically are formatted with a Microsoft filesystem such as FAT32 or NTFS, which do not support symbolic links, so you can not place one on the drive. Note that copying just the link would not do any good anyhow since having the link without the file it points to would be useless.
Your thumbdrive/pendrive is probably formatted as FAT32. Try formatting it as NTFS (Make sure to backup it's content first). Of course, EXT3/EXT4 support symlinks too - but you'll have compatibilty issues with non-Linux systems then.
Check out this related thread.
But, as psusi correctly mentions - copying a symbolic link can create more problems because it might point to a file or folder on your local harddrive and therefore will not be accessible from other computers. Symlinks are preserved if they are relative symlinks (e.g., pointing to a directory above the current directory).
An easy workaround for this is just compressing the files you want to copy, then copy it to your drive and extract the data after you put it on the location you need to. So you don't have to deal with the formatting problem in a hurry. Later on you can still save all files on the drive and reformat your device with a more compatible one, if you wish to.