Find the answer to your Linux question:
Results 1 to 2 of 2
Hey all, I'm wondering what the difference between a mount and a link is? if you mount /home/username to /home/username2/username its almost like a link is created there /home/username2/username points ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    1

    Mount vs Link?

    Hey all,

    I'm wondering what the difference between a mount and a link is? if you mount /home/username to /home/username2/username its almost like a link is created there /home/username2/username points to /home/username.

    I'm exploring the characteristics of a mounted directory, as in trying the following:

    -d file True if file exists and is a directory.
    -l file True if file exists and is a link

    The -d passes - but I'm getting the -l to fail - which says mounted dirs are not links. How are they different?

  2. #2
    Just Joined! Runn3r.cze's Avatar
    Join Date
    Jul 2007
    Location
    czech republic
    Posts
    93
    by mounting you can mount any place you want to your mount place, then you can unmount it and mount there another place
    but if you create a link, you can't change where it links, it will still link to the same place...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...