LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   reverse mount -o bind /a /b (https://www.linuxquestions.org/questions/linux-newbie-8/reverse-mount-o-bind-a-b-870870/)

ted_chou12 03-24-2011 11:35 PM

reverse mount -o bind /a /b
 
Hi, sorry for the frequent posting, I have another question regarding linking and mapping dir, after i mounted -o bind /a /b
Code:

mount -o bind /a /b
now /b appears to be /a, how do i reverse this action?
I had a look at umount:
Code:

umount /b
but this didn't work, the directory /b still looks like /a. is there any flag or what supposed to be added?
Thanks.
Ted

RockDoctor 03-25-2011 05:29 AM

Not sure why it doesn't work (assuming you tried to do the umount as root and your working directory wasn't /b or a subdirectory thereof). I have a little script that does a bind-mount before I do a chroot, and I undo the mountings using the syntax you've used above.


All times are GMT -5. The time now is 11:14 PM.