Recently I came to know about the mount --bind
command but there is something that I can't understand clearly. Suppose I have a disk partition and I mounted it to a mount point /bkup using this command.
sudo mount /dev/sdd1 /bkup
If I want to make that /home/bkup directory appear as ~/bkup, I could do
sudo mount --bind /bkup ~/bkup
But how is it different from
ln -s /bkup ~/bkup
in effect? Why should I use mount --bind
when I can do the same thing with ln -s
command?