You are not logged in.
recently do a test
mount /dev/sda5 /mnt/1
mount /dev/sda5 /mnt/2
of course at the first time, the contents in each directory is same, after
touch /mnt/1/testfile
this file is appear in /mnt/2 also, then
rm /mnt/2/testfile
this file is disappear from /mnt/1
i *think* this is the same effort of
mount --bind /mnt/1 /mnt/2
but *not* sure. already googled this, but no clear answer found.
did any body know this?
Offline
So bind is implied? What is the benefit of explicitly using --bind?
ps: @ baldzhang, you have a post ratio of approx. 1 post/yr !! That's like the opposite of karol
Offline
What is the benefit of explicitly using --bind?
--bind can be used to mount a specific subdirectory elsewhere, rather than just mounting the root directory in multiple places.
--bind also seems to be necessary for FUSE filesystems. At least, NTFS refuses to be 'mount'ed in two places simultaneously, you have to --bind the mount point to another mount point.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
thank you all, i learned more
emmm... i have a *little* busy for almost 10 years..., but i love Arch and test/use it from version 0.1
Offline