0

I have two locations that point to the same physical space:

$ df -h /home/admindev
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdd1      1008G  810G  153G  85% /data2

$ df -h /data2
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdd1      1008G  810G  153G  85% /data2

Though, I only find /data2 in the results of this command:

$ df
/dev/sdd1      1056762036 848526448 159901448  85% /data2

How is defined /home/admindev?

Mark

1
  • check for softlinks ls -ld /home/admindev and ls -ld /home – Romeo Ninov Feb 10 '20 at 10:19
2

df $some_file display the filesystem on which $some_file is. From your commands, there is a filesystem mounted as /data2. Since the path to /home/admindev is not a child of /data2, something is "forwarding" /home/admindev to /data2. This can be either:

  • A soft link (obtained with ln -s)
  • A "bind mount" (obtained with mount --bind ...)

Either can be on /home or on /home/admindev. The soft link can be checked using ls, the bind-mount appears in the output of mount.

1
  • Thank you, I could see the link between /home/admindev and /data2 with readlink. – Mark531 Feb 10 '20 at 11:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.