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

Re: how to cleanly remove the chroot environment?



avishai escreveu:
Hello all,

Following my recent finding that flash media can *finally* be played
on my iceweasel (and when I say finally, I mean: DAMN, that took a
long time)
And which was the solution you used to achieve that? Gnash? nsplugginwrapper? I'm interested in knowing that, and I believe so are others.

, i see no need to have an extra 32bit system installed. So
I'm thinking about removing it completely, however a bit of googling
on it beforehand led me to this:

 "Be VERY careful if you decide to remove the chroot at some point in
the future. Any filesystems you have mounted with bind MUST be
unmounted before you rm -f the chroot. If you fail to do this you'll
remove your valuable data (/me sniff's and wipes away a tear) "
http://www.debian-administration.org/articles/356

Anyone care to explain this one to me before I throw away all that
"valuable data"?
Cheers,
Avishai.
That means that if you do rm -rf /var/chroot/sid-ia32, and /home is also visible unser /var/chroot/sid-ia32/home, then the rm will try to delete /var/chroot/sid-ia32/home, which will delete the /home (since the two are the same, mounted in different places). So you should unmount this and all other bind mounts before doing rm -rf /var/chroot/sid-ia32.

some extra data:
$ mount
/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)
Do a umount /var/chroot/sid-ia32/home (and similar for others) before.



Reply to: