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

How do I chroot in Debian?



I've used chroot numerous times with Gentoo and I wonder if this
procedure differs for Debian. Here's the procedure I used with Gentoo,
can I use the same procedure on a mounted Debian partition?

> # cp -L /etc/resolv.conf /mnt/gentoo/etc/
> # mount -t proc none /mnt/gentoo/proc
> # mount -o bind /dev /mnt/gentoo/dev
> # chroot /mnt/gentoo /bin/bash
> # env-update
> # source /etc/profile
> # export PS1="(chroot) $PS1"

I also wonder if it matters which live cd I use. Can I use the (Gentoo based) systemrescuecd? Or do I need a Debian livecd? Thanks in advance!


-- 
Regards,


Aniruddha



Reply to: