Page 1 of 1

How do I un-chroot ?

Posted: Mon 08 Aug 2005, 02:29
by dougtheslug
I have puppy linux and damnsmalllinux installed on the same HD .
thanks to your posts I learned how to chroot into another distro from puppy now my question is
how to get out of chroot and into puppy again I tried crtl+D but it did not work
and if I kill the xserver my screen goes black . is there a way to jump from one distro to the other ?.

Posted: Mon 08 Aug 2005, 02:41
by Bancobusto
Doug the Slug, I would tell you, but I don't know exactly. Sorry.

Posted: Mon 08 Aug 2005, 05:18
by Guest
Usaully just typing exit at the prompt does the trick and it's always a good idea the umount /proc that's been mounted in the chroot filesystem....tho I'm not too sure if running a xserver in the chroot enviroment is a good idea...Usually it's used for console situations

Posted: Mon 08 Aug 2005, 06:35
by BarryK
Yep, as Bladehunter says, just type exit.
I will also echo the same advice, don't run any X apps in the chrooted environment.

Posted: Mon 08 Aug 2005, 08:52
by Guest
actually both /dev/pts and /proc should be mounted in the chroot session...then unmounted afterwards

Code: Select all

mount proc /proc -t proc
mount devpts /dev/pts -t devpts

Certain applications require them for operation