Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Debian Linux in Chroot

From: Andrew J. Barr <andrew.james.barr(at)gmail.com>
Date: Wed Aug 01 2007 - 08:59:05 EDT


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...


-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Wed Aug 1 08:59:31 2007
Do you need help?X

This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 18:36:48 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library