Difference between hardlink and bind mount?

this might be a silly question, but:

http://dwaves.de/2015/05/26/linux-search-find-files-locate-find-linux-locate-scope/

bind mounts under linux:

as far as i understand: you can install the same directory in two different locations.

but where is the difference with hard links?

The binding is mounted. Starting with Linux 2.4.0, it is possible to redo part of the file hierarchy elsewhere. Call:

mount -bind olddir newdir

Is this just another way to make the folder available? (but it doesn't actually use any network protocol because it is local)

please give some examples for / against.

thank:)

+3


source to share


1 answer


In general, a hard link is a filesystem object, a mount point is a kernel object. Hardlink will be resilient across reboots, mount point will not.



+4


source







All Articles