LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-31-2012, 03:40 PM   #1
littleplane
LQ Newbie
 
Registered: Mar 2012
Posts: 17

Rep: Reputation: Disabled
How to unmount binded system directory?


Hi All,

I faced a problem during playing with chroot. I mounted all my system directories (/bin, /home, /proc, /usr, ...) into a new chroot directory with "mount -bind oldDir newDir" command. And when I tried to unmount the usr, lib and home directories I got an error message that they are busy. I searched with google and found that mount -bind results permanent changes but I hope there is a way to revert this all crap. Any idea?
 
Old 03-31-2012, 04:38 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Yep, some ideas come to mind...what's in the inittab? I noticed that doing a mount alters the inittab (anyway, some thing does the appends...)
As far as I recall, it's the inittab that does the mounting (not really, the mounts happen with the "instructions" in inittab)

Just an idea...

Thor
 
Old 04-01-2012, 09:02 AM   #3
jaybutts
LQ Newbie
 
Registered: Apr 2012
Location: Detroit
Distribution: Centos, Gentoo, Debian, Ubuntu, FreeBSD
Posts: 5

Rep: Reputation: Disabled
use lazy unmount

umount -l
 
1 members found this post helpful.
Old 04-01-2012, 11:18 AM   #4
littleplane
LQ Newbie
 
Registered: Mar 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks! Lazy unmount and a restart solved the problem!
 
Old 04-04-2012, 08:31 PM   #5
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 91
I realize this post is marked as solved but I want to mention you might mount the partition with the "--make-unbindable" option which would not require "umount -l". I have had some problems with using "umount -l" and discovered the "--make-unbindable" arguement.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing unmount and unmount.cifs johnmccarthy Linux - Newbie 3 11-19-2011 07:01 AM
Accessing from Internet to daemon binded to localhost h725 Linux - Networking 2 03-11-2009 03:52 PM
unmount file system cheng Linux - Software 19 03-20-2005 08:18 PM
command 'unmount' not found - how can i unmount??? GloVe Linux - General 1 10-04-2003 06:33 AM
File System Forced Unmount snoopy42 Linux - General 1 12-04-2002 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration