[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to cleanly remove the chroot environment?



On Thu, 2007-06-21 at 09:17 -0500, Stephen Olander-Waters wrote:
> On Thu, 2007-06-21 at 09:51 -0400, Roberto C. Sánchez wrote:
> > On Wed, Jun 20, 2007 at 07:23:57PM -0000, avishai wrote:
> > > 
> > > /home on /var/chroot/sid-ia32/home type none (rw,bind)
> > > /tmp on /var/chroot/sid-ia32/tmp type none (rw,bind)
> > > /dev on /var/chroot/sid-ia32/dev type none (rw,bind)
> > > /proc on /var/chroot/sid-ia32/proc type none (rw,bind)
> > 
> > These are all bind mounts.  You can umount them by running this as root:
> > 
> > for i in home tmp dev proc ; do umount /var/chroot/sid-ia32/$i ; done
> > 
> > If you get any "device busy" (or similar) errors then that means that
> > something is still accessing one of those partitions.  You need to stop
> > or kill that process and then try again.
> 
> Or, remove them from /etc/fstab and reboot. Cat /proc/mounts. If none
> are left, you should be able to safely remove the directories.

And if you want to be paranoid like me, you can back up the dirs before
trying it all...  ;-)


Kenward
-- 
If you can't explain it simply, you don't understand it well enough. --
A. Einstein




Reply to: