chroot with multiple partitions?
fogey at mindspring.com
Thu Jun 20 06:07:39 PDT 2002
Thanks very much for your explanation. I should have remembered that
symlinks don't work across partition boundaries.
On Wed, 19 Jun 2002 22:01:33 -0400
"Teibidh" <teibidh at cox.net> wrote:
> You shouldn't be linking to them, symlinks won't work outside the
> chrooted root directory... meaning:
> Host distro config:
> --If you chroot to /lfs with this setup using symlinks in /lfs pointing
> to/lfs-usr and /lfs-home, your LFS install can't see those directories,
> linked or not.
> The proper solution would follow these steps, I"m assuming /dev/hda1
> your host distro, /dev/hdb1 for LFS build, /dev/hdc1 for your LFS /usr
> directory and /dev/hdd1 for your LFS /home directory. Modify as
> necessary, I'm going to give the command line steps:
> Login to host distro, do not chroot yet.
> mkdir /lfs/usr
> mkdir /lfs/home
> mount -t auto /dev/hdb1 /lfs
> mount -t auto /dev/hdc1 /lfs/usr
> mount -t auto /dev/hdd1 /lfs/home
> Now, your usr and home directories are actually mount points, not
> symlinks. Anything in them will be accessible from within the chrooted
> LFS environment. The key to why your symlinks don't work is this:
> ln -s /lfs-usr /lfs/usr
> This command would create a symbolic link in /lfs pointing to a
> directory named /lfs-usr. When you chroot, your /lfs directory becomes
> your/ directory... so the link would, in essence, be acting as if this
> command had been issued:
> ln -s /lfs/lfs-usr /lfs/usr
> Obviously, that won't work.:) Try it the other way, should solve
> ----- Original Message -----
> From: "David Ayers" <fogey at mindspring.com>
> To: "LFS Support" <lfs-support at linuxfromscratch.org>
> Sent: Wednesday, June 19, 2002 9:51 PM
> Subject: chroot with multiple partitions?
> > After I completed my LFS installation, I moved /usr and /home to
> > separate partitions. No problem when booting LFS, but I can no longer
> > enter the chroot environment from the host distribution, because $LFS
> > is now missing/usr and /home. How do I make them part of the chroot
> > environment, or is that possible? All three partitions are mounted in
> > the host system, and it seems like I ought to be able to link to /usr
> > and /home for chroot, but I have been unsuccessful in this so far.
> > Some help would be appreciated.
> > Dave
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message
More information about the lfs-support