Andrew Benton wrote:
Jedediah Klusman wrote:

KK trying to install LFS using live cd. Heres my question, I want my final LFS distro to have this directory/partition structure
hda1 /
hda2 SWAP
hda3 /var
hda4 ext
hda5 /home
hda6 /usr

However from reading the book it tills me to mount my lfs partition to /mnt/lfs, and dosn't mention using multiple partitions much. So im at a loss. Im afraid that ill finish the build and have my entire dirctory structure like this
/mnt/lfs
/mnt/lfs/var
/mnt/lfs/home
/mnt/lfs/usr


Hmm...I'm not sure. If you mount /dev/hda1 on /mnt/lfs then you can build chapter 5 OK because that installs everything in /mnt/lfs/tools which is only temporary and not part of the finished system. To me, the issue is how do you mount /dev/hda6 on /usr after you've entered the chroot environment? It's probably quite straightforward. I only put /home on a separate partition and that's only needed after I reboot into LFS so I've never needed to mount it in the chroot.


no problems mounting as many partitions as you want on top of /mnt/lfs - its just a file system

eg:

/dev/hda1 /mnt/lfs
/dev/hda2 /mnt/lfs/usr
/dev/hda3 /mnt/lfs/var
/dev/hdb1 /mnt/lfs/home
/dev/hdb2 /mnt/lfs/opt

even

/dev/hdc1 /mnt/lfs/sources

if you want

it will still just be /usr /var /home etc on the file system.

You don't need to mount them inside the chroot environment as they are already mounted /mnt/lfs your chrooting into /mnt/lfs so you'll just see /usr.

Building chapter 5 with this configuration is no problem because a.) it installs to /tools which is just a symlink to /mnt/lfs/tools b.) what difference to chapter 5 or 6 or any of the books is installing to a file system of /mnt/lfs called /usr or a directory of /mnt/lfs called /usr ? the file system is still /usr (/mnt/lfs/usr) ?

It works fine.

Matt



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.1/104 - Release Date: 16/09/2005

--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to