Re: Debian Linux in Chroot
On 7/31/07, Matthew K Poer <matthewpoer@gmail.com> wrote:
> Wow, you seem to be really singing the praises of chroot.
>
> I have a spare 10gig partition on my hard drive. I originally considered
> simply dual-booting Etch and Lenny, or Etch and Feisty, or something similar.
> Perhaps instead I will make it a chroot jail for Lenny.
You don't need partitions for chroots, you can just make them in a
folder on your root filesystem, say /var/chroot. This is more flexible
than a partition, so you might consider merging that 10gb partition
into your root file system--you can use gparted on a LiveCD for easy
point-and-click partition editing (I've found Ubuntu LiveCDs
particularly useful for this).
> Big question answered: you can run X clients (applications) on your local,
> non-chroot Xserver (display).
Yes, remember--X is a network protocol and you can run clients on any
network-connected computer, regardless of architecture or operating
system.
> So, again, it is a completely separate operating system installation, running
> on the same kernel as the active, base OS?
Yes.
> So how do you handle the /boot partition? Do you have to redirect to the
> active kernel, or is this sort of automatically taken care of by debootstrap?
> (I have never used debootstrap).
The system is already booted when you enter into your chroot. There is
no need for /boot, as the kernel is already loaded into memory.
However, if you want to have folders from your main system available
in your chroot, 'mount --bind' is your friend.
--
Andrew Barr
We matter more than pounds and pence,
your economic theory makes no sense...
Reply to: