mount read/write filesystems into a read-only one. say you want to have strict change control of /usr, but /usr/local doesn't need that.
mount /usr as read-only mount --bind /other/filesystem /usr/local how's that? > -----Original Message----- > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On > Behalf Of McKown, John > Sent: Wednesday, November 08, 2006 1:04 PM > To: [email protected] > Subject: mount --bind & --rbind question - WHY? > > I understand what these do. Can anybody explain to me why I > would use them? Eg, I could do something like: > > mount --rbind /opt/lib/IBM /var/lib/IBM > > Now I can get to the same physical files via /opt/lib/IBM or > /var/lib/IBM. I guess that if I messed something up and could > not find the config file, this would be helpful. But how is > that better than: > > ln -s /opt/lib/IBM /var/lib/IBM > > ??? The best that I can figure out is if I did something like: > > mount -bind /bin /tmp/bin > chroot /tmp /bin/sh > > to get to a chroot'ed environment. Is that the reason? Oh, > and does it work? I haven't tried because I'm not where I can > easily get to a Linux system right now. > > > -- > John McKown > Senior Systems Programmer > HealthMarkets > Keeping the Promise of Affordable Coverage Administrative > Services Group Information Technology > > This message (including any attachments) contains > confidential information intended for a specific individual > and purpose, and its content is protected by law. If you are > not the intended recipient, you should delete this message > and are hereby notified that any disclosure, copying, or > distribution of this transmission, or taking any action based > on it, is strictly prohibited. > > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access > instructions, send email to [EMAIL PROTECTED] with the > message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
