Richard Lightman richard at
Tue Jul 10 11:07:26 PDT 2001

Misquoted from elko on 2001/07/10 at 13:35 +0000:
> On Tuesday 10 July 2001 08:18, Richard Lightman wrote:
> >
> > mount --bind /mnt/src $LFS/usr/src
> what kind of a `mount' is that?
> mine does not support this `--bind'.

I thought it was in all 2.4.x kernels. My util-linux is
2.11f patched for cryptography, but it should still be there
without crypto.

It mounts the directory tree in '/mnt/src' at the mount point
'$LFS/usr/src'. You can then fiddle with the same files from
either place. I use these for chroot:

mount --bind /dev $LFS/dev    # Handy for devfs
mount --bind /proc $LFS/proc

If you do this, you may want to preserve some user/group id's, eg:

egrep '^(root)|(bin)|(tty):' /etc/group >$LFS/etc/group
# and for passwd & shadow


Unsubscribe: send email to lfs-discuss-request at
and put unsubscribe in the subject header of the message

More information about the lfs-dev mailing list