So most people know that to mount a disk to two different locations, they can do a simple mount –bind like:

mount --bind /origlocation /newlocation

However, what if you want that second location to be a read-only location to the filesystem? Try this:

mount --bind /origlocation /newlocation mount -o remount,ro /newlocation

^that should properly work! More reasoning for this here.

Blog Logo

Mario Loria


Published

Image

./scriptthe.net

Because 127.0.0.1 gets old after a while.

Back to Overview