[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: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.

-s




Reply to: