Help Please with Symlink Replication Problem

I must be losing the plot here!!!

I am trying to replicate the set up from a sick 13.2 machine on new LEAP 42.1 machine and I cannot replicate a symlink.

On the first machine I have two drives, the first with, inter alia, my home directory and the second mounted as /data with my multimedia files in /data/multimedia. I have set up a symlink between this multimedia directory and a directory in my home directory named mastermedia. From my home directory I have:-

lrwxrwxrwx  1 alastair users        17 Nov  7 23:49 mastermedia -> /data/multimedia/

If I open mastermedia with dolphin I see the contents of /data/multimedia/ which is what I want and expect.

My trouble is that when I try and replicate this on the new machine, when I open mastermedia with dolphin I see the multimedia directory from /data/multimedia, not the contents as above. I have to open this to see the contents.

I have tried all combinations of directory and target, with and without trailing / . The only difference between the old and new machines is that on the new machine all the partitions are on one drive with /data as another partition.

What am I doing wrong please?

As you do not show what you tried, we can not comment on it being correct or not.

What should be correct IMHO is, while having your home directory as your working directory (often described as “being in your home directory”):

ln -s /data/multimedia mastermedia

(assumung that mastermedia does not exist already of course).

And then check with

ls -l mastermedia

and go there and show what there is inside

cd mastermedia
ls

Also check the ownership, etc. from /data/multimedia:

ls -ld /data/multimedia

Speculating,
Sounds to me like /data is not mounted the same on both machines?

Inspect your fstab or however your /data is mounted.

TSU

Hi Henk,
Many thanks. I said I was losing it!!! “mastermedia” did exist already. Removed it and now all is as it should be. Thanks again.