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

Re: removing a chroot directory

On Tue, 2006-08-08 at 13:59 -0500, Seb wrote:
> I tried to install a chroot environment in an AMD64 machine, but decided
> against it before completing the task.  This is what I did (as root)
> ,-----[ attempt to chroot ]
> | $ mkdir -p /var/chroot/sid-ia32
> | $ debootstrap --arch i386 sid /var/chroot/sid-ia32/ http://ftp.debian.org/debian/
> `-----
> Is it safe to simply say 'rm -rf /var/chroot' outside this directory, or
> should other tools be used?

That will work great, after running "mount" to make sure that nothing is
mounted in the chroot.  ...Although from what you said you haven't
mounted anything in the chroot yet.

One of the first times I set up a chroot (and mounted /home in it) and
later deleted it, I did so without unmounting the home partition.
Everything in /home disappeared; luckily I had just backed it all up.

Reply to: