Using file-backed loop mount for storage

[code language="bash"]
# created a sparsefile
dd of=/lfs.sparsefile bs=1k seek=102400 count=0

# symlinked /proc/mounts to /etc/mtab in chroot
ln -sf /proc/mounts /etc/mtab

#initialized the new ext3 filesystem
mkfs.ext3 /lfs.sparsefile

# created the mountpoint
mkdir /mnt/lfs

# mount.  easy as pie.
mount /lfs.sparsefile /mnt/lfs/
[/code]

Now we show our work:

[code language="text"]
[- mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
/lfs.sparsefile on /mnt/lfs type ext3 (rw,relatime,data=ordered)

[ root@LFS-HOST ] << /mnt >>

[- chown -R phanes:heaven $LFS

[ root@LFS-HOST ] << /mnt >>

[- ll $LFS
total 17
drwxr-xr-x 3 phanes heaven  1024 Jan  6 05:43 ./
drwxr-xr-x 3 root   root    4096 Jan  6 05:44 ../
drwx------ 2 phanes heaven 12288 Jan  6 05:43 lost+found/

[/code]